Closed Bug 1553692 Opened 5 years ago Closed 5 years ago

[webvtt] enable wpt 'track-text-track-cue-list.html'

Categories

(Core :: Audio/Video: Playback, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The failure reason of this wpt is that we used the wrong comparion.

For getter, it will return undefined [1] when we can't get the element. We should use assert_equals because undefined is not an object.

For getCueById, it will return null [2] when we can't get the element. We should use assert_equals because null is not an object.

[1] https://heycam.github.io/webidl/#dfn-attribute-getter
[2] https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcuelist-getcuebyid

For getter, it will return undefined [1] when we can't get the element. We should use assert_equals because undefined is not an object.

For getCueById, it will return null [2] when we can't get the element. We should use assert_equals because null is not an object.

[1] https://heycam.github.io/webidl/#dfn-attribute-getter
[2] https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcuelist-getcuebyid

Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/15f3eb253153
enable wpt 'track-text-track-cue-list.html' r=jib
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/17058 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: