paper.js/test/tests/Document.js

10 lines
No EOL
268 B
JavaScript

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