| 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');
|
| })
|
|
|