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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/compiler-script-mapping.html

Issue 1609973002: DevTools: promisify ContentProvider.requestContent and all its clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/compiler-script-mapping.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/compiler-script-mapping.html b/third_party/WebKit/LayoutTests/http/tests/inspector/compiler-script-mapping.html
index be51962b17f97c9ebf9143161ff3c171ee20ed05..5480a7b079cf73f8ded24de5777382d95ac6ca29 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/compiler-script-mapping.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/compiler-script-mapping.html
@@ -287,12 +287,12 @@ function test()
InspectorTest.checkRawLocation(script, 1, 85, InspectorTest.testDebuggerWorkspaceBinding.uiLocationToRawLocation(target, uiSourceCode2, 1, 0));
InspectorTest.checkRawLocation(script, 1, 110, InspectorTest.testDebuggerWorkspaceBinding.uiLocationToRawLocation(target, uiSourceCode2, 5, 2));
- uiSourceCode1.requestContent(didRequestContent1);
+ uiSourceCode1.requestContent().then(didRequestContent1);
function didRequestContent1(content, contentEncoded, mimeType)
{
InspectorTest.assertEquals(0, content.indexOf("window.addEventListener"));
- uiSourceCode2.requestContent(didRequestContent2);
+ uiSourceCode2.requestContent().then(didRequestContent2);
}
function didRequestContent2(content, contentEncoded, mimeType)
@@ -352,12 +352,12 @@ function test()
InspectorTest.checkRawLocation(script, 1, 85, InspectorTest.testDebuggerWorkspaceBinding.uiLocationToRawLocation(target, uiSourceCode2, 1, 0));
InspectorTest.checkRawLocation(script, 1, 110, InspectorTest.testDebuggerWorkspaceBinding.uiLocationToRawLocation(target, uiSourceCode2, 5, 2));
- uiSourceCode1.requestContent(didRequestContent1);
+ uiSourceCode1.requestContent().then(didRequestContent1);
function didRequestContent1(content, contentEncoded, mimeType)
{
InspectorTest.assertEquals(0, content.indexOf("window.addEventListener"));
- uiSourceCode2.requestContent(didRequestContent2);
+ uiSourceCode2.requestContent().then(didRequestContent2);
}
function didRequestContent2(content, contentEncoded, mimeType)
@@ -401,7 +401,7 @@ function test()
InspectorTest.checkUILocation(uiSourceCode, 2, 4, uiLocation(script, 0, 18));
InspectorTest.checkRawLocation(script, 0, 18, InspectorTest.testDebuggerWorkspaceBinding.uiLocationToRawLocation(target, uiSourceCode, 2, 4));
- uiSourceCode.requestContent(didRequestContent);
+ uiSourceCode.requestContent().then(didRequestContent);
function didRequestContent(content, contentEncoded, mimeType)
{
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698