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

Unified Diff: LayoutTests/inspector/elements/styles/add-new-rule-inline-style-csp.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: Fixed test 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/add-new-rule-inline-style-csp.html
diff --git a/LayoutTests/inspector/elements/styles/add-new-rule-inline-style-csp.html b/LayoutTests/inspector/elements/styles/add-new-rule-inline-style-csp.html
index a18de1d125a903c4eaf17c3bd262319a20298154..2b539c7cd58c31ee4423ffde88b01158249aa61d 100644
--- a/LayoutTests/inspector/elements/styles/add-new-rule-inline-style-csp.html
+++ b/LayoutTests/inspector/elements/styles/add-new-rule-inline-style-csp.html
@@ -24,23 +24,17 @@ function test()
function nodeCallback(node)
{
nodeId = node.id;
- WebInspector.cssModel.addRule(nodeId, "#inspected", successCallback, failureCallback);
+ InspectorTest.addNewRule("#inspected", successCallback);
}
- function successCallback(newRule, doesAffectSelectedNode)
+ function successCallback(styleRule)
{
- rule = newRule;
+ rule = styleRule.rule;
InspectorTest.addResult("=== Rule added ===");
InspectorTest.addResult(rule.selectorText + " {" + rule.style.cssText + "}");
InspectorTest.addResult("Selectors matching the (#inspected) node: " + InspectorTest.matchingSelectors(rule));
next();
}
-
- function failureCallback()
- {
- InspectorTest.addResult("[!] Failed to add rule.");
- InspectorTest.completeTest();
- }
},
function testAddProperty(next)

Powered by Google App Engine
This is Rietveld 408576698