Bug 915951 - Adjust precision in test_bug388794.html to avoid a rounding issue. r=roc, a=test-only
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Thu, 31 Oct 2013 22:14:00 -0700
changeset 167317 337662d0820797a9bab3d6379b454da50abf5285
parent 167316 47dad5d6661469cc76a41d7a6bf90946a6b5dea7
child 167318 4c4bd25aeaed49208eab789197311c00728b9454
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, test-only
bugs915951, 388794
milestone27.0a2
Bug 915951 - Adjust precision in test_bug388794.html to avoid a rounding issue. r=roc, a=test-only
content/html/content/test/test_bug388794.html
--- a/content/html/content/test/test_bug388794.html
+++ b/content/html/content/test/test_bug388794.html
@@ -63,24 +63,24 @@ var hrefs = {
 function submitForm(idNum) {
   $("test"+idNum).setAttribute("onload", "frameLoaded(this)");
   $("test" + idNum + "image").focus();
   sendKey("return");
 }
 
 function submitFormMouse(idNum) {
   $("test"+idNum).setAttribute("onload", "frameLoaded(this)");
-  // Use 4.999 instead of 5 to guard against the possibility that the
+  // Use 4.99 instead of 5 to guard against the possibility that the
   // image's 'top' is exactly N + 0.5 pixels from the root. In that case
   // we'd round up the widget mouse coordinate to N + 6, which relative
   // to the image would be 5.5, which would get rounded up to 6 when
   // submitting the form. Instead we round the widget mouse coordinate to
   // N + 5, which relative to the image would be 4.5 which gets rounded up
   // to 5.
-  synthesizeMouse($("test" + idNum + "image"), 4.999, 4.999, {});
+  synthesizeMouse($("test" + idNum + "image"), 4.99, 4.99, {});
 }
 
 addLoadEvent(function() {
   // Need the timeout so painting has a chance to be unsuppressed.
   setTimeout(function() {
     submitForm(++pendingLoads);
     submitForm(++pendingLoads);
     submitForm(++pendingLoads);