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 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 Promise.all([ |
| 15 InspectorTest.attachFrame('frame', './resources/sourcemap-frame.html', '
_test_attachFrame.js'), |
| 16 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), |
| 17 InspectorTest.waitForSourceMap('sourcemap-style.css.map'), |
| 18 ]); |
15 InspectorTest.dumpWorkspace(); | 19 InspectorTest.dumpWorkspace(); |
16 | 20 |
17 InspectorTest.markStep('navigateMainFrame'); | 21 InspectorTest.markStep('navigateMainFrame'); |
18 var url = "http://localhost:8000/inspector/bindings/resources/empty-page.htm
l"; | 22 var url = "http://localhost:8000/inspector/bindings/resources/empty-page.htm
l"; |
19 await InspectorTest.navigatePromise(url); | 23 await InspectorTest.navigatePromise(url); |
20 InspectorTest.dumpWorkspace(); | 24 InspectorTest.dumpWorkspace(); |
21 | 25 |
22 InspectorTest.markStep('navigateBack'); | 26 InspectorTest.markStep('navigateBack'); |
23 var originalUrl = "http://localhost:8000/inspector/bindings/bindings-main-fr
ame-navigated.html"; | 27 var originalUrl = "http://localhost:8000/inspector/bindings/bindings-main-fr
ame-navigated.html"; |
24 await InspectorTest.navigatePromise(originalUrl); | 28 await InspectorTest.navigatePromise(originalUrl); |
25 | 29 |
26 InspectorTest.completeTest(); | 30 InspectorTest.completeTest(); |
27 } | 31 } |
28 | 32 |
29 </script> | 33 </script> |
30 | 34 |
31 </head> | 35 </head> |
32 <body onload="runTest()"> | 36 <body onload="runTest()"> |
33 <p> | 37 <p> |
34 Verify that UISourceCodes are removed as main frame gets navigated. | 38 Verify that UISourceCodes are removed as main frame gets navigated. |
35 </p> | 39 </p> |
36 </body> | 40 </body> |
37 </html> | 41 </html> |
OLD | NEW |