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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-new-API.html

Issue 1694433003: DevTools: [CSS] Add CSS.setMultipleStyleTexts command to CSS domain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 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: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-new-API.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-new-API.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-new-API.html
index 016f3ff3cd143f3f8a42314e3c2bd5f3114c943c..edf355060f1869ea457d2f00e3893b08b1b8c386 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-new-API.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-new-API.html
@@ -191,12 +191,18 @@ function test()
InspectorTest.addResult("error: " + error);
return;
}
- InspectorTest.CSSAgent.setStyleText(rule.style.styleSheetId, {
- startLine: rule.style.range.startLine,
- startColumn: rule.style.range.startColumn,
- endLine: rule.style.range.startLine,
- endColumn: rule.style.range.startColumn
- }, "font-family: serif;", didSetStyleText);
+ InspectorTest.CSSAgent.setStyleTexts([
+ {
+ styleSheetId: rule.style.styleSheetId,
+ range: {
+ startLine: rule.style.range.startLine,
+ startColumn: rule.style.range.startColumn,
+ endLine: rule.style.range.startLine,
+ endColumn: rule.style.range.startColumn
+ },
+ text: "font-family: serif;",
+ },
+ ], didSetStyleText);
}
function viaInspectorStyleSheetCreated(error, styleSheetId)

Powered by Google App Engine
This is Rietveld 408576698