mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-05 20:34:45 +00:00
Try to fix fabric.util.loadImage test once again.
This commit is contained in:
parent
7a5cfe46ac
commit
5d1cfce96a
1 changed files with 5 additions and 3 deletions
|
|
@ -1,5 +1,7 @@
|
|||
(function() {
|
||||
|
||||
var path = require("path");
|
||||
|
||||
QUnit.module('fabric.util');
|
||||
|
||||
function K (x) { return x }
|
||||
|
|
@ -14,9 +16,9 @@
|
|||
return src;
|
||||
}
|
||||
|
||||
var IMG_URL = fabric.isLikelyNode ?
|
||||
(__dirname + '/../fixtures/very_large_image.jpg') :
|
||||
getAbsolutePath('../fixtures/very_large_image.jpg');
|
||||
var IMG_URL = fabric.isLikelyNode
|
||||
? path.join(__dirname, '../fixtures/', 'very_large_image.jpg')
|
||||
: getAbsolutePath('../fixtures/very_large_image.jpg');
|
||||
|
||||
test('fabric.util.toFixed', function(){
|
||||
ok(typeof fabric.util.toFixed == 'function');
|
||||
|
|
|
|||
Loading…
Reference in a new issue