/toolkit/content/tests/chrome/test_bug460942.xul

http://github.com/zpao/v8monkey · Unknown · 42 lines · 37 code · 5 blank · 0 comment · 0 complexity · 591a5ec81e13f68ab9858a1a3a065bef MD5 · raw file

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/css" href="chrome://global/skin"?>
  3. <?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
  4. <!--
  5. https://bugzilla.mozilla.org/show_bug.cgi?id=460942
  6. -->
  7. <window title="Mozilla Bug 460942"
  8. onload="runTests()"
  9. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  10. <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
  11. <!-- test results are displayed in the html:body -->
  12. <body xmlns="http://www.w3.org/1999/xhtml">
  13. <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=460942"
  14. target="_blank">Mozilla Bug 460942</a>
  15. </body>
  16. <!-- test code goes here -->
  17. <richlistbox>
  18. <richlistitem id="item1">
  19. <label value="one"/>
  20. <box>
  21. <label value="two"/>
  22. </box>
  23. </richlistitem>
  24. <richlistitem id="item2"><description>one</description><description>two</description></richlistitem>
  25. </richlistbox>
  26. <script type="application/javascript">
  27. <![CDATA[
  28. /** Test for Bug 460942 **/
  29. function runTests() {
  30. is ($("item1").label, "one two");
  31. is ($("item2").label, "");
  32. SimpleTest.finish();
  33. }
  34. SimpleTest.waitForExplicitFinish();
  35. ]]>
  36. </script>
  37. </window>