Skip to content

Commit 75aa4bd

Browse files
author
Yui T
committed
Rename test file with ES2018 to ESNext
1 parent 3118afe commit 75aa4bd

17 files changed

+90
-90
lines changed

tests/baselines/reference/importCallExpression1ES2018.types

Lines changed: 0 additions & 39 deletions
This file was deleted.

tests/baselines/reference/importCallExpression1ES2018.js renamed to tests/baselines/reference/importCallExpression1ESNext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpression1ES2018.ts] ////
1+
//// [tests/cases/conformance/dynamicImport/importCallExpression1ESNext.ts] ////
22

33
//// [0.ts]
44
export function foo() { return "foo"; }

tests/baselines/reference/importCallExpression1ES2018.symbols renamed to tests/baselines/reference/importCallExpression1ESNext.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
1+
=== tests/cases/conformance/dynamicImport/0.ts ===
22
export function foo() { return "foo"; }
33
>foo : Symbol(foo, Decl(0.ts, 0, 0))
44

5-
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
5+
=== tests/cases/conformance/dynamicImport/1.ts ===
66
import("./0");
77
var p1 = import("./0");
88
>p1 : Symbol(p1, Decl(1.ts, 1, 3))
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
=== tests/cases/conformance/dynamicImport/0.ts ===
2+
export function foo() { return "foo"; }
3+
>foo : () => string
4+
>"foo" : "foo"
5+
6+
=== tests/cases/conformance/dynamicImport/1.ts ===
7+
import("./0");
8+
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
9+
>"./0" : "./0"
10+
11+
var p1 = import("./0");
12+
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
13+
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
14+
>"./0" : "./0"
15+
16+
p1.then(zero => {
17+
>p1.then(zero => { return zero.foo();}) : Promise<string>
18+
>p1.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
19+
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
20+
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
21+
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/dynamicImport/0") => string
22+
>zero : typeof "tests/cases/conformance/dynamicImport/0"
23+
24+
return zero.foo();
25+
>zero.foo() : string
26+
>zero.foo : () => string
27+
>zero : typeof "tests/cases/conformance/dynamicImport/0"
28+
>foo : () => string
29+
30+
})
31+
32+
function foo() {
33+
>foo : () => void
34+
35+
const p2 = import("./0");
36+
>p2 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
37+
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
38+
>"./0" : "./0"
39+
}

tests/baselines/reference/importCallExpression2ES2018.js renamed to tests/baselines/reference/importCallExpression2ESNext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpression2ES2018.ts] ////
1+
//// [tests/cases/conformance/dynamicImport/importCallExpression2ESNext.ts] ////
22

33
//// [0.ts]
44
export class B {

tests/baselines/reference/importCallExpression2ES2018.symbols renamed to tests/baselines/reference/importCallExpression2ESNext.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
1+
=== tests/cases/conformance/dynamicImport/0.ts ===
22
export class B {
33
>B : Symbol(B, Decl(0.ts, 0, 0))
44

55
print() { return "I am B"}
66
>print : Symbol(B.print, Decl(0.ts, 0, 16))
77
}
88

9-
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
9+
=== tests/cases/conformance/dynamicImport/2.ts ===
1010
function foo(x: Promise<any>) {
1111
>foo : Symbol(foo, Decl(2.ts, 0, 0))
1212
>x : Symbol(x, Decl(2.ts, 0, 13))

tests/baselines/reference/importCallExpression2ES2018.types renamed to tests/baselines/reference/importCallExpression2ESNext.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
1+
=== tests/cases/conformance/dynamicImport/0.ts ===
22
export class B {
33
>B : B
44

@@ -7,7 +7,7 @@ export class B {
77
>"I am B" : "I am B"
88
}
99

10-
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
10+
=== tests/cases/conformance/dynamicImport/2.ts ===
1111
function foo(x: Promise<any>) {
1212
>foo : (x: Promise<any>) => void
1313
>x : Promise<any>
@@ -40,6 +40,6 @@ function foo(x: Promise<any>) {
4040
foo(import("./0"));
4141
>foo(import("./0")) : void
4242
>foo : (x: Promise<any>) => void
43-
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
43+
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
4444
>"./0" : "./0"
4545

tests/baselines/reference/importCallExpression3ES2018.js renamed to tests/baselines/reference/importCallExpression3ESNext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpression3ES2018.ts] ////
1+
//// [tests/cases/conformance/dynamicImport/importCallExpression3ESNext.ts] ////
22

33
//// [0.ts]
44
export class B {

tests/baselines/reference/importCallExpression3ES2018.symbols renamed to tests/baselines/reference/importCallExpression3ESNext.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
1+
=== tests/cases/conformance/dynamicImport/0.ts ===
22
export class B {
33
>B : Symbol(B, Decl(0.ts, 0, 0))
44

55
print() { return "I am B"}
66
>print : Symbol(B.print, Decl(0.ts, 0, 16))
77
}
88

9-
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
9+
=== tests/cases/conformance/dynamicImport/2.ts ===
1010
async function foo() {
1111
>foo : Symbol(foo, Decl(2.ts, 0, 0))
1212

tests/baselines/reference/importCallExpression3ES2018.types renamed to tests/baselines/reference/importCallExpression3ESNext.types

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
1+
=== tests/cases/conformance/dynamicImport/0.ts ===
22
export class B {
33
>B : B
44

@@ -7,16 +7,16 @@ export class B {
77
>"I am B" : "I am B"
88
}
99

10-
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
10+
=== tests/cases/conformance/dynamicImport/2.ts ===
1111
async function foo() {
1212
>foo : () => Promise<void>
1313

1414
class C extends (await import("./0")).B {}
1515
>C : C
1616
>(await import("./0")).B : B
17-
>(await import("./0")) : typeof "tests/cases/conformance/es2018/dynamicImport/0"
18-
>await import("./0") : typeof "tests/cases/conformance/es2018/dynamicImport/0"
19-
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
17+
>(await import("./0")) : typeof "tests/cases/conformance/dynamicImport/0"
18+
>await import("./0") : typeof "tests/cases/conformance/dynamicImport/0"
19+
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
2020
>"./0" : "./0"
2121
>B : typeof B
2222

0 commit comments

Comments
 (0)