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

Unified Diff: LayoutTests/http/tests/serviceworker/state.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
« no previous file with comments | « LayoutTests/http/tests/serviceworker/serviceworkerobject-scope.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/state.html
diff --git a/LayoutTests/http/tests/serviceworker/state.html b/LayoutTests/http/tests/serviceworker/state.html
index a73afa9cb4f802be2e09feef278654e7a313f6a1..db5222e89677db3965c1b6a26bbf922cbec15725 100644
--- a/LayoutTests/http/tests/serviceworker/state.html
+++ b/LayoutTests/http/tests/serviceworker/state.html
@@ -9,8 +9,7 @@
var currentState = 'test-is-starting';
var scope = '/state/*';
- service_worker_unregister_and_register(
- t, 'resources/worker-no-op.js', scope, onRegister);
+ service_worker_unregister_and_register(t, 'resources/worker-no-op.js', scope).then(t.step_func(onRegister));
function onRegister(sw) {
sw.addEventListener('statechange', t.step_func(onStateChange(sw)));
« no previous file with comments | « LayoutTests/http/tests/serviceworker/serviceworkerobject-scope.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698