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) |