From eb3f30222d349423fc468be0d3087ff38be6cfad Mon Sep 17 00:00:00 2001 From: Jake Archibald Date: Mon, 10 Apr 2017 16:37:16 +0100 Subject: [PATCH] Was checking .installing on wrong object. --- .../service-worker/registration-updateviacache.https.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service-workers/service-worker/registration-updateviacache.https.html b/service-workers/service-worker/registration-updateviacache.https.html index 27842d98406de78..7cfe06ed568f1f7 100644 --- a/service-workers/service-worker/registration-updateviacache.https.html +++ b/service-workers/service-worker/registration-updateviacache.https.html @@ -74,10 +74,10 @@ await reg.update(); if (updateViaCache == 'all') { - assert_equals(sw.installing, undefined, "No new service worker"); + assert_equals(reg.installing, null, "No new service worker"); } else { - const newWorker = sw.installing; + const newWorker = reg.installing; assert_true(!!newWorker, "New worker installing"); const newValues = await getScriptTimes(newWorker, testName); @@ -121,10 +121,10 @@ // If there's no change, register should be a no-op. // The default value should behave as 'imports'. if ((updateViaCache1 || 'imports') == (updateViaCache2 || 'imports')) { - assert_equals(sw.installing, undefined, "No new service worker"); + assert_equals(reg.installing, null, "No new service worker"); } else { - const newWorker = sw.installing; + const newWorker = reg.installing; assert_true(!!newWorker, "New worker installing"); const newValues = await getScriptTimes(newWorker, testName);