Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: LayoutTests/http/tests/serviceworker/state.html

Issue 352423005: Add ServiceWorker InstallPhaseEvent.waitUntil() layout test. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add FIXME Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/serviceworker/state.html
diff --git a/LayoutTests/http/tests/serviceworker/state.html b/LayoutTests/http/tests/serviceworker/state.html
index db5222e89677db3965c1b6a26bbf922cbec15725..5295af65648b7786d1b67ab5d7f86a84eeda0530 100644
--- a/LayoutTests/http/tests/serviceworker/state.html
+++ b/LayoutTests/http/tests/serviceworker/state.html
@@ -27,20 +27,20 @@
assert_equals(newState, 'installing');
break;
case 'installing':
- assert_in_array(newState, ['installed', 'deactivated']);
+ assert_in_array(newState, ['installed', 'redundant']);
break;
case 'installed':
- assert_in_array(newState, ['activating', 'deactivated']);
+ assert_in_array(newState, ['activating', 'redundant']);
break;
case 'activating':
- assert_in_array(newState, ['active', 'deactivated']);
+ assert_in_array(newState, ['activated', 'redundant']);
break;
- case 'active':
- assert_equals(newState, 'deactivated');
+ case 'activated':
+ assert_equals(newState, 'redundant');
break;
- case 'deactivated':
+ case 'redundant':
assert_unreached('a ServiceWorker should not transition out of ' +
- 'the "deactivated" state');
+ 'the "redundant" state');
break;
default:
assert_unreached('should not transition into unknown state "' +
@@ -63,7 +63,7 @@
checkStateTransition(event.target.state);
- if (event.target.state == 'active')
+ if (event.target.state == 'activated')
service_worker_unregister_and_done(t, scope);
};
}

Powered by Google App Engine
This is Rietveld 408576698