Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1555197] part4 : modify wpt 'track-webvtt-two-cue-layout-after-first-end.html' and 'track-webvtt-two-cue-layout-after-first-end-ref.html'. #17318

Merged
merged 1 commit into from Jun 14, 2019

Conversation

moz-wptsync-bot
Copy link
Collaborator

For track-webvtt-two-cue-layout-after-first-end.html

(1) modify cue1's start time

According to the text track cue order [1], "cues must be sorted by their start time, earliest first; then, any cues with the same start time must be sorted by their end time, latest first".

This order also decides which cue we would display first. As this test would like show cue1 at top and show another cue at bottom, we should modify cue1's startTime in order to put it before cue [0:3] in the cue list.

[1] https://html.spec.whatwg.org/multipage/media.html#text-track-cue-order

(2) listen for cue1's exit

As this cue would like to stop when the first cue ends, it should listen exit event.


For track-webvtt-two-cue-layout-after-first-end-ref.html, we should call video.play() in order to clear show-poster flag [2] and run TimeMarchesOn to show the cue.

If we didn't call it to reset the flag, we won't display any cue.

[2] https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:show-poster-flag

Differential Revision: https://phabricator.services.mozilla.com/D32937

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1555197
gecko-commit: 323c42c5c3777286dd99f11db2d1c2e852a07690
gecko-integration-branch: autoland
gecko-reviewers: jya

… and 'track-webvtt-two-cue-layout-after-first-end-ref.html'.

For `track-webvtt-two-cue-layout-after-first-end.html`

(1) modify cue1's start time

According to the text track cue order [1], "cues must be sorted by their start time, earliest first; then, any cues with the same start time must be sorted by their end time, latest first".

This order also decides which cue we would display first. As this test would like show `cue1` at top and show another cue at bottom, we should modify cue1's `startTime` in order to put it before cue [0:3] in the cue list.

[1] https://html.spec.whatwg.org/multipage/media.html#text-track-cue-order

(2) listen for cue1's `exit`

As this cue would like to stop when the first cue ends, it should listen `exit` event.

---

For `track-webvtt-two-cue-layout-after-first-end-ref.html`, we should call `video.play()` in order to clear `show-poster` flag [2] and run `TimeMarchesOn` to show the cue.

If we didn't call it to reset the flag, we won't display any cue.

[2] https://html.spec.whatwg.org/multipage/media.html#playing-the-media-resource:show-poster-flag

Differential Revision: https://phabricator.services.mozilla.com/D32937

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1555197
gecko-commit: 323c42c5c3777286dd99f11db2d1c2e852a07690
gecko-integration-branch: autoland
gecko-reviewers: jya
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

@moz-wptsync-bot moz-wptsync-bot merged commit d0cc574 into master Jun 14, 2019
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1555197 branch June 14, 2019 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants