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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/register-wait-forever-in-install-worker.html

Issue 2892473003: Upstream service worker "register" tests to WPT (Closed)
Patch Set: Created 3 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: third_party/WebKit/LayoutTests/http/tests/serviceworker/register-wait-forever-in-install-worker.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/register-wait-forever-in-install-worker.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/register-wait-forever-in-install-worker.html
deleted file mode 100644
index 07a85d51599a814614bbe114d824e9ae11aa7f15..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/register-wait-forever-in-install-worker.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<title>Service Worker: Register wait-forever-in-install-worker</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="resources/test-helpers.js"></script>
-<script>
-
-promise_test(function(t) {
- var bad_script = 'resources/wait-forever-in-install-worker.js';
- var good_script = 'resources/empty-worker.js';
- var scope = 'resources/wait-forever-in-install-worker';
- return navigator.serviceWorker.register(bad_script, {scope: scope})
- .then(function(registration) {
- assert_equals(registration.installing.scriptURL,
- normalizeURL(bad_script));
- return navigator.serviceWorker.register(good_script, {scope: scope});
- })
- .then(function(registration) {
- assert_equals(registration.installing.scriptURL,
- normalizeURL(good_script));
- return wait_for_state(t, registration.installing, 'activated');
- })
- .then(function() {
- return service_worker_unregister_and_done(t, scope);
- })
- }, 'register worker that calls waitUntil with a promise that never ' +
- 'resolves in oninstall');
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698