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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/resources/extension-main.js

Issue 2208963002: [DevTools] Removed InspectorTest.invokeFunctionInPageAsync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-promise-from-other-tests
Patch Set: a Created 4 years, 4 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/http/tests/inspector/resources/extension-main.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/resources/extension-main.js b/third_party/WebKit/LayoutTests/http/tests/inspector/resources/extension-main.js
index 5bd6c2e0b5cffd5a87575315c98718cb53975ef5..63c400899400b0aaf13d5f7e87a37d187e3f49a9 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/resources/extension-main.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/resources/extension-main.js
@@ -16,7 +16,7 @@ function dumpObject(object, nondeterministicProps, prefix, firstLinePrefix)
for (var property in object)
propertyNames.push(property);
propertyNames.sort();
-
+
for (var i = 0; i < propertyNames.length; ++i) {
var prop = propertyNames[i];
var prefixWithName = prefix + " " + prop + " : ";
@@ -52,7 +52,7 @@ function evaluateOnFrontend(expression, callback)
function invokePageFunctionAsync(functionName, callback)
{
- evaluateOnFrontend("InspectorTest.invokePageFunctionAsync('" + functionName + "', reply)", callback);
+ evaluateOnFrontend("InspectorTest.callFunctionInPageAsync('" + functionName + "').then(() => reply())", callback);
}
function output(message)

Powered by Google App Engine
This is Rietveld 408576698