Accepted baselines.

This commit is contained in:
Daniel Rosenwasser 2015-07-10 16:20:25 -07:00
parent 7a0b224ba5
commit 120d0d11a0
7 changed files with 261 additions and 0 deletions

View File

@ -0,0 +1,34 @@
//// [tests/cases/compiler/exportDeclarationWithModuleSpecifierNameOnNextLine1.ts] ////
//// [t1.ts]
export var x = "x";
//// [t2.ts]
export { x } from
"./t1";
//// [t3.ts]
export { } from
"./t1";
//// [t4.ts]
export { x as a } from
"./t1";
//// [t5.ts]
export { x as a, } from
"./t1";
//// [t1.js]
exports.x = "x";
//// [t2.js]
var t1_1 = require("./t1");
exports.x = t1_1.x;
//// [t3.js]
//// [t4.js]
var t1_1 = require("./t1");
exports.a = t1_1.x;
//// [t5.js]
var t1_1 = require("./t1");
exports.a = t1_1.x;

View File

@ -0,0 +1,28 @@
=== tests/cases/compiler/t1.ts ===
export var x = "x";
>x : Symbol(x, Decl(t1.ts, 1, 10))
=== tests/cases/compiler/t2.ts ===
export { x } from
>x : Symbol(x, Decl(t2.ts, 0, 8))
"./t1";
=== tests/cases/compiler/t3.ts ===
export { } from
No type information for this code. "./t1";
No type information for this code.
No type information for this code.=== tests/cases/compiler/t4.ts ===
export { x as a } from
>x : Symbol(a, Decl(t4.ts, 0, 8))
>a : Symbol(a, Decl(t4.ts, 0, 8))
"./t1";
=== tests/cases/compiler/t5.ts ===
export { x as a, } from
>x : Symbol(a, Decl(t5.ts, 0, 8))
>a : Symbol(a, Decl(t5.ts, 0, 8))
"./t1";

View File

@ -0,0 +1,29 @@
=== tests/cases/compiler/t1.ts ===
export var x = "x";
>x : string
>"x" : string
=== tests/cases/compiler/t2.ts ===
export { x } from
>x : string
"./t1";
=== tests/cases/compiler/t3.ts ===
export { } from
No type information for this code. "./t1";
No type information for this code.
No type information for this code.=== tests/cases/compiler/t4.ts ===
export { x as a } from
>x : string
>a : string
"./t1";
=== tests/cases/compiler/t5.ts ===
export { x as a, } from
>x : string
>a : string
"./t1";

View File

