mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Exclude gradients-2 test again on phantomjs
Reverting 5cb93ec46e
🤦♂️
The isNode() shenanigans was masking this issue
This commit is contained in:
parent
5a3cf624aa
commit
c5b304bb78
2 changed files with 9 additions and 7 deletions
|
@ -10,10 +10,10 @@
|
|||
* 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.
|
||||
var isNodeContext = typeof global === 'object',
|
||||
isPhantom = typeof window === 'object' && !!window.callPhantom,
|
||||
isPhantomContext = typeof window === 'object' && !!window.callPhantom,
|
||||
scope;
|
||||
|
||||
if (isNodeContext) {
|
||||
|
|
|
@ -192,15 +192,17 @@ if (!isNodeContext) {
|
|||
'symbols': {},
|
||||
'blendModes': {},
|
||||
'gradients-1': {},
|
||||
'gradients-2': {},
|
||||
'gradients-2': !isPhantomContext && {},
|
||||
'gradients-3': {},
|
||||
'gradients-4': {}
|
||||
};
|
||||
Base.each(svgFiles, function(options, name) {
|
||||
name += '.svg';
|
||||
test('Import ' + name, function(assert) {
|
||||
importSVG(assert, 'assets/' + name, null, options);
|
||||
});
|
||||
if (options) {
|
||||
name += '.svg';
|
||||
test('Import ' + name, function(assert) {
|
||||
importSVG(assert, 'assets/' + name, null, options);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
test('Import inexistent file', function(assert) {
|
||||
|
|
Loading…
Reference in a new issue