gecko/layout/base/tests/test_bug399951.html
Ehsan Akhgari 20474e5ba7 Bug 649012 - Fail mochitest-plains which use flaky timeouts (setTimeout(x) for x > 0); r=ted
We are white-listing the existing set of tests that use setTimeout
like this.  Hopefully these tests will be investigated and fixed
in the future, so that we can narrow down the white-list.

This check is only turned on for mochitest-plain for now.
2014-12-11 13:34:40 -05:00

35 lines
846 B
HTML

<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=399951
-->
<head>
<title>Test for Bug 399951</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body style="direction: rtl" onload="document.body.style.direction = 'ltr';">
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=399951">Mozilla Bug 399951</a>
<div style="white-space: pre;">
.i
h
f
</div>
<pre id="test">
<script class="testbody" type="text/javascript">
function test()
{
/** Test for Bug 399951 **/
ok(true, "Should not crash");
SimpleTest.finish();
}
SimpleTest.requestFlakyTimeout("untriaged");
setTimeout(test, 500);
SimpleTest.waitForExplicitFinish();
</script>
</pre>
</body>
</html>