| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/sources-test.js"></script> |
| 5 |
| 6 <script> |
| 7 |
| 8 async function test() |
| 9 { |
| 10 var test = InspectorTest.testJavascriptOutline; |
| 11 |
| 12 InspectorTest.markStep('testAsyncFunction'); |
| 13 await test('async function foo() { }'); |
| 14 |
| 15 InspectorTest.markStep('testGeneratorFunction'); |
| 16 await test('function* foo() { }'); |
| 17 |
| 18 InspectorTest.markStep('testMismatchBrackets'); |
| 19 await test(` |
| 20 function foo(a, b) { |
| 21 if (a > b) { |
| 22 return a; |
| 23 } |
| 24 |
| 25 function bar(eee) { |
| 26 foo(eee, 2 * eee); |
| 27 } |
| 28 `); |
| 29 |
| 30 InspectorTest.markStep('testSyntaxError'); |
| 31 await test(` |
| 32 function notAGenerator(a, b) { |
| 33 yield 10; |
| 34 }`); |
| 35 |
| 36 InspectorTest.completeTest(); |
| 37 } |
| 38 |
| 39 </script> |
| 40 |
| 41 </head> |
| 42 |
| 43 <body onload="runTest()"> |
| 44 <p>Verify javascript outline</p> |
| 45 </body> |
| 46 </html> |
| OLD | NEW |