blob: cb9f571abad37ccff531bdcfc23f725a6c63df20 [file] [log] [blame]
<html><body>
<p> Test for: <a href="https://bugs.webkit.org/show_bug.cgi?id=68238">bug 68238<a>: [soup] Crash while loading http://www.jusco.cn</a> This test verifies that WebCore timers do not fire during synchronous XMLHttpRequests.
<pre id=log></pre>
<script type="text/javascript">
if (window.testRunner)
testRunner.dumpAsText();
function log(message)
{
document.getElementById("log").innerHTML += message + "\n";
}
var timerEverFired = false;
var intervalId = setInterval(function() {
timerEverFired = true;
}, 10);
try {
var req = new XMLHttpRequest();
req.open("GET", "resources/download-with-delay.py?iteration=5&delay=50", false);
req.send(null);
} catch (ex) {
log(ex);
}
clearInterval(intervalId);
log(timerEverFired ? "FAIL" : "PASS");
</script>
</body></html>