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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/resources/worker-make-xhr.sub.js

Issue 2695813009: Import wpt@503f5b5f78ec4e87d144f78609f363f0ed0ea8db (Closed)
Patch Set: Skip some tests Created 3 years, 10 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 var xhr = new XMLHttpRequest;
2 xhr.onerror = function () {
3 postMessage("xhr blocked");
4 postMessage("TEST COMPLETE");
5 };
6 xhr.onload = function () {
7 //cons/**/ole.log(xhr.responseText);
8 if (xhr.responseText == "FAIL") {
9 postMessage("xhr allowed");
10 } else {
11 postMessage("xhr blocked");
12 }
13 postMessage("TEST COMPLETE");
14 };
15 try {
16 xhr.open("GET", "/common/redirect.py?location=http://{{host}}:{{ports[http][ 0]}}/content-security-policy/support/fail.asis", true);
17 xhr.send();
18 } catch (e) {
19 postMessage("xhr blocked");
20 postMessage("TEST COMPLETE");
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698