Move hasLayer() into svgedit.draw.Drawing
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1926 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -177,6 +177,15 @@
|
||||
var doc = new svgedit.draw.Drawing(svg);
|
||||
equals(typeof doc.getNumLayers, typeof function() {});
|
||||
equals(doc.getNumLayers(), 0);
|
||||
// TODO(codedread): More here once identifyLayers works.
|
||||
});
|
||||
|
||||
test('Test hasLayer', function() {
|
||||
expect(2);
|
||||
var doc = new svgedit.draw.Drawing(svg);
|
||||
equals(typeof doc.hasLayer, typeof function() {});
|
||||
ok(!doc.hasLayer('invalid-layer'));
|
||||
// TODO(codedread): More here once identifyLayers works.
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user