mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -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();
|
var path = new Path();
|
||||||
path.remove();
|
path.remove();
|
||||||
path.name = 'test';
|
path.name = 'test';
|
||||||
|
equals(function() {
|
||||||
|
return path.name;
|
||||||
|
}, 'test');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Naming a layer', function() {
|
test('Naming a layer', function() {
|
||||||
var layer = new Layer();
|
var layer = new Layer();
|
||||||
layer.name = 'test';
|
layer.name = 'test';
|
||||||
|
equals(function() {
|
||||||
|
return layer.name;
|
||||||
|
}, 'test');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Cloning a linked size', function() {
|
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() {
|
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]);
|
var path = new Path([20, 20], [20, 20], [20, 20]);
|
||||||
path.simplify();
|
path.simplify();
|
||||||
|
equals(function() {
|
||||||
|
return path.segments.length;
|
||||||
|
}, 1);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue