/toolkit/mozapps/update/test/chrome/test_0054_check_billboard_license_404.xul
http://github.com/zpao/v8monkey · Unknown · 58 lines · 49 code · 9 blank · 0 comment · 0 complexity · 742e1a65a00e3fc2278ce0f9bc51b98e 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="Update Wizard pages: update check, billoard, basic, license, and manual update (bug 548061)"
- 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_FOUND_BILLBOARD,
- extraDelayedCheckFunction: checkRemoteContentState,
- expectedRemoteContentState: "loading"
- }, {
- pageid: PAGEID_FOUND_BASIC,
- buttonClick: "next"
- }, {
- pageid: PAGEID_LICENSE,
- extraDelayedCheckFunction: checkRemoteContentState,
- expectedRemoteContentState: "loading"
- }, {
- pageid: PAGEID_MANUAL_UPDATE,
- buttonClick: "finish"
- } ];
- function runTest() {
- debugDump("entering");
- let url = URL_UPDATE + "?billboard404=1&license404=1&showDetails=1" +
- getVersionParams();
- setUpdateURLOverride(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>