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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.fetch-csp.html

Issue 2805313003: Upstream service worker `fetch` tests to WPT (Closed)
Patch Set: Move files up a directory 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- This test is prefixed with `chromium.` because the equivalent version
3 available in Web Platform Tests is known to cause timeout errors in the
4 Chromium automated build system. They should be maintained only to preserve
5 test converage until the corresponding versions in Web Platform Tests can be
6 made to pass consistently. See
7 https://codereview.chromium.org/2805313003/ -->
2 <title>Service Worker: CSP control of fetch()</title> 8 <title>Service Worker: CSP control of fetch()</title>
3 <script src="../resources/testharness.js"></script> 9 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 10 <script src="../resources/testharnessreport.js"></script>
5 <script src="../resources/get-host-info.js?pipe=sub"></script> 11 <script src="../resources/get-host-info.js?pipe=sub"></script>
6 <script src="resources/test-helpers.js"></script> 12 <script src="resources/test-helpers.js"></script>
7 <script> 13 <script>
8 14
9 function assert_resolves(promise, description) { 15 function assert_resolves(promise, description) {
10 return promise.catch(function(reason) { 16 return promise.catch(function(reason) {
11 throw new Error(description + ' - ' + reason.message); 17 throw new Error(description + ' - ' + reason.message);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 REDIRECT_URL + '?url=' + encodeURIComponent(IMAGE_URL)), 108 REDIRECT_URL + '?url=' + encodeURIComponent(IMAGE_URL)),
103 'When the request was fetched via SW, CSP match algorithm ' + 109 'When the request was fetched via SW, CSP match algorithm ' +
104 'should ignore the path component of the URL.'); 110 'should ignore the path component of the URL.');
105 }) 111 })
106 .then(function() { 112 .then(function() {
107 frame.remove(); 113 frame.remove();
108 service_worker_unregister_and_done(t, SCOPE); 114 service_worker_unregister_and_done(t, SCOPE);
109 }); 115 });
110 }, 'Verify CSP control of fetch() in a Service Worker'); 116 }, 'Verify CSP control of fetch() in a Service Worker');
111 </script> 117 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698