mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Start implementing unit tests for hit-testing options.
This commit is contained in:
parent
8e7829db5e
commit
593590d707
1 changed files with 17 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue