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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/uncontrolled-page.html

Issue 2897313003: Remove duplicate service wrkr "uncontrolled" test (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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fail-on-fetch-worker.js ('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/uncontrolled-page.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/uncontrolled-page.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/uncontrolled-page.html
deleted file mode 100644
index 5da0e9701369ee2b892b1272e1f48d4c16c71d56..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/uncontrolled-page.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!DOCTYPE html>
-<title>Service Worker: Registration</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="resources/test-helpers.js"></script>
-<script>
-function fetch_url(url) {
- return new Promise(function(resolve, reject) {
- var request = new XMLHttpRequest();
- request.addEventListener('load', function(event) {
- if (request.status == 200)
- resolve(request.response);
- else
- reject(Error(request.statusText));
- });
- request.open('GET', url);
- request.send();
- });
-}
-var worker = 'resources/fail-on-fetch-worker.js';
-
-async_test(function(t) {
- var scope = 'resources/scope/uncontrolled-page/';
- service_worker_unregister_and_register(t, worker, scope)
- .then(function(reg) {
- return wait_for_state(t, reg.installing, 'activated');
- })
- .then(function() {
- return fetch_url('/serviceworker/resources/simple.txt');
- })
- .then(function(text) {
- assert_equals(text, 'a simple text file\n');
- service_worker_unregister_and_done(t, scope);
- })
- .catch(t.step_func(function(reason) {
- assert_unreached(reason.message);
- }));
- }, 'Fetch events should not go through uncontrolled page.');
-</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fail-on-fetch-worker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698