mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-01 18:44:42 +00:00
test group (#4118)
This commit is contained in:
parent
c9b562de9e
commit
ae778e6887
1 changed files with 11 additions and 0 deletions
|
|
@ -386,6 +386,17 @@
|
|||
});
|
||||
});
|
||||
|
||||
asyncTest('fromObject does not delete objects from source', function() {
|
||||
var group = makeGroupWith2ObjectsWithOpacity();
|
||||
var groupObject = group.toObject();
|
||||
|
||||
fabric.Group.fromObject(groupObject, function(newGroupFromObject) {
|
||||
equal(newGroupFromObject.objects, undefined, 'the objects array has not been pulled in');
|
||||
notEqual(groupObject.objects, undefined, 'the objects array has not been deleted from object source');
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
test('toSVG', function() {
|
||||
var group = makeGroupWith2Objects();
|
||||
ok(typeof group.toSVG == 'function');
|
||||
|
|
|
|||
Loading…
Reference in a new issue