PageRenderTime 18ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/zpao/v8monkey
Unknown | 74 lines | 65 code | 9 blank | 0 comment | 0 complexity | 0b8ae1da251dac1754df6de8a073e26b 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: update check, add-ons check, billboard, add-ons list, 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_CHECKING
24}, {
25  pageid: PAGEID_INCOMPAT_CHECK
26}, {
27  pageid: PAGEID_FOUND_BILLBOARD,
28  extraDelayedCheckFunction: checkRemoteContentState,
29  expectedRemoteContentState: "loading",
30  extraDelayedFinishFunction: addRemoteContentLoadListener
31}, {
32  pageid: PAGEID_FOUND_BILLBOARD,
33  extraStartFunction: waitForRemoteContentLoaded,
34  expectedRemoteContentState: "loaded",
35  buttonClick: "next"
36}, {
37  pageid: PAGEID_INCOMPAT_LIST,
38  extraDelayedCheckFunction: checkIncompatbleList,
39  buttonClick: "extra1"
40}, {
41  pageid: PAGEID_FOUND_BILLBOARD,
42  extraCheckFunction: checkRemoteContentState,
43  expectedRemoteContentState: "loaded",
44  buttonClick: "next"
45}, {
46  pageid: PAGEID_INCOMPAT_LIST,
47  extraDelayedCheckFunction: checkIncompatbleList,
48  buttonClick: "next"
49}, {
50  pageid: PAGEID_DOWNLOADING
51}, {
52  pageid: PAGEID_FINISHED,
53  buttonClick: "extra1"
54} ];
55
56function runTest() {
57  debugDump("entering");
58
59  let url = URL_UPDATE + "?showBillboard=1&showDetails=1" +
60            getVersionParams(getNewerAppVersion(), getNewerPlatformVersion());
61  setUpdateURLOverride(url);
62
63  gUP.checkForUpdates();
64}
65
66]]>
67</script>
68
69<body xmlns="http://www.w3.org/1999/xhtml">
70  <p id="display"></p>
71  <div id="content" style="display: none"></div>
72  <pre id="test"></pre>
73</body>
74</window>