Accept baselines for added tests

This commit is contained in:
Jason Freeman 2015-02-17 12:38:21 -08:00
parent 7fe286061d
commit 8d0829594c
56 changed files with 417 additions and 0 deletions

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement1.d.ts(1,1): error TS1036: Statements are not allowed in ambient contexts.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement1.d.ts (1 errors) ====
for (var i of e) {
~~~
!!! error TS1036: Statements are not allowed in ambient contexts.
}

View file

@ -0,0 +1,11 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement10.ts(1,1): error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement10.ts(1,6): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement10.ts (2 errors) ====
for (const v of X) {
~~~
!!! error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
~~~~~
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement10.ts]
for (const v of X) {
}
//// [parserES5ForOfStatement10.js]
for (var v of X) {
}

View file

@ -0,0 +1,11 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement11.ts(1,1): error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement11.ts(1,6): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement11.ts (2 errors) ====
for (const [a, b] of X) {
~~~
!!! error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
~~~~~
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement11.ts]
for (const [a, b] of X) {
}
//// [parserES5ForOfStatement11.js]
for (var _a = void 0, a = _a[0], b = _a[1] of X) {
}

View file

@ -0,0 +1,11 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts(1,1): error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts(1,6): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts (2 errors) ====
for (const {a, b} of X) {
~~~
!!! error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
~~~~~
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement12.ts]
for (const {a, b} of X) {
}
//// [parserES5ForOfStatement12.js]
for (var _a = void 0, a = _a.a, b = _a.b of X) {
}

View file

@ -0,0 +1,11 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement13.ts(1,1): error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement13.ts(1,6): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement13.ts (2 errors) ====
for (let {a, b} of X) {
~~~
!!! error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement13.ts]
for (let {a, b} of X) {
}
//// [parserES5ForOfStatement13.js]
for (let _a = void 0, a = _a.a, b = _a.b of X) {
}

View file

@ -0,0 +1,11 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement14.ts(1,1): error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement14.ts(1,6): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement14.ts (2 errors) ====
for (let [a, b] of X) {
~~~
!!! error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement14.ts]
for (let [a, b] of X) {
}
//// [parserES5ForOfStatement14.js]
for (let _a = void 0, a = _a[0], b = _a[1] of X) {
}

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement15.ts(1,1): error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement15.ts (1 errors) ====
for (var [a, b] of X) {
~~~
!!! error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement15.ts]
for (var [a, b] of X) {
}
//// [parserES5ForOfStatement15.js]
for (var _a = void 0, a = _a[0], b = _a[1] of X) {
}

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement16.ts(1,1): error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement16.ts (1 errors) ====
for (var {a, b} of X) {
~~~
!!! error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement16.ts]
for (var {a, b} of X) {
}
//// [parserES5ForOfStatement16.js]
for (var _a = void 0, a = _a.a, b = _a.b of X) {
}

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement3.ts(1,13): error TS1091: Only a single variable declaration is allowed in a 'for...of' statement.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement3.ts (1 errors) ====
for (var a, b of X) {
~
!!! error TS1091: Only a single variable declaration is allowed in a 'for...of' statement.
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement3.ts]
for (var a, b of X) {
}
//// [parserES5ForOfStatement3.js]
for (var a of X) {
}

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement4.ts(1,1): error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement4.ts (1 errors) ====
for (var a = 1 of X) {
~~~
!!! error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement4.ts]
for (var a = 1 of X) {
}
//// [parserES5ForOfStatement4.js]
for (var a = 1 of X) {
}

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement5.ts(1,1): error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement5.ts (1 errors) ====
for (var a: number of X) {
~~~
!!! error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement5.ts]
for (var a: number of X) {
}
//// [parserES5ForOfStatement5.js]
for (var a of X) {
}

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement6.ts(1,17): error TS1091: Only a single variable declaration is allowed in a 'for...of' statement.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement6.ts (1 errors) ====
for (var a = 1, b = 2 of X) {
~
!!! error TS1091: Only a single variable declaration is allowed in a 'for...of' statement.
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement6.ts]
for (var a = 1, b = 2 of X) {
}
//// [parserES5ForOfStatement6.js]
for (var a = 1 of X) {
}

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement7.ts(1,25): error TS1091: Only a single variable declaration is allowed in a 'for...of' statement.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement7.ts (1 errors) ====
for (var a: number = 1, b: string = "" of X) {
~
!!! error TS1091: Only a single variable declaration is allowed in a 'for...of' statement.
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement7.ts]
for (var a: number = 1, b: string = "" of X) {
}
//// [parserES5ForOfStatement7.js]
for (var a = 1 of X) {
}

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement8.ts(1,1): error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement8.ts (1 errors) ====
for (var v of X) {
~~~
!!! error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement8.ts]
for (var v of X) {
}
//// [parserES5ForOfStatement8.js]
for (var v of X) {
}

