mirror of
https://github.com/servo/servo.git
synced 2025-09-10 15:08:21 +01:00
Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317
This commit is contained in:
parent
aa199307c8
commit
2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions
|
@ -33,3 +33,14 @@ function getAudioURI(base)
|
|||
|
||||
return base + extension;
|
||||
}
|
||||
|
||||
function getMediaContentType(url) {
|
||||
var extension = new URL(url, location).pathname.split(".").pop();
|
||||
var map = {
|
||||
"mp4": "video/mp4",
|
||||
"ogv": "video/ogg",
|
||||
"mp3": "audio/mp3",
|
||||
"oga": "audio/ogg",
|
||||
};
|
||||
return map[extension];
|
||||
}
|
||||
|
|
|
@ -36,7 +36,9 @@ function test_entries(actualEntries, expectedEntries) {
|
|||
return actualEntry[key] !== expectedEntry[key]
|
||||
}) === 'undefined'
|
||||
})
|
||||
test_true(!!foundEntry)
|
||||
assert_object_equals(foundEntry.toJSON(), expectedEntry)
|
||||
test_true(!!foundEntry, `Entry ${JSON.stringify(expectedEntry)} could not be found.`)
|
||||
if (foundEntry) {
|
||||
assert_object_equals(foundEntry.toJSON(), expectedEntry)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Content-Type: text/javascript; charset=utf-8
|
Loading…
Add table
Add a link
Reference in a new issue