tenfourfox/toolkit/content/tests/chrome/test_bug451286.xul
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

57 lines
1.7 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="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<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>