paper.js/test/tests/Document.js

14 lines
320 B
JavaScript
Raw Normal View History

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