Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/inspector/tracing/websocket/timeline-websocket-event.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/websocket/timeline-websocket-event.html b/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/websocket/timeline-websocket-event.html |
| index 29a5270ac4eb37a864838e640d2068151d58c718..b753bcc1c239056b6c67a2d61d3dd95423114a94 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/websocket/timeline-websocket-event.html |
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/websocket/timeline-websocket-event.html |
| @@ -4,10 +4,13 @@ |
| <script src="../../timeline-test.js"></script> |
| <script> |
| -function performActions(callback) |
| +function performActions() |
| { |
| + var callback; |
| + var promise = new Promise((fulfill) => callback = fulfill); |
| var ws = new WebSocket("ws://127.0.0.1:8880/simple"); |
| ws.onclose = callback; |
|
caseq
2016/08/10 22:44:55
return new Promise(fulfill => ws.onclose = fulfill
kozy
2016/08/11 01:34:16
Done.
|
| + return promise; |
| } |
| function test() |