Skip to content

Commit 2e6a137

Browse files
author
Kanchalai Tanglertsampan
committed
Add test for export variable statement
1 parent 4ba3e10 commit 2e6a137

13 files changed

Lines changed: 50 additions & 0 deletions

tests/cases/conformance/dynamicImport/importCallExpression1ESNext.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ p1.then(zero => {
1010
return zero.foo();
1111
})
1212

13+
export var p2 = import("./0");
14+
1315
function foo() {
1416
const p2 = import("./0");
1517
}

tests/cases/conformance/dynamicImport/importCallExpressionES5AMD.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ p1.then(zero => {
1111
return zero.foo();
1212
});
1313

14+
export var p2 = import("./0");
15+
1416
function foo() {
1517
const p2 = import("./0");
1618
}
@@ -19,4 +21,10 @@ class C {
1921
method() {
2022
const loadAsync = import ("./0");
2123
}
24+
}
25+
26+
export class D {
27+
method() {
28+
const loadAsync = import ("./0");
29+
}
2230
}

tests/cases/conformance/dynamicImport/importCallExpressionES5CJS.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ p1.then(zero => {
1111
return zero.foo();
1212
});
1313

14+
export var p2 = import("./0");
15+
1416
function foo() {
1517
const p2 = import("./0");
1618
}
@@ -19,4 +21,10 @@ class C {
1921
method() {
2022
const loadAsync = import ("./0");
2123
}
24+
}
25+
26+
export class D {
27+
method() {
28+
const loadAsync = import ("./0");
29+
}
2230
}

tests/cases/conformance/dynamicImport/importCallExpressionES5System.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ p1.then(zero => {
1111
return zero.foo();
1212
});
1313

14+
export var p2 = import("./0");
15+
1416
function foo() {
1517
const p2 = import("./0");
1618
}
@@ -19,4 +21,10 @@ class C {
1921
method() {
2022
const loadAsync = import ("./0");
2123
}
24+
}
25+
26+
export class D {
27+
method() {
28+
const loadAsync = import ("./0");
29+
}
2230
}

tests/cases/conformance/dynamicImport/importCallExpressionES5UMD.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ p1.then(zero => {
1111
return zero.foo();
1212
});
1313

14+
export var p2 = import("./0");
15+
1416
function foo() {
1517
const p2 = import("./0");
1618
}
@@ -19,4 +21,10 @@ class C {
1921
method() {
2022
const loadAsync = import ("./0");
2123
}
24+
}
25+
26+
export class D {
27+
method() {
28+
const loadAsync = import ("./0");
29+
}
2230
}

tests/cases/conformance/dynamicImport/importCallExpressionES6AMD.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ p1.then(zero => {
1010
return zero.foo();
1111
});
1212

13+
export var p2 = import("./0");
14+
1315
function foo() {
1416
const p2 = import("./0");
1517
}

tests/cases/conformance/dynamicImport/importCallExpressionES6CJS.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ p1.then(zero => {
1010
return zero.foo();
1111
});
1212

13+
export var p2 = import("./0");
14+
1315
function foo() {
1416
const p2 = import("./0");
1517
}

tests/cases/conformance/dynamicImport/importCallExpressionES6System.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ p1.then(zero => {
1010
return zero.foo();
1111
});
1212

13+
export var p2 = import("./0");
14+
1315
function foo() {
1416
const p2 = import("./0");
1517
}

tests/cases/conformance/dynamicImport/importCallExpressionES6UMD.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ p1.then(zero => {
1010
return zero.foo();
1111
});
1212

13+
export var p2 = import("./0");
14+
1315
function foo() {
1416
const p2 = import("./0");
1517
}

tests/cases/conformance/dynamicImport/importCallExpressionInAMD1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ p1.then(zero => {
1010
return zero.foo();
1111
});
1212

13+
export var p2 = import("./0");
14+
1315
function foo() {
1416
const p2 = import("./0");
1517
}

0 commit comments

Comments
 (0)