test_bug809547.html 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=809547
  5. -->
  6. <head>
  7. <meta charset="utf-8">
  8. <title>Test for Bug 809547</title>
  9. <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  10. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  11. </head>
  12. <body onload="go()">
  13. <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=809547">Mozilla Bug 809547</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 809547 **/
  20. SimpleTest.waitForExplicitFinish();
  21. var gObj = {};
  22. function go() {
  23. window.location.expando = gObj;
  24. is(window.location.expando, gObj, "Expando appears");
  25. SimpleTest.executeSoon(finish);
  26. }
  27. function finish() {
  28. SpecialPowers.forceGC();
  29. SpecialPowers.forceCC();
  30. SpecialPowers.forceGC();
  31. SpecialPowers.forceCC();
  32. is(window.location.expando, gObj, "Expando preserved");
  33. SimpleTest.finish();
  34. }
  35. </script>
  36. </pre>
  37. </body>
  38. </html>