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

http://github.com/zpao/v8monkey · Unknown · 58 lines · 49 code · 9 blank · 0 comment · 0 complexity · 742e1a65a00e3fc2278ce0f9bc51b98e 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, billoard, basic, license, and manual update (bug 548061)"
  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_FOUND_BILLBOARD,
  22. extraDelayedCheckFunction: checkRemoteContentState,
  23. expectedRemoteContentState: "loading"
  24. }, {
  25. pageid: PAGEID_FOUND_BASIC,
  26. buttonClick: "next"
  27. }, {
  28. pageid: PAGEID_LICENSE,
  29. extraDelayedCheckFunction: checkRemoteContentState,
  30. expectedRemoteContentState: "loading"
  31. }, {
  32. pageid: PAGEID_MANUAL_UPDATE,
  33. buttonClick: "finish"
  34. } ];
  35. function runTest() {
  36. debugDump("entering");
  37. let url = URL_UPDATE + "?billboard404=1&license404=1&showDetails=1" +
  38. getVersionParams();
  39. setUpdateURLOverride(url);
  40. gUP.checkForUpdates();
  41. }
  42. ]]>
  43. </script>
  44. <body xmlns="http://www.w3.org/1999/xhtml">
  45. <p id="display"></p>
  46. <div id="content" style="display: none"></div>
  47. <pre id="test"></pre>
  48. </body>
  49. </window>