test_bug355213.xhtml 931 B

123456789101112131415161718192021222324252627282930313233343536
  1. <html xmlns="http://www.w3.org/1999/xhtml">
  2. <!--
  3. https://bugzilla.mozilla.org/show_bug.cgi?id=355213
  4. -->
  5. <head>
  6. <title>Test for Bug 355213</title>
  7. <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  8. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
  9. </head>
  10. <body>
  11. <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=355213">Mozilla Bug 355213</a>
  12. <p id="display"></p>
  13. <div id="content" style="display: none">
  14. </div>
  15. <pre id="test">
  16. <script class="testbody" type="text/javascript">
  17. <![CDATA[
  18. /** Test for Bug 355213 **/
  19. var firstWidth = document.getElementById('display').offsetWidth;
  20. SimpleTest.waitForExplicitFinish();
  21. addLoadEvent(
  22. function() {
  23. is(firstWidth, document.getElementById('test').offsetWidth,
  24. "Width should not change");
  25. });
  26. addLoadEvent(SimpleTest.finish);
  27. ]]>
  28. </script>
  29. </pre>
  30. </body>
  31. </html>