Power Management
Jump to navigation
Jump to search
B2G Power Management API Test Plan
Summary
Lead | Geo Mealer (irc: geo) |
API Description | Turn on/off screen, cpu, device power, etc. Listen and inspect resource lock events. |
API Developer | Kan-Ru Chen (irc: kanru) |
API Project Page | Power Management API |
API Tracking Bugs | bug 708964 |
API Status | Ready |
Scope
This test plan covers functional testing of the Power Management API on B2G.
Strategy
API
Related Prefs / Permissions
Require power permission to access methods and attributes on navigator.mozPower.
nsIDOMPowerManager
Methods
- void powerOff()
- void reboot()
- void restart()
- void powerOff()
- void addWakeLockListener(WakeLockListener listener)
- void removeWakeLockListener(WakeLockListener listener)
- DOMString getWakeLockState(DOMString topic)
Attributes
- boolean screenEnabled
- boolean screenBrightness
- boolean cpuSleepAllowed
Tests
mochitest-plain
Test Type 1
- Test 1
- Test 2
Test Type 2
- Test 1
- Test 2
This page is based on the WebAPI Test Plan Template