Exclude gradients-2 test again on phantomjs

Reverting 5cb93ec46e 🤦‍♂️
The isNode() shenanigans was masking this issue
This commit is contained in:
Jürg Lehni 2019-06-09 14:57:02 +02:00
parent 5a3cf624aa
commit c5b304bb78
2 changed files with 9 additions and 7 deletions

View file

@ -10,10 +10,10 @@
* All rights reserved. * All rights reserved.
*/ */
// We call our variable `isNodeContext` because resemblejs exposes a global // We call our variable `isNodeContext` because resemble.js exposes a global
// `isNode` function which would override it and break node check. // `isNode` function which would override it and break node check.
var isNodeContext = typeof global === 'object', var isNodeContext = typeof global === 'object',
isPhantom = typeof window === 'object' && !!window.callPhantom, isPhantomContext = typeof window === 'object' && !!window.callPhantom,
scope; scope;
if (isNodeContext) { if (isNodeContext) {

View file

@ -192,15 +192,17 @@ if (!isNodeContext) {
'symbols': {}, 'symbols': {},
'blendModes': {}, 'blendModes': {},
'gradients-1': {}, 'gradients-1': {},
'gradients-2': {}, 'gradients-2': !isPhantomContext && {},
'gradients-3': {}, 'gradients-3': {},
'gradients-4': {} 'gradients-4': {}
}; };
Base.each(svgFiles, function(options, name) { Base.each(svgFiles, function(options, name) {
name += '.svg'; if (options) {
test('Import ' + name, function(assert) { name += '.svg';
importSVG(assert, 'assets/' + name, null, options); test('Import ' + name, function(assert) {
}); importSVG(assert, 'assets/' + name, null, options);
});
}
}); });
test('Import inexistent file', function(assert) { test('Import inexistent file', function(assert) {