From ee9383454ef96bde938203a7aea4fe85031fccbf Mon Sep 17 00:00:00 2001 From: Gaia Pushbot Date: Wed, 14 Aug 2013 10:35:23 -0700 Subject: [PATCH] Bumping gaia.json for 1 gaia-central revision(s) ======== https://hg.mozilla.org/integration/gaia-central/rev/de813755d4a4 Author: Rick Waldron Desc: Bug 904220 - [Clock] Unit tests should not create actual alarm records r=ian-liu commit af2a65ee86cc861a5b76dd2aca05bb1c6dfcd95d Author: Mike Pennisi 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 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 Signed-off-by: Rick Waldron --- b2g/config/gaia.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b2g/config/gaia.json b/b2g/config/gaia.json index a8ded9227b4..0170b6a2b8d 100644 --- a/b2g/config/gaia.json +++ b/b2g/config/gaia.json @@ -1,4 +1,4 @@ { - "revision": "949d89b5cf56839db1375dbd9fb94683cd9f19f8", + "revision": "de813755d4a47369eb592fd38679dd9df31143c4", "repo_path": "/integration/gaia-central" }