mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -17,12 +17,22 @@ async_test(function(t) {
|
|||
|
||||
xhr.send();
|
||||
|
||||
xhr.onload = t.step_func(function() {
|
||||
xhr.onload = t.step_func_done(function() {
|
||||
assert_equals(xhr.response, "test");
|
||||
t.done();
|
||||
})
|
||||
xhr.onerror = t.step_func(function() {
|
||||
assert_unreached("Got unexpected error event");
|
||||
})
|
||||
});
|
||||
</script>
|
||||
}, "Revoke blob URL after open(), will fetch");
|
||||
|
||||
async_test(t => {
|
||||
const blob = new Blob(["test"]),
|
||||
blobURL = URL.createObjectURL(blob),
|
||||
client = new XMLHttpRequest
|
||||
URL.revokeObjectURL(blobURL)
|
||||
client.open("GET", blobURL)
|
||||
client.onload = t.step_func(() => assert_unreached("Got unexpected load event"))
|
||||
client.onerror = t.step_func_done()
|
||||
client.send()
|
||||
}, "Revoke blob URL before open(), network error (after send())")
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue