| 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('testClassConstructor'); |
| 13 await test('class Test { constructor(foo, bar) { }}'); |
| 14 |
| 15 InspectorTest.markStep('testClassMethods'); |
| 16 await test('class Test { foo() {} bar() { }}'); |
| 17 |
| 18 InspectorTest.markStep('testAnonymousClass'); |
| 19 await test('var test = class { constructor(foo, bar) { }}'); |
| 20 |
| 21 InspectorTest.markStep('testClassExtends'); |
| 22 await test('var A = class extends B { foo() { }}'); |
| 23 |
| 24 InspectorTest.markStep('testStaticMethod'); |
| 25 await test('class Test { static foo() { }}'); |
| 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 |