Bug 1555913 - Remove app update mochitest-chrome tests. r=bytesized
authorRobert Strong <robert.bugzilla@gmail.com>
Thu, 06 Jun 2019 09:29:55 +0000
changeset 477686 a5b867756f0142d7e918817c731811681e1ff455
parent 477685 cc98e987737a2e7f2c5be2748a79e5d7e35088eb
child 477687 62e0ef6e50dd017cfa6dc2a4772b481520b3c74d
push id113372
push userdvarga@mozilla.com
push dateFri, 07 Jun 2019 10:07:35 +0000
treeherdermozilla-inbound@9909cd207cc2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbytesized
bugs1555913
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1555913 - Remove app update mochitest-chrome tests. r=bytesized The UI they test is no longer in use and the UI will be removed soon. Differential Revision: https://phabricator.services.mozilla.com/D33257
toolkit/mozapps/update/tests/chrome/chrome.ini
toolkit/mozapps/update/tests/chrome/testConstants.js
toolkit/mozapps/update/tests/chrome/test_0010_background_basic.xul
toolkit/mozapps/update/tests/chrome/test_0011_check_basic.xul
toolkit/mozapps/update/tests/chrome/test_0012_check_basic_staging.xul
toolkit/mozapps/update/tests/chrome/test_0013_check_no_updates.xul
toolkit/mozapps/update/tests/chrome/test_0014_check_error_xml_malformed.xul
toolkit/mozapps/update/tests/chrome/test_0061_check_verifyFailPartial_noComplete.xul
toolkit/mozapps/update/tests/chrome/test_0062_check_verifyFailComplete_noPartial.xul
toolkit/mozapps/update/tests/chrome/test_0063_check_verifyFailPartialComplete.xul
toolkit/mozapps/update/tests/chrome/test_0064_check_verifyFailPartial_successComplete.xul
toolkit/mozapps/update/tests/chrome/test_0071_notify_verifyFailPartial_noComplete.xul
toolkit/mozapps/update/tests/chrome/test_0072_notify_verifyFailComplete_noPartial.xul
toolkit/mozapps/update/tests/chrome/test_0073_notify_verifyFailPartialComplete.xul
toolkit/mozapps/update/tests/chrome/test_0074_notify_verifyFailPartial_successComplete.xul
toolkit/mozapps/update/tests/chrome/test_0081_error_patchApplyFailure_partial_only.xul
toolkit/mozapps/update/tests/chrome/test_0082_error_patchApplyFailure_complete_only.xul
toolkit/mozapps/update/tests/chrome/test_0083_error_patchApplyFailure_partial_complete.xul
toolkit/mozapps/update/tests/chrome/test_0084_error_patchApplyFailure_verify_failed.xul
toolkit/mozapps/update/tests/chrome/test_0085_error_patchApplyFailure_partial_complete_staging.xul
toolkit/mozapps/update/tests/chrome/test_0092_finishedBackground.xul
toolkit/mozapps/update/tests/chrome/test_0093_restartNotification.xul
toolkit/mozapps/update/tests/chrome/test_0094_restartNotification_remote.xul
toolkit/mozapps/update/tests/chrome/test_0095_restartNotification_remoteInvalidNumber.xul
toolkit/mozapps/update/tests/chrome/test_0096_restartNotification_stagedBackground.xul
toolkit/mozapps/update/tests/chrome/test_0097_restartNotification_stagedServiceBackground.xul
toolkit/mozapps/update/tests/chrome/test_0101_background_restartNotification.xul
toolkit/mozapps/update/tests/chrome/test_0102_background_restartNotification_staging.xul
toolkit/mozapps/update/tests/chrome/test_0103_background_restartNotification_stagingService.xul
toolkit/mozapps/update/tests/chrome/test_0151_notify_backgroundCheckError.xul
toolkit/mozapps/update/tests/chrome/test_0152_notify_backgroundCheckOfflineRetry.xul
toolkit/mozapps/update/tests/chrome/test_0161_check_unsupported.xul
toolkit/mozapps/update/tests/chrome/test_0162_notify_unsupported.xul
toolkit/mozapps/update/tests/chrome/test_0171_check_noPerms_manual.xul
toolkit/mozapps/update/tests/chrome/test_0172_notify_noPerms_manual.xul
toolkit/mozapps/update/tests/chrome/update.sjs
toolkit/mozapps/update/tests/chrome/utils.js
toolkit/mozapps/update/tests/moz.build
toolkit/mozapps/update/updater/updater-xpcshell/Makefile.in
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/chrome.ini
+++ /dev/null
@@ -1,58 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-[DEFAULT]
-tags = appupdate
-support-files =
-  ../data/shared.js
-  ../data/sharedUpdateXML.js
-  testConstants.js
-  update.sjs
-  utils.js
-prefs =
-  app.update.BITS.enabled=false
-
-# mochitest-chrome tests must start with "test_" and are executed in sorted
-# order and not in the order specified in the manifest.
-[test_0010_background_basic.xul]
-[test_0011_check_basic.xul]
-[test_0012_check_basic_staging.xul]
-[test_0013_check_no_updates.xul]
-[test_0014_check_error_xml_malformed.xul]
-[test_0061_check_verifyFailPartial_noComplete.xul]
-[test_0062_check_verifyFailComplete_noPartial.xul]
-[test_0063_check_verifyFailPartialComplete.xul]
-[test_0064_check_verifyFailPartial_successComplete.xul]
-[test_0071_notify_verifyFailPartial_noComplete.xul]
-[test_0072_notify_verifyFailComplete_noPartial.xul]
-[test_0073_notify_verifyFailPartialComplete.xul]
-[test_0074_notify_verifyFailPartial_successComplete.xul]
-[test_0081_error_patchApplyFailure_partial_only.xul]
-[test_0082_error_patchApplyFailure_complete_only.xul]
-[test_0083_error_patchApplyFailure_partial_complete.xul]
-[test_0084_error_patchApplyFailure_verify_failed.xul]
-[test_0085_error_patchApplyFailure_partial_complete_staging.xul]
-[test_0092_finishedBackground.xul]
-[test_0093_restartNotification.xul]
-[test_0094_restartNotification_remote.xul]
-[test_0095_restartNotification_remoteInvalidNumber.xul]
-[test_0096_restartNotification_stagedBackground.xul]
-[test_0097_restartNotification_stagedServiceBackground.xul]
-skip-if = os != 'win'
-reason = only Windows has the maintenance service.
-[test_0101_background_restartNotification.xul]
-[test_0102_background_restartNotification_staging.xul]
-[test_0103_background_restartNotification_stagingService.xul]
-skip-if = os != 'win'
-reason = only Windows has the maintenance service.
-[test_0151_notify_backgroundCheckError.xul]
-[test_0152_notify_backgroundCheckOfflineRetry.xul]
-[test_0161_check_unsupported.xul]
-[test_0162_notify_unsupported.xul]
-[test_0171_check_noPerms_manual.xul]
-skip-if = os != 'win'
-reason = test must be able to prevent file deletion.
-[test_0172_notify_noPerms_manual.xul]
-skip-if = os != 'win'
-reason = test must be able to prevent file deletion.
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/testConstants.js
+++ /dev/null
@@ -1,4 +0,0 @@
-const REL_PATH_DATA = "chrome/toolkit/mozapps/update/tests/chrome/";
-const URL_HOST = "http://example.com";
-const URL_PATH_UPDATE_XML = "/" + REL_PATH_DATA + "update.sjs";
-const URL_HTTP_UPDATE_SJS = URL_HOST + URL_PATH_UPDATE_XML;
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0010_background_basic.xul
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: basic, download, and finished"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_FOUND_BASIC,
-  buttonClick: "next"
-}, {
-  pageid: PAGEID_DOWNLOADING
-}, {
-  pageid: PAGEID_FINISHED,
-  buttonClick: "extra1"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  setAppUpdateAutoSync(false);
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1" + getVersionParams();
-  setUpdateURL(url);
-
-  gAUS.checkForBackgroundUpdates();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0011_check_basic.xul
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: update check, basic, download, and finished"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_CHECKING
-}, {
-  pageid: PAGEID_FOUND_BASIC,
-  buttonClick: "next"
-}, {
-  pageid: PAGEID_DOWNLOADING
-}, {
-  pageid: PAGEID_FINISHED,
-  buttonClick: "extra1"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1" + getVersionParams();
-  setUpdateURL(url);
-
-  gUP.checkForUpdates();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0012_check_basic_staging.xul
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: update check, basic, download with staging, and finished"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_CHECKING
-}, {
-  pageid: PAGEID_FOUND_BASIC,
-  buttonClick: "next"
-}, {
-  pageid: PAGEID_DOWNLOADING
-}, {
-  pageid: PAGEID_FINISHED,
-  buttonClick: "extra1"
-} ];
-
-gUseTestUpdater = true;
-
-function runTest() {
-  debugDump("entering");
-
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_STAGING_ENABLED, true);
-
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1" + getVersionParams();
-  setUpdateURL(url);
-
-  gUP.checkForUpdates();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0013_check_no_updates.xul
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: update check and no updates found"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_CHECKING
-}, {
-  pageid: PAGEID_NO_UPDATES_FOUND,
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let url = URL_HTTP_UPDATE_XML + "?noUpdates=1";
-  setUpdateURL(url);
-
-  gUP.checkForUpdates();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0014_check_error_xml_malformed.xul
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: update check and error (xml malformed)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_CHECKING
-}, {
-  pageid: PAGEID_ERRORS,
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let url = URL_HTTP_UPDATE_XML + "?xmlMalformed=1";
-  setUpdateURL(url);
-
-  gUP.checkForUpdates();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0061_check_verifyFailPartial_noComplete.xul
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: update check, basic, download, and errors (partial patch with an invalid size)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_CHECKING
-}, {
-  pageid: PAGEID_FOUND_BASIC,
-  buttonClick: "next"
-}, {
-  pageid: PAGEID_DOWNLOADING
-}, {
-  pageid: PAGEID_ERRORS,
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1&partialPatchOnly=1" +
-            "&invalidPartialSize=1" + getVersionParams();
-  setUpdateURL(url);
-
-  gUP.checkForUpdates();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0062_check_verifyFailComplete_noPartial.xul
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: update check, basic, download, and errors (complete patch with an invalid size)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_CHECKING
-}, {
-  pageid: PAGEID_FOUND_BASIC,
-  buttonClick: "next"
-}, {
-  pageid: PAGEID_DOWNLOADING
-}, {
-  pageid: PAGEID_ERRORS,
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1&completePatchOnly=1" +
-            "&invalidCompleteSize=1" + getVersionParams();
-  setUpdateURL(url);
-
-  gUP.checkForUpdates();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0063_check_verifyFailPartialComplete.xul
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: update check, basic, download, and errors (partial and complete patches with invalid sizes)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_CHECKING
-}, {
-  pageid: PAGEID_FOUND_BASIC,
-  buttonClick: "next"
-}, {
-  pageid: PAGEID_DOWNLOADING
-}, {
-  pageid: PAGEID_ERRORS,
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1&invalidPartialSize=1" +
-            "&invalidCompleteSize=1" + getVersionParams();
-  setUpdateURL(url);
-
-  gUP.checkForUpdates();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0064_check_verifyFailPartial_successComplete.xul
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: update check, basic, download, and finished (partial patch with an invalid size and successful complete patch)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_CHECKING
-}, {
-  pageid: PAGEID_FOUND_BASIC,
-  buttonClick: "next"
-}, {
-  pageid: PAGEID_DOWNLOADING
-}, {
-  pageid: PAGEID_FINISHED,
-  buttonClick: "extra1"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1&invalidPartialSize=1" +
-            getVersionParams();
-  setUpdateURL(url);
-
-  gUP.checkForUpdates();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0071_notify_verifyFailPartial_noComplete.xul
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: errors (partial patch with an invalid size)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_ERRORS,
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let patchProps = {type: "partial",
-                    size: "1234",
-                    state: STATE_DOWNLOADING};
-  let patches = getLocalPatchString(patchProps);
-  let updates = getLocalUpdateString({}, patches);
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-  writeStatusFile(STATE_DOWNLOADING);
-  reloadUpdateManagerData();
-
-  testPostUpdateProcessing();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0072_notify_verifyFailComplete_noPartial.xul
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: errors (complete patch with an invalid size)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_ERRORS,
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let patchProps = {size: "1234",
-                    state: STATE_DOWNLOADING};
-  let patches = getLocalPatchString(patchProps);
-  let updates = getLocalUpdateString({}, patches);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(""), false);
-  writeStatusFile(STATE_DOWNLOADING);
-  reloadUpdateManagerData();
-
-  testPostUpdateProcessing();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0073_notify_verifyFailPartialComplete.xul
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: errors (partial and complete patches with invalid sizes)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_ERRORS,
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let patchProps = {type: "partial",
-                    size: "1234",
-                    state: STATE_DOWNLOADING};
-  let patches = getLocalPatchString(patchProps);
-  patchProps = {size: "1234",
-                selected: "false",
-                state: null};
-  patches += getLocalPatchString(patchProps);
-  let updateProps = {isCompleteUpdate: "false"};
-  let updates = getLocalUpdateString(updateProps, patches);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(""), false);
-  writeStatusFile(STATE_DOWNLOADING);
-  reloadUpdateManagerData();
-
-  testPostUpdateProcessing();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0074_notify_verifyFailPartial_successComplete.xul
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: finishedBackground (partial patch with an invalid size and successful complete patch)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_FINISHED_BKGRD,
-  buttonClick: "extra1"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let patchProps = {type: "partial",
-                    size: "1234",
-                    state: STATE_DOWNLOADING};
-  let patches = getLocalPatchString(patchProps);
-  patchProps = {selected: "false",
-                state: null};
-  patches += getLocalPatchString(patchProps);
-  let updateProps = {isCompleteUpdate: "false"};
-  let updates = getLocalUpdateString(updateProps, patches);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(""), false);
-  writeStatusFile(STATE_DOWNLOADING);
-  reloadUpdateManagerData();
-
-  testPostUpdateProcessing();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0081_error_patchApplyFailure_partial_only.xul
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: errors (partial only patch apply failure)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_ERRORS,
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let patchProps = {type: "partial",
-                    state: STATE_PENDING};
-  let patches = getLocalPatchString(patchProps);
-  let updateProps = {isCompleteUpdate: "false"};
-  let updates = getLocalUpdateString(updateProps, patches);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(""), false);
-  writeStatusFile(STATE_FAILED_CRC_ERROR);
-  reloadUpdateManagerData();
-
-  testPostUpdateProcessing();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0082_error_patchApplyFailure_complete_only.xul
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: errors (complete only patch apply failure)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_ERRORS,
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let patchProps = {state: STATE_PENDING};
-  let patches = getLocalPatchString(patchProps);
-  let updates = getLocalUpdateString({}, patches);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(""), false);
-  writeStatusFile(STATE_FAILED_CRC_ERROR);
-  reloadUpdateManagerData();
-
-  testPostUpdateProcessing();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0083_error_patchApplyFailure_partial_complete.xul
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: error patching, download, and finished (partial failed and download complete)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_ERROR_PATCHING,
-  buttonClick: "next"
-}, {
-  pageid: PAGEID_DOWNLOADING,
-  extraStartFunction: createContinueFile
-}, {
-  pageid: PAGEID_FINISHED,
-  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";
-  let patchProps = {type: "partial",
-                    state: STATE_PENDING};
-  let patches = getLocalPatchString(patchProps);
-  patchProps = {url: slowDownloadURL,
-                selected: "false",
-                state: null};
-  patches += getLocalPatchString(patchProps);
-  let updateProps = {isCompleteUpdate: "false"};
-  let updates = getLocalUpdateString(updateProps, patches);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(""), false);
-  writeStatusFile(STATE_FAILED_CRC_ERROR);
-  reloadUpdateManagerData();
-
-  testPostUpdateProcessing();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0084_error_patchApplyFailure_verify_failed.xul
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: error patching, download, and errors (partial failed and download complete verification failure)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_ERROR_PATCHING,
-  buttonClick: "next"
-}, {
-  pageid: PAGEID_DOWNLOADING,
-  extraStartFunction: createContinueFile
-}, {
-  pageid: PAGEID_ERRORS,
-  buttonClick: "finish",
-  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";
-  let patchProps = {type: "partial",
-                    state: STATE_PENDING};
-  let patches = getLocalPatchString(patchProps);
-  patchProps = {url: slowDownloadURL,
-                size: "1234",
-                selected: "false",
-                state: null};
-  patches += getLocalPatchString(patchProps);
-  let updateProps = {isCompleteUpdate: "false"};
-  let updates = getLocalUpdateString(updateProps, patches);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(""), false);
-  writeStatusFile(STATE_FAILED_CRC_ERROR);
-  reloadUpdateManagerData();
-
-  testPostUpdateProcessing();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0085_error_patchApplyFailure_partial_complete_staging.xul
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: error patching, download with staging, and finished (partial failed and download complete), with fast MAR download"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-// This test forces the download to complete before the "next" button on the
-// errorpatching wizard page is clicked. This is done by creating the continue
-// file when the wizard loads to start the download, then clicking the "next"
-// button in the download's onStopRequest event listener.
-
-const testDownloadListener = {
-  onStartRequest(aRequest) { },
-
-  onProgress(aRequest, aContext, aProgress, aMaxProgress) { },
-
-  onStatus(aRequest, aContext, aStatus, aStatusText) { },
-
-  onStopRequest(aRequest, aStatus) {
-    debugDump("clicking errorpatching page next button");
-    gDocElem.getButton("next").click();
-    gAUS.removeDownloadListener(this);
-  },
-
-  QueryInterface: ChromeUtils.generateQI([Ci.nsIRequestObserver,
-                                          Ci.nsIProgressEventSink])
-};
-
-let TESTS = [ {
-  pageid: PAGEID_ERROR_PATCHING,
-  extraCheckFunction: createContinueFile
-}, {
-  pageid: PAGEID_DOWNLOADING
-}, {
-  pageid: PAGEID_FINISHED,
-  buttonClick: "extra1",
-  extraStartFunction: removeContinueFile
-} ];
-
-gUseTestUpdater = true;
-
-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";
-  let patchProps = {type: "partial",
-                    state: STATE_PENDING};
-  let patches = getLocalPatchString(patchProps);
-  patchProps = {url: slowDownloadURL,
-                selected: "false",
-                state: null};
-  patches += getLocalPatchString(patchProps);
-  let updateProps = {isCompleteUpdate: "false"};
-  let updates = getLocalUpdateString(updateProps, patches);
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-  writeStatusFile(STATE_FAILED_READ_ERROR);
-
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_STAGING_ENABLED, true);
-
-  reloadUpdateManagerData();
-
-  testPostUpdateProcessing();
-
-  gAUS.addDownloadListener(testDownloadListener);
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0092_finishedBackground.xul
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: finished background"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_FINISHED_BKGRD,
-  buttonClick: "extra1"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let patchProps = {state: STATE_PENDING};
-  let patches = getLocalPatchString(patchProps);
-  let updates = getLocalUpdateString({}, patches);
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-  writeStatusFile(STATE_SUCCEEDED);
-
-  reloadUpdateManagerData();
-
-  is(gUpdateManager.activeUpdate.state, "pending",
-     "The active update should have a state of pending");
-
-  gUP.showUpdateDownloaded(gUpdateManager.activeUpdate);
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0093_restartNotification.xul
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: restart notification pref promptWaitTime"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_FINISHED_BKGRD,
-  buttonClick: "extra1"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let patchProps = {state: STATE_PENDING};
-  let patches = getLocalPatchString(patchProps);
-  let updates = getLocalUpdateString({}, patches);
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-  writeStatusFile(STATE_SUCCEEDED);
-  
-  Services.prefs.setIntPref(PREF_APP_UPDATE_PROMPTWAITTIME, 1);
-    
-  reloadUpdateManagerData();
-
-  is(gUpdateManager.activeUpdate.state, STATE_PENDING,
-     "The active update should have a state of " + STATE_PENDING);
-
-  ok(gUpdateManager.activeUpdate.promptWaitTime == 1, "Checking that the " +
-     "update's promptWaitTime attribute value was set from the " +
-     PREF_APP_UPDATE_PROMPTWAITTIME + " preference");
-    
-  gUP.showUpdateDownloaded(gUpdateManager.activeUpdate, true);
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0094_restartNotification_remote.xul
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: restart notification xml promptWaitTime"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_FINISHED_BKGRD,
-  buttonClick: "extra1"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let patchProps = {state: STATE_PENDING};
-  let patches = getLocalPatchString(patchProps);
-  let updateProps = {promptWaitTime: "1"};
-  let updates = getLocalUpdateString(updateProps, patches);
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-  writeStatusFile(STATE_SUCCEEDED);
-    
-  reloadUpdateManagerData();
-
-  is(gUpdateManager.activeUpdate.state, STATE_PENDING,
-     "The active update should have a state of " + STATE_PENDING);
-
-  ok(gUpdateManager.activeUpdate.promptWaitTime == 1, "Checking that the " +
-     "update's promptWaitTime attribute value was set by the XML");
-    
-  gUP.showUpdateDownloaded(gUpdateManager.activeUpdate, true);
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0095_restartNotification_remoteInvalidNumber.xul
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: restart notification xml promptWaitTime with invalid number"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_FINISHED_BKGRD,
-  buttonClick: "extra1"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let patchProps = {state: STATE_PENDING};
-  let patches = getLocalPatchString(patchProps);
-  let updateProps = {promptWaitTime: "invalidNumber"};
-  let updates = getLocalUpdateString(updateProps, patches);
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-  writeStatusFile(STATE_SUCCEEDED);
-
-  Services.prefs.setIntPref(PREF_APP_UPDATE_PROMPTWAITTIME, 1);
-    
-  reloadUpdateManagerData();
-
-  is(gUpdateManager.activeUpdate.state, STATE_PENDING,
-     "The active update should have a state of " + STATE_PENDING);
-
-  ok(gUpdateManager.activeUpdate.promptWaitTime == 1, "Checking that the " +
-     "update's promptWaitTime attribute value was set from the " +
-     PREF_APP_UPDATE_PROMPTWAITTIME + " preference");
-    
-  gUP.showUpdateDownloaded(gUpdateManager.activeUpdate, true);
-
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0096_restartNotification_stagedBackground.xul
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: restart notification staged w/o service"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_FINISHED_BKGRD,
-  buttonClick: "extra1"
-} ];
-
-gUseTestUpdater = true;
-
-function runTest() {
-  debugDump("entering");
-
-  let patchProps = {state: STATE_APPLIED};
-  let patches = getLocalPatchString(patchProps);
-  let updates = getLocalUpdateString({}, patches);
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-  writeStatusFile(STATE_APPLIED);
-
-  Services.prefs.setIntPref(PREF_APP_UPDATE_PROMPTWAITTIME, 1);
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_STAGING_ENABLED, true);
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_SERVICE_ENABLED, false);
-
-  reloadUpdateManagerData();
-
-  is(gUpdateManager.activeUpdate.state, STATE_APPLIED,
-     "The active update should have a state of " + STATE_APPLIED);
-
-  ok(gUpdateManager.activeUpdate.promptWaitTime == 1, "Checking that the " +
-     "update's promptWaitTime attribute value was set from the " +
-     PREF_APP_UPDATE_PROMPTWAITTIME + " preference");
-
-  gUpdateManager.refreshUpdateStatus();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0097_restartNotification_stagedServiceBackground.xul
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: restart notification staged with service"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_FINISHED_BKGRD,
-  buttonClick: "extra1"
-} ];
-
-gUseTestUpdater = true;
-
-function runTest() {
-  debugDump("entering");
-
-  let patchProps = {state: STATE_APPLIED_SVC};
-  let patches = getLocalPatchString(patchProps);
-  let updates = getLocalUpdateString({}, patches);
-  writeUpdatesToXMLFile(getLocalUpdatesXMLString(updates), true);
-  writeStatusFile(STATE_APPLIED_SVC);
-
-  Services.prefs.setIntPref(PREF_APP_UPDATE_PROMPTWAITTIME, 1);
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_STAGING_ENABLED, true);
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_SERVICE_ENABLED, true);
-
-  reloadUpdateManagerData();
-
-  is(gUpdateManager.activeUpdate.state, STATE_APPLIED_SVC,
-     "The active update should have a state of " + STATE_APPLIED_SVC);
-
-  ok(gUpdateManager.activeUpdate.promptWaitTime == 1, "Checking that the " +
-     "update's promptWaitTime attribute value was set from the " +
-     PREF_APP_UPDATE_PROMPTWAITTIME + " preference");
-
-  gUpdateManager.refreshUpdateStatus();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0101_background_restartNotification.xul
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: background finish with a background download"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_FINISHED_BKGRD,
-  buttonClick: "extra1"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  Services.prefs.setIntPref(PREF_APP_UPDATE_PROMPTWAITTIME, 1);
-
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1" + getVersionParams();
-  setUpdateURL(url);
-
-  gAUS.notify(null);
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0102_background_restartNotification_staging.xul
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: background finish with a background download and update staging"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_FINISHED_BKGRD,
-  buttonClick: "extra1"
-} ];
-
-gUseTestUpdater = true;
-
-function runTest() {
-  debugDump("entering");
-
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_STAGING_ENABLED, true);
-  Services.prefs.setIntPref(PREF_APP_UPDATE_PROMPTWAITTIME, 1);
-
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1" + getVersionParams();
-  setUpdateURL(url);
-
-  gAUS.notify(null);
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0103_background_restartNotification_stagingService.xul
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: background finish with a background download and update staging and servicefs"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_FINISHED_BKGRD,
-  buttonClick: "extra1"
-} ];
-
-gUseTestUpdater = true;
-
-function runTest() {
-  debugDump("entering");
-
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_STAGING_ENABLED, true);
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_SERVICE_ENABLED, true);
-  Services.prefs.setIntPref(PREF_APP_UPDATE_PROMPTWAITTIME, 1);
-
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1" + getVersionParams();
-  setUpdateURL(url);
-
-  gAUS.notify(null);
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0151_notify_backgroundCheckError.xul
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Test notification when multiple background check errors occur (bug 595455)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_ERROR_EXTRA,
-  extraDelayedCheckFunction: checkErrorExtraPage,
-  shouldBeHidden: false,
-  displayedTextElem: "bgErrorLabel",
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let url = URL_HTTP_UPDATE_XML + "?xmlMalformed=1";
-  setUpdateURL(url);
-
-  errorsPrefObserver.init(PREF_APP_UPDATE_BACKGROUNDERRORS,
-                          PREF_APP_UPDATE_BACKGROUNDMAXERRORS);
-
-  gAUS.notify(null);
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0152_notify_backgroundCheckOfflineRetry.xul
+++ /dev/null
@@ -1,95 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Test that an update check that fails due to being offline is performed after going online"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_FOUND_BASIC,
-  buttonClick: "extra1"
-} ];
-
-const NETWORK_ERROR_OFFLINE = 111;
-var gProxyPrefValue;
-
-function runTest() {
-  debugDump("entering");
-
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1" + getVersionParams();
-  setUpdateURL(url);
-
-  setAppUpdateAutoSync(false);
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_DISABLEDFORTESTING, false);
-
-  Services.io.offline = true;
-  gProxyPrefValue = Services.prefs.getIntPref("network.proxy.type");
-  Services.prefs.setIntPref("network.proxy.type", 0);
-
-  gUpdateChecker.checkForUpdates(updateCheckListener, true);
-}
-
-function resetOffline() {
-  Services.prefs.setIntPref("network.proxy.type", gProxyPrefValue);
-  Services.io.offline = false;
-}
-
-/* Update check listener */
-const updateCheckListener = {
-  onProgress: function UCL_onProgress(aRequest, aPosition, aTotalSize) {
-  },
-
-  onCheckComplete: function UCL_onCheckComplete(aRequest, aUpdates, aUpdateCount) {
-    let status = aRequest.status;
-    if (status == 0) {
-      status = aRequest.channel.QueryInterface(Ci.nsIRequest).status;
-    }
-    debugDump("url = " + aRequest.channel.originalURI.spec + ", " +
-              "request.status = " + status + ", " +
-              "updateCount = " + aUpdateCount);
-    ok(false, "Unexpected updateCheckListener::onCheckComplete called");
-  },
-
-  onError: function UCL_onError(aRequest, aUpdate) {
-    let status = aRequest.status;
-    if (status == 0) {
-      status = aRequest.channel.QueryInterface(Ci.nsIRequest).status;
-    }
-    is(status, Cr.NS_ERROR_OFFLINE,
-       "checking the request status value");
-    is(aUpdate.errorCode, NETWORK_ERROR_OFFLINE,
-       "checking the update error code");
-    debugDump("url = " + aRequest.channel.originalURI.spec + ", " +
-              "request.status = " + status + ", " +
-              "update.statusText = " +
-              (aUpdate.statusText ? aUpdate.statusText : "null"));
-    gAUS.onError(aRequest, aUpdate);
-    // Use a timeout to allow the XHR to complete
-    SimpleTest.executeSoon(resetOffline);
-  },
-
-  QueryInterface: ChromeUtils.generateQI([Ci.nsIUpdateCheckListener])
-};
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0161_check_unsupported.xul
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Test checking for updates when system is no longer supported (bug 843497)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_CHECKING
-}, {
-  pageid: PAGEID_UNSUPPORTED,
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  // When checking manually the unsupported page should still be shown even if
-  // it was shown previously.
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_NOTIFIEDUNSUPPORTED, true);
-
-  let url = URL_HTTP_UPDATE_XML + "?unsupported=1";
-  setUpdateURL(url);
-
-  gUP.checkForUpdates();
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0162_notify_unsupported.xul
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Test notification of updates when system is no longer supported (bug 843497)"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_UNSUPPORTED,
-  buttonClick: "finish"
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let url = URL_HTTP_UPDATE_XML + "?unsupported=1";
-  setUpdateURL(url);
-
-  gAUS.notify(null);
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0171_check_noPerms_manual.xul
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: manual"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_CHECKING
-}, {
-  pageid: PAGEID_MANUAL_UPDATE,
-  buttonClick: "finish",
-  extraCheckFunction: getWriteTestFile
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let file = getWriteTestFile();
-  file.create(file.NORMAL_FILE_TYPE, 0o444);
-  file.fileAttributesWin |= file.WFA_READONLY;
-  file.fileAttributesWin &= ~file.WFA_READWRITE;
-
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1" + getVersionParams();
-  setUpdateURL(url);
-
-  gUP.checkForUpdates();
-}
-
-function getWriteTestFile() {
-  let file = getUpdateDirFile(FILE_UPDATE_TEST).QueryInterface(Ci.nsILocalFileWin);
-  if (file.exists()) {
-    file.fileAttributesWin |= file.WFA_READWRITE;
-    file.fileAttributesWin &= ~file.WFA_READONLY;
-    file.remove(true);
-  }
-  return file;
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/test_0172_notify_noPerms_manual.xul
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
--->
-
-<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
-
-<window title="Update Wizard pages: manual"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-        onload="runTestDefault();">
-<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
-<script type="application/javascript"
-        src="utils.js"/>
-
-<script type="application/javascript">
-<![CDATA[
-
-const TESTS = [ {
-  pageid: PAGEID_MANUAL_UPDATE,
-  buttonClick: "finish",
-  extraCheckFunction: getWriteTestFile
-} ];
-
-function runTest() {
-  debugDump("entering");
-
-  let file = getWriteTestFile();
-  file.create(file.NORMAL_FILE_TYPE, 0o444);
-  file.fileAttributesWin |= file.WFA_READONLY;
-  file.fileAttributesWin &= ~file.WFA_READWRITE;
-
-  let url = URL_HTTP_UPDATE_XML + "?showDetails=1" + getVersionParams();
-  setUpdateURL(url);
-
-  gAUS.checkForBackgroundUpdates();
-}
-
-function getWriteTestFile() {
-  let file = getUpdateDirFile(FILE_UPDATE_TEST).QueryInterface(Ci.nsILocalFileWin);
-  if (file.exists()) {
-    file.fileAttributesWin |= file.WFA_READWRITE;
-    file.fileAttributesWin &= ~file.WFA_READONLY;
-    file.remove(true);
-  }
-  return file;
-}
-
-]]>
-</script>
-
-<body xmlns="http://www.w3.org/1999/xhtml">
-  <p id="display"></p>
-  <div id="content" style="display: none"></div>
-  <pre id="test"></pre>
-</body>
-</window>
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/update.sjs
+++ /dev/null
@@ -1,190 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
-
-"use strict";
-
-/**
- * Server side http server script for application update tests.
- */
-
-// ChromeUtils isn't available in sjs files so disable the eslint rule for it.
-/* eslint-disable mozilla/use-chromeutils-import */
-
-// Definitions from files used by this file
-/* global getState */
-
-Cu.import("resource://gre/modules/Services.jsm");
-
-function getTestDataFile(aFilename) {
-  let file = Services.dirsvc.get("CurWorkD", Ci.nsIFile);
-  let pathParts = REL_PATH_DATA.split("/");
-  for (let i = 0; i < pathParts.length; ++i) {
-    file.append(pathParts[i]);
-  }
-  if (aFilename) {
-    file.append(aFilename);
-  }
-  return file;
-}
-
-function loadHelperScript(aScriptFile) {
-  let scriptSpec = Services.io.newFileURI(aScriptFile).spec;
-  Services.scriptloader.loadSubScript(scriptSpec, this);
-}
-
-var scriptFile = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsIFile);
-scriptFile.initWithPath(getState("__LOCATION__"));
-scriptFile = scriptFile.parent;
-/* import-globals-from testConstants.js */
-scriptFile.append("testConstants.js");
-loadHelperScript(scriptFile);
-
-/* import-globals-from ../data/sharedUpdateXML.js */
-scriptFile = getTestDataFile("sharedUpdateXML.js");
-loadHelperScript(scriptFile);
-
-const SERVICE_URL = URL_HOST + "/" + REL_PATH_DATA + FILE_SIMPLE_MAR;
-const BAD_SERVICE_URL = URL_HOST + "/" + REL_PATH_DATA + "not_here.mar";
-
-const SLOW_MAR_DOWNLOAD_INTERVAL = 100;
-var gTimer;
-
-function handleRequest(aRequest, aResponse) {
-  let params = { };
-  if (aRequest.queryString) {
-    params = parseQueryString(aRequest.queryString);
-  }
-
-  let statusCode = params.statusCode ? parseInt(params.statusCode) : 200;
-  let statusReason = params.statusReason ? params.statusReason : "OK";
-  aResponse.setStatusLine(aRequest.httpVersion, statusCode, statusReason);
-  aResponse.setHeader("Cache-Control", "no-cache", false);
-
-  // When a mar download is started by the update service it can finish
-  // downloading before the ui has loaded. By specifying a serviceURL for the
-  // update patch that points to this file and has a slowDownloadMar param the
-  // mar will be downloaded asynchronously which will allow the ui to load
-  // before the download completes.
-  if (params.slowDownloadMar) {
-    aResponse.processAsync();
-    aResponse.setHeader("Content-Type", "binary/octet-stream");
-    aResponse.setHeader("Content-Length", SIZE_SIMPLE_MAR);
-    var continueFile = getTestDataFile("continue");
-    var contents = readFileBytes(getTestDataFile(FILE_SIMPLE_MAR));
-    gTimer = Cc["@mozilla.org/timer;1"].
-             createInstance(Ci.nsITimer);
-    gTimer.initWithCallback(function(aTimer) {
-      if (continueFile.exists()) {
-        gTimer.cancel();
-        aResponse.write(contents);
-        aResponse.finish();
-      }
-    }, SLOW_MAR_DOWNLOAD_INTERVAL, Ci.nsITimer.TYPE_REPEATING_SLACK);
-    return;
-  }
-
-  if (params.uiURL) {
-    let remoteType = "";
-    if (!params.remoteNoTypeAttr && params.uiURL == "BILLBOARD") {
-      remoteType = " " + params.uiURL.toLowerCase() + "=\"1\"";
-    }
-    aResponse.write("<html><head><meta http-equiv=\"content-type\" content=" +
-                    "\"text/html; charset=utf-8\"></head><body" +
-                    remoteType + ">" + params.uiURL +
-                    "<br><br>this is a test mar that will not affect your " +
-                    "build.</body></html>");
-    return;
-  }
-
-  if (params.xmlMalformed) {
-    aResponse.write("xml error");
-    return;
-  }
-
-  if (params.noUpdates) {
-    aResponse.write(getRemoteUpdatesXMLString(""));
-    return;
-  }
-
-  if (params.unsupported) {
-    aResponse.write(getRemoteUpdatesXMLString("  <update type=\"major\" " +
-                                              "unsupported=\"true\" " +
-                                              "detailsURL=\"" + URL_HOST +
-                                              "\"></update>\n"));
-    return;
-  }
-
-  let size;
-  let patches = "";
-  let url = params.badURL ? BAD_SERVICE_URL : SERVICE_URL;
-  if (!params.partialPatchOnly) {
-    size = SIZE_SIMPLE_MAR + (params.invalidCompleteSize ? "1" : "");
-    let patchProps = {type: "complete",
-                      url,
-                      size};
-    patches += getRemotePatchString(patchProps);
-  }
-
-  if (!params.completePatchOnly) {
-    size = SIZE_SIMPLE_MAR + (params.invalidPartialSize ? "1" : "");
-    let patchProps = {type: "partial",
-                      url,
-                      size};
-    patches += getRemotePatchString(patchProps);
-  }
-
-  let updateProps = {};
-  if (params.type) {
-    updateProps.type = params.type;
-  }
-
-  if (params.name) {
-    updateProps.name = params.name;
-  }
-
-  if (params.appVersion) {
-    updateProps.appVersion = params.appVersion;
-  }
-
-  if (params.displayVersion) {
-    updateProps.displayVersion = params.displayVersion;
-  }
-
-  if (params.buildID) {
-    updateProps.buildID = params.buildID;
-  }
-
-  if (params.promptWaitTime) {
-    updateProps.promptWaitTime = params.promptWaitTime;
-  }
-
-  let updates = getRemoteUpdateString(updateProps, patches);
-  aResponse.write(getRemoteUpdatesXMLString(updates));
-}
-
-/**
- * Helper function to create a JS object representing the url parameters from
- * the request's queryString.
- *
- * @param  aQueryString
- *         The request's query string.
- * @return A JS object representing the url parameters from the request's
- *         queryString.
- */
-function parseQueryString(aQueryString) {
-  let paramArray = aQueryString.split("&");
-  let regex = /^([^=]+)=(.*)$/;
-  let params = {};
-  for (let i = 0, sz = paramArray.length; i < sz; i++) {
-    let match = regex.exec(paramArray[i]);
-    if (!match) {
-      throw Components.Exception(
-        "Bad parameter in queryString! '" + paramArray[i] + "'",
-        Cr.NS_ERROR_ILLEGAL_VALUE);
-    }
-    params[decodeURIComponent(match[1])] = decodeURIComponent(match[2]);
-  }
-
-  return params;
-}
deleted file mode 100644
--- a/toolkit/mozapps/update/tests/chrome/utils.js
+++ /dev/null
@@ -1,998 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
-
-/**
- * Test Definition
- *
- * Most tests can use an array named TESTS that will perform most if not all of
- * the necessary checks. Each element in the array must be an object with the
- * following possible properties. Additional properties besides the ones listed
- * below can be added as needed.
- *
- * overrideCallback (optional)
- *   The function to call for the next test. This is typically called when the
- *   wizard page changes but can also be called for other events by the previous
- *   test. If this property isn't defined then the defaultCallback function will
- *   be called. If this property is defined then all other properties are
- *   optional.
- *
- * pageid (required unless overrideCallback is specified)
- *   The expected pageid for the wizard. This property is required unless the
- *   overrideCallback property is defined.
- *
- * extraStartFunction (optional)
- *   The function to call at the beginning of the defaultCallback function. If
- *   the function returns true the defaultCallback function will return early
- *   which allows waiting for a specific condition to be evaluated in the
- *   function specified in the extraStartFunction property before continuing
- *   with the test.
- *
- * extraCheckFunction (optional)
- *   The function to call to perform extra checks in the defaultCallback
- *   function.
- *
- * extraDelayedCheckFunction (optional)
- *   The function to call to perform extra checks in the delayedDefaultCallback
- *   function.
- *
- * buttonStates (optional)
- *   A javascript object representing the expected hidden and disabled attribute
- *   values for the buttons of the current wizard page. The values are checked
- *   in the delayedDefaultCallback function. For information about the structure
- *   of this object refer to the getExpectedButtonStates and checkButtonStates
- *   functions.
- *
- * buttonClick (optional)
- *   The current wizard page button to click at the end of the
- *   delayedDefaultCallback function. If the buttonClick property is defined
- *   then the extraDelayedFinishFunction property can't be specified due to race
- *   conditions in some of the tests and if both of them are specified the test
- *   will intentionally throw.
- *
- * extraDelayedFinishFunction (optional)
- *   The function to call at the end of the delayedDefaultCallback function.
- *   If the extraDelayedFinishFunction property is defined then the buttonClick
- *   property can't be specified due to race conditions in some of the tests and
- *   if both of them are specified the test will intentionally throw.
- *
- * ranTest (should not be specified)
- *   When delayedDefaultCallback is called a property named ranTest is added to
- *   the current test so it is possible to verify that each test in the TESTS
- *   array has ran.
- *
- * prefHasUserValue (optional)
- *   For comparing the expected value defined by this property with the return
- *   value of prefHasUserValue using gPrefToCheck for the preference name in the
- *   checkPrefHasUserValue function.
- */
-
-"use strict";
-
-// Definitions needed to run eslint on this file.
-/* globals TESTS, runTest, finishTest */
-
-const {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
-const {AppConstants} = ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
-
-const DATA_URI_SPEC = "chrome://mochitests/content/chrome/toolkit/mozapps/update/tests/chrome/";
-
-/* import-globals-from testConstants.js */
-Services.scriptloader.loadSubScript(DATA_URI_SPEC + "testConstants.js", this);
-
-// The tests have to use the pageid instead of the pageIndex due to the
-// app update wizard's access method being random.
-const PAGEID_DUMMY            = "dummy";
-const PAGEID_CHECKING         = "checking";
-const PAGEID_NO_UPDATES_FOUND = "noupdatesfound";
-const PAGEID_MANUAL_UPDATE    = "manualUpdate";
-const PAGEID_UNSUPPORTED      = "unsupported";
-const PAGEID_FOUND_BASIC      = "updatesfoundbasic";
-const PAGEID_DOWNLOADING      = "downloading";
-const PAGEID_ERRORS           = "errors";
-const PAGEID_ERROR_EXTRA      = "errorextra";
-const PAGEID_ERROR_PATCHING   = "errorpatching";
-const PAGEID_FINISHED         = "finished";
-const PAGEID_FINISHED_BKGRD   = "finishedBackground";
-
-const UPDATE_WINDOW_NAME = "Update:Wizard";
-
-// These two URLs must not contain parameters since tests add their own
-// test specific parameters.
-const URL_HTTP_UPDATE_XML = URL_HTTP_UPDATE_SJS;
-const URL_HTTPS_UPDATE_XML = "https://example.com" + URL_PATH_UPDATE_XML;
-
-const URI_UPDATE_PROMPT_DIALOG  = "chrome://mozapps/content/update/updates.xul";
-
-const LOG_FUNCTION = info;
-
-const BIN_SUFFIX = (AppConstants.platform == "win" ? ".exe" : "");
-const FILE_UPDATER_BIN = "updater" + (AppConstants.platform == "macosx" ? ".app" : BIN_SUFFIX);
-const FILE_UPDATER_BIN_BAK = FILE_UPDATER_BIN + ".bak";
-
-var gURLData = URL_HOST + "/" + REL_PATH_DATA + "/";
-
-var gTestTimeout = 240000; // 4 minutes
-var gTimeoutTimer;
-
-// The number of SimpleTest.executeSoon calls to perform when waiting on an
-// update window to close before giving up.
-const CLOSE_WINDOW_TIMEOUT_MAXCOUNT = 10;
-// Counter for the SimpleTest.executeSoon when waiting on an update window to
-// close before giving up.
-var gCloseWindowTimeoutCounter = 0;
-
-// The following vars are for restoring previous preference values (if present)
-// when the test finishes.
-var gAppUpdateAuto;
-var gAppUpdateDisabled; // app.update.disabledForTesting
-var gAppUpdateServiceEnabled; // app.update.service.enabled
-var gAppUpdateStagingEnabled; // app.update.staging.enabled
-var gAppUpdateURLDefault; // app.update.url (default prefbranch)
-
-var gTestCounter = -1;
-var gWin;
-var gDocElem;
-var gPrefToCheck;
-var gUseTestUpdater = false;
-
-/* import-globals-from ../data/shared.js */
-Services.scriptloader.loadSubScript(DATA_URI_SPEC + "shared.js", this);
-
-// Set to true to log additional information for debugging. To log additional
-// information for individual tests set gDebugTest to false here and to true in
-// the test's onload function.
-gDebugTest = true;
-
-/**
- * The current test in TESTS array.
- */
-this.__defineGetter__("gTest", function() {
-  return TESTS[gTestCounter];
-});
-
-/**
- * The current test's callback. This will either return the callback defined in
- * the test's overrideCallback property or defaultCallback if the
- * overrideCallback property is undefined.
- */
-this.__defineGetter__("gCallback", function() {
-  return gTest.overrideCallback ? gTest.overrideCallback
-                                : defaultCallback;
-});
-
-/**
- * nsIObserver for receiving window open and close notifications.
- */
-const gWindowObserver = {
-  observe: function WO_observe(aSubject, aTopic, aData) {
-    let win = aSubject;
-
-    if (aTopic == "domwindowclosed") {
-      if (win.location != URI_UPDATE_PROMPT_DIALOG) {
-        debugDump("domwindowclosed event for window not being tested - " +
-                  "location: " + win.location + "... returning early");
-        return;
-      }
-      // Allow tests the ability to provide their own function (it must be
-      // named finishTest) for finishing the test.
-      try {
-        finishTest();
-      } catch (e) {
-        finishTestDefault();
-      }
-      return;
-    }
-
-    win.addEventListener("load", function() {
-      // Ignore windows other than the update UI window.
-      if (win.location != URI_UPDATE_PROMPT_DIALOG) {
-        debugDump("load event for window not being tested - location: " +
-                  win.location + "... returning early");
-        return;
-      }
-
-      // The first wizard page should always be the dummy page.
-      let pageid = win.document.documentElement.currentPage.pageid;
-      if (pageid != PAGEID_DUMMY) {
-        // This should never happen but if it does this will provide a clue
-        // for diagnosing the cause.
-        ok(false, "Unexpected load event - pageid got: " + pageid +
-           ", expected: " + PAGEID_DUMMY + "... returning early");
-        return;
-      }
-
-      gWin = win;
-      gDocElem = gWin.document.documentElement;
-      gDocElem.addEventListener("pageshow", onPageShowDefault);
-    }, {once: true});
-  },
-};
-
-/**
- * Default test run function that can be used by most tests. This function uses
- * protective measures to prevent the test from failing provided by
- * |runTestDefaultWaitForWindowClosed| helper functions to prevent failure due
- * to a previous test failure.
- */
-function runTestDefault() {
-  debugDump("entering");
-
-  SimpleTest.waitForExplicitFinish();
-
-  runTestDefaultWaitForWindowClosed();
-}
-
-/**
- * If an update window is found SimpleTest.executeSoon can callback before the
- * update window is fully closed especially with debug builds. If an update
- * window is found this function will call itself using SimpleTest.executeSoon
- * up to the amount declared in CLOSE_WINDOW_TIMEOUT_MAXCOUNT until the update
- * window has closed before continuing the test.
- */
-function runTestDefaultWaitForWindowClosed() {
-  gCloseWindowTimeoutCounter++;
-  if (gCloseWindowTimeoutCounter > CLOSE_WINDOW_TIMEOUT_MAXCOUNT) {
-    try {
-      finishTest();
-    } catch (e) {
-      finishTestDefault();
-    }
-    return;
-  }
-
-  // The update window should not be open at this time. If it is the call to
-  // |closeUpdateWindow| will close it and cause the test to fail.
-  if (closeUpdateWindow()) {
-    SimpleTest.executeSoon(runTestDefaultWaitForWindowClosed);
-  } else {
-    Services.ww.registerNotification(gWindowObserver);
-
-    gCloseWindowTimeoutCounter = 0;
-
-    setupPrefs();
-    gEnv.set("MOZ_TEST_SKIP_UPDATE_STAGE", "1");
-    removeUpdateFiles(true);
-    setupTimer(gTestTimeout);
-    SimpleTest.executeSoon(setupTestUpdater);
-  }
-}
-
-/**
- * Default test finish function that can be used by most tests. This function
- * uses protective measures to prevent the next test from failing provided by
- * |finishTestDefaultWaitForWindowClosed| helper functions to prevent failure
- * due to an update window being left open.
- */
-function finishTestDefault() {
-  debugDump("entering");
-  if (gTimeoutTimer) {
-    gTimeoutTimer.cancel();
-    gTimeoutTimer = null;
-  }
-
-  if (gChannel) {
-    debugDump("channel = " + gChannel);
-    gChannel = null;
-    gPrefRoot.removeObserver(PREF_APP_UPDATE_CHANNEL, observer);
-  }
-
-  verifyTestsRan();
-
-  resetPrefs();
-  gEnv.set("MOZ_TEST_SKIP_UPDATE_STAGE", "");
-  reloadUpdateManagerData(true);
-  removeUpdateFiles(true);
-
-  Services.ww.unregisterNotification(gWindowObserver);
-  if (gDocElem) {
-    gDocElem.removeEventListener("pageshow", onPageShowDefault);
-  }
-
-  finishTestRestoreUpdaterBackup();
-}
-
-/**
- * nsITimerCallback for the timeout timer to cleanly finish a test if the Update
- * Window doesn't close for a test. This allows the next test to run properly if
- * a previous test fails.
- *
- * @param  aTimer
- *         The nsITimer that fired.
- */
-function finishTestTimeout(aTimer) {
-  ok(false, "Test timed out. Maximum time allowed is " + (gTestTimeout / 1000) +
-     " seconds");
-
-  try {
-    finishTest();
-  } catch (e) {
-    finishTestDefault();
-  }
-}
-
-/**
- * When a test finishes this will repeatedly attempt to restore the real updater
- * for tests that use the test updater and then call
- * finishTestDefaultWaitForWindowClosed after the restore is successful.
- */
-function finishTestRestoreUpdaterBackup() {
-  if (gUseTestUpdater) {
-    try {
-      // Windows debug builds keep the updater file in use for a short period of
-      // time after the updater process exits.
-      restoreUpdaterBackup();
-    } catch (e) {
-      logTestInfo("Attempt to restore the backed up updater failed... " +
-                  "will try again, Exception: " + e);
-      SimpleTest.executeSoon(finishTestRestoreUpdaterBackup);
-      return;
-    }
-  }
-
-  finishTestDefaultWaitForWindowClosed();
-}
-
-/**
- * If an update window is found SimpleTest.executeSoon can callback before the
- * update window is fully closed especially with debug builds. If an update
- * window is found this function will call itself using SimpleTest.executeSoon
- * up to the amount declared in CLOSE_WINDOW_TIMEOUT_MAXCOUNT until the update
- * window has closed before finishing the test.
- */
-function finishTestDefaultWaitForWindowClosed() {
-  gCloseWindowTimeoutCounter++;
-  if (gCloseWindowTimeoutCounter > CLOSE_WINDOW_TIMEOUT_MAXCOUNT) {
-    SimpleTest.requestCompleteLog();
-    SimpleTest.finish();
-    return;
-  }
-
-  // The update window should not be open at this time. If it is the call to
-  // |closeUpdateWindow| will close it and cause the test to fail.
-  if (closeUpdateWindow()) {
-    SimpleTest.executeSoon(finishTestDefaultWaitForWindowClosed);
-  } else {
-    SimpleTest.finish();
-  }
-}
-
-/**
- * Default callback for the wizard's documentElement pageshow listener. This
- * will return early for event's where the originalTarget's nodeName is not
- * wizardpage.
- */
-function onPageShowDefault(aEvent) {
-  if (!gTimeoutTimer) {
-    debugDump("gTimeoutTimer is null... returning early");
-    return;
-  }
-
-  // Return early if the event's original target isn't for a wizardpage element.
-  // This check is necessary due to the remotecontent element firing pageshow.
-  if (aEvent.originalTarget.nodeName != "wizardpage") {
-    debugDump("only handles events with an originalTarget nodeName of " +
-              "|wizardpage|. aEvent.originalTarget.nodeName = " +
-              aEvent.originalTarget.nodeName + "... returning early");
-    return;
-  }
-
-  gTestCounter++;
-  gCallback(aEvent);
-}
-
-/**
- * Default callback that can be used by most tests.
- */
-function defaultCallback(aEvent) {
-  if (!gTimeoutTimer) {
-    debugDump("gTimeoutTimer is null... returning early");
-    return;
-  }
-
-  debugDump("entering - TESTS[" + gTestCounter + "], pageid: " + gTest.pageid +
-            ", aEvent.originalTarget.nodeName: " +
-            aEvent.originalTarget.nodeName);
-
-  if (gTest && gTest.extraStartFunction) {
-    debugDump("calling extraStartFunction " + gTest.extraStartFunction.name);
-    if (gTest.extraStartFunction(aEvent)) {
-      debugDump("extraStartFunction early return");
-      return;
-    }
-  }
-
-  is(gDocElem.currentPage.pageid, gTest.pageid,
-     "Checking currentPage.pageid equals " + gTest.pageid + " in pageshow");
-
-  // Perform extra checks if specified by the test
-  if (gTest.extraCheckFunction) {
-    debugDump("calling extraCheckFunction " + gTest.extraCheckFunction.name);
-    gTest.extraCheckFunction();
-  }
-
-  // The wizard page buttons' disabled and hidden attributes are set after the
-  // pageshow event so use executeSoon to allow them to be set so their disabled
-  // and hidden attribute values can be checked.
-  SimpleTest.executeSoon(delayedDefaultCallback);
-}
-
-/**
- * Delayed default callback called using executeSoon in defaultCallback which
- * allows the wizard page buttons' disabled and hidden attributes to be set
- * before checking their values.
- */
-function delayedDefaultCallback() {
-  if (!gTimeoutTimer) {
-    debugDump("gTimeoutTimer is null... returning early");
-    return;
-  }
-
-  if (!gTest) {
-    debugDump("gTest is null... returning early");
-    return;
-  }
-
-  debugDump("entering - TESTS[" + gTestCounter + "], pageid: " + gTest.pageid);
-
-  // Verify the pageid hasn't changed after executeSoon was called.
-  is(gDocElem.currentPage.pageid, gTest.pageid,
-     "Checking currentPage.pageid equals " + gTest.pageid + " after " +
-     "executeSoon");
-
-  checkButtonStates();
-
-  // Perform delayed extra checks if specified by the test
-  if (gTest.extraDelayedCheckFunction) {
-    debugDump("calling extraDelayedCheckFunction " +
-              gTest.extraDelayedCheckFunction.name);
-    gTest.extraDelayedCheckFunction();
-  }
-
-  // Used to verify that this test has been performed
-  gTest.ranTest = true;
-
-  if (gTest.buttonClick) {
-    debugDump("clicking " + gTest.buttonClick + " button");
-    if (gTest.extraDelayedFinishFunction) {
-      throw new Error("Tests cannot have a buttonClick and an extraDelayedFinishFunction property");
-    }
-    gDocElem.getButton(gTest.buttonClick).click();
-  } else if (gTest.extraDelayedFinishFunction) {
-    debugDump("calling extraDelayedFinishFunction " +
-              gTest.extraDelayedFinishFunction.name);
-    gTest.extraDelayedFinishFunction();
-  }
-}
-
-/**
- * Gets the continue file used to signal the mock http server to continue
- * downloading for slow download mar file tests without creating it.
- *
- * @return nsIFile for the continue file.
- */
-function getContinueFile() {
-  let continueFile = Services.dirsvc.get("CurWorkD", Ci.nsIFile);
-  let continuePath = REL_PATH_DATA + "continue";
-  let continuePathParts = continuePath.split("/");
-  for (let i = 0; i < continuePathParts.length; ++i) {
-    continueFile.append(continuePathParts[i]);
-  }
-  return continueFile;
-}
-
-/**
- * Creates the continue file used to signal the mock http server to continue
- * downloading for slow download mar file tests.
- */
-function createContinueFile() {
-  debugDump("creating 'continue' file for slow mar downloads");
-  getContinueFile().create(Ci.nsIFile.NORMAL_FILE_TYPE, PERMS_FILE);
-}
-
-/**
- * Removes the continue file used to signal the mock http server to continue
- * downloading for slow download mar file tests.
- */
-function removeContinueFile() {
-  let continueFile = getContinueFile();
-  if (continueFile.exists()) {
-    debugDump("removing 'continue' file for slow mar downloads");
-    continueFile.remove(false);
-  }
-}
-
-/**
- * Checks the wizard page buttons' disabled and hidden attributes values are
- * correct. If an expected button id is not specified then the expected disabled
- * and hidden attribute value is true.
- */
-function checkButtonStates() {
-  debugDump("entering - TESTS[" + gTestCounter + "], pageid: " + gTest.pageid);
-
-  const buttonNames = ["extra1", "extra2", "back", "next", "finish", "cancel"];
-  let buttonStates = getExpectedButtonStates();
-  buttonNames.forEach(function(aButtonName) {
-    let button = gDocElem.getButton(aButtonName);
-    let hasHidden = aButtonName in buttonStates &&
-                    "hidden" in buttonStates[aButtonName];
-    let hidden = hasHidden ? buttonStates[aButtonName].hidden : true;
-    let hasDisabled = aButtonName in buttonStates &&
-                      "disabled" in buttonStates[aButtonName];
-    let disabled = hasDisabled ? buttonStates[aButtonName].disabled : true;
-    is(button.hidden, hidden, "Checking " + aButtonName + " button " +
-       "hidden attribute value equals " + (hidden ? "true" : "false"));
-    is(button.disabled, disabled, "Checking " + aButtonName + " button " +
-       "disabled attribute value equals " + (disabled ? "true" : "false"));
-  });
-}
-
-/**
- * Returns the expected disabled and hidden attribute values for the buttons of
- * the current wizard page.
- */
-function getExpectedButtonStates() {
-  // Allow individual tests to override the expected button states.
-  if (gTest.buttonStates) {
-    return gTest.buttonStates;
-  }
-
-  switch (gTest.pageid) {
-    case PAGEID_CHECKING:
-      return {cancel: {disabled: false, hidden: false}};
-    case PAGEID_FOUND_BASIC:
-      if (gTest.neverButton) {
-        return {extra1: {disabled: false, hidden: false},
-                extra2: {disabled: false, hidden: false},
-                next: {disabled: false, hidden: false}};
-      }
-      return {extra1: {disabled: false, hidden: false},
-              next: {disabled: false, hidden: false}};
-    case PAGEID_DOWNLOADING:
-      return {extra1: {disabled: false, hidden: false}};
-    case PAGEID_NO_UPDATES_FOUND:
-    case PAGEID_MANUAL_UPDATE:
-    case PAGEID_UNSUPPORTED:
-    case PAGEID_ERRORS:
-    case PAGEID_ERROR_EXTRA:
-      return {finish: {disabled: false, hidden: false}};
-    case PAGEID_ERROR_PATCHING:
-      return {next: { disabled: false, hidden: false}};
-    case PAGEID_FINISHED:
-    case PAGEID_FINISHED_BKGRD:
-      return {extra1: { disabled: false, hidden: false},
-              finish: { disabled: false, hidden: false}};
-  }
-  return null;
-}
-
-/**
- * Compares the return value of prefHasUserValue for the preference specified in
- * gPrefToCheck with the value passed in the aPrefHasValue parameter or the
- * value specified in the current test's prefHasUserValue property if
- * aPrefHasValue is undefined.
- *
- * @param  aPrefHasValue (optional)
- *         The expected value returned from prefHasUserValue for the preference
- *         specified in gPrefToCheck. If aPrefHasValue is undefined the value
- *         of the current test's prefHasUserValue property will be used.
- */
-function checkPrefHasUserValue(aPrefHasValue) {
-  let prefHasUserValue = aPrefHasValue === undefined ? gTest.prefHasUserValue
-                                                     : aPrefHasValue;
-  is(Services.prefs.prefHasUserValue(gPrefToCheck), prefHasUserValue,
-     "Checking prefHasUserValue for preference " + gPrefToCheck + " equals " +
-     (prefHasUserValue ? "true" : "false"));
-}
-
-/**
- * Checks whether the link is hidden for a general background update check error
- * or not on the errorextra page and that the app.update.backgroundErrors
- * preference does not have a user value.
- *
- * @param  aShouldBeHidden (optional)
- *         The expected value for the label's hidden attribute for the link. If
- *         aShouldBeHidden is undefined the value of the current test's
- *         shouldBeHidden property will be used.
- */
-function checkErrorExtraPage(aShouldBeHidden) {
-  let shouldBeHidden = aShouldBeHidden === undefined ? gTest.shouldBeHidden
-                                                     : aShouldBeHidden;
-  is(gWin.document.getElementById("errorExtraLinkLabel").hidden, shouldBeHidden,
-     "Checking errorExtraLinkLabel hidden attribute equals " +
-     (shouldBeHidden ? "true" : "false"));
-
-  is(gWin.document.getElementById(gTest.displayedTextElem).hidden, false,
-     "Checking " + gTest.displayedTextElem + " should not be hidden");
-
-  ok(!Services.prefs.prefHasUserValue(PREF_APP_UPDATE_BACKGROUNDERRORS),
-     "Preference " + PREF_APP_UPDATE_BACKGROUNDERRORS + " should not have a " +
-     "user value");
-}
-
-/**
- * Gets the update version info for the update url parameters to send to
- * update.sjs.
- *
- * @param  aAppVersion (optional)
- *         The application version for the update snippet. If not specified the
- *         current application version will be used.
- * @return The url parameters for the application and platform version to send
- *         to update.sjs.
- */
-function getVersionParams(aAppVersion) {
-  let appInfo = Services.appinfo;
-  return "&appVersion=" + (aAppVersion ? aAppVersion : appInfo.version);
-}
-
-/**
- * Verifies that all tests ran.
- */
-function verifyTestsRan() {
-  debugDump("entering");
-
-  // Return early if there are no tests defined.
-  if (!TESTS) {
-    return;
-  }
-
-  gTestCounter = -1;
-  for (let i = 0; i < TESTS.length; ++i) {
-    gTestCounter++;
-    let test = TESTS[i];
-    let msg = "Checking if TESTS[" + i + "] test was performed... " +
-              "callback function name = " + gCallback.name + ", " +
-              "pageid = " + test.pageid;
-    ok(test.ranTest, msg);
-  }
-}
-
-/**
- * For tests that use the test updater restores the backed up real updater if
- * it exists and tries again on failure since Windows debug builds at times
- * leave the file in use. After success moveRealUpdater is called to continue
- * the setup of the test updater. For tests that don't use the test updater
- * runTest will be called.
- */
-function setupTestUpdater() {
-  if (!gUseTestUpdater) {
-    runTest();
-    return;
-  }
-
-  try {
-    restoreUpdaterBackup();
-  } catch (e) {
-    logTestInfo("Attempt to restore the backed up updater failed... " +
-                "will try again, Exception: " + e);
-    SimpleTest.executeSoon(setupTestUpdater);
-    return;
-  }
-  moveRealUpdater();
-}
-
-/**
- * Backs up the real updater and tries again on failure since Windows debug
- * builds at times leave the file in use. After success it will call
- * copyTestUpdater to continue the setup of the test updater.
- */
-function moveRealUpdater() {
-  try {
-    // Move away the real updater
-    let greBinDir = getGREBinDir();
-    let updater = greBinDir.clone();
-    updater.append(FILE_UPDATER_BIN);
-    updater.moveTo(greBinDir, FILE_UPDATER_BIN_BAK);
-
-    let greDir = getGREDir();
-    let updateSettingsIni = greDir.clone();
-    updateSettingsIni.append(FILE_UPDATE_SETTINGS_INI);
-    if (updateSettingsIni.exists()) {
-      updateSettingsIni.moveTo(greDir, FILE_UPDATE_SETTINGS_INI_BAK);
-    }
-
-    let precomplete = greDir.clone();
-    precomplete.append(FILE_PRECOMPLETE);
-    if (precomplete.exists()) {
-      precomplete.moveTo(greDir, FILE_PRECOMPLETE_BAK);
-    }
-  } catch (e) {
-    logTestInfo("Attempt to move the real updater out of the way failed... " +
-                "will try again, Exception: " + e);
-    SimpleTest.executeSoon(moveRealUpdater);
-    return;
-  }
-
-  copyTestUpdater();
-}
-
-/**
- * Copies the test updater so it can be used by tests and tries again on failure
- * since Windows debug builds at times leave the file in use. After success it
- * will call runTest to continue the test.
- */
-function copyTestUpdater() {
-  try {
-    // Copy the test updater
-    let greBinDir = getGREBinDir();
-    let testUpdaterDir = Services.dirsvc.get("CurWorkD", Ci.nsIFile);
-    let relPath = REL_PATH_DATA;
-    let pathParts = relPath.split("/");
-    for (let i = 0; i < pathParts.length; ++i) {
-      testUpdaterDir.append(pathParts[i]);
-    }
-
-    let testUpdater = testUpdaterDir.clone();
-    testUpdater.append(FILE_UPDATER_BIN);
-    testUpdater.copyToFollowingLinks(greBinDir, FILE_UPDATER_BIN);
-
-    let greDir = getGREDir();
-    let updateSettingsIni = greDir.clone();
-    updateSettingsIni.append(FILE_UPDATE_SETTINGS_INI);
-    writeFile(updateSettingsIni, UPDATE_SETTINGS_CONTENTS);
-
-    let precomplete = greDir.clone();
-    precomplete.append(FILE_PRECOMPLETE);
-    writeFile(precomplete, PRECOMPLETE_CONTENTS);
-  } catch (e) {
-    logTestInfo("Attempt to copy the test updater failed... " +
-                "will try again, Exception: " + e);
-    SimpleTest.executeSoon(copyTestUpdater);
-    return;
-  }
-
-  runTest();
-}
-
-/**
- * Restores the updater that was backed up. This is called in setupTestUpdater
- * before the backup of the real updater is done in case the previous test
- * failed to restore the updater, in finishTestDefaultWaitForWindowClosed when
- * the test has finished, and in test_9999_cleanup.xul after all tests have
- * finished.
- */
-function restoreUpdaterBackup() {
-  let greBinDir = getGREBinDir();
-  let updater = greBinDir.clone();
-  let updaterBackup = greBinDir.clone();
-  updater.append(FILE_UPDATER_BIN);
-  updaterBackup.append(FILE_UPDATER_BIN_BAK);
-  if (updaterBackup.exists()) {
-    if (updater.exists()) {
-      updater.remove(true);
-    }
-    updaterBackup.moveTo(greBinDir, FILE_UPDATER_BIN);
-  }
-
-  let greDir = getGREDir();
-  let updateSettingsIniBackup = greDir.clone();
-  updateSettingsIniBackup.append(FILE_UPDATE_SETTINGS_INI_BAK);
-  if (updateSettingsIniBackup.exists()) {
-    let updateSettingsIni = greDir.clone();
-    updateSettingsIni.append(FILE_UPDATE_SETTINGS_INI);
-    if (updateSettingsIni.exists()) {
-      updateSettingsIni.remove(false);
-    }
-    updateSettingsIniBackup.moveTo(greDir, FILE_UPDATE_SETTINGS_INI);
-  }
-
-  let precomplete = greDir.clone();
-  let precompleteBackup = greDir.clone();
-  precomplete.append(FILE_PRECOMPLETE);
-  precompleteBackup.append(FILE_PRECOMPLETE_BAK);
-  if (precompleteBackup.exists()) {
-    if (precomplete.exists()) {
-      precomplete.remove(false);
-    }
-    precompleteBackup.moveTo(greDir, FILE_PRECOMPLETE);
-  } else if (precomplete.exists()) {
-    if (readFile(precomplete) == PRECOMPLETE_CONTENTS) {
-      precomplete.remove(false);
-    }
-  }
-}
-
-/**
- * Sets the most common preferences used by tests to values used by the majority
- * of the tests and when necessary saves the preference's original values if
- * present so they can be set back to the original values when the test has
- * finished.
- */
-function setupPrefs() {
-  if (gDebugTest) {
-    Services.prefs.setBoolPref(PREF_APP_UPDATE_LOG, true);
-  }
-
-  // Prevent nsIUpdateTimerManager from notifying nsIApplicationUpdateService
-  // to check for updates by setting the app update last update time to the
-  // current time minus one minute in seconds and the interval time to 12 hours
-  // in seconds.
-  let now = Math.round(Date.now() / 1000) - 60;
-  Services.prefs.setIntPref(PREF_APP_UPDATE_LASTUPDATETIME, now);
-  Services.prefs.setIntPref(PREF_APP_UPDATE_INTERVAL, 43200);
-
-  if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_DISABLEDFORTESTING)) {
-    gAppUpdateDisabled = Services.prefs.getBoolPref(PREF_APP_UPDATE_DISABLEDFORTESTING);
-  }
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_DISABLEDFORTESTING, false);
-
-  if (AppConstants.platform == "win") {
-    let configFile = getUpdateDirFile(FILE_UPDATE_CONFIG_JSON);
-    if (configFile.exists()) {
-      let configData = JSON.parse(readFileBytes(configFile));
-      gAppUpdateAuto = !!configData[CONFIG_APP_UPDATE_AUTO];
-    }
-  } else if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_AUTO)) {
-    gAppUpdateAuto = Services.prefs.getBoolPref(PREF_APP_UPDATE_AUTO);
-  }
-  if (gAppUpdateAuto !== true) {
-    setAppUpdateAutoSync(true);
-  }
-
-  if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_SERVICE_ENABLED)) {
-    gAppUpdateServiceEnabled = Services.prefs.getBoolPref(PREF_APP_UPDATE_SERVICE_ENABLED);
-  }
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_SERVICE_ENABLED, false);
-
-  if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_STAGING_ENABLED)) {
-    gAppUpdateStagingEnabled = Services.prefs.getBoolPref(PREF_APP_UPDATE_STAGING_ENABLED);
-  }
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_STAGING_ENABLED, false);
-
-  Services.prefs.setIntPref(PREF_APP_UPDATE_IDLETIME, 0);
-  Services.prefs.setIntPref(PREF_APP_UPDATE_PROMPTWAITTIME, 0);
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_SILENT, false);
-  Services.prefs.setBoolPref(PREF_APP_UPDATE_DOORHANGER, false);
-}
-
-/**
- * Resets the most common preferences used by tests to their original values.
- */
-function resetPrefs() {
-  if (gAppUpdateURLDefault) {
-    gDefaultPrefBranch.setCharPref(PREF_APP_UPDATE_URL, gAppUpdateURLDefault);
-  }
-
-  if (gAppUpdateDisabled !== undefined) {
-    Services.prefs.setBoolPref(PREF_APP_UPDATE_DISABLEDFORTESTING, gAppUpdateDisabled);
-  } else if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_DISABLEDFORTESTING)) {
-    Services.prefs.clearUserPref(PREF_APP_UPDATE_DISABLEDFORTESTING);
-  }
-
-  setAppUpdateAutoSync(gAppUpdateAuto);
-
-  if (gAppUpdateServiceEnabled !== undefined) {
-    Services.prefs.setBoolPref(PREF_APP_UPDATE_SERVICE_ENABLED, gAppUpdateServiceEnabled);
-  } else if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_SERVICE_ENABLED)) {
-    Services.prefs.clearUserPref(PREF_APP_UPDATE_SERVICE_ENABLED);
-  }
-
-  if (gAppUpdateStagingEnabled !== undefined) {
-    Services.prefs.setBoolPref(PREF_APP_UPDATE_STAGING_ENABLED, gAppUpdateStagingEnabled);
-  } else if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_STAGING_ENABLED)) {
-    Services.prefs.clearUserPref(PREF_APP_UPDATE_STAGING_ENABLED);
-  }
-
-  if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_IDLETIME)) {
-    Services.prefs.clearUserPref(PREF_APP_UPDATE_IDLETIME);
-  }
-
-  if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_PROMPTWAITTIME)) {
-    Services.prefs.clearUserPref(PREF_APP_UPDATE_PROMPTWAITTIME);
-  }
-
-  if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_URL_DETAILS)) {
-    Services.prefs.clearUserPref(PREF_APP_UPDATE_URL_DETAILS);
-  }
-
-  if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_NOTIFIEDUNSUPPORTED)) {
-    Services.prefs.clearUserPref(PREF_APP_UPDATE_NOTIFIEDUNSUPPORTED);
-  }
-
-  if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_LOG)) {
-    Services.prefs.clearUserPref(PREF_APP_UPDATE_LOG);
-  }
-
-  if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_SILENT)) {
-    Services.prefs.clearUserPref(PREF_APP_UPDATE_SILENT);
-  }
-
-  if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_BACKGROUNDERRORS)) {
-    Services.prefs.clearUserPref(PREF_APP_UPDATE_BACKGROUNDERRORS);
-  }
-
-  if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_BACKGROUNDMAXERRORS)) {
-    Services.prefs.clearUserPref(PREF_APP_UPDATE_BACKGROUNDMAXERRORS);
-  }
-
-  if (Services.prefs.prefHasUserValue(PREF_APP_UPDATE_DOORHANGER)) {
-    Services.prefs.clearUserPref(PREF_APP_UPDATE_DOORHANGER);
-  }
-}
-
-function setupTimer(aTestTimeout) {
-  gTestTimeout = aTestTimeout;
-  if (gTimeoutTimer) {
-    gTimeoutTimer.cancel();
-    gTimeoutTimer = null;
-  }
-  gTimeoutTimer = Cc["@mozilla.org/timer;1"].
-                  createInstance(Ci.nsITimer);
-  gTimeoutTimer.initWithCallback(finishTestTimeout, gTestTimeout,
-                                 Ci.nsITimer.TYPE_ONE_SHOT);
-}
-
-/**
- * Closes the update window if it is open and causes the test to fail if an
- * update window is found.
- *
- * @return true if an update window was found, otherwise false.
- */
-function closeUpdateWindow() {
-  let updateWindow = getUpdateWindow();
-  if (!updateWindow) {
-    return false;
-  }
-
-  ok(false, "Found an existing Update Window from the current or a previous " +
-            "test... attempting to close it.");
-  updateWindow.close();
-  return true;
-}
-
-/**
- * Gets the update window.
- *
- * @return The nsIDOMWindow for the Update Window if it is open and null
- *         if it isn't.
- */
-function getUpdateWindow() {
-  return Services.wm.getMostRecentWindow(UPDATE_WINDOW_NAME);
-}
-
-/**
- * Helper for background check errors.
- */
-const errorsPrefObserver = {
-  observedPref: null,
-  maxErrorPref: null,
-
-  /**
-   * Sets up a preference observer and sets the associated maximum errors
-   * preference used for background notification.
-   *
-   * @param  aObservePref
-   *         The preference to observe.
-   * @param  aMaxErrorPref
-   *         The maximum errors preference.
-   * @param  aMaxErrorCount
-   *         The value to set the maximum errors preference to.
-   */
-  init(aObservePref, aMaxErrorPref, aMaxErrorCount) {
-    this.observedPref = aObservePref;
-    this.maxErrorPref = aMaxErrorPref;
-
-    let maxErrors = aMaxErrorCount ? aMaxErrorCount : 2;
-    Services.prefs.setIntPref(aMaxErrorPref, maxErrors);
-    Services.prefs.addObserver(aObservePref, this);
-  },
-
-  /**
-   * Preference observer for the preference specified in |this.observedPref|.
-   */
-  observe: function XPI_observe(aSubject, aTopic, aData) {
-    if (aData == this.observedPref) {
-      let errCount = Services.prefs.getIntPref(this.observedPref);
-      let errMax = Services.prefs.getIntPref(this.maxErrorPref);
-      if (errCount >= errMax) {
-        debugDump("removing pref observer");
-        Services.prefs.removeObserver(this.observedPref, this);
-      } else {
-        debugDump("notifying AUS");
-        SimpleTest.executeSoon(function() {
-          gAUS.notify(null);
-        });
-      }
-    }
-  },
-};
--- a/toolkit/mozapps/update/tests/moz.build
+++ b/toolkit/mozapps/update/tests/moz.build
@@ -8,18 +8,16 @@ HAS_MISC_RULE = True
 
 FINAL_TARGET = '_tests/xpcshell/toolkit/mozapps/update/tests/data'
 
 if not CONFIG['MOZ_SUITE']:
     BROWSER_CHROME_MANIFESTS += ['browser/browser.ini']
     if CONFIG['OS_ARCH'] == 'WINNT':
         BROWSER_CHROME_MANIFESTS += ['browser/browser.bits.ini']
 
