Index: third_party/WebKit/LayoutTests/http/tests/inspector/bindings/navigator-main-frame-navigated.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/navigator-main-frame-navigated.html b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/navigator-main-frame-navigated.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fcaaac8d06da9caed9612c1faf788f9e15bae81f |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/navigator-main-frame-navigated.html |
@@ -0,0 +1,39 @@ |
+<html> |
+<head> |
+<script src="../inspector-test.js"></script> |
+<script src="./bindings-test.js"></script> |
+ |
+<script> |
+ |
+async function test() |
+{ |
+ var sourcesNavigator = new Sources.SourcesNavigatorView(); |
+ sourcesNavigator.show(UI.inspectorView.element); |
+ |
+ InspectorTest.markStep('dumpInitialNavigator'); |
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
+ |
+ InspectorTest.markStep('attachFrame'); |
+ await InspectorTest.attachFrame('frame', './resources/magic-frame.html'); |
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
+ |
+ InspectorTest.markStep('navigateMainFrame'); |
+ var url = "http://localhost:8000/inspector/bindings/resources/empty-page.html"; |
+ await InspectorTest.navigatePromise(url); |
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
+ |
+ InspectorTest.markStep('navigateBack'); |
+ var originalUrl = "http://localhost:8000/inspector/bindings/navigator-main-frame-navigated.html"; |
+ await InspectorTest.navigatePromise(originalUrl); |
+ InspectorTest.completeTest(); |
+} |
+ |
+</script> |
+ |
+</head> |
+<body onload="runTest()"> |
+<p> |
+Verify that navigator properly handles main frame navigated event. |
+</p> |
+</body> |
+</html> |