aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-03 16:46:57 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-03 16:46:57 -0700
commit3879a0c9ce74e4602c2c8388b4ddd2b50459ec48 (patch)
treee5c1401bcdcf9b3ff54fef5645bf95458c5f5a7d
parent80ed60983b3f9b51bf6d6622e44b08b894e7fd9d (diff)
allow more reftest margin of error
-rwxr-xr-xtests/runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 03629b12..b6673109 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.floor(10 * total / (img.width*img.height*3)); // units are 10 * [0-255 pixel diff]
+ var wrong = Math.floor(total / (img.width*img.height*3)); // floor, to allow some margin of error for antialiasing
xhr = new XMLHttpRequest();
xhr.open('GET', 'http://localhost:8888/report_result?' + wrong);