This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch visual-test-compare-threshold
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit 3223ea8bfe8bf24d8347ad0be34a7283a44afb89
Author: pissang <bm2736...@gmail.com>
AuthorDate: Tue Sep 24 18:05:08 2019 +0800

    test: compare screenshots with smaller threshold in visual regression 
testing
---
 test/runTest/compareScreenshot.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/runTest/compareScreenshot.js 
b/test/runTest/compareScreenshot.js
index 237b07c..f4c1627 100644
--- a/test/runTest/compareScreenshot.js
+++ b/test/runTest/compareScreenshot.js
@@ -35,7 +35,7 @@ function readPNG(path) {
     });
 }
 
-module.exports = function (expectedShotPath, actualShotPath, threshold = 0.1) {
+module.exports = function (expectedShotPath, actualShotPath, threshold = 0.01) 
{
     return Promise.all([
         readPNG(expectedShotPath),
         readPNG(actualShotPath)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to