mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-14 11:20:59 +00:00
Make sure tests continue running even if image is not loaded.
This commit is contained in:
parent
f47a4eff0b
commit
2be834d582
1 changed files with 5 additions and 2 deletions
|
|
@ -759,8 +759,11 @@
|
|||
|
||||
setTimeout(function() {
|
||||
ok(callbackInvoked, 'callback should be invoked');
|
||||
ok(objectPassedToCallback instanceof fabric.Image, 'object passed to callback should be an instance of `fabric.Image`');
|
||||
ok(/fixtures\/very_large_image\.jpg$/.test(objectPassedToCallback.getSrc()), 'image should have correct src');
|
||||
|
||||
if (objectPassedToCallback) {
|
||||
ok(objectPassedToCallback instanceof fabric.Image, 'object passed to callback should be an instance of `fabric.Image`');
|
||||
ok(/fixtures\/very_large_image\.jpg$/.test(objectPassedToCallback.getSrc()), 'image should have correct src');
|
||||
}
|
||||
|
||||
start();
|
||||
}, 2000);
|
||||
|
|
|
|||
Loading…
Reference in a new issue