mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -7,23 +7,27 @@
|
|||
<script>
|
||||
var noop = function() {};
|
||||
|
||||
["text/csv",
|
||||
"audio/aiff",
|
||||
"audio/midi",
|
||||
"audio/whatever",
|
||||
"video/avi",
|
||||
"video/fli",
|
||||
"video/whatever",
|
||||
"image/jpeg",
|
||||
"image/gif",
|
||||
"image/whatever"].forEach(function(test_case) {
|
||||
async_test(function(t) {
|
||||
var script = document.createElement("script");
|
||||
script.onerror = t.step_func_done(noop);
|
||||
script.onload = t.unreached_func("Unexpected load event");
|
||||
script.src = "../resources/script-with-header.py?mime=" + test_case;
|
||||
document.body.appendChild(script);
|
||||
}, "Should fail loading script with " + test_case + " MIME type");
|
||||
["non-empty", "empty"].forEach(function(content) {
|
||||
["text/csv",
|
||||
"audio/aiff",
|
||||
"audio/midi",
|
||||
"audio/whatever",
|
||||
"video/avi",
|
||||
"video/fli",
|
||||
"video/whatever",
|
||||
"image/jpeg",
|
||||
"image/gif",
|
||||
"image/whatever"].forEach(function(test_case) {
|
||||
async_test(function(t) {
|
||||
var script = document.createElement("script");
|
||||
script.onerror = t.step_func_done(noop);
|
||||
script.onload = t.unreached_func("Unexpected load event");
|
||||
script.src = "../resources/script-with-header.py?content=" + content +
|
||||
"&mime=" + test_case;
|
||||
document.body.appendChild(script);
|
||||
}, "Should fail loading " + content + " script with " + test_case +
|
||||
" MIME type");
|
||||
});
|
||||
});
|
||||
|
||||
["html", "plain"].forEach(function(test_case) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue