paper.js/test/tests/Project.js

14 lines
329 B
JavaScript
Raw Normal View History

module('Project');
2011-02-12 12:07:14 -05:00
test('activate()', function() {
2011-05-20 09:08:17 -04:00
var project = new Project();
var secondDoc = new Project();
2011-05-20 09:08:17 -04:00
project.activate();
2011-02-12 12:07:14 -05:00
var path = new Path();
equals(function() {
2011-05-20 09:08:17 -04:00
return project.activeLayer.children[0] == path;
}, true);
equals(function() {
return secondDoc.activeLayer.children.length == 0;
}, true);
2011-02-12 12:07:14 -05:00
});