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

Unified Diff: LayoutTests/inspector/elements/elements-panel-shadow-selection-on-refresh.html

Issue 1158883003: DevTools: shard inspector/elements tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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: LayoutTests/inspector/elements/elements-panel-shadow-selection-on-refresh.html
diff --git a/LayoutTests/inspector/elements/elements-panel-shadow-selection-on-refresh.html b/LayoutTests/inspector/elements/elements-panel-shadow-selection-on-refresh.html
deleted file mode 100644
index b6136ece62badcdb60d6ed7591098a230c997202..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/elements-panel-shadow-selection-on-refresh.html
+++ /dev/null
@@ -1,100 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function test()
-{
-
- InspectorTest.runTestSuite([
- function setup(next)
- {
- WebInspector.settingForTest("showUAShadowDOM").set(true);
- InspectorTest.expandElementsTree(next);
- },
-
- function testOpenShadowRoot(next)
- {
- InspectorTest.findNode(isOpenShadowRoot, selectReloadAndDump.bind(null, next));
- },
-
- function testUserAgentShadowRoot(next)
- {
- InspectorTest.findNode(isUserAgentShadowRoot, selectReloadAndDump.bind(null, next));
- },
-
- function testOpenShadowRootChild(next)
- {
- InspectorTest.findNode(isOpenShadowRootChild, selectReloadAndDump.bind(null, next));
- },
-
- function testUserAgentShadowRootChild(next)
- {
- InspectorTest.findNode(isUserAgentShadowRootChild, selectReloadAndDump.bind(null, next));
- }
- ]);
-
- function isOpenShadowRoot(node)
- {
- return node && node.shadowRootType() === WebInspector.DOMNode.ShadowRootTypes.Author;
- }
-
- function isUserAgentShadowRoot(node)
- {
- return node && node.shadowRootType() === WebInspector.DOMNode.ShadowRootTypes.UserAgent;
- }
-
- function isOpenShadowRootChild(node)
- {
- return isOpenShadowRoot(node.parentNode);
- }
-
- function isUserAgentShadowRootChild(node)
- {
- return isUserAgentShadowRoot(node.parentNode);
- }
-
- function selectReloadAndDump(next, node)
- {
- InspectorTest.selectNode(node).then(step0);
-
- function step0()
- {
- InspectorTest.reloadPage(step1);
- }
-
- function step1()
- {
- InspectorTest.runAfterPendingDispatches(step2);
- }
-
- function step2()
- {
- dumpSelectedNode();
- next();
- }
-
- function dumpSelectedNode()
- {
- var selectedElement = InspectorTest.firstElementsTreeOutline().selectedTreeElement;
- var nodeName = selectedElement ? selectedElement.node().nodeNameInCorrectCase() : "null";
- InspectorTest.addResult("Selected node: '" + nodeName + "'");
- }
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that elements panel preserves selected shadow DOM node on page refresh.
-</p>
-<span id="hostElement"></span>
-<script>
-var root = document.getElementById("hostElement").createShadowRoot();
-root.innerHTML = "<input type='text'>";
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698