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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html

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/inspector/tracing/timeline-misc/timeline-receive-response-event.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html
index efec2612f8215c00fe472e24607fe6667e823ead..49f3a4ed3506f664aa365e1b2cc0dcaf4087efc8 100644
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html
@@ -4,8 +4,10 @@
<script src="../../../http/tests/inspector/timeline-test.js"></script>
<script>
-function performActions(callback)
+function performActions()
{
+ var callback;
+ var promise = new Promise((fulfill) => callback = fulfill);
var image = new Image();
image.onload = bar;
image.src = "../resources/anImage.png";
@@ -16,6 +18,7 @@ function performActions(callback)
image.onload = function(event) { callback(); } // do not pass event argument to the callback.
image.src = "../resources/anotherImage.png";
}
+ return promise;
}
function test()

Powered by Google App Engine
This is Rietveld 408576698