Closed
Bug 805448
Opened 12 years ago
Closed 11 years ago
Write Marionette tests for battery level changes
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: davehunt, Assigned: davehunt)
References
Details
Attachments
(1 file)
2.49 KB,
patch
|
rwood
:
review+
|
Details | Diff | Splinter Review |
We need automated tests for the Battery API to ensure that simulated changes to the battery capacity level (level increase, level decrease) fire the appropriate events. As these tests will require simulating hardware changes, they will be necessary to run in the emulator and will therefore use Marionette.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → dave.hunt
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #690920 -
Flags: review?(rwood)
Assignee | ||
Updated•12 years ago
|
Attachment #690920 -
Attachment description: Battery level tests. v1.1 → Battery level tests. v1.0
Comment 2•12 years ago
|
||
Comment on attachment 690920 [details] [diff] [review] Battery level tests. v1.0 Review of attachment 690920 [details] [diff] [review]: ----------------------------------------------------------------- Looks great (just a tiny nit). The test passed fine when I ran it locally (along with all of the /battery tests). ::: dom/battery/test/marionette/test_battery_level.js @@ +35,5 @@ > + nextFunction(); > + }; > + runEmulatorCmd("power capacity " + capacity); > + } > + else { nit: have the else on the line above ie. } else {
Attachment #690920 -
Flags: review?(rwood) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Sorry for the late response here, and thanks for the review. I'm in the practice of having the else on a separate line from our Mozmill style guide [1]. Is there a style guide defined for these tests that I should be following? [1] https://developer.mozilla.org/en-US/docs/Mozmill_Tests/Mozmill_Style_Guide#Conditionals
Comment 4•12 years ago
|
||
Ok cool - well it is just a small nit / style difference anyway. No I'm not aware of any style guide for these particular tests, I just go by the MDN coding style [1] (that doesn't specify this particular case either). [1] https://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/cee0b66c744c
Flags: in-testsuite+
Keywords: checkin-needed
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/cee0b66c744c
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in
before you can comment on or make changes to this bug.
Description
•