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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/get-state.html

Issue 2521793004: service worker: Persist NavigationPreloadState (Closed)
Patch Set: Created 4 years, 1 month 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/serviceworker/navigation-preload/get-state.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/get-state.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/get-state.html
index 46b71f9110045add9985fa6d88f6a9bbbecbb3a9..8773ccae9c880624a2cd64abbfa18ca95d60cdea 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/get-state.html
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/get-state.html
@@ -28,8 +28,9 @@ promise_test(t => {
.then(r => {
np = r.navigationPreload;
add_completion_callback(() => r.unregister());
- return np.getState();
+ return wait_for_state(t, r.installing, 'activated');
})
+ .then(() => np.getState())
.then(state => {
expect_state(state, false, 'true', 'default state');
return np.enable();
@@ -111,6 +112,9 @@ promise_test(t => {
registration = r;
add_completion_callback(() => registration.unregister());
worker = registration.installing;
+ return wait_for_state(t, worker, 'activated');
+ })
+ .then(() => {
// Call getState().
return post_and_wait_for_reply(worker, 'getState');
})

Powered by Google App Engine
This is Rietveld 408576698