paper.js/test/tests/Document.js
2011-02-12 18:07:14 +01:00

10 lines
No EOL
258 B
JavaScript

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