| 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('testSimpleFunction'); |
| 13 await test('function foo(a, b, c) {}'); |
| 14 |
| 15 InspectorTest.markStep('testSpreadOperator'); |
| 16 await test('function foo(a, b, ...c) {}'); |
| 17 |
| 18 InspectorTest.markStep('testVariableDeclaration'); |
| 19 await test('var a = function(a,b) { }'); |
| 20 |
| 21 InspectorTest.markStep('testMultipleVariableDeclaration'); |
| 22 await test('var a = function(a,b) { }, b = function(c,d) { }'); |
| 23 |
| 24 InspectorTest.markStep('testObjectProperty'); |
| 25 await test('a.b.c = function(d, e) { }'); |
| 26 |
| 27 InspectorTest.completeTest(); |
| 28 } |
| 29 |
| 30 </script> |
| 31 |
| 32 </head> |
| 33 |
| 34 <body onload="runTest()"> |
| 35 <p>Verify javascript outline</p> |
| 36 </body> |
| 37 </html> |
| OLD | NEW |