From d92b0d25797257416f78bf3fdd89c0110e25a218 Mon Sep 17 00:00:00 2001 From: Robert Strong Date: Tue, 1 Jul 2014 12:53:25 -0700 Subject: [PATCH] Bug 1032559 - Fix for mochitest-chrome slow download mar tests fail when the app.update.download.backgroundInterval pref is 0. r=spohl --- ...ror_patchApplyFailure_partial_complete.xul | 8 +++- ..._error_patchApplyFailure_verify_failed.xul | 9 +++- .../mozapps/update/tests/chrome/update.sjs | 22 ++++++++-- toolkit/mozapps/update/tests/chrome/utils.js | 41 ++++++++++++++++++- 4 files changed, 71 insertions(+), 9 deletions(-) diff --git a/toolkit/mozapps/update/tests/chrome/test_0083_error_patchApplyFailure_partial_complete.xul b/toolkit/mozapps/update/tests/chrome/test_0083_error_patchApplyFailure_partial_complete.xul index 365610e9de5..a655fdec3f7 100644 --- a/toolkit/mozapps/update/tests/chrome/test_0083_error_patchApplyFailure_partial_complete.xul +++ b/toolkit/mozapps/update/tests/chrome/test_0083_error_patchApplyFailure_partial_complete.xul @@ -23,15 +23,19 @@ const TESTS = [ { pageid: PAGEID_ERROR_PATCHING, buttonClick: "next" }, { - pageid: PAGEID_DOWNLOADING + pageid: PAGEID_DOWNLOADING, + extraStartFunction: createContinueFile }, { pageid: PAGEID_FINISHED, - buttonClick: "extra1" + buttonClick: "extra1", + extraStartFunction: removeContinueFile } ]; function runTest() { debugDump("entering"); + removeContinueFile(); + // Specify the url to update.sjs with a slowDownloadMar param so the ui can // load before the download completes. let slowDownloadURL = URL_HTTP_UPDATE_XML + "?slowDownloadMar=1"; diff --git a/toolkit/mozapps/update/tests/chrome/test_0084_error_patchApplyFailure_verify_failed.xul b/toolkit/mozapps/update/tests/chrome/test_0084_error_patchApplyFailure_verify_failed.xul index 2b9f3826c3b..e05ea153809 100644 --- a/toolkit/mozapps/update/tests/chrome/test_0084_error_patchApplyFailure_verify_failed.xul +++ b/toolkit/mozapps/update/tests/chrome/test_0084_error_patchApplyFailure_verify_failed.xul @@ -16,6 +16,7 @@