From 0ddd00f1959c78ce37c14fef3c83401408fca3bf Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Tue, 25 Feb 2020 15:07:00 -0500 Subject: Issue #439 - Remove tests from toolkit/ --- .../marFileInUseStageFailurePartial_win.js | 67 ---------------------- 1 file changed, 67 deletions(-) delete mode 100644 toolkit/mozapps/update/tests/unit_base_updater/marFileInUseStageFailurePartial_win.js (limited to 'toolkit/mozapps/update/tests/unit_base_updater/marFileInUseStageFailurePartial_win.js') diff --git a/toolkit/mozapps/update/tests/unit_base_updater/marFileInUseStageFailurePartial_win.js b/toolkit/mozapps/update/tests/unit_base_updater/marFileInUseStageFailurePartial_win.js deleted file mode 100644 index 06d386ad6..000000000 --- a/toolkit/mozapps/update/tests/unit_base_updater/marFileInUseStageFailurePartial_win.js +++ /dev/null @@ -1,67 +0,0 @@ -/* Any copyright is dedicated to the Public Domain. - * http://creativecommons.org/publicdomain/zero/1.0/ - */ - -/* File in use partial MAR file staged patch apply failure test */ - -const STATE_AFTER_STAGE = IS_SERVICE_TEST ? STATE_APPLIED_SVC : STATE_APPLIED; -const STATE_AFTER_RUNUPDATE = IS_SERVICE_TEST ? STATE_PENDING_SVC : STATE_PENDING; - -function run_test() { - if (!setupTestCommon()) { - return; - } - gTestFiles = gTestFilesPartialSuccess; - gTestDirs = gTestDirsPartialSuccess; - setupUpdaterTest(FILE_PARTIAL_MAR, false); -} - -/** - * Called after the call to setupUpdaterTest finishes. - */ -function setupUpdaterTestFinished() { - runHelperFileInUse(gTestFiles[11].relPathDir + gTestFiles[11].fileName, - false); -} - -/** - * Called after the call to waitForHelperSleep finishes. - */ -function waitForHelperSleepFinished() { - stageUpdate(true); -} - -/** - * Called after the call to stageUpdate finishes. - */ -function stageUpdateFinished() { - checkPostUpdateRunningFile(false); - checkFilesAfterUpdateSuccess(getStageDirFile, true); - checkUpdateLogContents(LOG_PARTIAL_SUCCESS, true); - // Switch the application to the staged application that was updated. - runUpdate(STATE_AFTER_RUNUPDATE, true, 1, true); -} - -/** - * Called after the call to runUpdate finishes. - */ -function runUpdateFinished() { - waitForHelperExit(); -} - -/** - * Called after the call to waitForHelperExit finishes. - */ -function waitForHelperExitFinished() { - standardInit(); - Assert.equal(gUpdateManager.updateCount, 1, - "the update manager updateCount attribute" + MSG_SHOULD_EQUAL); - Assert.equal(gUpdateManager.getUpdateAt(0).state, STATE_AFTER_RUNUPDATE, - "the update state" + MSG_SHOULD_EQUAL); - checkPostUpdateRunningFile(false); - setTestFilesAndDirsForFailure(); - checkFilesAfterUpdateFailure(getApplyDirFile); - checkUpdateLogContains(ERR_RENAME_FILE); - checkUpdateLogContains(ERR_MOVE_DESTDIR_7 + "\n" + CALL_QUIT); - checkCallbackLog(); -} -- cgit v1.2.3