| 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 InspectorTest.markStep('initialWorkspace'); | 9 InspectorTest.markStep('initialWorkspace'); |
| 10 InspectorTest.dumpWorkspace(); | 10 var snapshot = InspectorTest.dumpWorkspace(); |
| 11 | 11 |
| 12 InspectorTest.markStep('createIframes'); | 12 InspectorTest.markStep('createIframes'); |
| 13 await Promise.all([ | 13 await Promise.all([ |
| 14 InspectorTest.attachFrame('frame1', './resources/magic-frame.html', '_te
st_create-iframe1.js'), | 14 InspectorTest.attachFrame('frame1', './resources/magic-frame.html', '_te
st_create-iframe1.js'), |
| 15 InspectorTest.attachFrame('frame2', './resources/magic-frame.html', '_te
st_create-iframe2.js'), | 15 InspectorTest.attachFrame('frame2', './resources/magic-frame.html', '_te
st_create-iframe2.js'), |
| 16 ]); | 16 ]); |
| 17 InspectorTest.dumpWorkspace(); | 17 snapshot = InspectorTest.dumpWorkspace(snapshot); |
| 18 | 18 |
| 19 InspectorTest.markStep('detachFrame1'); | 19 InspectorTest.markStep('detachFrame1'); |
| 20 await InspectorTest.detachFrame('frame1', '_test_detachFrame1.js'); | 20 await InspectorTest.detachFrame('frame1', '_test_detachFrame1.js'); |
| 21 InspectorTest.dumpWorkspace(); | 21 snapshot = InspectorTest.dumpWorkspace(snapshot); |
| 22 | 22 |
| 23 InspectorTest.markStep('detachFrame2'); | 23 InspectorTest.markStep('detachFrame2'); |
| 24 await InspectorTest.detachFrame('frame2', '_test_detachFrame2.js'); | 24 await InspectorTest.detachFrame('frame2', '_test_detachFrame2.js'); |
| 25 InspectorTest.dumpWorkspace(); | 25 snapshot = InspectorTest.dumpWorkspace(snapshot); |
| 26 | 26 |
| 27 InspectorTest.completeTest(); | 27 InspectorTest.completeTest(); |
| 28 } | 28 } |
| 29 | 29 |
| 30 </script> | 30 </script> |
| 31 </head> | 31 </head> |
| 32 <body onload="runTest()"> | 32 <body onload="runTest()"> |
| 33 <p> | 33 <p> |
| 34 Verify that UISourceCodes are removed as iframes are getting detached. | 34 Verify that UISourceCodes are removed as iframes are getting detached. |
| 35 </p> | 35 </p> |
| 36 </body> | 36 </body> |
| OLD | NEW |