test_bug446483.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=446483
  5. -->
  6. <head>
  7. <title>Test for Bug 446483</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=446483">Mozilla Bug 446483</a>
  13. <p id="display"></p>
  14. <div id="content" style="display: none">
  15. </div>
  16. <pre id="test">
  17. <script type="application/javascript">
  18. /** Test for Bug 446483 **/
  19. function gc() {
  20. SpecialPowers.gc();
  21. }
  22. function runTest() {
  23. document.getElementById('display').innerHTML =
  24. '<iframe src="bug446483-iframe.html"><\/iframe>\n' +
  25. '<iframe src="bug446483-iframe.html"><\/iframe>\n';
  26. setInterval(gc, 1000);
  27. setTimeout(function() {
  28. document.getElementById('display').innerHTML = '';
  29. ok(true, '');
  30. SimpleTest.finish();
  31. }, 4000);
  32. }
  33. SimpleTest.waitForExplicitFinish();
  34. SimpleTest.requestFlakyTimeout("untriaged");
  35. addLoadEvent(runTest);
  36. </script>
  37. </pre>
  38. </body>
  39. </html>