mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 17:59:34 +00:00
Bug 650543 - Rewrite the test for bug 419132 to make it sane, and re-enable it; r=sicking
This commit is contained in:
parent
4d99b1c73f
commit
47322a8c6b
@ -133,8 +133,8 @@ _TEST_FILES1 = test_bug5141.html \
|
||||
test_bug395915.html \
|
||||
test_bug397234.html \
|
||||
test_bug398243.html \
|
||||
$(warning test_bug419132.html disabled because it takes 60 seconds) \
|
||||
$(warning bug419132.html disabled because it takes 60 seconds) \
|
||||
test_bug419132.html \
|
||||
bug419132.html \
|
||||
formReset.html \
|
||||
bug382113_object.html \
|
||||
test_bug326337.html \
|
||||
|
@ -1,12 +1,4 @@
|
||||
<html><head>
|
||||
<script>
|
||||
function doe() {
|
||||
window.location.reload();
|
||||
}
|
||||
setTimeout(doe, 400);
|
||||
|
||||
</script>
|
||||
|
||||
</head><body>
|
||||
<span>
|
||||
<span id="a" tabindex="1">
|
||||
|
@ -15,22 +15,32 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=419132
|
||||
<div id="content" style="display: none">
|
||||
|
||||
</div>
|
||||
<iframe src="bug419132.html"></iframe>
|
||||
<iframe id="i"></iframe>
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
|
||||
/** Test for Bug 419132 **/
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
setTimeout(finish, 60000)
|
||||
|
||||
function finish()
|
||||
{
|
||||
ok(true, "This is a mochikit version of a crash test. To complete is to pass.");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
addLoadEvent(function() {
|
||||
var iframe = document.getElementById("i");
|
||||
var loadCounts = 4;
|
||||
iframe.addEventListener("load", function() {
|
||||
if (--loadCounts == 0) {
|
||||
ok(true, "This is a mochikit version of a crash test. To complete is to pass.");
|
||||
SimpleTest.finish();
|
||||
} else {
|
||||
// Garbage collect after every other load
|
||||
if ((loadCounts % 2) == 1) {
|
||||
SpecialPowers.gc();
|
||||
}
|
||||
setTimeout(function() {
|
||||
iframe.contentWindow.location.reload();
|
||||
}, 0);
|
||||
}
|
||||
}, false);
|
||||
iframe.src = "bug419132.html";
|
||||
});
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
|
Loading…
x
Reference in New Issue
Block a user