Confirmed users
2,177
edits
(→API) |
(→Tests) |
||
Line 41: | Line 41: | ||
== Tests == | == Tests == | ||
=== Marionette/JS === | === Marionette/JS === | ||
==== | Tracking: {{bug}} | ||
* | |||
==== Basic Positive Tests ==== | |||
* Battery status change | |||
** Charging -> Full (test implemented) | |||
** Charging -> Discharging | |||
** Charging -> Not Charging | |||
** Charging -> Unknown | |||
** Full -> Charging | |||
** Full -> Discharging | |||
** Full -> Not Charging (test implemented) | |||
** Full -> Unknown | |||
** Not Charging -> Charging | |||
** Not Charging -> Discharging (test implemented) | |||
** Not Charging -> Full | |||
** Not Charging -> Unknown | |||
** Discharging -> Charging (test implemented) | |||
** Discharging -> Full | |||
** Discharging -> Not Charging (unrealistic scenario) | |||
** Discharging -> Unknown | |||
** Unknown -> Charging | |||
** Unknown -> Discharging | |||
** Unknown -> Full | |||
** Unknown -> Not Charging | |||
* Battery level change | |||
** Increase | |||
** Decrease (test implemented) | |||
=== mochitest-plain=== | === mochitest-plain=== | ||
==== | ==== Sanity Tests ==== | ||
* | * Verify default values when battery is not present | ||
---- | ---- | ||
<small>This page is based on the [[B2G/QA/WebAPI Test Plan/Template|WebAPI Test Plan Template]]</small> | <small>This page is based on the [[B2G/QA/WebAPI Test Plan/Template|WebAPI Test Plan Template]]</small> |