script: Implement the HTMLTrackElement API

Implement the basics of the HTMLTrackElement and update the wpt tests.
This commit is contained in:
Dan Robertson 2019-01-07 23:21:30 +00:00
parent 121cbd0078
commit c4802076b3
No known key found for this signature in database
GPG key ID: 45C4A652C47E42A5
24 changed files with 152 additions and 382 deletions

View file

@ -6897,84 +6897,6 @@
[HTMLMediaElement interface: new Audio() must inherit property "videoTracks" with the proper type]
expected: FAIL
[HTMLTrackElement interface: attribute kind]
expected: FAIL
[HTMLTrackElement interface: attribute src]
expected: FAIL
[HTMLTrackElement interface: attribute srclang]
expected: FAIL
[HTMLTrackElement interface: attribute label]
expected: FAIL
[HTMLTrackElement interface: attribute default]
expected: FAIL
[HTMLTrackElement interface: constant NONE on interface object]
expected: FAIL
[HTMLTrackElement interface: constant NONE on interface prototype object]
expected: FAIL
[HTMLTrackElement interface: constant LOADING on interface object]
expected: FAIL
[HTMLTrackElement interface: constant LOADING on interface prototype object]
expected: FAIL
[HTMLTrackElement interface: constant LOADED on interface object]
expected: FAIL
[HTMLTrackElement interface: constant LOADED on interface prototype object]
expected: FAIL
[HTMLTrackElement interface: constant ERROR on interface object]
expected: FAIL
[HTMLTrackElement interface: constant ERROR on interface prototype object]
expected: FAIL
[HTMLTrackElement interface: attribute readyState]
expected: FAIL
[HTMLTrackElement interface: attribute track]
expected: FAIL
[HTMLTrackElement interface: document.createElement("track") must inherit property "kind" with the proper type]
expected: FAIL
[HTMLTrackElement interface: document.createElement("track") must inherit property "src" with the proper type]
expected: FAIL
[HTMLTrackElement interface: document.createElement("track") must inherit property "srclang" with the proper type]
expected: FAIL
[HTMLTrackElement interface: document.createElement("track") must inherit property "label" with the proper type]
expected: FAIL
[HTMLTrackElement interface: document.createElement("track") must inherit property "default" with the proper type]
expected: FAIL
[HTMLTrackElement interface: document.createElement("track") must inherit property "NONE" with the proper type]
expected: FAIL
[HTMLTrackElement interface: document.createElement("track") must inherit property "LOADING" with the proper type]
expected: FAIL
[HTMLTrackElement interface: document.createElement("track") must inherit property "LOADED" with the proper type]
expected: FAIL
[HTMLTrackElement interface: document.createElement("track") must inherit property "ERROR" with the proper type]
expected: FAIL
[HTMLTrackElement interface: document.createElement("track") must inherit property "readyState" with the proper type]
expected: FAIL
[HTMLTrackElement interface: document.createElement("track") must inherit property "track" with the proper type]
expected: FAIL
[HTMLMediaElement interface: attribute crossOrigin]
expected: FAIL
@ -9659,51 +9581,12 @@
[TextTrack interface: attribute activeCues]
expected: FAIL
[TextTrack must be primary interface of document.createElement("track").track]
expected: FAIL
[Stringification of document.createElement("track").track]
expected: FAIL
[TextTrack interface: document.createElement("track").track must inherit property "kind" with the proper type]
expected: FAIL
[TextTrack interface: document.createElement("track").track must inherit property "label" with the proper type]
expected: FAIL
[TextTrack interface: document.createElement("track").track must inherit property "language" with the proper type]
expected: FAIL
[TextTrack interface: document.createElement("track").track must inherit property "id" with the proper type]
expected: FAIL
[TextTrack interface: document.createElement("track").track must inherit property "inBandMetadataTrackDispatchType" with the proper type]
expected: FAIL
[TextTrack interface: document.createElement("track").track must inherit property "mode" with the proper type]
expected: FAIL
[TextTrack interface: document.createElement("track").track must inherit property "cues" with the proper type]
expected: FAIL
[TextTrack interface: document.createElement("track").track must inherit property "activeCues" with the proper type]
expected: FAIL
[TextTrack interface: document.createElement("track").track must inherit property "addCue(TextTrackCue)" with the proper type]
expected: FAIL
[TextTrack interface: calling addCue(TextTrackCue) on document.createElement("track").track with too few arguments must throw TypeError]
expected: FAIL
[TextTrack interface: document.createElement("track").track must inherit property "removeCue(TextTrackCue)" with the proper type]
expected: FAIL
[TextTrack interface: calling removeCue(TextTrackCue) on document.createElement("track").track with too few arguments must throw TypeError]
expected: FAIL
[TextTrack interface: document.createElement("track").track must inherit property "oncuechange" with the proper type]
expected: FAIL
[TimeRanges must be primary interface of document.createElement("video").buffered]
expected: FAIL

