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

Unified Diff: LayoutTests/inspector/elements/styles/undo-add-rule-crash.html

Issue 177963004: DevTools: Split creating inspector stylesheet and adding a new rule into stylesheet in protocol. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/undo-add-rule-crash.html
diff --git a/LayoutTests/inspector/elements/styles/undo-add-rule-crash.html b/LayoutTests/inspector/elements/styles/undo-add-rule-crash.html
index af345ebcd52515514cb1bf664bbfbf93a9e3b502..d310bd44157e684e01d0876f0610cb520bf06b1e 100644
--- a/LayoutTests/inspector/elements/styles/undo-add-rule-crash.html
+++ b/LayoutTests/inspector/elements/styles/undo-add-rule-crash.html
@@ -26,9 +26,12 @@ function test()
function addNewRuleAndSelectNode(nodeId, next)
{
- document.getElementById("add-style-button-test-id").click();
- var section = WebInspector.panels.elements.sidebarPanes.styles.sections[0][2];
- InspectorTest.selectNodeAndWaitForStyles(nodeId, next);
+ InspectorTest.addNewRule(null, ruleAdded);
+
+ function ruleAdded()
+ {
+ InspectorTest.selectNodeAndWaitForStyles(nodeId, next);
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698