summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/update/tests/chrome/test_0171_check_noPerms_manual.xul
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/mozapps/update/tests/chrome/test_0171_check_noPerms_manual.xul')
-rw-r--r--toolkit/mozapps/update/tests/chrome/test_0171_check_noPerms_manual.xul64
1 files changed, 0 insertions, 64 deletions
diff --git a/toolkit/mozapps/update/tests/chrome/test_0171_check_noPerms_manual.xul b/toolkit/mozapps/update/tests/chrome/test_0171_check_noPerms_manual.xul
deleted file mode 100644
index 142c02baa..000000000
--- a/toolkit/mozapps/update/tests/chrome/test_0171_check_noPerms_manual.xul
+++ /dev/null
@@ -1,64 +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 type="application/javascript"
- 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 = getAppBaseDir();
- file.append(FILE_UPDATE_TEST);
- file.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>