Skip to content

Commit 08006c9

Browse files
committed
Missed more ES5 tests based on their filenames
1 parent 4fa90c5 commit 08006c9

285 files changed

Lines changed: 3399 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
File renamed without changes.

tests/baselines/reference/ES5For-of1.sourcemap.txt renamed to tests/baselines/reference/ES5For-of1(target=es2015).sourcemap.txt

File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/baselines/reference/ES5For-of1(target=es5).js

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/baselines/reference/ES5For-of1(target=es5).js.map

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
===================================================================
2+
JsFile: ES5For-of1.js
3+
mapUrl: ES5For-of1.js.map
4+
sourceRoot:
5+
sources: ES5For-of1.ts
6+
===================================================================
7+
-------------------------------------------------------------------
8+
emittedFile:ES5For-of1.js
9+
sourceFile:ES5For-of1.ts
10+
-------------------------------------------------------------------
11+
>>>for (var _i = 0, _a = ['a', 'b', 'c']; _i < _a.length; _i++) {
12+
1 >
13+
2 >^^^^^
14+
3 > ^^^^^^^^^^
15+
4 > ^^
16+
5 > ^^^^^^
17+
6 > ^^^
18+
7 > ^^
19+
8 > ^^^
20+
9 > ^^
21+
10> ^^^
22+
11> ^
23+
12> ^^
24+
13> ^^^^^^^^^^^^^^
25+
14> ^^
26+
15> ^^^^
27+
16> ^^
28+
17> ^
29+
1 >
30+
2 >for (var v of
31+
3 > ['a', 'b', 'c']
32+
4 >
33+
5 > [
34+
6 > 'a'
35+
7 > ,
36+
8 > 'b'
37+
9 > ,
38+
10> 'c'
39+
11> ]
40+
12>
41+
13> ['a', 'b', 'c']
42+
14>
43+
15> ['a', 'b', 'c']
44+
16> )
45+
17> {
46+
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
47+
2 >Emitted(1, 6) Source(1, 15) + SourceIndex(0)
48+
3 >Emitted(1, 16) Source(1, 30) + SourceIndex(0)
49+
4 >Emitted(1, 18) Source(1, 15) + SourceIndex(0)
50+
5 >Emitted(1, 24) Source(1, 16) + SourceIndex(0)
51+
6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0)
52+
7 >Emitted(1, 29) Source(1, 21) + SourceIndex(0)
53+
8 >Emitted(1, 32) Source(1, 24) + SourceIndex(0)
54+
9 >Emitted(1, 34) Source(1, 26) + SourceIndex(0)
55+
10>Emitted(1, 37) Source(1, 29) + SourceIndex(0)
56+
11>Emitted(1, 38) Source(1, 30) + SourceIndex(0)
57+
12>Emitted(1, 40) Source(1, 15) + SourceIndex(0)
58+
13>Emitted(1, 54) Source(1, 30) + SourceIndex(0)
59+
14>Emitted(1, 56) Source(1, 15) + SourceIndex(0)
60+
15>Emitted(1, 60) Source(1, 30) + SourceIndex(0)
61+
16>Emitted(1, 62) Source(1, 32) + SourceIndex(0)
62+
17>Emitted(1, 63) Source(1, 33) + SourceIndex(0)
63+
---
64+
>>> var v = _a[_i];
65+
1 >^^^^
66+
2 > ^^^^
67+
3 > ^
68+
4 > ^^^^^^^^^
69+
5 > ^^->
70+
1 >
71+
2 > var
72+
3 > v
73+
4 >
74+
1 >Emitted(2, 5) Source(1, 6) + SourceIndex(0)
75+
2 >Emitted(2, 9) Source(1, 10) + SourceIndex(0)
76+
3 >Emitted(2, 10) Source(1, 11) + SourceIndex(0)
77+
4 >Emitted(2, 19) Source(1, 11) + SourceIndex(0)
78+
---
79+
>>> console.log(v);
80+
1->^^^^
81+
2 > ^^^^^^^
82+
3 > ^
83+
4 > ^^^
84+
5 > ^
85+
6 > ^
86+
7 > ^
87+
8 > ^
88+
1-> of ['a', 'b', 'c']) {
89+
>
90+
2 > console
91+
3 > .
92+
4 > log
93+
5 > (
94+
6 > v
95+
7 > )
96+
8 > ;
97+
1->Emitted(3, 5) Source(2, 5) + SourceIndex(0)
98+
2 >Emitted(3, 12) Source(2, 12) + SourceIndex(0)
99+
3 >Emitted(3, 13) Source(2, 13) + SourceIndex(0)
100+
4 >Emitted(3, 16) Source(2, 16) + SourceIndex(0)
101+
5 >Emitted(3, 17) Source(2, 17) + SourceIndex(0)
102+
6 >Emitted(3, 18) Source(2, 18) + SourceIndex(0)
103+
7 >Emitted(3, 19) Source(2, 19) + SourceIndex(0)
104+
8 >Emitted(3, 20) Source(2, 20) + SourceIndex(0)
105+
---
106+
>>>}
107+
1 >
108+
2 >^
109+
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
110+
1 >
111+
>
112+
2 >}
113+
1 >Emitted(4, 1) Source(3, 1) + SourceIndex(0)
114+
2 >Emitted(4, 2) Source(3, 2) + SourceIndex(0)
115+
---
116+
>>>//# sourceMappingURL=ES5For-of1.js.map
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of1.ts] ////
2+
3+
=== ES5For-of1.ts ===
4+
for (var v of ['a', 'b', 'c']) {
5+
>v : Symbol(v, Decl(ES5For-of1.ts, 0, 8))
6+
7+
console.log(v);
8+
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
9+
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
10+
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
11+
>v : Symbol(v, Decl(ES5For-of1.ts, 0, 8))
12+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//// [tests/cases/conformance/statements/for-ofStatements/ES5For-of1.ts] ////
2+
3+
=== ES5For-of1.ts ===
4+
for (var v of ['a', 'b', 'c']) {
5+
>v : string
6+
> : ^^^^^^
7+
>['a', 'b', 'c'] : string[]
8+
> : ^^^^^^^^
9+
>'a' : "a"
10+
> : ^^^
11+
>'b' : "b"
12+
> : ^^^
13+
>'c' : "c"
14+
> : ^^^
15+
16+
console.log(v);
17+
>console.log(v) : void
18+
> : ^^^^
19+
>console.log : (...data: any[]) => void
20+
> : ^^^^ ^^ ^^^^^
21+
>console : Console
22+
> : ^^^^^^^
23+
>log : (...data: any[]) => void
24+
> : ^^^^ ^^ ^^^^^
25+
>v : string
26+
> : ^^^^^^
27+
}

0 commit comments

Comments
 (0)