mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
59 lines
1.8 KiB
XML
59 lines
1.8 KiB
XML
<?xml version="1.0"?>
|
|
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
|
|
<?xml-stylesheet
|
|
href="chrome://mochikit/content/tests/SimpleTest/test.css"
|
|
type="text/css"?>
|
|
<!--
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=451286
|
|
-->
|
|
<window title="Mozilla Bug 451286"
|
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
<title>Test for Bug 451286</title>
|
|
<script type="application/javascript"
|
|
src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
|
<script type="application/javascript"
|
|
src="chrome://mochikit/content/tests/SimpleTest/WindowSnapshot.js"></script>
|
|
|
|
<body xmlns="http://www.w3.org/1999/xhtml">
|
|
<a target="_blank"
|
|
href="https://bugzilla.mozilla.org/show_bug.cgi?id=451286">
|
|
Mozilla Bug 451286
|
|
</a>
|
|
|
|
<p id="display"></p>
|
|
<div id="content" style="display: none">
|
|
</div>
|
|
<pre id="test">
|
|
</pre>
|
|
</body>
|
|
|
|
<script class="testbody" type="application/javascript">
|
|
<![CDATA[
|
|
|
|
// To be called by the window we open.
|
|
function parentFinish() {
|
|
// This is called with JS code from the window we open on the
|
|
// stack. We need to GC everything in that window, so do that
|
|
// from a timeout and then call SimpleTest.finish().
|
|
setTimeout(doFinish, 0);
|
|
}
|
|
|
|
function doFinish() {
|
|
// Garbage collect objects created in this test can cause
|
|
// assertions, so GC now to blame those assertions to this test.
|
|
SpecialPowers.gc();
|
|
SimpleTest.finish();
|
|
}
|
|
|
|
/** Test for Bug 451286 **/
|
|
SimpleTest.waitForExplicitFinish();
|
|
window.open("bug451286_window.xul", "451286test",
|
|
"chrome,width=600,height=600");
|
|
|
|
]]>
|
|
</script>
|
|
|
|
</window>
|