Bug 904220 - [Clock] Unit tests should not create actual alarm records

https://bugzilla.mozilla.org/show_bug.cgi?id=904220

commit af2a65e
Author: Mike Pennisi <mike@mikepennisi.com>
Date:   Tue Aug 13 15:32:54 2013 -0400

    Fix bug in unit tests

    Loading the application HTML into the unit test environment breaks some
    assumptions made by the tests. Notably: elements appended to the DOM
    which have identical DOM IDs will no longer be returned by
    `document.getElementById`.

    A slightly cleaner approach might involve re-loading the `body` HTML
    before *every* test and referencing elements from the global `ClockView`
    object directly. This has two drawbacks:

    1. It will tend to slow down the test suite (especially as more tests
       are written)
    2. It will require further re-factoring of the application logic (which
       caches references to its DOM nodes when they are first referenced).

    For these reasons, we might prefer the simplistic fix outlined by this
    patch.

    Part of this fix requires consistently loading the `loadBodyHTML`
    utility function in `setup.js` (so that it is loaded when the test-agent
    runs the entire test suite *and* when it runs individual test files).

commit 0ca745a
Author: Rick Waldron <waldron.rick@gmail.com>
Date:   Mon Aug 12 18:46:31 2013 -0400

    Bug 904220 - [Clock] Unit tests should not create actual alarm records

    https://bugzilla.mozilla.org/show_bug.cgi?id=904220

    - Reorders require files alphabetically
    - Adds Mocks:
        - mock_alarm_list.js
        - mock_alarm_manager.js
        - mock_navigator_mozl10n.js
    - Update tests to use actual markup as fixture
    - Update tests to use the same mocha API as other tests
    - Use mocks instead of creating real alarm records
    - Use sinon sandbox features

    Signed-off-by: Rick Waldron <waldron.rick@gmail.com>