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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/fetch/api/policies/csp-blocked.js

Issue 2778753002: Import //fetch from Web Platform Tests. (Closed)
Patch Set: Baselines. 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 unified diff | Download patch
OLDNEW
(Empty)
1 if (this.document === undefined) {
2 importScripts("/resources/testharness.js");
3 importScripts("../resources/utils.js");
4 }
5
6 //Content-Security-Policy: connect-src 'none'; cf .headers file
7 cspViolationUrl = RESOURCES_DIR + "top.txt";
8
9 promise_test(function(test) {
10 return promise_rejects(test, new TypeError(), fetch(cspViolationUrl));
11 }, "Fetch is blocked by CSP, got a TypeError");
12
13 done();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698