Make test less strict on anti aliasing, disable cache. (#5077)

* ok

* remove canfail
This commit is contained in:
Andrea Bogazzi 2018-06-28 14:05:36 +02:00 committed by GitHub
parent d95db41608
commit 705cf3a5e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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; };