/toolkit/mozapps/update/test/chrome/test_0151_notify_backgroundCheckError.xul
http://github.com/zpao/v8monkey · Unknown · 50 lines · 40 code · 10 blank · 0 comment · 0 complexity · 8cb468a87b2233467ee153f63113d575 MD5 · raw file
- <?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 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_ERROR_EXTRA,
- extraDelayedCheckFunction: checkErrorExtraPage,
- shouldBeHidden: false,
- displayedTextElem: "genericBackgroundErrorLabel",
- buttonClick: "finish"
- } ];
- function runTest() {
- debugDump("entering");
- let url = URL_UPDATE + "?xmlMalformed=1";
- setUpdateURLOverride(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>