OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
4 <script src="./bindings-test.js"></script> | 4 <script src="./bindings-test.js"></script> |
5 | 5 |
6 <script> | 6 <script> |
7 | 7 |
8 async function test() | 8 async function test() |
9 { | 9 { |
10 InspectorTest.markStep('dumpInitialWorkspace'); | 10 InspectorTest.markStep('dumpInitialWorkspace'); |
11 InspectorTest.dumpWorkspace(); | 11 var snapshot = InspectorTest.dumpWorkspace(); |
12 | 12 |
13 InspectorTest.markStep('attachFrame'); | 13 InspectorTest.markStep('attachFrame'); |
14 await InspectorTest.attachFrame('frame', './resources/magic-frame.html', '_t
est_attachFrame.js'); | 14 await InspectorTest.attachFrame('frame', './resources/magic-frame.html', '_t
est_attachFrame.js'); |
15 InspectorTest.dumpWorkspace(); | 15 snapshot = InspectorTest.dumpWorkspace(snapshot); |
16 | 16 |
17 InspectorTest.markStep('detachFrame'); | 17 InspectorTest.markStep('detachFrame'); |
18 await InspectorTest.detachFrame('frame', '_test_detachFrame.js'); | 18 await InspectorTest.detachFrame('frame', '_test_detachFrame.js'); |
19 InspectorTest.dumpWorkspace(); | 19 snapshot = InspectorTest.dumpWorkspace(snapshot); |
20 | 20 |
21 InspectorTest.completeTest(); | 21 InspectorTest.completeTest(); |
22 } | 22 } |
23 | 23 |
24 </script> | 24 </script> |
25 | 25 |
26 </head> | 26 </head> |
27 <body onload="runTest()"> | 27 <body onload="runTest()"> |
28 <p> | 28 <p> |
29 Verify that UISourceCodes are added and removed as iframe gets attached and deta
ched. | 29 Verify that UISourceCodes are added and removed as iframe gets attached and deta
ched. |
30 </p> | 30 </p> |
31 </body> | 31 </body> |
32 </html> | 32 </html> |
OLD | NEW |