Closed Bug 949642 Opened 12 years ago Closed 12 years ago

[WebVTT] Implement VTTCue::LineAlign

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: reyre, Assigned: reyre)

References

()

Details

Attachments

(1 file, 2 obsolete files)

This is a new property on the VTTCue idl.
Assignee: nobody → rick.eyre
Blocks: old-webvtt
I don't quite think it makes sense to throw our own SYNTAX_ERRORS. Instead we could define a different Align setting with only the values start, middle, and end. Then the WebIDL bindings would do the checking and throwing for us. This isn't in the spec yet, though.
Attachment #8347253 - Flags: review?(giles)
Comment on attachment 8347253 [details] [diff] [review] Bug 949642 - Implement VTTCue::LineAlign r=rillian Review of attachment 8347253 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. Thanks for writing tests! ::: content/media/test/test_texttrackcue.html @@ +91,5 @@ > + exceptionHappened = true; > + is(e.name, "SyntaxError", "Should have thrown SyntaxError."); > + } > + ok(exceptionHappened, "Exception should have happened."); > + I'd also try 'MIDDLE' or some other variant to verify the case-sensitivity.
Attachment #8347253 - Flags: review?(giles) → review+
Thanks for review Ralph. Added test to test case sensitivity by setting cue.lineAlign = "START". Carrying forward r=rillian. Try: https://tbpl.mozilla.org/?tree=Try&rev=dde4206fc7be
Attachment #8347253 - Attachment is obsolete: true
Try looks good.
Keywords: checkin-needed
Rebased to current. Carrying forward r=rillian.
Attachment #8350081 - Attachment is obsolete: true
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Failure was caused by bug 921484. Has landed now. Try: https://tbpl.mozilla.org/?tree=Try&rev=262a49175fb5
Keywords: checkin-needed
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: