| 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()
|
|
|