OLD | NEW |
(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> |
OLD | NEW |