winopen.xul 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  2. <window
  3. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  4. orient="vertical"
  5. height="300"
  6. width="400"
  7. windowtype="opener:test"
  8. onunload="restoreChromeURL();"
  9. onload="scheduleNextWindow();">
  10. <script src="winopen.js" type="application/x-javascript"></script>
  11. <groupbox orient="vertical">
  12. <caption label="Window Opening Test"/>
  13. <html>
  14. This will open a series of browser windows, either "one at a
  15. time" or in a sequence of some form. When this test is complete
  16. a final window will be opened which will report the overall results.
  17. </html>
  18. <separator class="thick"/>
  19. <grid>
  20. <columns><column/><column/></columns>
  21. <rows>
  22. <row align="center">
  23. <text value="Index:"/>
  24. <textbox id="formIndex" size="6" value=""/>
  25. </row>
  26. <row align="center">
  27. <text value="Time:"/>
  28. <textbox id="formTime" size="6" value=""/>
  29. <text value="msec"/>
  30. </row>
  31. </rows>
  32. </grid>
  33. <separator class="thick"/>
  34. </groupbox>
  35. <groupbox orient="vertical">
  36. <caption label="Results"/>
  37. <grid>
  38. <columns>
  39. <column/>
  40. <column/>
  41. </columns>
  42. <rows>
  43. <row align="center">
  44. <text value="Times (ignoring the first):"/>
  45. <textbox id="formTimes" size="45" value=""/>
  46. </row>
  47. <row align="center">
  48. <text value="Txul (median):"/>
  49. <hbox>
  50. <textbox id="formMed" size="6" value=""/>
  51. <spring/>
  52. <button id="formAgain" onclick="tryAgain();" label="Try again" disabled="true"/>
  53. </hbox>
  54. </row>
  55. <row align="center">
  56. <text value="Avg:"/>
  57. <hbox><textbox id="formAvg" size="6" value=""/></hbox>
  58. </row>
  59. <row align="center">
  60. <text value="Min:"/>
  61. <hbox><textbox id="formMin" size="6" value=""/></hbox>
  62. </row>
  63. <row align="center">
  64. <text value="Max:"/>
  65. <hbox><textbox id="formMax" size="6" value=""/></hbox>
  66. </row>
  67. </rows>
  68. </grid>
  69. </groupbox>
  70. </window>