1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/xul/document/test/test_bug497875.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,53 @@ 1.4 +<?xml version="1.0"?> 1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> 1.6 +<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" 1.7 + type="text/css"?> 1.8 +<!-- 1.9 +https://bugzilla.mozilla.org/show_bug.cgi?id=497875 1.10 +--> 1.11 +<window title="Mozilla Bug 497875" 1.12 + xmlns:html="http://www.w3.org/1999/xhtml" 1.13 + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 1.14 + 1.15 + <script type="application/javascript" 1.16 + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> 1.17 + 1.18 +<body xmlns="http://www.w3.org/1999/xhtml"> 1.19 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=497875">Mozilla Bug 497875</a> 1.20 +<p id="display"><iframe id="iframe" src="bug497875-iframe.xul"></iframe></p> 1.21 +<div id="content" style="display: none"> 1.22 + 1.23 +</div> 1.24 +<pre id="test"> 1.25 +</pre> 1.26 +</body> 1.27 + 1.28 +<script class="testbody" type="application/javascript"> 1.29 +<![CDATA[ 1.30 + 1.31 +/** Test for Bug 497875 **/ 1.32 + 1.33 +SimpleTest.waitForExplicitFinish(); 1.34 + 1.35 +function done_test() { 1.36 + var f = document.getElementById('iframe') 1.37 + f.src="about:blank" 1.38 + f.parentNode.removeChild(f) 1.39 + ok(true, "this is a crashtest"); 1.40 + SimpleTest.finish(); 1.41 +} 1.42 + 1.43 +function do_test() { 1.44 + setTimeout(function () {document.getElementById('iframe').contentWindow.location.reload()}, 500); 1.45 + setTimeout(function () {document.getElementById('iframe').contentWindow.location.reload()}, 1000); 1.46 + setTimeout(function () {document.getElementById('iframe').contentWindow.location.reload()}, 1500); 1.47 + setTimeout(done_test, 2000); 1.48 +} 1.49 + 1.50 +do_test(); 1.51 + 1.52 + 1.53 +]]> 1.54 +</script> 1.55 + 1.56 +</window>