/toolkit/mozapps/update/test/chrome/test_0016_check_incompat_basic_license_addons.xul
http://github.com/zpao/v8monkey · Unknown · 105 lines · 96 code · 9 blank · 0 comment · 0 complexity · 9738b7002e26feac165514428644c41d 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, add-ons check, basic, license, add-ons list, download, and finished"
- 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_INCOMPAT_CHECK
- }, {
- pageid: PAGEID_FOUND_BASIC,
- buttonClick: "next"
- }, {
- pageid: PAGEID_LICENSE,
- extraCheckFunction: checkRadioGroupSelectedIndex,
- expectedRadioGroupSelectedIndex: 1,
- extraDelayedCheckFunction: checkRemoteContentState,
- expectedRemoteContentState: "loading",
- extraDelayedFinishFunction: addRemoteContentLoadListener
- }, {
- pageid: PAGEID_LICENSE,
- extraStartFunction: waitForRemoteContentLoaded,
- expectedRemoteContentState: "loaded",
- extraCheckFunction: checkRadioGroupSelectedIndex,
- expectedRadioGroupSelectedIndex: 1,
- extraDelayedFinishFunction: addRadioGroupSelectListenerAndClick,
- radioClick: "accept"
- }, {
- pageid: PAGEID_LICENSE,
- extraCheckFunction: checkRadioGroupSelectedIndex,
- expectedRadioGroupSelectedIndex: 0,
- buttonClick: "next"
- }, {
- pageid: PAGEID_INCOMPAT_LIST,
- extraDelayedCheckFunction: checkIncompatbleList,
- buttonClick: "extra1"
- }, {
- pageid: PAGEID_LICENSE,
- buttonClick: "extra1"
- }, {
- pageid: PAGEID_FOUND_BASIC,
- buttonClick: "next"
- }, {
- pageid: PAGEID_LICENSE,
- extraCheckFunction: checkRadioGroupSelectedIndex,
- expectedRadioGroupSelectedIndex: 0,
- extraDelayedFinishFunction: addRadioGroupSelectListenerAndClick,
- radioClick: "decline"
- }, {
- pageid: PAGEID_LICENSE,
- extraCheckFunction: checkRadioGroupSelectedIndex,
- expectedRadioGroupSelectedIndex: 1,
- extraDelayedFinishFunction: addRadioGroupSelectListenerAndClick,
- radioClick: "accept"
- }, {
- pageid: PAGEID_LICENSE,
- extraCheckFunction: checkRadioGroupSelectedIndex,
- expectedRadioGroupSelectedIndex: 0,
- buttonClick: "next"
- }, {
- pageid: PAGEID_INCOMPAT_LIST,
- extraDelayedCheckFunction: checkIncompatbleList,
- buttonClick: "next"
- }, {
- pageid: PAGEID_DOWNLOADING
- }, {
- pageid: PAGEID_FINISHED,
- buttonClick: "extra1"
- } ];
- function runTest() {
- debugDump("entering");
- let url = URL_UPDATE + "?showLicense=1&showDetails=1" +
- getVersionParams(getNewerAppVersion(), getNewerPlatformVersion());
- 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>