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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html

Issue 2778223003: Upstream service worker `controller` tests to WPT (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html
deleted file mode 100644
index 99bdc20e19fbd5f828a4ac57f86faadf43521a7f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<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('controller is set for a controlled document');
-t.step(function() {
- var url = 'resources/empty-worker.js';
- var scope = 'resources/blank.html';
- service_worker_unregister_and_register(t, url, scope)
- .then(t.step_func(function(registration) {
- return wait_for_state(t, registration.installing, 'activated');
- }))
- .then(t.step_func(function() {
- return with_iframe(scope);
- }))
- .then(t.step_func(function(frame) {
- var w = frame.contentWindow;
- var controller = w.navigator.serviceWorker.controller;
- assert_true(controller instanceof w.ServiceWorker,
- 'controller should be a ServiceWorker object');
- assert_equals(controller.scriptURL, normalizeURL(url));
- service_worker_unregister_and_done(t, scope);
- }))
- .catch(unreached_rejection(t));
- });
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698