PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/toolkit/mozapps/update/test/chrome/test_0043_available_incompat_billboard.xul

http://github.com/zpao/v8monkey
Unknown | 61 lines | 51 code | 10 blank | 0 comment | 0 complexity | e492d473b92d03d2ddccab581fac451a MD5 | raw file
 1<?xml version="1.0"?>
 2<!--
 3/* Any copyright is dedicated to the Public Domain.
 4 * http://creativecommons.org/publicdomain/zero/1.0/
 5 */
 6-->
 7
 8<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
 9<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
10
11<window title="Update Wizard pages: add-ons check, billboard, download, and finished"
12        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
13        onload="runTestDefault();">
14<script type="application/javascript"
15        src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
16<script type="application/javascript"
17        src="utils.js"/>
18
19<script type="application/javascript">
20<![CDATA[
21
22const TESTS = [ {
23  pageid: PAGEID_INCOMPAT_CHECK
24}, {
25  pageid: PAGEID_FOUND_BILLBOARD,
26  extraDelayedCheckFunction: checkRemoteContentState,
27  expectedRemoteContentState: "loading",
28  extraDelayedFinishFunction: addRemoteContentLoadListener
29}, {
30  pageid: PAGEID_FOUND_BILLBOARD,
31  extraStartFunction: waitForRemoteContentLoaded,
32  expectedRemoteContentState: "loaded",
33  buttonClick: "next"
34}, {
35  pageid: PAGEID_DOWNLOADING
36}, {
37  pageid: PAGEID_FINISHED,
38  buttonClick: "extra1"
39} ];
40
41gDisableNoUpdateAddon = true;
42
43function runTest() {
44  debugDump("entering");
45
46  let url = URL_UPDATE + "?showBillboard=1&showPrompt=1&showDetails=1" +
47            getVersionParams(getNewerAppVersion(), getNewerPlatformVersion());
48  setUpdateURLOverride(url);
49
50  gAUS.notify(null);
51}
52
53]]>
54</script>
55
56<body xmlns="http://www.w3.org/1999/xhtml">
57  <p id="display"></p>
58  <div id="content" style="display: none"></div>
59  <pre id="test"></pre>
60</body>
61</window>