Bug 617152. Part 12: Fix 594333-1 reftest to avoid small differences in opacity calculations.
authorRobert O'Callahan <robert@ocallahan.org>
Mon, 20 Dec 2010 14:37:43 +1300
changeset 59497 ab13e951fb72eb7ec50c87132c13d301cfca9b34
parent 59496 54559a5ff834be1d8eccf35e54918e83abca64b6
child 59498 302d1d3e28173a22dbe0808b194eaad379e797b7
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
bugs617152, 594333
milestone2.0b9pre
Bug 617152. Part 12: Fix 594333-1 reftest to avoid small differences in opacity calculations.
layout/reftests/bugs/594333-1-ref.html
layout/reftests/bugs/594333-1.html
--- a/layout/reftests/bugs/594333-1-ref.html
+++ b/layout/reftests/bugs/594333-1-ref.html
@@ -7,11 +7,11 @@ div {
   width: 300px;
   height: 200px;
   background: url(repeatable-diagonal-gradient.png);
 }
 </style>
 </head>
 <body>
   <div id="a" style="width:0"></div>
-  <div id="b" style="opacity:0.5"></div>
+  <div id="b" style="opacity:0.999"></div>
 </body>
 </html>
--- a/layout/reftests/bugs/594333-1.html
+++ b/layout/reftests/bugs/594333-1.html
@@ -8,17 +8,17 @@ div {
   height: 200px;
   background: url(repeatable-diagonal-gradient.png);
 }
 </style>
 <script type="text/javascript">
 var i = 32;
 function test() {
   document.getElementById("a").style.width = (i*10)+'px';
-  document.getElementById("b").style.opacity = i/64.0 + 0.5;
+  document.getElementById("b").style.opacity = 0.999 - i/64.0;
   i--;
   if (i >= 0) {
     setTimeout(test, 10);
   } else {
     document.documentElement.removeAttribute("class");
   }
 }
 </script>