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

Unified Diff: LayoutTests/inspector/elements/create-shadow-root.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/create-shadow-root.html
diff --git a/LayoutTests/inspector/elements/create-shadow-root.html b/LayoutTests/inspector/elements/create-shadow-root.html
deleted file mode 100644
index 3850b8ab85c65beb762103f2fb1faed54ac1e0ba..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/create-shadow-root.html
+++ /dev/null
@@ -1,71 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function createShadowRoot(id)
-{
- var container = document.getElementById("container");
- var root = container.createShadowRoot();
- root.innerHTML = "<div id='" + id + "'></div>";
-}
-
-function test()
-{
- var containerNode;
-
- InspectorTest.runTestSuite([
- function testDumpInitial(next)
- {
- function callback(node)
- {
- containerNode = InspectorTest.expandedNodeWithId("container");
- expandAndDumpContainerNode("========= Original ========", next)();
- }
- InspectorTest.expandElementsTree(callback);
- },
-
- function testCreateShadowRoot(next)
- {
- InspectorTest.evaluateInPage(
- "createShadowRoot('shadow-1')",
- expandAndDumpContainerNode("===== After createShadowRoot =====", next));
- },
-
- function testCreateSecondShadowRoot(next)
- {
- InspectorTest.evaluateInPage(
- "createShadowRoot('shadow-2')",
- expandAndDumpContainerNode("===== After second createShadowRoot =====", next));
- }
- ]);
-
- function expandAndDumpContainerNode(title, next)
- {
- return function()
- {
- InspectorTest.addResult(title);
- InspectorTest.expandElementsTree(callback);
-
- function callback()
- {
- InspectorTest.dumpElementsTree(containerNode);
- next();
- }
- }
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that elements panel updates dom tree structure upon shadow root creation.
-</p>
-
-<div id="container"><div id="child"></div></div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698