michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/publicdomain/zero/1.0/ michael@0: */ michael@0: michael@0: /* Bootstrap the tests using the service by installing our own version of the service */ michael@0: michael@0: function run_test() { michael@0: if (!shouldRunServiceTest(true)) { michael@0: return; michael@0: } michael@0: michael@0: setupTestCommon(); michael@0: // We don't actually care if the MAR has any data, we only care about the michael@0: // application return code and update.status result. michael@0: gTestFiles = gTestFilesCommon; michael@0: gTestDirs = []; michael@0: setupUpdaterTest(FILE_COMPLETE_MAR, false, false); michael@0: michael@0: setupAppFilesAsync(); michael@0: } michael@0: michael@0: function setupAppFilesFinished() { michael@0: runUpdateUsingService(STATE_PENDING_SVC, STATE_SUCCEEDED, false); michael@0: } michael@0: michael@0: function checkUpdateFinished() { michael@0: checkFilesAfterUpdateSuccess(); michael@0: michael@0: // We need to check the service log even though this is a bootstrap michael@0: // because the app bin could be in use by this test by the time the next michael@0: // test runs. michael@0: checkCallbackServiceLog(); michael@0: }