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

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

Issue 1212263002: DevTools: [CSS] migrate setStyleSheetText to promises (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: log error from first stylesheet Created 5 years, 6 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-4/styles-new-API.html
diff --git a/LayoutTests/inspector/elements/styles-4/styles-new-API.html b/LayoutTests/inspector/elements/styles-4/styles-new-API.html
index 2e333620a7fb9263030e4e6208551ac7d3f395d1..390d09b64007f454bb979cabae908f7dcab48653 100644
--- a/LayoutTests/inspector/elements/styles-4/styles-new-API.html
+++ b/LayoutTests/inspector/elements/styles-4/styles-new-API.html
@@ -141,7 +141,7 @@ function test()
{
InspectorTest.addResult("");
InspectorTest.addResult("=== Stylesheet-for-inline-style modification result ===");
- InspectorTest.addResult(error);
+ InspectorTest.addResult(error || null);
next();
}
@@ -150,7 +150,7 @@ function test()
InspectorTest.addResult("");
InspectorTest.addResult("=== Stylesheet-for-inline-style text ===");
InspectorTest.addResult(result);
- InspectorTest.CSSAgent.setStyleSheetText(inlineStyle.styleSheetId, "", setTextCallback);
+ InspectorTest.CSSAgent.setStyleSheetText(inlineStyle.styleSheetId, "").then(setTextCallback);
}
function callback(error, inlineStyle, attributesStyle)

Powered by Google App Engine
This is Rietveld 408576698