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/tracing/decode-resize.html

Issue 2208963002: [DevTools] Removed InspectorTest.invokeFunctionInPageAsync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-promise-from-other-tests
Patch Set: 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/inspector/tracing/decode-resize.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/decode-resize.html b/third_party/WebKit/LayoutTests/inspector/tracing/decode-resize.html
index 2a0d3054e9ca9fe36a4ce5a36c9ab6109f67ed3b..19ffdb963b36ec5ee4f87e8fc8303531d5cf0756 100644
--- a/third_party/WebKit/LayoutTests/inspector/tracing/decode-resize.html
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/decode-resize.html
@@ -37,11 +37,13 @@ var images = [
["./resources/big.png", "150", "150"]
];
-function showImages(callback)
+function showImages()
{
+ var callback;
+ var promise = new Promise((fulfill) => callback = fulfill);
var nextImageIndex = 0;
-
addImages();
+ return promise;
function addImages()
{

Powered by Google App Engine
This is Rietveld 408576698