Bug 1381283: The original test is meant to simulate reloading until the crash. Now that we're not crashing, we limit it to 10 reloads, to avoid any kind of a race condition and not terminating the test. r?aosmond
draft
Bug 1381283: The original test is meant to simulate reloading until the crash. Now that we're not crashing, we limit it to 10 reloads, to avoid any kind of a race condition and not terminating the test. r?aosmond
MozReview-Commit-ID: 6GBLHNUAj3G
--- a/gfx/tests/crashtests/783041-2.html
+++ b/gfx/tests/crashtests/783041-2.html
@@ -38,26 +38,36 @@
display: table-row-group;
-moz-transform:translate3d(0, 80px, 0);
}
#el2:after {
content: counter(c, cjk-ideographic) attr(id);
}
</style>
<script>
+ function MaybeReload() {
+ var countdown = 10;
+ if (location.search) {
+ countdown = parseInt(location.search.slice(1)) - 1;
+ }
+ if (countdown > 0) {
+ location.search = countdown;
+ }
+ }
+
onload = function() {
el0=document.createElement('div')
el0.setAttribute('id','el0')
document.body.appendChild(el0)
el1=document.createElement('div')
el1.setAttribute('id','el1')
el0.appendChild(el1)
el2=document.createElement('q')
el2.setAttribute('id','el2')
el1.appendChild(el2)
el0.appendChild(document.createTextNode('A'))
- setTimeout("location.reload()", 100)
+ setTimeout("MaybeReload()", 100)
}
</script>
</head>
<body>
</body>
</html>