test_bug613722.html 855 B

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=613722
  5. -->
  6. <head>
  7. <title>Test for Bug 613722</title>
  8. <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  9. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  10. </head>
  11. <body>
  12. <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=613722">Mozilla Bug 613722</a>
  13. <p id="display"></p>
  14. <div id="content">
  15. <embed src="test_plugin.tst" hidden>
  16. </div>
  17. <pre id="test">
  18. <script type="application/javascript">
  19. /** Test for Bug 613722 **/
  20. var rect = document.getElementsByTagName('embed')[0].getBoundingClientRect();
  21. var hasFrame = rect.left != 0 || rect.right != 0 || rect.top != 0 ||
  22. rect.bottom != 0;
  23. ok(hasFrame, "embed should have a frame with hidden set");
  24. </script>
  25. </pre>
  26. </body>
  27. </html>