mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 10:47:59 +08:00
began refactoring layer getIntersection method and added unit tests
This commit is contained in:
@@ -171,7 +171,7 @@ suite('Stage', function() {
|
||||
|
||||
assert.equal(stage.getIntersection(300, 100).shape.getId(), 'greenCircle', 'shape should be greenCircle');
|
||||
assert.equal(stage.getIntersection(380, 100).shape.getId(), 'redCircle', 'shape should be redCircle');
|
||||
assert.equal(stage.getIntersection(100, 100), null, 'shape should be null');
|
||||
assert.equal(stage.getIntersection(100, 100).shape, null, 'shape should be null');
|
||||
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user