@ -0,0 +1,53 @@
tests/cases/compiler/t2.ts(1,10): error TS2304: Cannot find name 'x'.
tests/cases/compiler/t2.ts(1,13): error TS2304: Cannot find name 'from'.
tests/cases/compiler/t2.ts(1,18): error TS1005: ',' expected.
tests/cases/compiler/t3.ts(1,10): error TS2304: Cannot find name 'from'.
tests/cases/compiler/t3.ts(1,15): error TS1005: ',' expected.
tests/cases/compiler/t4.ts(1,10): error TS2304: Cannot find name 'x'.
tests/cases/compiler/t4.ts(1,17): error TS1005: ',' expected.
tests/cases/compiler/t4.ts(1,17): error TS2304: Cannot find name 'from'.
tests/cases/compiler/t4.ts(1,22): error TS1005: ',' expected.
tests/cases/compiler/t5.ts(1,10): error TS2304: Cannot find name 'x'.
tests/cases/compiler/t5.ts(1,18): error TS2304: Cannot find name 'from'.
tests/cases/compiler/t5.ts(1,23): error TS1005: ',' expected.
==== tests/cases/compiler/t1.ts (0 errors) ====
export var x = "x";
==== tests/cases/compiler/t2.ts (3 errors) ====
export { x, from "./t1"
~
!!! error TS2304: Cannot find name 'x'.
~~~~
!!! error TS2304: Cannot find name 'from'.
~~~~~~
!!! error TS1005: ',' expected.
==== tests/cases/compiler/t3.ts (2 errors) ====
export { from "./t1"
~~~~
!!! error TS2304: Cannot find name 'from'.
~~~~~~
!!! error TS1005: ',' expected.
==== tests/cases/compiler/t4.ts (4 errors) ====
export { x as a from "./t1"
~
!!! error TS2304: Cannot find name 'x'.
~~~~
!!! error TS1005: ',' expected.
~~~~
!!! error TS2304: Cannot find name 'from'.
~~~~~~
!!! error TS1005: ',' expected.
==== tests/cases/compiler/t5.ts (3 errors) ====
export { x as a, from "./t1"
~
!!! error TS2304: Cannot find name 'x'.
~~~~
!!! error TS2304: Cannot find name 'from'.
~~~~~~
!!! error TS1005: ',' expected.

View File

@ -0,0 +1,28 @@
//// [tests/cases/compiler/unclosedExportClause01.ts] ////
//// [t1.ts]
export var x = "x";
//// [t2.ts]
export { x, from "./t1"
//// [t3.ts]
export { from "./t1"
//// [t4.ts]
export { x as a from "./t1"
//// [t5.ts]
export { x as a, from "./t1"
//// [t1.js]
exports.x = "x";
//// [t2.js]
"./t1";
//// [t3.js]
"./t1";
//// [t4.js]
"./t1";
//// [t5.js]
"./t1";

View File

@ -0,0 +1,57 @@
tests/cases/compiler/t2.ts(1,10): error TS2304: Cannot find name 'x'.
tests/cases/compiler/t2.ts(1,13): error TS2304: Cannot find name 'from'.
tests/cases/compiler/t2.ts(2,5): error TS1005: ',' expected.
tests/cases/compiler/t3.ts(1,10): error TS2304: Cannot find name 'from'.
tests/cases/compiler/t3.ts(2,5): error TS1005: ',' expected.
tests/cases/compiler/t4.ts(1,10): error TS2304: Cannot find name 'x'.
tests/cases/compiler/t4.ts(1,17): error TS1005: ',' expected.
tests/cases/compiler/t4.ts(1,17): error TS2304: Cannot find name 'from'.
tests/cases/compiler/t4.ts(2,5): error TS1005: ',' expected.
tests/cases/compiler/t5.ts(1,10): error TS2304: Cannot find name 'x'.
tests/cases/compiler/t5.ts(1,18): error TS2304: Cannot find name 'from'.
tests/cases/compiler/t5.ts(2,5): error TS1005: ',' expected.
==== tests/cases/compiler/t1.ts (0 errors) ====
export var x = "x";
==== tests/cases/compiler/t2.ts (3 errors) ====
export { x, from
~
!!! error TS2304: Cannot find name 'x'.
~~~~
!!! error TS2304: Cannot find name 'from'.
"./t1";
~~~~~~
!!! error TS1005: ',' expected.
==== tests/cases/compiler/t3.ts (2 errors) ====
export { from
~~~~
!!! error TS2304: Cannot find name 'from'.
"./t1";
~~~~~~
!!! error TS1005: ',' expected.
==== tests/cases/compiler/t4.ts (4 errors) ====
export { x as a from
~
!!! error TS2304: Cannot find name 'x'.
~~~~
!!! error TS1005: ',' expected.
~~~~
!!! error TS2304: Cannot find name 'from'.
"./t1";
~~~~~~
!!! error TS1005: ',' expected.
==== tests/cases/compiler/t5.ts (3 errors) ====
export { x as a, from
~
!!! error TS2304: Cannot find name 'x'.
~~~~
!!! error TS2304: Cannot find name 'from'.
"./t1";
~~~~~~
!!! error TS1005: ',' expected.

View File

@ -0,0 +1,32 @@
//// [tests/cases/compiler/unclosedExportClause02.ts] ////
//// [t1.ts]
export var x = "x";
//// [t2.ts]
export { x, from
"./t1";
//// [t3.ts]
export { from
"./t1";
//// [t4.ts]
export { x as a from
"./t1";
//// [t5.ts]
export { x as a, from
"./t1";
//// [t1.js]
exports.x = "x";
//// [t2.js]
"./t1";
//// [t3.js]
"./t1";
//// [t4.js]
"./t1";
//// [t5.js]
"./t1";