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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-inspector-stylesheet.html

Issue 1609973002: DevTools: promisify ContentProvider.requestContent and all its clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline Created 4 years, 11 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-1/edit-inspector-stylesheet.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-inspector-stylesheet.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-inspector-stylesheet.html
index 81879a110c808b8e3ba415af752bed2a92875b94..2285cb2fed5de512d2bb1816a2b9421e9a56a009 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-inspector-stylesheet.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-1/edit-inspector-stylesheet.html
@@ -26,17 +26,20 @@ function test()
{
var uiSourceCode = sourceFrame._uiSourceCode;
InspectorTest.addResult("Inspector stylesheet URL: " + uiSourceCode.displayName());
- uiSourceCode.requestContent(printContent());
+ uiSourceCode.requestContent().then(printContent(onContent))
- InspectorTest.addResult("\nSetting new content");
- uiSourceCode.setWorkingCopy("#inspected { background-color: green; }");
- uiSourceCode.commitWorkingCopy();
- step3(uiSourceCode);
+ function onContent()
+ {
+ InspectorTest.addResult("\nSetting new content");
+ uiSourceCode.setWorkingCopy("#inspected { background-color: green; }");
+ uiSourceCode.commitWorkingCopy();
+ step3(uiSourceCode);
+ }
}
function step3(uiSourceCode)
{
- uiSourceCode.requestContent(printContent(selectNode));
+ uiSourceCode.requestContent().then(printContent(selectNode));
function selectNode()
{
InspectorTest.selectNodeAndWaitForStyles("inspected", dumpStyles);

Powered by Google App Engine
This is Rietveld 408576698