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('testComputedProperty'); |
| 13 await test('a.b[c] = function() { };'); |
| 14 |
| 15 InspectorTest.markStep('testComputedPropertyInTheMiddle'); |
| 16 await test('a.b[c].d = function() { };'); |
| 17 |
| 18 InspectorTest.markStep('testComputedPropertyForExpression'); |
| 19 await test('(a || b).c = function() { };'); |
| 20 |
| 21 InspectorTest.markStep('testPropertyStringLiteral'); |
| 22 await test('var foo = { "bar": function() { }}'); |
| 23 |
| 24 InspectorTest.markStep('testPropertyNumberLiteral'); |
| 25 await test('var foo = { 42: function() { }}'); |
| 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 |