mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Add failing test: After selecting a segment, Path#selected should return true
This commit is contained in:
parent
822cf17989
commit
9f7b4b7480
1 changed files with 9 additions and 0 deletions
|
@ -129,6 +129,15 @@ test('After setting Path#fullySelected=true on an empty path, subsequent segment
|
||||||
}, true);
|
}, true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('After selecting a segment, Path#selected should return true', function() {
|
||||||
|
var path = new Path();
|
||||||
|
path.add([10, 10]);
|
||||||
|
path.firstSegment.selected = true;
|
||||||
|
equals(function() {
|
||||||
|
return path.selected;
|
||||||
|
}, true);
|
||||||
|
});
|
||||||
|
|
||||||
test('Path#reverse', function() {
|
test('Path#reverse', function() {
|
||||||
var path = new Path.Circle([100, 100], 30);
|
var path = new Path.Circle([100, 100], 30);
|
||||||
path.reverse();
|
path.reverse();
|
||||||
|
|
Loading…
Reference in a new issue