| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <script src="../inspector-test.js"></script> | 2 <script src="../inspector-test.js"></script> |
| 3 <script src="./bindings-test.js"></script> | 3 <script src="./bindings-test.js"></script> |
| 4 | 4 |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 async function test() | 7 async function test() |
| 8 { | 8 { |
| 9 var sourcesNavigator = new Sources.SourcesNavigatorView(); | 9 var sourcesNavigator = new Sources.SourcesNavigatorView(); |
| 10 sourcesNavigator.show(UI.inspectorView.element); | 10 sourcesNavigator.show(UI.inspectorView.element); |
| 11 | 11 |
| 12 InspectorTest.markStep('initialWorkspace'); | 12 InspectorTest.markStep('initialWorkspace'); |
| 13 InspectorTest.dumpNavigatorView(sourcesNavigator, false); | 13 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 14 | 14 |
| 15 InspectorTest.markStep('attachFramesAndWaitForSourceMaps'); | 15 InspectorTest.markStep('attachFramesAndWaitForSourceMaps'); |
| 16 await Promise.all([ | 16 await Promise.all([ |
| 17 InspectorTest.attachFrame('frame1', './resources/sourcemap-frame.html',
'_test_create-iframe1.js'), | 17 InspectorTest.attachFrame('frame1', './resources/sourcemap-frame.html',
'_test_create-iframe1.js'), |
| 18 InspectorTest.attachFrame('frame2', './resources/sourcemap-frame.html',
'_test_create-iframe2.js'), | 18 InspectorTest.attachFrame('frame2', './resources/sourcemap-frame.html',
'_test_create-iframe2.js'), |
| 19 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), | 19 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), |
| 20 InspectorTest.waitForSourceMap('sourcemap-style.css.map'), | 20 InspectorTest.waitForSourceMap('sourcemap-style.css.map'), |
| 21 ]); | 21 ]); |
| 22 InspectorTest.dumpNavigatorView(sourcesNavigator, false); | 22 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 23 | 23 |
| 24 InspectorTest.markStep('Suspending targets.'); | 24 InspectorTest.markStep('Suspending targets.'); |
| 25 await SDK.targetManager.suspendAllTargets(); | 25 await SDK.targetManager.suspendAllTargets(); |
| 26 InspectorTest.dumpNavigatorView(sourcesNavigator, false); | 26 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 27 | 27 |
| 28 InspectorTest.markStep('detachFrame'); |
| 29 await InspectorTest.detachFrame('frame1', '_test_detachFrame.js'); |
| 30 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 31 |
| 28 InspectorTest.markStep('Resuming targets.'); | 32 InspectorTest.markStep('Resuming targets.'); |
| 29 await Promise.all([ | 33 await Promise.all([ |
| 30 SDK.targetManager.resumeAllTargets(), | 34 SDK.targetManager.resumeAllTargets(), |
| 31 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), | 35 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), |
| 32 InspectorTest.waitForSourceMap('sourcemap-style.css.map') | 36 InspectorTest.waitForSourceMap('sourcemap-style.css.map') |
| 33 ]); | 37 ]); |
| 34 | 38 |
| 35 InspectorTest.dumpNavigatorView(sourcesNavigator, false); | 39 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 36 | 40 |
| 37 InspectorTest.completeTest(); | 41 InspectorTest.completeTest(); |
| 38 } | 42 } |
| 39 | 43 |
| 40 </script> | 44 </script> |
| 41 </head> | 45 </head> |
| 42 <body onload="runTest()"> | 46 <body onload="runTest()"> |
| 43 <p> | 47 <p> |
| 44 Verify that navigator is rendered properly when targets are suspended and resume
d. | 48 Verify that navigator is rendered properly when targets are suspended and resume
d. |
| 45 </p> | 49 </p> |
| 46 </body> | 50 </body> |
| OLD | NEW |