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

Unified Diff: LayoutTests/http/tests/serviceworker/current-on-load.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/current-on-load.html
diff --git a/LayoutTests/http/tests/serviceworker/current-on-load.html b/LayoutTests/http/tests/serviceworker/current-on-load.html
deleted file mode 100644
index dce72ddb5ef3cb56572473431f5d6a0b8ada0df6..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/serviceworker/current-on-load.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<title>Service Worker: Current 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');
-t.step(function() {
- var url = 'resources/worker-no-op.js';
- var scope = 'resources/blank.html';
- service_worker_unregister_and_register(t, url, scope, onRegister);
-
- function onRegister(worker) {
- worker.addEventListener('statechange', t.step_func(function(event) {
- if (event.target.state == 'active')
- onActive();
- }));
- }
-
- 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));
- service_worker_unregister_and_done(t, scope);
- }));
- }
-});
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698