paper.js/test/tests/Document.js

10 lines
258 B
JavaScript
Raw Normal View History

2011-02-12 12:07:14 -05:00
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);
});