From 705cf3a5e732a0647905b18b2c54e099c6cb1973 Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Thu, 28 Jun 2018 14:05:36 +0200 Subject: [PATCH] Make test less strict on anti aliasing, disable cache. (#5077) * ok * remove canfail --- .travis.yml | 4 ++-- test/visual/svg_import.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 262cf0c37ee..8f8a0e52fb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -74,11 +74,11 @@ jobs: node_js: "8" script: npm run test:visual - stage: Visual Tests - env: LAUNCHER=Chrome CANFAIL=TRUE + env: LAUNCHER=Chrome install: npm install testem@1.18.4 qunit@2.4.1 script: npm run build:fast && testem ci --port 8080 -f testem-visual.json -l $LAUNCHER - stage: Visual Tests - env: LAUNCHER=Firefox CANFAIL=TRUE + env: LAUNCHER=Firefox install: npm install testem@1.18.4 qunit@2.4.1 script: npm run build:fast && testem ci --port 8080 -f testem-visual.json -l $LAUNCHER diff --git a/test/visual/svg_import.js b/test/visual/svg_import.js index 1cba8af324e..aa2a107613b 100644 --- a/test/visual/svg_import.js +++ b/test/visual/svg_import.js @@ -6,10 +6,10 @@ } var fabricCanvas = this.canvas = new fabric.Canvas(null, {enableRetinaScaling: false, renderOnAddRemove: false}); var pixelmatchOptions = { - includeAA: true, - threshold: 0.1 + includeAA: false, + threshold: 0.095 }; - + fabric.Object.prototype.objectCaching = false; function getAbsolutePath(path) { var isAbsolute = /^https?:/.test(path); if (isAbsolute) { return path; };