Bug 1123979 - Make the crashtest for bug 769303 more reliable by using reftest-wait correctly. r=mats

Once we do this, we'll be able to get a better sense of how common this
intermittent failure is and where it occurs.
This commit is contained in:
L. David Baron 2015-03-20 06:47:28 -07:00
Родитель 73cf6b02a1
Коммит 3ad133576f
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,4 @@
<html class="reftest-wait">
<style>
p::first-letter {
float: left;
@ -21,8 +22,12 @@ setTimeout("CFcrash()", 21);
document.addEventListener("DOMContentLoaded", initCF, false);
window.onload = initCF;
var gCallCount = 0;
function CFcrash() {
test3.appendChild(document.createTextNode(" bBCV5.3kvwoaU O8k l i!4c`Ei;N-#/ Qg QBZi$8A [8xlL#cN U4l !%lP S% Z9[H } {2Jk A00F8 TjQQ1KHx zf k]F-G ,%lz8?@ 2ZB!-"));
window.scrollBy(-463, -480);
if (++gCallCount == 2) {
document.documentElement.classList.remove("reftest-wait");
}
}
</script>