Index: third_party/WebKit/LayoutTests/http/tests/inspector/bindings/navigator-multiple-frames.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/navigator-multiple-frames.html b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/navigator-multiple-frames.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a589a42f9434773c3395ffdb9d062fbb8ea7d5f0 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/navigator-multiple-frames.html |
@@ -0,0 +1,39 @@ |
+<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('createIframes'); |
+ await Promise.all([ |
+ InspectorTest.attachFrame('frame1', './resources/magic-frame.html'), |
+ InspectorTest.attachFrame('frame2', './resources/magic-frame.html'), |
+ ]); |
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
+ |
+ InspectorTest.markStep('detachFrame1'); |
+ await InspectorTest.detachFrame('frame1'); |
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
+ |
+ InspectorTest.markStep('detachFrame2'); |
+ await InspectorTest.detachFrame('frame2'); |
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
+ |
+ InspectorTest.completeTest(); |
+} |
+ |
+</script> |
+</head> |
+<body onload="runTest()"> |
+<p> |
+Verify that navigator is properly rendered in case of multiple iframes. |
+</p> |
+</body> |