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

Unified Diff: LayoutTests/http/tests/serviceworker/postmessage.html

Issue 354953002: Promisify Service Worker test unregister_and_register helper function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: patch for landing Created 6 years, 6 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: LayoutTests/http/tests/serviceworker/postmessage.html
diff --git a/LayoutTests/http/tests/serviceworker/postmessage.html b/LayoutTests/http/tests/serviceworker/postmessage.html
index 951bd8d00692754ee2b22ffa61e8ebed5b4d7b81..a820ca96c1f4deef21bbe6f7538d0c4a361e997e 100644
--- a/LayoutTests/http/tests/serviceworker/postmessage.html
+++ b/LayoutTests/http/tests/serviceworker/postmessage.html
@@ -8,7 +8,7 @@ var test = async_test('postMessage to a ServiceWorker (and back via MessagePort)
test.step(function() {
var scope = 'resources/blank.html';
service_worker_unregister_and_register(
- test, 'resources/postmessage-worker.js', scope, onRegister);
+ test, 'resources/postmessage-worker.js', scope).then(test.step_func(onRegister));
function onRegister(worker) {
var messageChannel = new MessageChannel();

Powered by Google App Engine
This is Rietveld 408576698