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

Unified Diff: LayoutTests/http/tests/serviceworker/controller-on-reload.html

Issue 301103003: Rename navigator.serviceWorker.current to controller. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bring rebaselines to head. Created 6 years, 7 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/controller-on-reload.html
diff --git a/LayoutTests/http/tests/serviceworker/current-on-reload.html b/LayoutTests/http/tests/serviceworker/controller-on-reload.html
similarity index 74%
rename from LayoutTests/http/tests/serviceworker/current-on-reload.html
rename to LayoutTests/http/tests/serviceworker/controller-on-reload.html
index 5004bb8ea7634596eab84794256d92a178eb9967..9e8d282bcc993319f671d799d7f1c6a226952e4c 100644
--- a/LayoutTests/http/tests/serviceworker/current-on-reload.html
+++ b/LayoutTests/http/tests/serviceworker/controller-on-reload.html
@@ -1,11 +1,11 @@
<!DOCTYPE html>
-<title>Service Worker: Current on reload</title>
+<title>Service Worker: Controller on reload</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="resources/test-helpers.js"></script>
<body>
<script>
-var t = async_test('current is set upon reload after registration');
+var t = async_test('controller is set upon reload after registration');
t.step(function() {
var reloaded = false;
var scope = 'resources/blank.html';
@@ -22,8 +22,8 @@ t.step(function() {
var w = frame.contentWindow;
function onActive(event) {
- assert_equals(w.navigator.serviceWorker.current, null,
- 'current should be null until the document is reloaded');
+ assert_equals(w.navigator.serviceWorker.controller, null,
+ 'controller should be null until the document is reloaded');
reloaded = true;
w.location.reload();
}
@@ -36,8 +36,8 @@ t.step(function() {
}
if (reloaded) {
- assert_true(w.navigator.serviceWorker.current instanceof w.ServiceWorker,
- 'current should be a ServiceWorker object upon reload');
+ assert_true(w.navigator.serviceWorker.controller instanceof w.ServiceWorker,
+ 'controller should be a ServiceWorker object upon reload');
service_worker_unregister_and_done(t, scope);
return;
}

Powered by Google App Engine
This is Rietveld 408576698