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

Unified Diff: LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-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-protocol/css/css-create-stylesheet-and-add-rule.html
diff --git a/LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html b/LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html
index 60235ea2c76d02b82596cc2dacbec04633aa6759..2bde18db52859cd1587abad84539861119ea1794 100644
--- a/LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html
+++ b/LayoutTests/inspector-protocol/css/css-create-stylesheet-and-add-rule.html
@@ -40,7 +40,10 @@ function test()
function step3()
{
InspectorTest.log("Adding a rule to the existing stylesheet.");
- InspectorTest.sendCommandOrDie("CSS.addRule", { styleSheetId: styleSheetHeader.styleSheetId, selector: "#inspected" }, step4);
+ InspectorTest.addRule(styleSheetHeader.styleSheetId, false, {
+ location: { startLine: 0, startColumn: 0, endLine: 0, endColumn: 0 },
+ ruleText: "#inspected {}",
+ }, step4);
}
function step4()
@@ -57,7 +60,10 @@ function test()
function step6(result)
{
InspectorTest.log("Adding a rule to the inspector stylesheet.");
- InspectorTest.sendCommandOrDie("CSS.addRule", { styleSheetId: result.styleSheetId, selector: "#inspected" }, step7);
+ InspectorTest.addRule(result.styleSheetId, false, {
+ location: { startLine: 0, startColumn: 0, endLine: 0, endColumn: 0 },
+ ruleText: "#inspected {}",
+ }, step7);
}
function step7()

Powered by Google App Engine
This is Rietveld 408576698