| 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 InspectorTest.markStep('initialWorkspace'); |
| 10 var snapshot = InspectorTest.dumpWorkspace(); |
| 11 |
| 12 InspectorTest.markStep('createIframesAndWaitForSourceMaps'); |
| 13 await Promise.all([ |
| 14 InspectorTest.attachFrame('frame1', './resources/sourcemap-frame.html',
'_test_create-iframe1.js'), |
| 15 InspectorTest.attachFrame('frame2', './resources/sourcemap-frame.html',
'_test_create-iframe2.js'), |
| 16 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), |
| 17 InspectorTest.waitForSourceMap('sourcemap-style.css.map') |
| 18 ]); |
| 19 snapshot = InspectorTest.dumpWorkspace(snapshot); |
| 20 |
| 21 InspectorTest.markStep('Suspending targets.'); |
| 22 await SDK.targetManager.suspendAllTargets(); |
| 23 snapshot = InspectorTest.dumpWorkspace(snapshot); |
| 24 |
| 25 InspectorTest.markStep('Resuming targets.'); |
| 26 await Promise.all([ |
| 27 SDK.targetManager.resumeAllTargets(), |
| 28 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), |
| 29 InspectorTest.waitForSourceMap('sourcemap-style.css.map') |
| 30 ]); |
| 31 snapshot = InspectorTest.dumpWorkspace(snapshot); |
| 32 |
| 33 InspectorTest.completeTest(); |
| 34 } |
| 35 |
| 36 </script> |
| 37 </head> |
| 38 <body onload="runTest()"> |
| 39 <p> |
| 40 Verify that bindings handle target suspension as expected. |
| 41 </p> |
| 42 </body> |
| OLD | NEW |