Closed
Bug 462116
Opened 16 years ago
Closed 16 years ago
Need tests for <video> controls
Categories
(Toolkit :: Video/Audio Controls, defect)
Toolkit
Video/Audio Controls
Tracking
()
VERIFIED
FIXED
mozilla1.9.1b3
People
(Reporter: Dolske, Assigned: Dolske)
References
Details
(Keywords: verified1.9.1)
Attachments
(1 file)
357.87 KB,
patch
|
Details | Diff | Splinter Review |
The first pass at video controls (bug 448909) landed without tests due to time constraints. We should at least have some basic tests to make sure video controls don't unexpectedly break.
A couple of ideas:
* async reftest to compare (!=) two <video> pages, one with a mouse event fired
at it to trigger the display of controls.
This would be very basic, but is also a good sanity check. The most common mistake I've made when working on the controls is a syntax or parse error that completely breaks the binding. Making sure the controls are there when expected (and gone when expected) is a good sign they're not majorly broken.
* mochitests to fire mouse events at the controls, and ensure that the video
state updates accordingly (playing, muted, seeked, etc)
This is harder, and my experience with mouse events in other mochitests is that they can be fickle. :( There are also timing issues involved, which makes it more challenging to write tests that don't fail randomly. Internal state of the controls isn't readily available to the outside world, so it might be hard to target specific parts of the controls, or see if they're consistent internally.
Comment 1•16 years ago
|
||
I'd be interested in helping out with the mochitests, if you'd like.
Assignee | ||
Comment 2•16 years ago
|
||
Attachment #349899 -
Flags: review?(mconnor)
Assignee | ||
Comment 3•16 years ago
|
||
(In reply to comment #1)
> I'd be interested in helping out with the mochitests, if you'd like.
Oops, somehow missed this until just now. Thanks but sorry! :)
Assignee | ||
Updated•16 years ago
|
Attachment #349899 -
Flags: review?(mconnor)
Assignee | ||
Comment 4•16 years ago
|
||
Comment on attachment 349899 [details] [diff] [review]
Patch v.1
[Checkin: Comment 6 & 7]
Hrm, this can just be checked in, as it's only a test.
Assignee | ||
Comment 5•16 years ago
|
||
Verified this passes on OSX+Linux+Win, good to go.
Keywords: checkin-needed
Comment 6•16 years ago
|
||
Comment on attachment 349899 [details] [diff] [review]
Patch v.1
[Checkin: Comment 6 & 7]
http://hg.mozilla.org/mozilla-central/rev/09195bdb8ff7
Attachment #349899 -
Attachment description: Patch v.1 → Patch v.1
[Checkin: Comment 6]
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [c-n: baking for 1.9.1]
Comment 7•16 years ago
|
||
Comment on attachment 349899 [details] [diff] [review]
Patch v.1
[Checkin: Comment 6 & 7]
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/8e5d3f6b0403
Attachment #349899 -
Attachment description: Patch v.1
[Checkin: Comment 6] → Patch v.1
[Checkin: Comment 6 & 7]
Updated•16 years ago
|
Keywords: fixed1.9.1
Whiteboard: [c-n: baking for 1.9.1]
Target Milestone: mozilla1.9.1 → mozilla1.9.1b3
Comment 8•16 years ago
|
||
lotsa tests.
Status: RESOLVED → VERIFIED
Keywords: fixed1.9.1 → verified1.9.1
Assignee | ||
Updated•15 years ago
|
Component: Video/Audio → Video/Audio Controls
Product: Core → Toolkit
QA Contact: video.audio → video.audio
Target Milestone: mozilla1.9.1b3 → mozilla1.9.2a1
Version: Trunk → unspecified
Assignee | ||
Updated•15 years ago
|
Target Milestone: mozilla1.9.2a1 → mozilla1.9.1b3
You need to log in
before you can comment on or make changes to this bug.
Description
•