| 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('testNamedFunctionVariableAssignment'); |
| 13 await test('var a = function foo(...bar) { }'); |
| 14 |
| 15 InspectorTest.markStep('testArrowFunction'); |
| 16 await test('var a = x => x + 2'); |
| 17 |
| 18 InspectorTest.markStep('testArrowFunctionWithMultipleArguments'); |
| 19 await test('var a = (x, y) => x + y'); |
| 20 |
| 21 InspectorTest.markStep('testInnerFunctions'); |
| 22 await test('function foo(){ function bar() {} function baz() { }}'); |
| 23 |
| 24 InspectorTest.markStep('testObjectProperties'); |
| 25 await test('x = { run: function() { }, get count() { }, set count(value) { }
}'); |
| 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 |