mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
15 lines
No EOL
372 B
JavaScript
15 lines
No EOL
372 B
JavaScript
module('Group');
|
|
|
|
test('new Group()', function() {
|
|
var doc = new Doc();
|
|
var group = new Group();
|
|
equals(doc.activeLayer.children[0] == group, true);
|
|
});
|
|
|
|
test('new Group([item])', function() {
|
|
var doc = new Doc();
|
|
var path = new Path();
|
|
var group = new Group([path]);
|
|
equals(doc.activeLayer.children.length == 1, true);
|
|
equals(group.children[0] == path, true);
|
|
}); |