aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-03 15:45:24 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-03 15:45:24 -0700
commit9cc7f9fa7a110e6c53f7df7583b40087459d5877 (patch)
treea35d01f4c0b411569bcf04dc72c0711baebcaf42 /tests/runner.py
parent3f62d9c771c2ee342ef95944ddd5e9ab6790a251 (diff)
allow 1/255 color error in reftests, to ignore aliasing
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index c340d3a5..7c988841 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -6598,7 +6598,7 @@ elif 'browser' in str(sys.argv):
total += Math.abs(expected[y*img.width*4 + x*4 + 2] - actual[y*img.width*4 + x*4 + 2]);
}
}
- var wrong = Math.ceil(total / (img.width*img.height*3));
+ var wrong = Math.floor(10 * total / (img.width*img.height*3)); // units are 10 * [0-255 pixel diff]
xhr = new XMLHttpRequest();
xhr.open('GET', 'http://localhost:8888/report_result?' + wrong);