-MOCHITEST_CHROME_MANIFESTS += ['chrome/chrome.ini']
-
 XPCSHELL_TESTS_MANIFESTS += [
     'unit_aus_update/xpcshell.ini',
     'unit_base_updater/xpcshell.ini'
 ]
 
 if CONFIG['MOZ_MAINTENANCE_SERVICE']:
     XPCSHELL_TESTS_MANIFESTS += ['unit_service_updater/xpcshell.ini']
 
@@ -64,20 +62,16 @@ if CONFIG['OS_ARCH'] == 'WINNT':
     USE_STATIC_LIBS = True
     if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
         WIN32_EXE_LDFLAGS += ['-municode']
 
 TEST_HARNESS_FILES.testing.mochitest.browser.toolkit.mozapps.update.tests.browser += [
     'data/simple.mar',
 ]
 
-TEST_HARNESS_FILES.testing.mochitest.chrome.toolkit.mozapps.update.tests.chrome += [
-    'data/simple.mar',
-]
-
 FINAL_TARGET_FILES += [
     'data/complete.exe',
     'data/complete.mar',
     'data/complete.png',
     'data/complete_log_success_mac',
     'data/complete_log_success_win',
     'data/complete_mac.mar',
     'data/complete_precomplete',
--- a/toolkit/mozapps/update/updater/updater-xpcshell/Makefile.in
+++ b/toolkit/mozapps/update/updater/updater-xpcshell/Makefile.in
@@ -1,17 +1,16 @@
 # vim:set ts=8 sw=8 sts=8 noet:
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # For changes here, also consider ../Makefile.in
 
 XPCSHELLTESTDIR = $(topobjdir)/_tests/xpcshell/toolkit/mozapps/update/tests
-MOCHITESTCHROMEDIR = $(topobjdir)/_tests/testing/mochitest/chrome/toolkit/mozapps/update/tests/chrome
 
 ifeq (,$(MOZ_SUITE)$(MOZ_THUNDERBIRD))
 MOCHITESTBROWSERDIR = $(topobjdir)/_tests/testing/mochitest/browser/toolkit/mozapps/update/tests/browser
 endif
 
 ifndef MOZ_WINCONSOLE
 ifdef MOZ_DEBUG
 MOZ_WINCONSOLE = 1
@@ -30,20 +29,17 @@ ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
 	sed -e 's/%APP_NAME%/$(MOZ_APP_DISPLAYNAME)/' $(srcdir)/../macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \
 	  iconv -f UTF-8 -t UTF-16 > $(XPCSHELLTESTDIR)/data/updater-xpcshell.app/Contents/Resources/English.lproj/InfoPlist.strings
 	$(NSINSTALL) -D $(XPCSHELLTESTDIR)/data/updater-xpcshell.app/Contents/MacOS
 	$(NSINSTALL) $(FINAL_TARGET)/updater-xpcshell $(XPCSHELLTESTDIR)/data/updater-xpcshell.app/Contents/MacOS
 	rm -Rf $(XPCSHELLTESTDIR)/data/updater.app
 	mv $(XPCSHELLTESTDIR)/data/updater-xpcshell.app $(XPCSHELLTESTDIR)/data/updater.app
 	mv $(XPCSHELLTESTDIR)/data/updater.app/Contents/MacOS/updater-xpcshell $(XPCSHELLTESTDIR)/data/updater.app/Contents/MacOS/org.mozilla.updater
 
-	# Copy for mochitest chrome tests
-	rsync -a -C $(XPCSHELLTESTDIR)/data/updater.app $(MOCHITESTCHROMEDIR)/
 ifdef MOCHITESTBROWSERDIR
 	rsync -a -C $(XPCSHELLTESTDIR)/data/updater.app $(MOCHITESTBROWSERDIR)/
 endif
 else
 	cp $(FINAL_TARGET)/updater-xpcshell$(BIN_SUFFIX) $(XPCSHELLTESTDIR)/data/updater$(BIN_SUFFIX)
-	cp $(FINAL_TARGET)/updater-xpcshell$(BIN_SUFFIX) $(MOCHITESTCHROMEDIR)/updater$(BIN_SUFFIX)
 ifdef MOCHITESTBROWSERDIR
 	cp $(FINAL_TARGET)/updater-xpcshell$(BIN_SUFFIX) $(MOCHITESTBROWSERDIR)/updater$(BIN_SUFFIX)
 endif
 endif