mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Properly fail in load-events-networkState.html
This commit is contained in:
parent
b6e3faa317
commit
6aa9d80a00
3 changed files with 4 additions and 3 deletions
|
@ -37,6 +37,7 @@ async_test(function(t) {
|
|||
// fetch the resource" or "once the entire media resource has been fetched"
|
||||
v.preload = 'none';
|
||||
v.src = getAudioURI('/media/sound_5');
|
||||
v.onerror = t.unreached_func();
|
||||
v.onsuspend = t.step_func(function() {
|
||||
v.onsuspend = null;
|
||||
assert_equals(v.networkState, v.NETWORK_IDLE);
|
||||
|
@ -47,6 +48,7 @@ async_test(function(t) {
|
|||
async_test(function(t) {
|
||||
var v = document.createElement('video');
|
||||
v.src = 'resources/delayed-broken-video.py';
|
||||
v.onerror = t.unreached_func();
|
||||
v.onloadstart = t.step_func(function() {
|
||||
v.onloadstart = null;
|
||||
assert_equals(v.networkState, v.NETWORK_LOADING);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue