| Index: third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-xhr-response-type-blob-event.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-xhr-response-type-blob-event.html b/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-xhr-response-type-blob-event.html
|
| index 6b6c6c33ba67c7ecebbb39e98e6255043fd06601..3646f48430b02ef3fdbe9efc78dc9620a566cc8f 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-xhr-response-type-blob-event.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-xhr-response-type-blob-event.html
|
| @@ -5,8 +5,10 @@
|
| <script src="../network-test.js"></script>
|
| <script>
|
|
|
| -function performActions(callback)
|
| +function performActions()
|
| {
|
| + var callback;
|
| + var promise = new Promise((fulfill) => callback = fulfill);
|
| var xhr = new XMLHttpRequest();
|
| xhr.responseType = "blob";
|
| xhr.open("GET", "network/resources/resource.php", true);
|
| @@ -19,6 +21,7 @@ function performActions(callback)
|
| callback();
|
| }
|
| xhr.send(null);
|
| + return promise;
|
| }
|
|
|
| function test()
|
|
|