Bug 1123979 - Make the crashtest for bug 769303 more reliable by using reftest-wait correctly. r=mats
authorL. David Baron <dbaron@dbaron.org>
Fri, 20 Mar 2015 06:47:28 -0700
changeset 263587 67fa35a8f1a1c835a3a1b58c17e1b546c79aa9a3
parent 263586 d3c9b899f7d205a33b53ec9c11d41955955c6089
child 263588 c2724e2f9de9c64a3e811fcfcce75c07ac50eaff
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmats
bugs1123979, 769303
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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.
layout/generic/crashtests/769303-1.html
--- a/layout/generic/crashtests/769303-1.html
+++ b/layout/generic/crashtests/769303-1.html
@@ -1,8 +1,9 @@
+<html class="reftest-wait">
 <style>
 p::first-letter {
     float: left;
     }
 p:before {
     content: counter(e2);
     }
 p:not([type=image]) {
@@ -16,13 +17,17 @@ document.removeEventListener("DOMContent
 test2 = test1.cloneNode(false);
 test3 = test2.cloneNode(false);
 document.documentElement.appendChild(test3);
 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>