mirror of
https://github.com/konvajs/konva.git
synced 2025-11-24 08:46:44 +08:00
add listening test
This commit is contained in:
@@ -515,6 +515,12 @@ suite('Stage', function () {
|
|||||||
'greenCircle',
|
'greenCircle',
|
||||||
'16) second intersection should be greenCircle'
|
'16) second intersection should be greenCircle'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// now hide layer and but force visible for shape.
|
||||||
|
|
||||||
|
layer.hide();
|
||||||
|
redCircle.visible(true);
|
||||||
|
assert.equal(stage.getAllIntersections(redCircle.position()).length, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
// ======================================================
|
// ======================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user