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

Unified Diff: LayoutTests/inspector/elements/styles/remove-node-during-editing.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/styles/remove-node-during-editing.html
diff --git a/LayoutTests/inspector/elements/styles/remove-node-during-editing.html b/LayoutTests/inspector/elements/styles/remove-node-during-editing.html
deleted file mode 100644
index bb9f3575c3f7c3e53107ba74aa528fe45cc98316..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/remove-node-during-editing.html
+++ /dev/null
@@ -1,72 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function removeInspectedNode()
-{
- document.querySelector("#inspected").remove();
-}
-
-function test()
-{
- var originalNode;
- var treeElement;
- var stylesSidebarPane = WebInspector.panels.elements.sidebarPanes.styles;
- InspectorTest.runTestSuite([
- function selectInspectedNode(next)
- {
- InspectorTest.selectNodeAndWaitForStyles("inspected", next);
- },
-
- function startEditingAndRemoveNode(next)
- {
- originalNode = stylesSidebarPane.node();
- treeElement = InspectorTest.getElementStylePropertyTreeItem("color");
- treeElement.startEditing(treeElement.valueElement);
-
- InspectorTest.addSniffer(WebInspector.ElementsPanel.prototype, "_selectedNodeChangedForTest", next);
- InspectorTest.evaluateInPage("removeInspectedNode();");
- },
-
- function verifySelectedNodeDidNotChange(next)
- {
- var currentNode = stylesSidebarPane.node();
- if (currentNode !== originalNode) {
- InspectorTest.addResult("StylesSidebarPane changed node!");
- InspectorTest.completeTest();
- return;
- }
- next();
- },
-
- function finishNodeEditing(next)
- {
- InspectorTest.addSniffer(WebInspector.StylePropertyTreeElement.prototype, "editingEnded", next);
- treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("U+001B")); // Escape
- },
-
- function verifySidebarPaneNodeChanged(next)
- {
- var currentNode = stylesSidebarPane.node();
- if (currentNode === originalNode) {
- InspectorTest.addResult("StylesSidebarPane should have changed node");
- InspectorTest.completeTest();
- return;
- }
- next();
- },
- ]);
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that removing node while editing its styles does not cause styles sidebar pane to refresh.
-</p>
-<div id="inspected" style="color: blue">Text</div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698