test_bug586786.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=586786
  5. -->
  6. <head>
  7. <title>Test for Bug 586786</title>
  8. <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  9. <script type="application/javascript" src="reflect.js"></script>
  10. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  11. </head>
  12. <body>
  13. <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=586786">Mozilla Bug 586786</a>
  14. <p id="display"></p>
  15. <div id="content" style="display: none">
  16. </div>
  17. <pre id="test">
  18. <script type="application/javascript">
  19. /** Test for Bug 586786 **/
  20. var elements = ["col", "colgroup", "tbody", "tfoot", "thead", "tr", "td", "th"];
  21. for(var i = 0; i < elements.length; i++)
  22. {
  23. reflectString({
  24. element: document.createElement(elements[i]),
  25. attribute: "align",
  26. otherValues: [ "left", "right", "center", "justify", "char" ]
  27. });
  28. reflectString({
  29. element: document.createElement(elements[i]),
  30. attribute: "vAlign",
  31. otherValues: [ "top", "middle", "bottom", "baseline" ]
  32. });
  33. reflectString({
  34. element: document.createElement(elements[i]),
  35. attribute: {idl: "ch", content: "char"}
  36. });
  37. }
  38. // table.border, table.width
  39. reflectString({
  40. element: document.createElement("table"),
  41. attribute: "border"
  42. });
  43. reflectString({
  44. element: document.createElement("table"),
  45. attribute: "width"
  46. });
  47. </script>
  48. </pre>
  49. </body>
  50. </html>