Increase transitions test bezier tolerance to 0.0015 since bug 522862 comment 0 has an example that requires it to be 0.0012. (Bug 522862, Bug 435441)
authorL. David Baron <dbaron@dbaron.org>
Sat, 17 Oct 2009 10:56:38 -0400
changeset 33988 f8a2075294dc852a6140c0aa6219dc699ad82421
parent 33987 886ab0434035bec4f7d7c152c2b523e45e067066
child 33989 06cecc61ffeb269dc03b86272cfb33e4c0479626
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs522862, 435441
milestone1.9.3a1pre
Increase transitions test bezier tolerance to 0.0015 since bug 522862 comment 0 has an example that requires it to be 0.0012. (Bug 522862, Bug 435441)
layout/style/test/test_transitions.html
--- a/layout/style/test/test_transitions.html
+++ b/layout/style/test/test_transitions.html
@@ -397,17 +397,17 @@ function check_transition_value(func, st
     function value_at(elapsed, error_direction) {
         var time_portion = (elapsed - start_time) / (end_time - start_time);
         if (time_portion < 0)
             time_portion = 0;
         else if (time_portion > 1)
             time_portion = 1;
         // Assume a small error since bezier computation can be off slightly.
         // (This test's computation is probably more accurate than Mozilla's.)
-        var value_portion = func(time_portion) + error_direction * 0.0007;
+        var value_portion = func(time_portion) + error_direction * 0.0015;
         if (value_portion < 0)
             value_portion = 0;
         else if (value_portion > 1)
             value_portion = 1;
         var value = (1 - value_portion) * start_value + value_portion * end_value;
         if (start_value > end_value)
             error_direction = -error_direction;
         // Computed values get rounded to 1/60th of a pixel.