mirror of
https://github.com/servo/servo.git
synced 2025-09-03 19:48:21 +01:00
Update web-platform-tests to revision 3137d1d2d7757366a69f8a449b458b5057e0e81e
This commit is contained in:
parent
81ca858678
commit
d6ba94ca28
2339 changed files with 89274 additions and 9328 deletions
|
@ -2,18 +2,8 @@
|
|||
<script src=/resources/testharnessreport.js></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
var fails = ["", "?type=", "?type=x", "?type=x/x"],
|
||||
passes = ["?type=image/gif", "?type=image/png", "?type=image/png;blah"]
|
||||
|
||||
fails.forEach(function(urlpart) {
|
||||
async_test(function(t) {
|
||||
var img = document.createElement("img")
|
||||
img.onerror = t.step_func_done(function(){})
|
||||
img.onload = t.unreached_func("Unexpected load event")
|
||||
img.src = "resources/image.py" + urlpart
|
||||
document.body.appendChild(img)
|
||||
}, "URL query: " + urlpart)
|
||||
})
|
||||
// Note: images get always sniffed, nosniff doesn't do anything
|
||||
var passes = ["", "?type=", "?type=x", "?type=x/x", "?type=image/gif", "?type=image/png", "?type=image/png;blah"]
|
||||
|
||||
passes.forEach(function(urlpart) {
|
||||
async_test(function(t) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue