mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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
|
@ -569581,7 +569581,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/loading-the-media-resource/load-events-networkState.html": [
|
||||
"ad2401f93e135e6c9d618870bb07d92cfd0d8dcc",
|
||||
"bb79a395a0297b288be526f72a7077628d130448",
|
||||
"testharness"
|
||||
],
|
||||
"html/semantics/embedded-content/media-elements/loading-the-media-resource/load-removes-queued-error-event.html": [
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[load-events-networkState.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[NETWORK_IDLE]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -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