Skip to content

Commit

Permalink
Make test less strict on anti aliasing, disable cache. (#5077)
Browse files Browse the repository at this point in the history
* ok

* remove canfail
  • Loading branch information
asturur authored Jun 28, 2018
1 parent d95db41 commit 705cf3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] [email protected]
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 [email protected] [email protected]
script: npm run build:fast && testem ci --port 8080 -f testem-visual.json -l $LAUNCHER

Expand Down
6 changes: 3 additions & 3 deletions test/visual/svg_import.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; };
Expand Down

0 comments on commit 705cf3a

Please sign in to comment.