| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/sources-test.js"></script> | 4 <script src="../../http/tests/inspector/sources-test.js"></script> |
| 5 | 5 |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 async function test() | 8 async function test() |
| 9 { | 9 { |
| 10 var test = InspectorTest.testJavascriptOutline; | 10 var test = InspectorTest.testJavascriptOutline; |
| 11 | 11 |
| 12 InspectorTest.markStep('testAsyncFunction'); | 12 InspectorTest.markStep('testAsyncFunction'); |
| 13 await test('async function foo() { }'); | 13 await test('async function foo() { }'); |
| 14 | 14 |
| 15 InspectorTest.markStep('testAsyncArrowFunction'); |
| 16 await test('var sum = async (x, y) => x + y;'); |
| 17 |
| 15 InspectorTest.markStep('testGeneratorFunction'); | 18 InspectorTest.markStep('testGeneratorFunction'); |
| 16 await test('function* foo() { }'); | 19 await test('function* foo() { }'); |
| 17 | 20 |
| 18 InspectorTest.markStep('testMismatchBrackets'); | 21 InspectorTest.markStep('testMismatchBrackets'); |
| 19 await test(` | 22 await test(` |
| 20 function foo(a, b) { | 23 function foo(a, b) { |
| 21 if (a > b) { | 24 if (a > b) { |
| 22 return a; | 25 return a; |
| 23 } | 26 } |
| 24 | 27 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 37 } | 40 } |
| 38 | 41 |
| 39 </script> | 42 </script> |
| 40 | 43 |
| 41 </head> | 44 </head> |
| 42 | 45 |
| 43 <body onload="runTest()"> | 46 <body onload="runTest()"> |
| 44 <p>Verify javascript outline</p> | 47 <p>Verify javascript outline</p> |
| 45 </body> | 48 </body> |
| 46 </html> | 49 </html> |
| OLD | NEW |