View file

@ -0,0 +1,11 @@
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement9.ts(1,1): error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement9.ts(1,6): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement9.ts (2 errors) ====
for (let v of X) {
~~~
!!! error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
}

View file

@ -0,0 +1,7 @@
//// [parserES5ForOfStatement9.ts]
for (let v of X) {
}
//// [parserES5ForOfStatement9.js]
for (let v of X) {
}

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement1.d.ts(1,1): error TS1036: Statements are not allowed in ambient contexts.
==== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement1.d.ts (1 errors) ====
for (var i of e) {
~~~
!!! error TS1036: Statements are not allowed in ambient contexts.
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement10.ts]
for (const v of X) {
}
//// [parserForOfStatement10.js]
for (var v of X) {
}

View file

@ -0,0 +1,5 @@
=== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement10.ts ===
for (const v of X) {
>v : any
>X : unknown
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement11.ts]
for (const [a, b] of X) {
}
//// [parserForOfStatement11.js]
for (var [a, b] of X) {
}

View file

@ -0,0 +1,6 @@
=== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement11.ts ===
for (const [a, b] of X) {
>a : any
>b : any
>X : unknown
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement12.ts]
for (const {a, b} of X) {
}
//// [parserForOfStatement12.js]
for (var { a, b } of X) {
}

View file

@ -0,0 +1,6 @@
=== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement12.ts ===
for (const {a, b} of X) {
>a : any
>b : any
>X : unknown
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement13.ts]
for (let {a, b} of X) {
}
//// [parserForOfStatement13.js]
for (let { a, b } of X) {
}

View file

@ -0,0 +1,6 @@
=== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement13.ts ===
for (let {a, b} of X) {
>a : any
>b : any
>X : unknown
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement14.ts]
for (let [a, b] of X) {
}
//// [parserForOfStatement14.js]
for (let [a, b] of X) {
}

View file

@ -0,0 +1,6 @@
=== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement14.ts ===
for (let [a, b] of X) {
>a : any
>b : any
>X : unknown
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement15.ts]
for (var [a, b] of X) {
}
//// [parserForOfStatement15.js]
for (var [a, b] of X) {
}

View file

@ -0,0 +1,6 @@
=== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement15.ts ===
for (var [a, b] of X) {
>a : any
>b : any
>X : unknown
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement16.ts]
for (var {a, b} of X) {
}
//// [parserForOfStatement16.js]
for (var { a, b } of X) {
}

View file

@ -0,0 +1,6 @@
=== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement16.ts ===
for (var {a, b} of X) {
>a : any
>b : any
>X : unknown
}

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement3.ts(1,13): error TS1091: Only a single variable declaration is allowed in a 'for...of' statement.
==== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement3.ts (1 errors) ====
for (var a, b of X) {
~
!!! error TS1091: Only a single variable declaration is allowed in a 'for...of' statement.
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement3.ts]
for (var a, b of X) {
}
//// [parserForOfStatement3.js]
for (var a of X) {
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement4.ts]
for (var a = 1 of X) {
}
//// [parserForOfStatement4.js]
for (var a = 1 of X) {
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement5.ts]
for (var a: number of X) {
}
//// [parserForOfStatement5.js]
for (var a of X) {
}

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement6.ts(1,17): error TS1091: Only a single variable declaration is allowed in a 'for...of' statement.
==== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement6.ts (1 errors) ====
for (var a = 1, b = 2 of X) {
~
!!! error TS1091: Only a single variable declaration is allowed in a 'for...of' statement.
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement6.ts]
for (var a = 1, b = 2 of X) {
}
//// [parserForOfStatement6.js]
for (var a = 1 of X) {
}

View file

@ -0,0 +1,8 @@
tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement7.ts(1,25): error TS1091: Only a single variable declaration is allowed in a 'for...of' statement.
==== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement7.ts (1 errors) ====
for (var a: number = 1, b: string = "" of X) {
~
!!! error TS1091: Only a single variable declaration is allowed in a 'for...of' statement.
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement7.ts]
for (var a: number = 1, b: string = "" of X) {
}
//// [parserForOfStatement7.js]
for (var a = 1 of X) {
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement8.ts]
for (var v of X) {
}
//// [parserForOfStatement8.js]
for (var v of X) {
}

View file

@ -0,0 +1,5 @@
=== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement8.ts ===
for (var v of X) {
>v : any
>X : unknown
}

View file

@ -0,0 +1,7 @@
//// [parserForOfStatement9.ts]
for (let v of X) {
}
//// [parserForOfStatement9.js]
for (let v of X) {
}

View file

@ -0,0 +1,5 @@
=== tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement9.ts ===
for (let v of X) {
>v : any
>X : unknown
}