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-protocol/css/css-set-inline-style-text.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: %zu is not cross-platform - do not use. 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-protocol/css/css-set-inline-style-text.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/css/css-set-inline-style-text.html b/third_party/WebKit/LayoutTests/inspector-protocol/css/css-set-inline-style-text.html
index dbbc96e7bfbcdb113171f6781d6dc3f102845911..948d1c20dd88ab4e0f8992eaedcebfb6a77139f3 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/css/css-set-inline-style-text.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/css/css-set-inline-style-text.html
@@ -9,9 +9,8 @@ function test()
{
var styleSheetId;
var documentNodeId;
- var setStyleText;
+ var setStyleTexts;
var verifyProtocolError;
- var dumpStyleSheet;
InspectorTest.sendCommandOrDie("DOM.enable", {});
InspectorTest.sendCommandOrDie("CSS.enable", {}, cssWasEnabled);
@@ -35,9 +34,8 @@ function test()
function onGotInlineStyles(result)
{
styleSheetId = result.inlineStyle.styleSheetId;
- setStyleText = InspectorTest.setStyleText.bind(InspectorTest, styleSheetId, false);
- verifyProtocolError = InspectorTest.setStyleText.bind(InspectorTest, styleSheetId, true);
- dumpStyleSheet = InspectorTest.dumpStyleSheetText.bind(null, styleSheetId);
+ setStyleTexts = InspectorTest.setStyleTexts.bind(InspectorTest, styleSheetId, false);
+ verifyProtocolError = InspectorTest.setStyleTexts.bind(InspectorTest, styleSheetId, true);
InspectorTest.sendCommandOrDie("CSS.getStyleSheetText", { styleSheetId: styleSheetId }, onInitialStyleSheetText);
}
@@ -65,38 +63,38 @@ function test()
var testSuite = [
function testBasicSetStyle(next)
{
- setStyleText({
+ setStyleTexts([{
styleSheetId: styleSheetId,
range: { startLine: 0, startColumn: 0, endLine: 0, endColumn: 11 },
text: "content: 'EDITED'",
- }, dumpAndNext(next));
+ }], dumpAndNext(next));
},
function testSetStylePoorContent(next)
{
- verifyProtocolError({
+ verifyProtocolError([{
styleSheetId: styleSheetId,
range: { startLine: 0, startColumn: 0, endLine: 0, endColumn: 11 },
text: "}",
- }, dumpAndNext(next));
+ }], dumpAndNext(next));
},
function testDeleteStyleBody(next)
{
- setStyleText({
+ setStyleTexts([{
styleSheetId: styleSheetId,
range: { startLine: 0, startColumn: 0, endLine: 0, endColumn: 11 },
text: "",
- }, dumpAndNext(next));
+ }], dumpAndNext(next));
},
function testSetStyleOpenComment(next)
{
- verifyProtocolError({
+ verifyProtocolError([{
styleSheetId: styleSheetId,
range: { startLine: 0, startColumn: 0, endLine: 0, endColumn: 11 },
text: "/*",
- }, dumpAndNext(next));
+ }], dumpAndNext(next));
}
];
}
@@ -104,7 +102,7 @@ function test()
</script>
</head>
<body onload="runTest();">
-<p>The test verifies functionality of protocol method CSS.setStyleText for inline elements.</p>
+<p>The test verifies functionality of protocol method CSS.setStyleTexts for inline elements.</p>
<div id="inliner" style="color: red;">
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698