Bug 904830 - Depend on marionette js helper in gaia a=test-only
Merge pull request #11515 from gaye/bug-904830

Bug 904830 - Depend on marionette js helper in gaia a=test-only
Bug 904220 - [Clock] Unit tests should not create actual alarm records

commit af2a65ee86cc861a5b76dd2aca05bb1c6dfcd95d
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 0ca745a11747ec7c27f333ae0bf675c7da883c6c
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>

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>