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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-reload.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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-reload.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-reload.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-reload.html
deleted file mode 100644
index 079476f6940731c1a9747cc38c2c9acb0c4e7f31..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-reload.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<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>
-promise_test(function(t) {
- var scope = 'resources/blank.html';
- var frame;
- return service_worker_unregister(t, scope)
- .then(function() {
- return with_iframe(scope);
- })
- .then(function(f) {
- frame = f;
- return frame.contentWindow.navigator.serviceWorker.register(
- 'empty-worker.js', {scope: 'blank.html'});
- })
- .then(function(registration) {
- return wait_for_state(t, registration.installing, 'activated');
- })
- .then(function() {
- var w = frame.contentWindow;
- assert_equals(w.navigator.serviceWorker.controller, null,
- 'controller should be null until the document is ' +
- 'reloaded');
- return new Promise(function(resolve) {
- frame.onload = function() { resolve(); }
- w.location.reload();
- });
- })
- .then(function() {
- var w = frame.contentWindow;
- assert_true(
- w.navigator.serviceWorker.controller instanceof w.ServiceWorker,
- 'controller should be a ServiceWorker object upon reload');
- frame.remove();
- service_worker_unregister_and_done(t, scope);
- });
- }, 'controller is set upon reload after registration');
-</script>
-</body>
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698