diff --git a/test/index.html b/test/index.html index a20688bb..9fbb0834 100644 --- a/test/index.html +++ b/test/index.html @@ -26,6 +26,7 @@ + diff --git a/test/tests/Document.js b/test/tests/Document.js new file mode 100644 index 00000000..37265e8e --- /dev/null +++ b/test/tests/Document.js @@ -0,0 +1,10 @@ +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); +}); \ No newline at end of file