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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/fetch/nosniff/importscripts.js

Issue 2778753002: Import //fetch from Web Platform Tests. (Closed)
Patch Set: Baselines. Created 3 years, 8 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 // Testing importScripts()
2 function log(w) { this.postMessage(w) }
3 function f() { log("FAIL") }
4 function p() { log("PASS") }
5
6 ["", "?type=", "?type=x", "?type=x/x"].forEach(function(urlpart) {
7 try {
8 importScripts("resources/js.py" + urlpart)
9 } catch(e) {
10 (e.name == "NetworkError") ? p() : log("FAIL (no NetworkError exception): " + urlpart)
11 }
12
13 })
14 importScripts("resources/js.py?type=text/javascript&outcome=p")
15 importScripts("resources/js.py?type=text/ecmascript&outcome=p")
16 importScripts("resources/js.py?type=text/ecmascript;blah&outcome=p")
17 log("END")
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698