Power Management: Difference between revisions

Line 63: Line 63:
== Tests ==
== Tests ==
=== mochitest-plain===
=== mochitest-plain===
==== Test Type 1 ====
==== Methods ====
* Test 1
Some of these can't be tested with mochitests (powerOff, reboot and restart). There already exist some tests for wakelocks.
* Test 2


==== Test Type 2 ====
=== Properties ===
* Test 1
Setting the properties and reading them back to confirm the change was indeed set.
* Test 2
screenBrightness is special since setting it a value does not guarantee that'll be the value you get back due to varying levels of support for screen backlight levels and general float precision. Thus, we use a fuzzy equals which basically compares plus-or-minus some small epsilon.


----
----
<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>
14

edits