| 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('attachFramesAndWaitForSourceMaps'); |
| 16 await Promise.all([ |
| 17 InspectorTest.attachFrame('frame1', './resources/sourcemap-frame.html',
'_test_create-iframe1.js'), |
| 18 InspectorTest.attachFrame('frame2', './resources/sourcemap-frame.html',
'_test_create-iframe2.js'), |
| 19 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), |
| 20 InspectorTest.waitForSourceMap('sourcemap-style.css.map'), |
| 21 ]); |
| 22 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 23 |
| 24 InspectorTest.markStep('Suspending targets.'); |
| 25 await SDK.targetManager.suspendAllTargets(); |
| 26 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 27 |
| 28 InspectorTest.markStep('Resuming targets.'); |
| 29 await Promise.all([ |
| 30 SDK.targetManager.resumeAllTargets(), |
| 31 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), |
| 32 InspectorTest.waitForSourceMap('sourcemap-style.css.map') |
| 33 ]); |
| 34 |
| 35 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 36 |
| 37 InspectorTest.completeTest(); |
| 38 } |
| 39 |
| 40 </script> |
| 41 </head> |
| 42 <body onload="runTest()"> |
| 43 <p> |
| 44 Verify that navigator is rendered properly when targets are suspended and resume
d. |
| 45 </p> |
| 46 </body> |
| OLD | NEW |