mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
14 lines
No EOL
320 B
JavaScript
14 lines
No EOL
320 B
JavaScript
module('Project');
|
|
|
|
test('activate()', function() {
|
|
var proj = new Project();
|
|
var secondDoc = new Project();
|
|
proj.activate();
|
|
var path = new Path();
|
|
equals(function() {
|
|
return proj.activeLayer.children[0] == path;
|
|
}, true);
|
|
equals(function() {
|
|
return secondDoc.activeLayer.children.length == 0;
|
|
}, true);
|
|
}); |