mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
checking for metadata in htmlmediaelement::response_complete
updated test expectations reverting changes to webgl test
This commit is contained in:
parent
2474393d15
commit
3e3349599e
26 changed files with 149 additions and 35 deletions
|
@ -105,8 +105,13 @@ impl AsyncResponseListener for HTMLMediaElementContext {
|
||||||
fn response_complete(&mut self, status: Result<(), NetworkError>) {
|
fn response_complete(&mut self, status: Result<(), NetworkError>) {
|
||||||
let elem = self.elem.root();
|
let elem = self.elem.root();
|
||||||
|
|
||||||
|
// => "If the media data can be fetched but is found by inspection to be in an unsupported
|
||||||
|
// format, or can otherwise not be rendered at all"
|
||||||
|
if !self.have_metadata {
|
||||||
|
elem.queue_dedicated_media_source_failure_steps();
|
||||||
|
}
|
||||||
// => "Once the entire media resource has been fetched..."
|
// => "Once the entire media resource has been fetched..."
|
||||||
if status.is_ok() {
|
else if status.is_ok() {
|
||||||
elem.change_ready_state(HAVE_ENOUGH_DATA);
|
elem.change_ready_state(HAVE_ENOUGH_DATA);
|
||||||
|
|
||||||
elem.fire_simple_event("progress");
|
elem.fire_simple_event("progress");
|
||||||
|
|
|
@ -2433,27 +2433,6 @@
|
||||||
[HTMLMediaElement interface: operation addTextTrack(TextTrackKind,DOMString,DOMString)]
|
[HTMLMediaElement interface: operation addTextTrack(TextTrackKind,DOMString,DOMString)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[MediaError must be primary interface of errorVideo.error]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Stringification of errorVideo.error]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[MediaError interface: errorVideo.error must inherit property "MEDIA_ERR_ABORTED" with the proper type (0)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[MediaError interface: errorVideo.error must inherit property "MEDIA_ERR_NETWORK" with the proper type (1)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[MediaError interface: errorVideo.error must inherit property "MEDIA_ERR_DECODE" with the proper type (2)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[MediaError interface: errorVideo.error must inherit property "MEDIA_ERR_SRC_NOT_SUPPORTED" with the proper type (3)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[MediaError interface: errorVideo.error must inherit property "code" with the proper type (4)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[AudioTrackList interface: existence and properties of interface object]
|
[AudioTrackList interface: existence and properties of interface object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_canplay.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[setting src attribute on autoplay audio should trigger canplay event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_canplay_noautoplay.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[setting src attribute on non-autoplay audio should trigger canplay event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_canplaythrough.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[setting src attribute on autoplay audio should trigger canplaythrough event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_canplaythrough_noautoplay.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[setting src attribute on non-autoplay audio should trigger canplaythrough event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_order_canplay_canplaythrough.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[setting src attribute on autoplay audio should trigger canplay then canplaythrough event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_order_canplay_playing.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[setting src attribute on autoplay audio should trigger canplay then playing event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_order_loadstart_progress.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[setting src attribute on autoplay audio should trigger loadstart then progress event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_pause.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[calling pause() on autoplay audio should trigger pause event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_play.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[setting src attribute on autoplay audio should trigger play event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_playing.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[setting src attribute on autoplay audio should trigger playing event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_playing_noautoplay.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[calling play() on audio should trigger playing event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_progress.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[setting src attribute on autoplay audio should trigger progress event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[event_progress_noautoplay.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[setting src attribute on non-autoplay audio should trigger progress event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
[autoplay-overrides-preload.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[autoplay (set first) overrides preload "none"]
|
||||||
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
[autoplay (set last) overrides preload "none"]
|
||||||
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
[autoplay (set first) overrides preload "metadata"]
|
||||||
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
[autoplay (set last) overrides preload "metadata"]
|
||||||
|
expected: TIMEOUT
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[load-events-networkState.html]
|
[load-events-networkState.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
[NETWORK_NO_SOURCE]
|
[NETWORK_IDLE]
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
[resource-selection-invoke-insert-into-iframe.html]
|
[resource-selection-invoke-insert-into-iframe.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: TIMEOUT
|
|
||||||
[NOT invoking resource selection by inserting into other document with src set]
|
[NOT invoking resource selection by inserting into other document with src set]
|
||||||
expected: TIMEOUT
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[resource-selection-invoke-pause-networkState.html]
|
|
||||||
type: testharness
|
|
||||||
[NOT invoking resource selection with pause() when networkState is not NETWORK_EMPTY]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[resource-selection-invoke-remove-from-document-networkState.html]
|
|
||||||
type: testharness
|
|
||||||
[NOT invoking resource selection with implicit pause() when networkState is not NETWORK_EMPTY]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[networkState_during_progress.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[audioElement.networkState should be NETWORK_LOADING during progress event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[paused_false_during_play.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[audio.paused should be false during play event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
[autoplay.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[audio.autoplay]
|
||||||
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
[audio.autoplay and load()]
|
||||||
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
[audio.autoplay and play()]
|
||||||
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
[audio.autoplay and pause()]
|
||||||
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
[audio.autoplay and internal pause steps]
|
||||||
|
expected: TIMEOUT
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[readyState_during_canplay.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[audio.readyState should be >= HAVE_FUTURE_DATA during canplay event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[readyState_during_canplaythrough.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[audio.readyState should be HAVE_ENOUGH_DATA during canplaythrough event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[readyState_during_playing.html]
|
||||||
|
type: testharness
|
||||||
|
expected: TIMEOUT
|
||||||
|
[audio.readyState should be >= HAVE_FUTURE_DATA during playing event]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue