Start implementing unit tests for hit-testing options.

This commit is contained in:
Jürg Lehni 2015-04-12 15:14:03 +02:00
parent 8e7829db5e
commit 593590d707

View file

@ -12,6 +12,23 @@
module('HitResult');
test('hit-testing options', function() {
var defaultOptions = {
type: null,
tolerance: paper.settings.hitTolerance,
fill: true,
stroke: true,
segments: true,
handles: false,
ends: false,
center: false,
bounds: false,
guides: false,
selected: false
};
equals(HitResult.getOptions(), defaultOptions, 'Default options');
});
test('hitting a filled shape', function() {
var path = new Path.Circle([50, 50], 50);