Closed Bug 870654 Opened 11 years ago Closed 6 years ago

[System][Test] Unit test for sound manager.

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: alive, Unassigned)

References

Details

Sound manager is getting complex now, unit test needed before refactor it.
The basic tests I could figure out now:

(A) Hardware button/Virtual button input test:
    1. test window.dispatchEvent(new Event('volumeup'))
    2. test window.dispatchEvent(new Event('volumedown'))
    3. test window.dispatchEvent(new Event('mute')) introduced in bug 867912
    4. test window.dispatchEvent(new Event('unmute')) introduced in bug 867912
(B) Fake mozChromeEvent test
    5. Test with active channel = notification
    6. Test with active channel = bt_sco
    7. Test with fake bt earphone is asking to adjust volume
    8. Test with active channel = telephony
    9. Test with active channel = content
    10. Test with active channel = alarm
    11. Earphone in/out
(C) CE certification test introduced in bug 855792
(D) TBD.
Depends on: 867912, 855792
Assignee: alive → yurenju.mozilla
Blocks: 887626
Assignee: yurenju.mozilla → nobody
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.