OLD | NEW |
(Empty) | |
| 1 <head> |
| 2 <script src="../inspector-test.js"></script> |
| 3 <script src="./bindings-test.js"></script> |
| 4 |
| 5 <script> |
| 6 |
| 7 async function test() |
| 8 { |
| 9 var sourcesNavigator = new Sources.SourcesNavigatorView(); |
| 10 sourcesNavigator.show(UI.inspectorView.element); |
| 11 |
| 12 InspectorTest.markStep('initialWorkspace'); |
| 13 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 14 |
| 15 InspectorTest.markStep('attachFrame1'); |
| 16 await Promise.all([ |
| 17 InspectorTest.attachFrame('frame1', './resources/sourcemap-frame.html',
'_test_create-iframe1.js'), |
| 18 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), |
| 19 InspectorTest.waitForSourceMap('sourcemap-style.css.map'), |
| 20 ]); |
| 21 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 22 |
| 23 InspectorTest.markStep('attachFrame2'); |
| 24 await Promise.all([ |
| 25 InspectorTest.attachFrame('frame2', './resources/sourcemap-frame.html',
'_test_create-iframe2.js'), |
| 26 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), |
| 27 InspectorTest.waitForSourceMap('sourcemap-style.css.map'), |
| 28 ]); |
| 29 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 30 |
| 31 InspectorTest.markStep('detachFrame1'); |
| 32 await InspectorTest.detachFrame('frame1', '_test_detachFrame1.js'); |
| 33 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 34 |
| 35 InspectorTest.markStep('detachFrame2'); |
| 36 await InspectorTest.detachFrame('frame2', '_test_detachFrame2.js'); |
| 37 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 38 |
| 39 InspectorTest.completeTest(); |
| 40 } |
| 41 |
| 42 </script> |
| 43 </head> |
| 44 <body onload="runTest()"> |
| 45 <p> |
| 46 Verify that SourceMap sources are correctly displayed in navigator. |
| 47 </p> |
| 48 </body> |
OLD | NEW |