Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-gc-event.html |
| diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-gc-event.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-gc-event.html |
| index bf1d5cdde84696126daac70fbdfd449e90c80fb3..5407241962a5effbe4baf3c71d06e54c0dd59a15 100644 |
| --- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-gc-event.html |
| +++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-gc-event.html |
| @@ -4,12 +4,15 @@ |
| <script src="../../../http/tests/inspector/timeline-test.js"></script> |
| <script> |
| -function produceGarbageForGCEvents(callback) |
| +function produceGarbageForGCEvents() |
| { |
| + var callback; |
| + var promise = new Promise((fulfill) => callback = fulfill); |
| if (window.testRunner) { |
| window.gc(); |
| testRunner.layoutAndPaintAsyncThen(callback); |
|
caseq
2016/08/05 17:56:42
ditto -- only return promise here and inline this
kozy
2016/08/10 01:21:14
Done.
|
| } |
| + return promise; |
| } |
| function test() |