View file

@ -5,9 +5,6 @@
[The 'href' attribute of the 'area' element]
expected: FAIL
[The 'src' attribute of the 'track' element]
expected: FAIL
[The 'cite' attribute of the 'q' element]
expected: FAIL

View file

@ -5,9 +5,6 @@
[The 'href' attribute of the 'area' element]
expected: FAIL
[The 'src' attribute of the 'track' element]
expected: FAIL
[The 'cite' attribute of the 'q' element]
expected: FAIL

View file

@ -3,3 +3,11 @@
[<video autoplay> with <track> child]
expected: TIMEOUT
[<video autoplay> with <track src=\"invalid://url\" default=\"\"> child]
expected: TIMEOUT
[<video autoplay> with <track src=\"404\" default=\"\"> child]
expected: TIMEOUT
[<video autoplay> with <track src=\"\" default=\"\"> child]
expected: TIMEOUT

View file

@ -1,23 +0,0 @@
[default.html]
type: testharness
[HTMLTrackElement.default missing value]
expected: FAIL
[HTMLTrackElement.default empty string content attribute]
expected: FAIL
[HTMLTrackElement.default empty string IDL attribute]
expected: FAIL
[HTMLTrackElement.default foo in content attribute]
expected: FAIL
[HTMLTrackElement.default foo in IDL attribute]
expected: FAIL
[HTMLTrackElement.default true in IDL attribute]
expected: FAIL
[HTMLTrackElement.default false in IDL attribute]
expected: FAIL

View file

@ -1,62 +0,0 @@
[kind.html]
type: testharness
[HTMLTrackElement.kind missing value]
expected: FAIL
[HTMLTrackElement.kind invalid value in content attribute]
expected: FAIL
[HTMLTrackElement.kind content attribute uppercase]
expected: FAIL
[HTMLTrackElement.kind content attribute with uppercase turkish I (with dot)]
expected: FAIL
[HTMLTrackElement.kind content attribute with lowercase turkish i (dotless)]
expected: FAIL
[HTMLTrackElement.kind content attribute "subtitles"]
expected: FAIL
[HTMLTrackElement.kind content attribute "captions"]
expected: FAIL
[HTMLTrackElement.kind content attribute "descriptions"]
expected: FAIL
[HTMLTrackElement.kind content attribute "chapters"]
expected: FAIL
[HTMLTrackElement.kind content attribute "metadata"]
expected: FAIL
[HTMLTrackElement.kind content attribute "captions\\u0000"]
expected: FAIL
[HTMLTrackElement.kind setting IDL attribute to "subtitles"]
expected: FAIL
[HTMLTrackElement.kind setting IDL attribute to "captions"]
expected: FAIL
[HTMLTrackElement.kind setting IDL attribute to "descriptions"]
expected: FAIL
[HTMLTrackElement.kind setting IDL attribute to "chapters"]
expected: FAIL
[HTMLTrackElement.kind setting IDL attribute to "metadata"]
expected: FAIL
[HTMLTrackElement.kind setting IDL attribute to "CAPTIONS"]
expected: FAIL
[HTMLTrackElement.kind setting IDL attribute with uppercase turkish I (with dot)]
expected: FAIL
[HTMLTrackElement.kind setting IDL attribute with lowercase turkish I (dotless)]
expected: FAIL
[HTMLTrackElement.kind setting IDL attribute with \\u0000]
expected: FAIL

View file

@ -1,35 +0,0 @@
[label.html]
type: testharness
[HTMLTrackElement.label missing value]
expected: FAIL
[HTMLTrackElement.label empty string content attribute]
expected: FAIL
[HTMLTrackElement.label empty string IDL attribute]
expected: FAIL
[HTMLTrackElement.label lowercase content attribute]
expected: FAIL
[HTMLTrackElement.label uppercase content attribute]
expected: FAIL
[HTMLTrackElement.label\\u0000 in content attribute]
expected: FAIL
[HTMLTrackElement.label lowercase IDL attribute]
expected: FAIL
[HTMLTrackElement.label uppercase IDL attribute]
expected: FAIL
[HTMLTrackElement.label whitespace in content attribute]
expected: FAIL
[HTMLTrackElement.label whitespace in IDL attribute]
expected: FAIL
[HTMLTrackElement.label \\u0000 in IDL attribute]
expected: FAIL

View file

@ -1,8 +0,0 @@
[readyState.html]
type: testharness
[HTMLTrackElement.readyState default value]
expected: FAIL
[HTMLTrackElement.readyState values]
expected: FAIL

View file

@ -1,38 +0,0 @@
[src.html]
type: testharness
[HTMLTrackElement.src missing value]
expected: FAIL
[HTMLTrackElement.src empty string in content attribute]
expected: FAIL
[HTMLTrackElement.src empty string in IDL attribute]
expected: FAIL
[HTMLTrackElement.src unresolvable value in content attribute]
expected: FAIL
[HTMLTrackElement.src assigning unresolvable value to IDL attribute]
expected: FAIL
[HTMLTrackElement.src assigning resolvable value to IDL attribute]
expected: FAIL
[HTMLTrackElement.src assigning \\u0000 to IDL attribute]
expected: FAIL
[HTMLTrackElement.src \\u0000 in content attribute]
expected: FAIL
[HTMLTrackElement.src resolvable value in content attribute]
expected: FAIL
[HTMLTrackElement.src assigning empty string to IDL attribute]
expected: FAIL
[HTMLTrackElement.src foo\\u0000bar in content attribute]
expected: FAIL
[HTMLTrackElement.src assigning foo\\u0000bar to IDL attribute]
expected: FAIL

View file

@ -1,35 +0,0 @@
[srclang.html]
type: testharness
[HTMLTrackElement.srclang missing value]
expected: FAIL
[HTMLTrackElement.srclang empty string content attribute]
expected: FAIL
[HTMLTrackElement.srclang empty string IDL attribute]
expected: FAIL
[HTMLTrackElement.srclang lowercase content attribute]
expected: FAIL
[HTMLTrackElement.srclang uppercase content attribute]
expected: FAIL
[HTMLTrackElement.srclang \\u0000 content attribute]
expected: FAIL
[HTMLTrackElement.srclang lowercase IDL attribute]
expected: FAIL
[HTMLTrackElement.srclang uppercase IDL attribute]
expected: FAIL
[HTMLTrackElement.srclang whitespace in content attribute]
expected: FAIL
[HTMLTrackElement.srclang whitespace in IDL attribute]
expected: FAIL
[HTMLTrackElement.srclang \\u0000 in IDL attribute]
expected: FAIL

View file

@ -1,5 +0,0 @@
[track.html]
type: testharness
[HTMLTrackElement.track]
expected: FAIL

View file

@ -1,21 +1,19 @@
[activeCues.html]
type: testharness
expected: ERROR
[TextTrack.activeCues, empty list]
expected: FAIL
[TextTrack.activeCues, after addCue()]
expected: FAIL
[TextTrack.activeCues, different modes]
expected: FAIL
[TextTrack.activeCues, video loading]
expected: FAIL
[TextTrack.activeCues, video playing]
expected: FAIL
[TextTrack.activeCues, adding cue during playback]
expected: FAIL
[TextTrack.activeCues, video playing]
expected: FAIL
[TextTrack.activeCues, empty list]
expected: FAIL
[TextTrack.activeCues, different modes]
expected: FAIL
[TextTrack.activeCues, after addCue()]
expected: FAIL

View file

@ -1,5 +1,6 @@
[addCue.html]
type: testharness
expected: TIMEOUT
[TextTrack.addCue(), adding a cue to two different tracks]
expected: FAIL
@ -13,5 +14,5 @@
expected: FAIL
[TextTrack.addCue(), adding a cue associated with a track element to other track]
expected: FAIL
expected: TIMEOUT

View file

@ -1,8 +0,0 @@
[mode.html]
type: testharness
[TextTrack.mode, wrong value]
expected: FAIL
[TextTrack.mode, correct value]
expected: FAIL

View file

@ -1,8 +1,9 @@
[removeCue.html]
type: testharness
expected: TIMEOUT
[TextTrack.removeCue(), two elementless tracks]
expected: FAIL
[TextTrack.removeCue(), cue from track element]
expected: FAIL
expected: TIMEOUT

View file

@ -1,8 +1,9 @@
[endTime.html]
type: testharness
expected: TIMEOUT
[TextTrackCue.endTime, script-created cue]
expected: FAIL
[TextTrackCue.endTime, parsed cue]
expected: FAIL
expected: TIMEOUT

View file

@ -1,8 +1,9 @@
[id.html]
type: testharness
expected: TIMEOUT
[TextTrackCue.id, script-created cue]
expected: FAIL
[TextTrackCue.id, parsed cue]
expected: FAIL
expected: TIMEOUT

View file

@ -1,8 +1,9 @@
[pauseOnExit.html]
type: testharness
expected: TIMEOUT
[TextTrackCue.pauseOnExit, script-created cue]
expected: FAIL
[TextTrackCue.pauseOnExit, parsed cue]
expected: FAIL
expected: TIMEOUT

View file

@ -1,8 +1,9 @@
[startTime.html]
type: testharness
expected: TIMEOUT
[TextTrackCue.startTime, script-created cue]
expected: FAIL
[TextTrackCue.startTime, parsed cue]
expected: FAIL
expected: TIMEOUT

View file

@ -1,8 +1,9 @@
[track.html]
type: testharness
expected: TIMEOUT
[TextTrackCue.track, script-created cue]
expected: FAIL
[TextTrackCue.track, parsed cue]
expected: FAIL
expected: TIMEOUT