test('path.arcTo(from, through, to); where from, through and to all share the same y position and through lies in between from and to',function(){
varpath=newPath();
path.strokeColor='black';
path.add([40,75]);
path.arcTo([50,75],[100,75]);
equals(path.lastSegment.point.toString(),'{ x: 100, y: 75 }','We expect the last segment point to be at the position where we wanted to draw the arc to.');
});
test('path.arcTo(from, through, to); where from, through and to all share the same y position and through lies to the right of to',function(){
varpath=newPath();
path.strokeColor='black';
path.add([40,75]);
path.arcTo([150,75],[100,75]);
equals(path.lastSegment.point.toString(),'{ x: 100, y: 75 }','We expect the last segment point to be at the position where we wanted to draw the arc to.');
});
test('path.arcTo(from, through, to); where from, through and to all share the same y position and through lies to the left of to',function(){
varpath=newPath();
path.strokeColor='black';
path.add([40,75]);
path.arcTo([10,75],[100,75]);
equals(path.lastSegment.point.toString(),'{ x: 100, y: 75 }','We expect the last segment point to be at the position where we wanted to draw the arc to.');