aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/gears.pngbin5848 -> 7832 bytes
-rwxr-xr-xtests/runner.py2
2 files changed, 1 insertions, 1 deletions
diff --git a/tests/gears.png b/tests/gears.png
index 6a30d534..ffb855c4 100644
--- a/tests/gears.png
+++ b/tests/gears.png
Binary files differ
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);