[Clock] Timer Sound should use same input type as Alarm Sound
Added unit tests for the FormButton module and addressed gnarf's feedback
- renamed FormButton#getInputValue to getValue
- updated documentation
- converted the isSelect function into a non-writable property
- removed the FormButton#onChange function
- renamed FormButton#refreshButtonLabel to refresh
- added a setValue method which calls reset and updated the init
methods in alarm_edit to use setValue
Addressed gnarf's and evhan55's comments on the unit tests.
- use querySelector instead of querySelectorAll for ids
- remove unused setup/teardown functions
- use assert.isTrue and assert.isFalse instead of equal
- removed a conditional on adding event listeners
- move an assertion into a stub function to avoid a setTimeout
Update form_button.js based on jugglinmike's feedback
- fix typos
- remove the template option in favor of tagName and className properties
- remove a superfluous stub
- add an else block to the select multiple conditional
Style the sound menu button to match the visual specification
return null instead of the empty string when no option is selected
Remove stale comments, test format value for null, remove border on the sound menu button
[Clock] Timer sound selection does not preview sound
Rename AlarmPreviewPlayer to AlarmPlayer.
Use the AlarmPlayer in timer.js and onring.js
Update comments and add an onInterrupt function
Address gnarf and rwaldron's feedback
- rename _audioElement property to audio
- use event emitter instead of an onInterupt property
- remove old code from onring.js
- rename alarmPreviewPlayer property to alarmPlayer
- rename ringtonePlayer property to player
Create an alarm preview object
Rename AlarmPreview to AlarmPreviewButton