mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-16 17:51:07 +00:00
Prevent errors in parser.js unit tests.
This commit is contained in:
parent
95cfa88c77
commit
34e2fbafc9
1 changed files with 6 additions and 4 deletions
|
|
@ -110,10 +110,12 @@
|
|||
}
|
||||
ok(error === undefined, 'No error is raised');
|
||||
|
||||
setTimeout(function(){
|
||||
ok(parsedElements[0] instanceof fabric.Rect);
|
||||
ok(parsedElements[1] instanceof fabric.Circle);
|
||||
ok(parsedElements[2] instanceof fabric.Path);
|
||||
setTimeout(function() {
|
||||
if (parsedElements) {
|
||||
ok(parsedElements[0] instanceof fabric.Rect);
|
||||
ok(parsedElements[1] instanceof fabric.Circle);
|
||||
ok(parsedElements[2] instanceof fabric.Path);
|
||||
}
|
||||
start();
|
||||
}, 1000);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue