mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Travis CI: Adjust SVG test tolerances.
This commit is contained in:
parent
d6ce4705b7
commit
beabd6bea1
1 changed files with 12 additions and 4 deletions
|
@ -157,12 +157,20 @@ 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', 'symbol',
|
||||
'symbols', 'blendModes', 'gradients-1'];
|
||||
var svgFiles = {
|
||||
'butterfly': { tolerance: 1e-2 },
|
||||
'viewbox': {},
|
||||
'clipping': {},
|
||||
'arcs': {},
|
||||
'symbol': {},
|
||||
'symbols': {},
|
||||
'blendModes': {},
|
||||
'gradients-1': {}
|
||||
};
|
||||
// TODO: Investigate why Phantom struggles with this file:
|
||||
if (!isPhantom)
|
||||
svgFiles.push('gradients-2');
|
||||
svgFiles.forEach(function(name) {
|
||||
svgFiles['gradients-2'] = {};
|
||||
Base.each(svgFiles, function(options, name) {
|
||||
name += '.svg';
|
||||
test('Import ' + name, function(assert) {
|
||||
importSVG(assert, 'assets/' + name, null, options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue