Chromium Code Reviews| 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..ed86b889103cf70e338e6cd573bbcb10d883c531 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,15 @@ |
| var scriptUrl = "timeline-network-resource.js"; |
| -function performActions(callback) |
| +function performActions() |
| { |
| + var callback; |
|
caseq
2016/08/05 17:56:42
drop this, assign directly to window.timelineNetwo
kozy
2016/08/10 01:21:14
Done.
|
| + var promise = new Promise((fulfill) => callback = fulfill); |
| window.timelineNetworkResourceEvaluated = callback; |
| var script = document.createElement("script"); |
| script.src = scriptUrl; |
| document.body.appendChild(script); |
| + return promise; |
| } |
| function test() |