|
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: billboard, license, 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 |
|
22 const TESTS = [ { |
|
23 pageid: PAGEID_FOUND_BILLBOARD, |
|
24 extraDelayedCheckFunction: checkRemoteContentState, |
|
25 expectedRemoteContentState: "loading", |
|
26 extraDelayedFinishFunction: addRemoteContentLoadListener |
|
27 }, { |
|
28 pageid: PAGEID_FOUND_BILLBOARD, |
|
29 extraStartFunction: waitForRemoteContentLoaded, |
|
30 expectedRemoteContentState: "loaded", |
|
31 buttonClick: "next" |
|
32 }, { |
|
33 pageid: PAGEID_LICENSE, |
|
34 extraCheckFunction: checkRadioGroupSelectedIndex, |
|
35 expectedRadioGroupSelectedIndex: 1, |
|
36 extraDelayedCheckFunction: checkRemoteContentState, |
|
37 expectedRemoteContentState: "loading", |
|
38 extraDelayedFinishFunction: addRemoteContentLoadListener |
|
39 }, { |
|
40 pageid: PAGEID_LICENSE, |
|
41 extraStartFunction: waitForRemoteContentLoaded, |
|
42 expectedRemoteContentState: "loaded", |
|
43 extraCheckFunction: checkRadioGroupSelectedIndex, |
|
44 expectedRadioGroupSelectedIndex: 1, |
|
45 extraDelayedFinishFunction: addRadioGroupSelectListenerAndClick, |
|
46 radioClick: "accept" |
|
47 }, { |
|
48 pageid: PAGEID_LICENSE, |
|
49 extraCheckFunction: checkRadioGroupSelectedIndex, |
|
50 expectedRadioGroupSelectedIndex: 0, |
|
51 buttonClick: "extra1" |
|
52 }, { |
|
53 pageid: PAGEID_FOUND_BILLBOARD, |
|
54 extraCheckFunction: checkRemoteContentState, |
|
55 expectedRemoteContentState: "loaded", |
|
56 buttonClick: "next" |
|
57 }, { |
|
58 pageid: PAGEID_LICENSE, |
|
59 extraCheckFunction: checkRadioGroupSelectedIndex, |
|
60 expectedRadioGroupSelectedIndex: 0, |
|
61 extraDelayedFinishFunction: addRadioGroupSelectListenerAndClick, |
|
62 radioClick: "decline" |
|
63 }, { |
|
64 pageid: PAGEID_LICENSE, |
|
65 extraCheckFunction: checkRadioGroupSelectedIndex, |
|
66 expectedRadioGroupSelectedIndex: 1, |
|
67 extraDelayedFinishFunction: addRadioGroupSelectListenerAndClick, |
|
68 radioClick: "accept" |
|
69 }, { |
|
70 pageid: PAGEID_LICENSE, |
|
71 extraCheckFunction: checkRadioGroupSelectedIndex, |
|
72 expectedRadioGroupSelectedIndex: 0, |
|
73 buttonClick: "next" |
|
74 }, { |
|
75 pageid: PAGEID_DOWNLOADING |
|
76 }, { |
|
77 pageid: PAGEID_FINISHED, |
|
78 buttonClick: "extra1" |
|
79 } ]; |
|
80 |
|
81 function runTest() { |
|
82 debugDump("entering"); |
|
83 |
|
84 let url = URL_HTTP_UPDATE_XML + "?showBillboard=1&showLicense=1" + |
|
85 "&showDetails=1&showPrompt=1" + getVersionParams(); |
|
86 setUpdateURLOverride(url); |
|
87 |
|
88 gAUS.notify(null); |
|
89 } |
|
90 |
|
91 ]]> |
|
92 </script> |
|
93 |
|
94 <body xmlns="http://www.w3.org/1999/xhtml"> |
|
95 <p id="display"></p> |
|
96 <div id="content" style="display: none"></div> |
|
97 <pre id="test"></pre> |
|
98 </body> |
|
99 </window> |