PageRenderTime 24ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://github.com/zpao/v8monkey
Unknown | 65 lines | 56 code | 9 blank | 0 comment | 0 complexity | 62daea87347ad954fff4f5484c0d5165 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, basic, 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_BASIC,
28  buttonClick: "next"
29}, {
30  pageid: PAGEID_INCOMPAT_LIST,
31  extraDelayedCheckFunction: checkIncompatbleList,
32  buttonClick: "extra1"
33}, {
34  pageid: PAGEID_FOUND_BASIC,
35  buttonClick: "next"
36}, {
37  pageid: PAGEID_INCOMPAT_LIST,
38  extraDelayedCheckFunction: checkIncompatbleList,
39  buttonClick: "next"
40}, {
41  pageid: PAGEID_DOWNLOADING
42}, {
43  pageid: PAGEID_FINISHED,
44  buttonClick: "extra1"
45} ];
46
47function runTest() {
48  debugDump("entering");
49
50  let url = URL_UPDATE + "?showDetails=1" +
51            getVersionParams(getNewerAppVersion(), getNewerPlatformVersion());
52  setUpdateURLOverride(url);
53
54  gUP.checkForUpdates();
55}
56
57]]>
58</script>
59
60<body xmlns="http://www.w3.org/1999/xhtml">
61  <p id="display"></p>
62  <div id="content" style="display: none"></div>
63  <pre id="test"></pre>
64</body>
65</window>