| Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html
|
| index 58da539fa762fcedb3a2fbc6e6a095551266ff42..9779fc1dfbac5ea43ddc3e9a466d72f57cba7122 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.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);
|
| function onRequestFinished()
|
| {
|
| if (!--requestsPending)
|
| @@ -21,6 +23,7 @@ function performActions(callback)
|
| script.src = "timeline-network-resource.js";
|
| document.body.appendChild(script);
|
| window.timelineNetworkResourceEvaluated = onRequestFinished;
|
| + return promise;
|
| }
|
|
|
| function test()
|
|
|