Auto merge of #18742 - servo:media-metadata, r=jdm

Some low-key media improvements

This just makes our code fail more gracefully.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18742)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-10-05 15:41:22 -05:00 committed by GitHub
commit 0444d76c6b
35 changed files with 13 additions and 212 deletions

View file

@ -9993,12 +9993,6 @@
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onmousewheel" with the proper type (126)]
expected: FAIL
[MediaError interface: attribute message]
expected: FAIL
[MediaError interface: errorVideo.error must inherit property "message" with the proper type (5)]
expected: FAIL
[HTMLScriptElement interface: attribute noModule]
expected: FAIL

View file

@ -1,5 +1,6 @@
[audio_loop_base.html]
type: testharness
disabled: extreme timeout
[Check if audio.loop is set to true that expecting the seeking event is fired more than once]
expected: FAIL

View file

@ -1,11 +0,0 @@
[error.html]
type: testharness
[audio.error after successful load]
expected: FAIL
[audio.error after setting src to the empty string]
expected: FAIL
[video.error after setting src to the empty string]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_canplay.html]
type: testharness
[setting src attribute on autoplay audio should trigger canplay event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_canplay_noautoplay.html]
type: testharness
[setting src attribute on non-autoplay audio should trigger canplay event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_canplaythrough.html]
type: testharness
[setting src attribute on autoplay audio should trigger canplaythrough event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_canplaythrough_noautoplay.html]
type: testharness
[setting src attribute on non-autoplay audio should trigger canplaythrough event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_loadeddata.html]
type: testharness
[setting src attribute on autoplay audio should trigger loadeddata event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_loadeddata_noautoplay.html]
type: testharness
[setting src attribute on non-autoplay audio should trigger loadeddata event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_loadedmetadata.html]
type: testharness
[setting src attribute on autoplay audio should trigger loadedmetadata event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_loadedmetadata_noautoplay.html]
type: testharness
[setting src attribute on non-autoplay audio should trigger loadedmetadata event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_order_canplay_canplaythrough.html]
type: testharness
[setting src attribute on autoplay audio should trigger canplay then canplaythrough event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_order_canplay_playing.html]
type: testharness
[setting src attribute on autoplay audio should trigger canplay then playing event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_order_loadedmetadata_loadeddata.html]
type: testharness
[setting src attribute on autoplay audio should trigger loadedmetadata then loadeddata event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_order_loadstart_progress.html]
type: testharness
[setting src attribute on autoplay audio should trigger loadstart then progress event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_pause.html]
type: testharness
[calling pause() on autoplay audio should trigger pause event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_play.html]
type: testharness
[setting src attribute on autoplay audio should trigger play event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_playing.html]
type: testharness
[setting src attribute on autoplay audio should trigger playing event]
expected: FAIL

View file

@ -1,6 +0,0 @@
[event_playing_noautoplay.html]
type: testharness
expected: TIMEOUT
[calling play() on audio should trigger playing event]
expected: NOTRUN

View file

@ -1,5 +0,0 @@
[event_progress.html]
type: testharness
[setting src attribute on autoplay audio should trigger progress event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[event_progress_noautoplay.html]
type: testharness
[setting src attribute on non-autoplay audio should trigger progress event]
expected: FAIL

View file

@ -2,7 +2,7 @@
type: testharness
expected: TIMEOUT
[calling play() on a sufficiently long audio should trigger timeupdate event]
expected: FAIL
expected: NOTRUN
[calling play() on a sufficiently long video should trigger timeupdate event]
expected: NOTRUN

View file

@ -1,14 +0,0 @@
[autoplay-overrides-preload.html]
type: testharness
[autoplay (set first) overrides preload "none"]
expected: FAIL
[autoplay (set last) overrides preload "none"]
expected: FAIL
[autoplay (set first) overrides preload "metadata"]
expected: FAIL
[autoplay (set last) overrides preload "metadata"]
expected: FAIL

View file

@ -1,5 +0,0 @@
[load-events-networkState.html]
type: testharness
[NETWORK_IDLE]
expected: FAIL

View file

@ -1,5 +0,0 @@
[networkState_during_progress.html]
type: testharness
[audioElement.networkState should be NETWORK_LOADING during progress event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[paused_false_during_play.html]
type: testharness
[audio.paused should be false during play event]
expected: FAIL

View file

@ -1,17 +0,0 @@
[autoplay.html]
type: testharness
[audio.autoplay]
expected: FAIL
[audio.autoplay and load()]
expected: FAIL
[audio.autoplay and play()]
expected: FAIL
[audio.autoplay and pause()]
expected: FAIL
[audio.autoplay and internal pause steps]
expected: FAIL

View file

@ -1,5 +0,0 @@
[readyState_during_canplay.html]
type: testharness
[audio.readyState should be >= HAVE_FUTURE_DATA during canplay event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[readyState_during_canplaythrough.html]
type: testharness
[audio.readyState should be HAVE_ENOUGH_DATA during canplaythrough event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[readyState_during_loadeddata.html]
type: testharness
[audio.readyState should be >= HAVE_CURRENT_DATA during loadeddata event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[readyState_during_loadedmetadata.html]
type: testharness
[audio.readyState should be >= HAVE_METADATA during loadedmetadata event]
expected: FAIL

View file

@ -1,5 +0,0 @@
[readyState_during_playing.html]
type: testharness
[audio.readyState should be >= HAVE_FUTURE_DATA during playing event]
expected: FAIL