| 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..fb71eb65654b98cd16ff6df66cf828a3c1a3226d 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,13 @@
|
| <script src="../../../http/tests/inspector/timeline-test.js"></script>
|
| <script>
|
|
|
| -function produceGarbageForGCEvents(callback)
|
| +function produceGarbageForGCEvents()
|
| {
|
| if (window.testRunner) {
|
| window.gc();
|
| - testRunner.layoutAndPaintAsyncThen(callback);
|
| + return new Promise((fulfill) => testRunner.layoutAndPaintAsyncThen(fulfill));
|
| }
|
| + return Promise.reject();
|
| }
|
|
|
| function test()
|
|
|