began refactoring layer getIntersection method and added unit tests

This commit is contained in:
Eric Rowell
2013-11-27 16:05:35 -08:00
parent 4d35d38c2d
commit bc9bd291fc
5 changed files with 82 additions and 13 deletions

View File

@@ -132,7 +132,7 @@ suite('Layer', function() {
assert.equal(layer.getIntersection(300, 100).shape.getId(), 'greenCircle', 'shape should be greenCircle');
assert.equal(layer.getIntersection(380, 100).shape.getId(), 'redCircle', 'shape should be redCircle');
assert.equal(layer.getIntersection(100, 100), null, 'shape should be null');
assert.equal(layer.getIntersection(100, 100).shape, null, 'shape should be null');
});