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

Unified Diff: LayoutTests/inspector/elements/styles/style-update-during-selector-edit.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/style-update-during-selector-edit.html
diff --git a/LayoutTests/inspector/elements/styles/style-update-during-selector-edit.html b/LayoutTests/inspector/elements/styles/style-update-during-selector-edit.html
deleted file mode 100644
index 69f75307eaf07d405843bd7651cdbad7b9ca6423..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/style-update-during-selector-edit.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function addStyleClass()
-{
- document.getElementById("inspected").className = "new-class";
-}
-
-function test()
-{
- InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
- var treeOutline = InspectorTest.firstElementsTreeOutline();
- var seenRebuildUpdate;
- var seenAttrModified;
- var modifiedAttrNodes = [];
-
- function attributeChanged(event)
- {
- if (event.data.node === treeOutline.selectedDOMNode())
- seenAttrModified = true;
- }
-
- function rebuildUpdate()
- {
- if (WebInspector.panels.elements.sidebarPanes.styles.node === treeOutline.selectedDOMNode())
- seenRebuildUpdate = true;
- }
-
- function step1()
- {
- InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototype, "doUpdate", rebuildUpdate);
- InspectorTest.domModel.addEventListener(WebInspector.DOMModel.Events.AttrModified, attributeChanged, this);
- // Click "Add new rule".
- document.querySelector(".styles-pane-toolbar").shadowRoot.querySelector(".add-toolbar-item").click();
- InspectorTest.evaluateInPage("addStyleClass()", step2);
- }
-
- function step2()
- {
- if (!seenAttrModified)
- InspectorTest.addResult("FAIL: AttrModified event not received.");
- else if (seenRebuildUpdate)
- InspectorTest.addResult("FAIL: Styles pane updated while a selector editor was active.");
- else
- InspectorTest.addResult("SUCCESS: Styles pane not updated.");
- InspectorTest.completeTest();
- }
-}
-
-</script>
-<style>
-.new-class {
- color: red;
-}
-</style>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that modification of element styles while editing a selector does not commit the editor.
-</p>
-
-<div id="inspected"></div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698