paper.js/test/tests/Project.js
2011-05-20 14:08:17 +01:00

14 lines
No EOL
329 B
JavaScript

module('Project');
test('activate()', function() {
var project = new Project();
var secondDoc = new Project();
project.activate();
var path = new Path();
equals(function() {
return project.activeLayer.children[0] == path;
}, true);
equals(function() {
return secondDoc.activeLayer.children.length == 0;
}, true);
});