Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/bindings/dynamic-navigator-frame-attach-detach.html

Issue 2738033002: DevTools: add more tests to fixate bindings behavior (Closed)
Patch Set: rebaseline Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/bindings/dynamic-navigator-frame-attach-detach.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/dynamic-navigator-frame-attach-detach.html b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/dynamic-navigator-frame-attach-detach.html
new file mode 100644
index 0000000000000000000000000000000000000000..727f4e22acfb0e3844c2b7f094b53347c0af29e6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/bindings/dynamic-navigator-frame-attach-detach.html
@@ -0,0 +1,36 @@
+<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/dynamic-frame.html');
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false);
+
+ InspectorTest.markStep('detachFrame');
+ await InspectorTest.detachFrame('frame');
+ InspectorTest.dumpNavigatorView(sourcesNavigator, false);
+
+ InspectorTest.completeTest();
+}
+
+</script>
+
+</head>
+<body onload="runTest()">
+<p>
+Verify that navigator is rendered properly when frame with dynamic script and
+style is added and removed.
+</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698