Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-received-data.html |
| diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-received-data.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-received-data.html |
| index 34954c03ed5c12e5d7cb0044c71c9d20cc72c5e2..dc7e07d104dc123e7e1d23fd0bf06536f6c6cc6f 100644 |
| --- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-received-data.html |
| +++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-received-data.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); |
|
caseq
2016/08/05 17:56:42
promise => scriptLoadedPromise
kozy
2016/08/10 01:21:14
Done.
|
| function onImageLoad() |
| { |
| window._imageLoaded = true; |
|
caseq
2016/08/05 17:56:42
drop this and _window.scriptEvaluated, convert onI
kozy
2016/08/10 01:21:14
Done.
|
| @@ -28,6 +30,7 @@ function performActions(callback) |
| document.body.appendChild(script); |
| window.timelineNetworkResourceEvaluated = scriptEvaluated; |
| + return promise; |
| } |
| function test() |