/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. <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
  8. <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
  9. <window title="Update Wizard pages: update check, add-ons check, basic, add-ons list, download, and finished"
  10. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  11. onload="runTestDefault();">
  12. <script type="application/javascript"
  13. src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
  14. <script type="application/javascript"
  15. src="utils.js"/>
  16. <script type="application/javascript">
  17. <![CDATA[
  18. const TESTS = [ {
  19. pageid: PAGEID_CHECKING
  20. }, {
  21. pageid: PAGEID_INCOMPAT_CHECK
  22. }, {
  23. pageid: PAGEID_FOUND_BASIC,
  24. buttonClick: "next"
  25. }, {
  26. pageid: PAGEID_INCOMPAT_LIST,
  27. extraDelayedCheckFunction: checkIncompatbleList,
  28. buttonClick: "extra1"
  29. }, {
  30. pageid: PAGEID_FOUND_BASIC,
  31. buttonClick: "next"
  32. }, {
  33. pageid: PAGEID_INCOMPAT_LIST,
  34. extraDelayedCheckFunction: checkIncompatbleList,
  35. buttonClick: "next"
  36. }, {
  37. pageid: PAGEID_DOWNLOADING
  38. }, {
  39. pageid: PAGEID_FINISHED,
  40. buttonClick: "extra1"
  41. } ];
  42. function runTest() {
  43. debugDump("entering");
  44. let url = URL_UPDATE + "?showDetails=1" +
  45. getVersionParams(getNewerAppVersion(), getNewerPlatformVersion());
  46. setUpdateURLOverride(url);
  47. gUP.checkForUpdates();
  48. }
  49. ]]>
  50. </script>
  51. <body xmlns="http://www.w3.org/1999/xhtml">
  52. <p id="display"></p>
  53. <div id="content" style="display: none"></div>
  54. <pre id="test"></pre>
  55. </body>
  56. </window>