Skip to content

Commit

Permalink
Travis CI: Use Arial in all SVG tests and reduce tolerance.
Browse files Browse the repository at this point in the history
  • Loading branch information
lehni committed Mar 17, 2016
1 parent 17555b1 commit d6ce470
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
8 changes: 4 additions & 4 deletions test/assets/clipping.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ var compareSVG = function(done, actual, expected, message, options) {

function compare() {
comparePixels(actual, expected, message, Base.set({
tolerance: 1e-2,
tolerance: 1e-3,
resolution: 72
}, options));
done();
Expand Down
16 changes: 4 additions & 12 deletions test/tests/SvgImport.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,20 +157,12 @@ function importSVG(assert, url, message, options) {

if (!isNode) {
// JSDom does not have SVG rendering, so we can't test there.
var svgFiles = {
'butterfly': {},
'viewbox': {},
'clipping': {},
'arcs': { tolerance: 1e-3 },
'symbol': {},
'symbols': {},
'blendModes': {},
'gradients-1': {}
};
var svgFiles = ['butterfly', 'viewbox', 'clipping', 'arcs', 'symbol',
'symbols', 'blendModes', 'gradients-1'];
// TODO: Investigate why Phantom struggles with this file:
if (!isPhantom)
svgFiles['gradients-2'] = {};
Base.each(svgFiles, function(options, name) {
svgFiles.push('gradients-2');
svgFiles.forEach(function(name) {
name += '.svg';
test('Import ' + name, function(assert) {
importSVG(assert, 'assets/' + name, null, options);
Expand Down

0 comments on commit d6ce470

Please sign in to comment.