OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../inspector-test.js"></script> |
| 4 <script src="./bindings-test.js"></script> |
| 5 |
| 6 <script> |
| 7 |
| 8 async function test() |
| 9 { |
| 10 var sourcesNavigator = new Sources.SourcesNavigatorView(); |
| 11 sourcesNavigator.show(UI.inspectorView.element); |
| 12 |
| 13 InspectorTest.markStep('dumpInitialNavigator'); |
| 14 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 15 |
| 16 InspectorTest.markStep('attachFrame'); |
| 17 await InspectorTest.attachFrame('frame', './resources/magic-frame.html'); |
| 18 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 19 |
| 20 InspectorTest.markStep('navigateMainFrame'); |
| 21 var url = "http://localhost:8000/inspector/bindings/resources/empty-page.htm
l"; |
| 22 await InspectorTest.navigatePromise(url); |
| 23 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 24 |
| 25 InspectorTest.markStep('navigateBack'); |
| 26 var originalUrl = "http://localhost:8000/inspector/bindings/navigator-main-f
rame-navigated.html"; |
| 27 await InspectorTest.navigatePromise(originalUrl); |
| 28 InspectorTest.completeTest(); |
| 29 } |
| 30 |
| 31 </script> |
| 32 |
| 33 </head> |
| 34 <body onload="runTest()"> |
| 35 <p> |
| 36 Verify that navigator properly handles main frame navigated event. |
| 37 </p> |
| 38 </body> |
| 39 </html> |
OLD | NEW |