Skip to content

Commit

Permalink
Was checking .installing on wrong object.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald committed May 12, 2017
1 parent fdcec99 commit cab9d6c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit cab9d6c

Please sign in to comment.