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

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

Issue 441873010: DevTools: [SSP] Implement adding new rule in user stylesheet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix compilation error Created 6 years, 4 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/styles-add-new-rule.html
diff --git a/LayoutTests/inspector/elements/styles/styles-add-new-rule.html b/LayoutTests/inspector/elements/styles/styles-add-new-rule.html
index 856750b3821e3de6c727d703c47860ca483711d7..f486306c9dd10452b6bf9e8b29f413d342eab7f5 100644
--- a/LayoutTests/inspector/elements/styles/styles-add-new-rule.html
+++ b/LayoutTests/inspector/elements/styles/styles-add-new-rule.html
@@ -40,8 +40,12 @@ function test()
function step3()
{
// Click "Add new rule".
- document.getElementById("add-style-button-test-id").click();
- InspectorTest.selectNodeAndWaitForStyles("inspected", step4);
+ InspectorTest.addNewRule(null, onRuleAdded);
+
+ function onRuleAdded()
+ {
+ InspectorTest.selectNodeAndWaitForStyles("inspected", step4);
+ }
}
function step4()

Powered by Google App Engine
This is Rietveld 408576698