diff --git a/service-workers/service-worker/skip-waiting-installed.https.html b/service-workers/service-worker/skip-waiting-installed.https.html index 93dc06d103378ef..f4dc24f33cb361f 100644 --- a/service-workers/service-worker/skip-waiting-installed.https.html +++ b/service-workers/service-worker/skip-waiting-installed.https.html @@ -20,15 +20,14 @@ assert_equals( message, 'PASS', 'skipWaiting promise should be resolved with undefined'); - - assert_equals(registration.active.scriptURL, normalizeURL(url2), - 'skipWaiting should make worker become active'); }); var saw_controllerchanged = new Promise(function(resolve) { oncontrollerchanged = function() { assert_equals( frame_sw.controller.scriptURL, normalizeURL(url2), 'Controller scriptURL should change to the second one'); + assert_equals(registration.active.scriptURL, normalizeURL(url2), + 'worker should be active by controllerchange'); resolve(); }; });