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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/unregister.html

Issue 2904123002: Upstream service worker "unregister" 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/unregister.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/unregister.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/unregister.html
deleted file mode 100644
index 54be479d1aeff9c5a0d623ff649cdc1c43d41c90..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/unregister.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="resources/test-helpers.js"></script>
-<script>
-async_test(function(t) {
- var scope = 'resources/scope/unregister-twice';
- var registration;
- navigator.serviceWorker.register('resources/empty-worker.js',
- {scope: scope})
- .then(function(r) {
- registration = r;
- return registration.unregister();
- })
- .then(function() {
- return registration.unregister();
- })
- .then(function(value) {
- assert_equals(value, false,
- 'unregistering twice should resolve with false');
- t.done();
- })
- .catch(unreached_rejection(t));
- }, 'Unregister twice');
-
-async_test(function(t) {
- var scope = 'resources/scope/successful-unregister/';
- navigator.serviceWorker.register('resources/empty-worker.js',
- {scope: scope})
- .then(function(registration) {
- return registration.unregister();
- })
- .then(function(value) {
- assert_equals(value, true,
- 'unregistration should resolve with true');
- t.done();
- })
- .catch(unreached_rejection(t));
- }, 'Register then unregister');
-</script>

Powered by Google App Engine
This is Rietveld 408576698