Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317

This commit is contained in:
Josh Matthews 2018-01-04 13:44:24 -05:00
parent aa199307c8
commit 2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions

View file

@ -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];
}

View file

@ -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)
}
})
}

View file

@ -1 +0,0 @@
Content-Type: text/javascript; charset=utf-8