Index: LayoutTests/http/tests/serviceworker/controller-on-load.html |
diff --git a/LayoutTests/http/tests/serviceworker/current-on-load.html b/LayoutTests/http/tests/serviceworker/controller-on-load.html |
similarity index 64% |
rename from LayoutTests/http/tests/serviceworker/current-on-load.html |
rename to LayoutTests/http/tests/serviceworker/controller-on-load.html |
index dce72ddb5ef3cb56572473431f5d6a0b8ada0df6..162e30b6b0632e9ed3862207397dc5043d117dfd 100644 |
--- a/LayoutTests/http/tests/serviceworker/current-on-load.html |
+++ b/LayoutTests/http/tests/serviceworker/controller-on-load.html |
@@ -1,11 +1,11 @@ |
<!DOCTYPE html> |
-<title>Service Worker: Current on load</title> |
+<title>Service Worker: Controller on load</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 for a controlled document'); |
+var t = async_test('controller is set for a controlled document'); |
t.step(function() { |
var url = 'resources/worker-no-op.js'; |
var scope = 'resources/blank.html'; |
@@ -21,11 +21,11 @@ t.step(function() { |
function onActive() { |
with_iframe(scope, t.step_func(function(frame) { |
var w = frame.contentWindow; |
- var current = w.navigator.serviceWorker.current; |
- assert_true(current instanceof w.ServiceWorker, |
- 'current should be a ServiceWorker object'); |
- assert_equals(current.scope, normalizeURL(scope)); |
- assert_equals(current.url, normalizeURL(url)); |
+ var controller = w.navigator.serviceWorker.controller; |
+ assert_true(controller instanceof w.ServiceWorker, |
+ 'controller should be a ServiceWorker object'); |
+ assert_equals(controller.scope, normalizeURL(scope)); |
+ assert_equals(controller.url, normalizeURL(url)); |
service_worker_unregister_and_done(t, scope); |
})); |
} |