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
|
@ -569581,7 +569581,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"html/semantics/embedded-content/media-elements/loading-the-media-resource/load-events-networkState.html": [
|
"html/semantics/embedded-content/media-elements/loading-the-media-resource/load-events-networkState.html": [
|
||||||
"ad2401f93e135e6c9d618870bb07d92cfd0d8dcc",
|
"bb79a395a0297b288be526f72a7077628d130448",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"html/semantics/embedded-content/media-elements/loading-the-media-resource/load-removes-queued-error-event.html": [
|
"html/semantics/embedded-content/media-elements/loading-the-media-resource/load-removes-queued-error-event.html": [
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
[load-events-networkState.html]
|
[load-events-networkState.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: TIMEOUT
|
|
||||||
[NETWORK_IDLE]
|
[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"
|
// fetch the resource" or "once the entire media resource has been fetched"
|
||||||
v.preload = 'none';
|
v.preload = 'none';
|
||||||
v.src = getAudioURI('/media/sound_5');
|
v.src = getAudioURI('/media/sound_5');
|
||||||
|
v.onerror = t.unreached_func();
|
||||||
v.onsuspend = t.step_func(function() {
|
v.onsuspend = t.step_func(function() {
|
||||||
v.onsuspend = null;
|
v.onsuspend = null;
|
||||||
assert_equals(v.networkState, v.NETWORK_IDLE);
|
assert_equals(v.networkState, v.NETWORK_IDLE);
|
||||||
|
@ -47,6 +48,7 @@ async_test(function(t) {
|
||||||
async_test(function(t) {
|
async_test(function(t) {
|
||||||
var v = document.createElement('video');
|
var v = document.createElement('video');
|
||||||
v.src = 'resources/delayed-broken-video.py';
|
v.src = 'resources/delayed-broken-video.py';
|
||||||
|
v.onerror = t.unreached_func();
|
||||||
v.onloadstart = t.step_func(function() {
|
v.onloadstart = t.step_func(function() {
|
||||||
v.onloadstart = null;
|
v.onloadstart = null;
|
||||||
assert_equals(v.networkState, v.NETWORK_LOADING);
|
assert_equals(v.networkState, v.NETWORK_LOADING);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue