Bug 960757 - Fix test_bug656379-1.html timeouts. r=ehsan, a=test-only
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Wed, 22 Oct 2014 06:28:01 +0300
changeset 225784 27b0655c1385
parent 225783 605c6938c9d3
child 225785 ae15f14a1db1
push id4014
push userryanvm@gmail.com
push date2014-10-22 23:37 +0000
treeherdermozilla-beta@27b0655c1385 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, test-only
bugs960757, 656379
milestone34.0
Bug 960757 - Fix test_bug656379-1.html timeouts. r=ehsan, a=test-only
dom/events/test/bug656379-1.html
--- a/dom/events/test/bug656379-1.html
+++ b/dom/events/test/bug656379-1.html
@@ -30,17 +30,17 @@ https://bugzilla.mozilla.org/show_bug.cg
     input[type=button]:focus {
       background: green;
     }
     input[type=button]:focus:hover:active {
       background: purple;
     }
   </style>
 </head>
-<body onload="runTests()">
+<body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=656379">Mozilla Bug 656379</a>
 <p id="display"></p>
 <div id="content" style="display: none">
   
 </div>
 <pre id="test">
 <script type="application/javascript;version=1.8">
 
@@ -50,16 +50,18 @@ var normalButtonCanvas, pressedButtonCan
 
 function runTests() {
   button = $("button");
   label = $("label");
   outside = $("outside");
   SimpleTest.executeSoon(executeTests);
 }
 
+SimpleTest.waitForFocus(runTests);
+
 function isRectContainedInRectFromRegion(rect, region) {
   return Array.some(region, function (r) {
     return rect.left >= r.left &&
            rect.top >= r.top &&
            rect.right <= r.right &&
            rect.bottom <= r.bottom;
   });
 }