Fix empty tests.

This commit is contained in:
Jürg Lehni 2013-06-11 13:40:50 -07:00
parent 763ce7f4b1
commit 3a043e0023
2 changed files with 9 additions and 0 deletions

View file

@ -551,11 +551,17 @@ test('Naming a removed item', function() {
var path = new Path();
path.remove();
path.name = 'test';
equals(function() {
return path.name;
}, 'test');
});
test('Naming a layer', function() {
var layer = new Layer();
layer.name = 'test';
equals(function() {
return layer.name;
}, 'test');
});
test('Cloning a linked size', function() {

View file

@ -281,4 +281,7 @@ test('Path#fullySelected', function() {
test('Simplifying a path with three segments of the same position should not throw an error', function() {
var path = new Path([20, 20], [20, 20], [20, 20]);
path.simplify();
equals(function() {
return path.segments.length;
}, 1);
});