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

@ -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