paper.js/test/tests/Group.js

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);
});