Index: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/register-same-scope-different-script-url.https.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/register-same-scope-different-script-url.https.html b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/register-same-scope-different-script-url.https.html |
index 445be740951b16aaec304e1679f58981f3e3d7ba..6eb00f3071a26ed3f55ac90ca32c1b377aec23e1 100644 |
--- a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/register-same-scope-different-script-url.https.html |
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/register-same-scope-different-script-url.https.html |
@@ -84,17 +84,10 @@ async_test(function(t) { |
.then(function() { |
assert_equals(registration.installing, null, |
'on installed, installing should be null'); |
- // Since the registration is not controlling any document, the new |
- // worker can immediately transition to active. |
- if (registration.waiting) { |
- assert_equals(registration.waiting.scriptURL, script2, |
- 'on installed, the second script may still be waiting'); |
- assert_equals(registration.active.scriptURL, script1, |
- 'on installed, the first script may be active'); |
- } else { |
- assert_equals(registration.active.scriptURL, script2, |
- 'on installed, the second script may be active'); |
- } |
+ assert_equals(registration.waiting.scriptURL, script2, |
+ 'on installed, the second script should be waiting'); |
+ assert_equals(registration.active.scriptURL, script1, |
+ 'on installed, the first script should be active'); |
return registration.unregister(); |
}) |
.then(function() { |