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

Unified Diff: LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.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-tab.html
diff --git a/LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.html b/LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.html
index e6f25e46604ab9a8276bb69a115f87b239b842d7..e5c0ca57eb91b6656a6d161dc33df04457601412 100644
--- a/LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.html
+++ b/LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.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