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 var sourcesNavigator = new Sources.SourcesNavigatorView(); | 10 var sourcesNavigator = new Sources.SourcesNavigatorView(); |
11 sourcesNavigator.show(UI.inspectorView.element); | 11 sourcesNavigator.show(UI.inspectorView.element); |
12 | 12 |
13 InspectorTest.markStep('dumpInitialNavigator'); | 13 InspectorTest.markStep('dumpInitialNavigator'); |
14 InspectorTest.dumpNavigatorView(sourcesNavigator, false); | 14 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
15 | 15 |
16 InspectorTest.markStep('attachFrame'); | 16 InspectorTest.markStep('attachFrame'); |
17 await InspectorTest.attachFrame('frame', './resources/magic-frame.html'); | 17 await Promise.all([ |
| 18 InspectorTest.attachFrame('frame', './resources/sourcemap-frame.html'), |
| 19 InspectorTest.waitForSourceMap('sourcemap-script.js.map'), |
| 20 InspectorTest.waitForSourceMap('sourcemap-style.css.map'), |
| 21 ]); |
18 InspectorTest.dumpNavigatorView(sourcesNavigator, false); | 22 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
19 | 23 |
20 InspectorTest.markStep('navigateMainFrame'); | 24 InspectorTest.markStep('navigateMainFrame'); |
21 var url = "http://localhost:8000/inspector/bindings/resources/empty-page.htm
l"; | 25 var url = "http://localhost:8000/inspector/bindings/resources/empty-page.htm
l"; |
22 await InspectorTest.navigatePromise(url); | 26 await InspectorTest.navigatePromise(url); |
23 InspectorTest.dumpNavigatorView(sourcesNavigator, false); | 27 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
24 | 28 |
25 InspectorTest.markStep('navigateBack'); | 29 InspectorTest.markStep('navigateBack'); |
26 var originalUrl = "http://localhost:8000/inspector/bindings/navigator-main-f
rame-navigated.html"; | 30 var originalUrl = "http://localhost:8000/inspector/bindings/navigator-main-f
rame-navigated.html"; |
27 await InspectorTest.navigatePromise(originalUrl); | 31 await InspectorTest.navigatePromise(originalUrl); |
28 InspectorTest.completeTest(); | 32 InspectorTest.completeTest(); |
29 } | 33 } |
30 | 34 |
31 </script> | 35 </script> |
32 | 36 |
33 </head> | 37 </head> |
34 <body onload="runTest()"> | 38 <body onload="runTest()"> |
35 <p> | 39 <p> |
36 Verify that navigator properly handles main frame navigated event. | 40 Verify that navigator properly handles main frame navigated event. |
37 </p> | 41 </p> |
38 </body> | 42 </body> |
39 </html> | 43 </html> |
OLD | NEW |