| Index: third_party/WebKit/LayoutTests/inspector/tracing/worker-events.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/worker-events.html b/third_party/WebKit/LayoutTests/inspector/tracing/worker-events.html
|
| index 54a66c677a14ec81aac67d9accc7d0ab72fce377..52544d0aa3a9861fab1e7e0fdb0a20a97e8cc83d 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/tracing/worker-events.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/tracing/worker-events.html
|
| @@ -25,15 +25,11 @@ function startWorkerAndRunTest()
|
| }
|
| }
|
|
|
| -function startSecondWorker(onActionComplete)
|
| +function startSecondWorker()
|
| {
|
| worker2 = new Worker("resources/worker.js");
|
| worker2.postMessage("");
|
| - worker2.onmessage = function(event)
|
| - {
|
| - onActionComplete();
|
| - worker2.onmessage = null;
|
| - }
|
| + return new Promise((fulfill) => worker2.onmessage = fulfill);
|
| }
|
|
|
| function test()
|
|
|