diff options
Diffstat (limited to 'toolkit/mozapps/update/tests/chrome/test_0172_notify_noPerms_manual.xul')
-rw-r--r-- | toolkit/mozapps/update/tests/chrome/test_0172_notify_noPerms_manual.xul | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/toolkit/mozapps/update/tests/chrome/test_0172_notify_noPerms_manual.xul b/toolkit/mozapps/update/tests/chrome/test_0172_notify_noPerms_manual.xul deleted file mode 100644 index 6784b9c90..000000000 --- a/toolkit/mozapps/update/tests/chrome/test_0172_notify_noPerms_manual.xul +++ /dev/null @@ -1,63 +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_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&showPrompt=1" + - getVersionParams(); - setUpdateURL(url); - - gAUS.checkForBackgroundUpdates(); -} - -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> |