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

Unified Diff: LayoutTests/inspector/elements/styles/styles-new-API.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/styles-new-API.html
diff --git a/LayoutTests/inspector/elements/styles/styles-new-API.html b/LayoutTests/inspector/elements/styles/styles-new-API.html
index ee8c4c720433ae491e215784475653e311c7ef08..202a45110aa1c3739b5c7118a5b49c0906a40bd2 100644
--- a/LayoutTests/inspector/elements/styles/styles-new-API.html
+++ b/LayoutTests/inspector/elements/styles/styles-new-API.html
@@ -296,7 +296,17 @@ function test()
CSSAgent.setPropertyText(rule.style.styleId, 0, "font-family: serif;", false, didSetStyleText);
}
- CSSAgent.addRule(bodyId, "body", ruleAdded);
+ function viaInspectorStyleSheetCreated(error, styleSheetId)
+ {
+ if (error) {
+ InspectorTest.addResult("error: " + error);
lushnikov 2014/02/28 11:55:59 InspectorTest.completeTest() is needed here as wel
vsevik 2014/02/28 14:35:28 Done
+ return;
+ }
+ CSSAgent.addRule(styleSheetId, "body", ruleAdded);
+ }
+
+ var frameId = WebInspector.resourceTreeModel.mainFrame.id;
+ CSSAgent.createViaInspectorStyleSheet(frameId, viaInspectorStyleSheetCreated.bind(this));
},
function test_disableProperty(next)

Powered by Google App Engine
This is Rietveld 408576698