mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Fix Path#selected tests.
This commit is contained in:
parent
a32b687bfd
commit
658fc4b2ff
1 changed files with 5 additions and 5 deletions
|
@ -114,15 +114,15 @@ test('Is the path deselected after setting a new list of segments?', function()
|
||||||
}, 0);
|
}, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('After setting Path#selected=true on an empty path, subsequent segments should be selected', function() {
|
test('After setting Path#fullySelected=true on an empty path, subsequent segments should be selected', function() {
|
||||||
var path = new Path();
|
var path = new Path();
|
||||||
path.selected = true;
|
path.fullySelected = true;
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return path.selected;
|
return path.fullySelected;
|
||||||
}, true);
|
}, true);
|
||||||
path.add([10, 10]);
|
path.add([10, 10]);
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return path.selected;
|
return path.fullySelected;
|
||||||
}, true);
|
}, true);
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return path.firstSegment.selected;
|
return path.firstSegment.selected;
|
||||||
|
@ -137,7 +137,7 @@ test('Path#reverse', function() {
|
||||||
|
|
||||||
test('Path#fullySelected', function() {
|
test('Path#fullySelected', function() {
|
||||||
var path = new Path.Circle([100, 100], 10);
|
var path = new Path.Circle([100, 100], 10);
|
||||||
path.selected = true;
|
path.fullySelected = true;
|
||||||
path.segments[1].selected = false;
|
path.segments[1].selected = false;
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return path.fullySelected;
|
return path.fullySelected;
|
||||||
|
|
Loading…
Reference in a new issue