| Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource.html
|
| index e5de92e0b13d769e6a6de8735cb617bf10469b39..545d0d4da866e267cbfbb5c8ada38f8862210292 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource.html
|
| @@ -6,12 +6,13 @@
|
|
|
| var scriptUrl = "timeline-network-resource.js";
|
|
|
| -function performActions(callback)
|
| +function performActions()
|
| {
|
| - window.timelineNetworkResourceEvaluated = callback;
|
| + var promise = new Promise((fulfill) => window.timelineNetworkResourceEvaluated = fulfill);
|
| var script = document.createElement("script");
|
| script.src = scriptUrl;
|
| document.body.appendChild(script);
|
| + return promise;
|
| }
|
|
|
| function test()
|
|
|