Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1002)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/tracing/websocket/timeline-websocket-event.html

Issue 2208963002: [DevTools] Removed InspectorTest.invokeFunctionInPageAsync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-promise-from-other-tests
Patch Set: a Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..bb263a7ee586ba2294ccc51d3941945537c88806 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,10 @@
<script src="../../timeline-test.js"></script>
<script>
-function performActions(callback)
+function performActions()
{
var ws = new WebSocket("ws://127.0.0.1:8880/simple");
- ws.onclose = callback;
+ return new Promise((fulfill) => ws.onclose = fulfill);
}
function test()

Powered by Google App Engine
This is Rietveld 408576698