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/fetch/nosniff/stylesheet.html

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 <!-- quirks mode is important, text/css is already required otherwise -->
2 <script src=/resources/testharness.js></script>
3 <script src=/resources/testharnessreport.js></script>
4 <div id=log></div>
5 <script>
6 var fails = ["", "?type=", "?type=x", "?type=x/x"],
7 passes = ["?type=text/css", "?type=text/css;blah"]
8
9 fails.forEach(function(urlpart) {
10 async_test(function(t) {
11 var link = document.createElement("link")
12 link.rel = "stylesheet"
13 link.onerror = t.step_func_done(function(){})
14 link.onload = t.unreached_func("Unexpected load event")
15 link.href = "resources/css.py" + urlpart
16 document.body.appendChild(link)
17 }, "URL query: " + urlpart)
18 })
19
20 passes.forEach(function(urlpart) {
21 async_test(function(t) {
22 var link = document.createElement("link")
23 link.rel = "stylesheet"
24 link.onerror = t.unreached_func("Unexpected error event")
25 link.onload = t.step_func_done(function(){})
26 link.href = "resources/css.py" + urlpart
27 document.body.appendChild(link)
28 }, "URL query: " + urlpart)
29 })
30 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698