Power Management: Difference between revisions

Jump to navigation Jump to search
 
Line 66: Line 66:
Some of these can't be tested with mochitests (powerOff, reboot and restart). There already exist some tests for wakelocks.
Some of these can't be tested with mochitests (powerOff, reboot and restart). There already exist some tests for wakelocks.


=== Properties ===
==== Properties ====
Setting the properties and reading them back to confirm the change was indeed set.
Setting the properties and reading them back to confirm the change was indeed set.
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.
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.
14

edits

Navigation menu