mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Implement play, pause, paused, and autoplay APIs.
This commit is contained in:
parent
5960fbe604
commit
e3db11fd8b
20 changed files with 118 additions and 399 deletions
|
@ -2646,9 +2646,6 @@
|
|||
[HTMLMediaElement interface: document.createElement("video") must inherit property "getStartDate" with the proper type (23)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("video") must inherit property "paused" with the proper type (24)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("video") must inherit property "defaultPlaybackRate" with the proper type (25)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -2664,18 +2661,9 @@
|
|||
[HTMLMediaElement interface: document.createElement("video") must inherit property "ended" with the proper type (29)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("video") must inherit property "autoplay" with the proper type (30)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("video") must inherit property "loop" with the proper type (31)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("video") must inherit property "play" with the proper type (32)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("video") must inherit property "pause" with the proper type (33)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("video") must inherit property "mediaGroup" with the proper type (34)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -2736,9 +2724,6 @@
|
|||
[HTMLMediaElement interface: document.createElement("audio") must inherit property "getStartDate" with the proper type (23)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("audio") must inherit property "paused" with the proper type (24)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("audio") must inherit property "defaultPlaybackRate" with the proper type (25)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -2754,18 +2739,9 @@
|
|||
[HTMLMediaElement interface: document.createElement("audio") must inherit property "ended" with the proper type (29)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("audio") must inherit property "autoplay" with the proper type (30)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("audio") must inherit property "loop" with the proper type (31)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("audio") must inherit property "play" with the proper type (32)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("audio") must inherit property "pause" with the proper type (33)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("audio") must inherit property "mediaGroup" with the proper type (34)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -3078,9 +3054,6 @@
|
|||
[HTMLMediaElement interface: operation getStartDate()]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: attribute paused]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: attribute defaultPlaybackRate]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -3096,18 +3069,9 @@
|
|||
[HTMLMediaElement interface: attribute ended]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: attribute autoplay]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: attribute loop]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: operation play()]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: operation pause()]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: attribute mediaGroup]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -9759,114 +9759,6 @@
|
|||
[video.preload: IDL set to "AUTO" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: typeof IDL attribute]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL get with DOM attribute unset]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to "" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to " foo " followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to undefined followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to null followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to 7 followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to 1.5 followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to true followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to false followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to object "[object Object\]" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to NaN followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to Infinity followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to -Infinity followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to "\\0" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to object "test-toString" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to object "test-valueOf" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: setAttribute() to "autoplay" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to "" followed by hasAttribute()]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to "" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to " foo " followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to undefined followed by hasAttribute()]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to undefined followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to null followed by hasAttribute()]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to null followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to 7 followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to 1.5 followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to false followed by hasAttribute()]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to object "[object Object\]" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to NaN followed by hasAttribute()]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to NaN followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to Infinity followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to -Infinity followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to "\\0" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to object "test-toString" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay: IDL set to object "test-valueOf" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[video.loop: typeof IDL attribute]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -11907,114 +11799,6 @@
|
|||
[audio.preload: IDL set to "AUTO" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: typeof IDL attribute]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL get with DOM attribute unset]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to "" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to " foo " followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to undefined followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to null followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to 7 followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to 1.5 followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to true followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to false followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to object "[object Object\]" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to NaN followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to Infinity followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to -Infinity followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to "\\0" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to object "test-toString" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to object "test-valueOf" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: setAttribute() to "autoplay" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to "" followed by hasAttribute()]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to "" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to " foo " followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to undefined followed by hasAttribute()]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to undefined followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to null followed by hasAttribute()]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to null followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to 7 followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to 1.5 followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to false followed by hasAttribute()]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to object "[object Object\]" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to NaN followed by hasAttribute()]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to NaN followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to Infinity followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to -Infinity followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to "\\0" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to object "test-toString" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.autoplay: IDL set to object "test-valueOf" followed by IDL get]
|
||||
expected: FAIL
|
||||
|
||||
[audio.loop: typeof IDL attribute]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
[event_pause.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[calling pause() on autoplay audio should trigger pause event]
|
||||
expected: NOTRUN
|
||||
|
||||
[calling pause() on autoplay video should trigger pause event]
|
||||
expected: NOTRUN
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
[event_pause_noautoplay.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[audio events - pause]
|
||||
expected: FAIL
|
||||
|
||||
[calling play() then pause() on non-autoplay audio should trigger pause event]
|
||||
expected: NOTRUN
|
||||
|
||||
[video events - pause]
|
||||
expected: FAIL
|
||||
|
||||
[calling play() then pause() on non-autoplay video should trigger pause event]
|
||||
expected: NOTRUN
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
[event_play.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[setting src attribute on autoplay audio should trigger play event]
|
||||
expected: NOTRUN
|
||||
|
||||
[setting src attribute on autoplay video should trigger play event]
|
||||
expected: NOTRUN
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
[event_play_noautoplay.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[audio events - play]
|
||||
expected: FAIL
|
||||
|
||||
[calling play() on audio should trigger play event]
|
||||
expected: NOTRUN
|
||||
|
||||
[video events - play]
|
||||
expected: FAIL
|
||||
|
||||
[calling play() on video should trigger play event]
|
||||
expected: NOTRUN
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
[event_playing_noautoplay.html]
|
||||
type: testharness
|
||||
[audio events - playing]
|
||||
expected: FAIL
|
||||
|
||||
[video events - playing]
|
||||
expected: FAIL
|
||||
|
|
@ -1,15 +1,9 @@
|
|||
[event_timeupdate_noautoplay.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[audio events - timeupdate]
|
||||
expected: FAIL
|
||||
|
||||
[calling play() on a sufficiently long audio should trigger timeupdate event]
|
||||
expected: NOTRUN
|
||||
|
||||
[video events - timeupdate]
|
||||
expected: FAIL
|
||||
|
||||
[calling play() on a sufficiently long video should trigger timeupdate event]
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[resource-selection-invoke-set-src-networkState.html]
|
||||
type: testharness
|
||||
[invoking load by setting src when networkState is not NETWORK_EMPTY]
|
||||
expected: FAIL
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
[paused_false_during_play.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[audio.paused should be false during play event]
|
||||
expected: NOTRUN
|
||||
|
||||
[video.paused should be false during play event]
|
||||
expected: NOTRUN
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
[paused_true_during_pause.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[audio events - paused property]
|
||||
expected: FAIL
|
||||
|
||||
[audio.paused should be true during pause event]
|
||||
expected: NOTRUN
|
||||
|
||||
[video events - paused property]
|
||||
expected: FAIL
|
||||
|
||||
[video.paused should be true during pause event]
|
||||
expected: NOTRUN
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
[pause-move-to-other-document.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[paused state when moving to other document]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[pause-move-within-document.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[paused state when moving within a document]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[pause-remove-from-document-networkState.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[paused state when removing from a document when networkState is NETWORK_EMPTY]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[pause-remove-from-document.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[paused state when removing from a document]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[play-in-detached-document.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[play() in detached document]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,32 +1,8 @@
|
|||
[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
|
||||
|
||||
[video.autoplay]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay and load()]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay and play()]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay and pause()]
|
||||
expected: FAIL
|
||||
|
||||
[video.autoplay and internal pause steps]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue