mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix empty tests.
This commit is contained in:
parent
763ce7f4b1
commit
3a043e0023
2 changed files with 9 additions and 0 deletions
|
@ -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() {
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue