OLD | NEW |
1 Verifies JavaScript pretty-printing functionality. | 1 Verifies JavaScript pretty-printing functionality. |
2 | 2 |
3 | 3 |
4 Running: trailingCommentsTest | 4 Running: trailingCommentsTest |
5 ====== 8< ------ | 5 ====== 8< ------ |
6 noop(); | 6 noop(); |
7 //#sourceMappingURL=program.js.map | 7 //#sourceMappingURL=program.js.map |
8 | 8 |
9 ------ >8 ====== | 9 ------ >8 ====== |
10 | 10 |
11 Running: inlinedScriptFormatting | 11 Running: inlinedScriptFormatting |
12 ====== 8< ------ | 12 ====== 8< ------ |
13 <html><body><script> | 13 <html> |
14 function f() {} | 14 <body> |
15 </script><script> | 15 <script> |
16 function g() { | 16 function f() {} |
17 var a; | 17 </script> |
18 window.return = 10; | 18 <script> |
19 if (a) | 19 function g() { |
20 return; | 20 var a; |
21 } | 21 window.return = 10; |
22 </script></body></html> | 22 if (a) |
| 23 return; |
| 24 } |
| 25 </script> |
| 26 </body> |
| 27 </html> |
| 28 |
23 ------ >8 ====== | 29 ------ >8 ====== |
24 | 30 |
25 Running: generatorFormatter | 31 Running: generatorFormatter |
26 ====== 8< ------ | 32 ====== 8< ------ |
27 function *max() { | 33 function *max() { |
28 var a = yield; | 34 var a = yield; |
29 var b = yield 10; | 35 var b = yield 10; |
30 if (a > b) | 36 if (a > b) |
31 return a; | 37 return a; |
32 else | 38 else |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 console.log(arg); | 92 console.log(arg); |
87 } | 93 } |
88 test(a=>a + 2); | 94 test(a=>a + 2); |
89 | 95 |
90 ------ >8 ====== | 96 ------ >8 ====== |
91 Correct mapping for <function> | 97 Correct mapping for <function> |
92 Correct mapping for <console> | 98 Correct mapping for <console> |
93 Correct mapping for <=>> | 99 Correct mapping for <=>> |
94 Correct mapping for <2> | 100 Correct mapping for <2> |
95 | 101 |
OLD | NEW |