mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
added unit test for new target and type keys in Kinetic event object
This commit is contained in:
parent
47ecb4559d
commit
ddf34d0af9
@ -881,7 +881,8 @@ suite('MouseEvents', function() {
|
||||
radius: 70,
|
||||
strokeWidth: 4,
|
||||
fill: 'red',
|
||||
stroke: 'black'
|
||||
stroke: 'black',
|
||||
id: 'myCircle'
|
||||
});
|
||||
|
||||
var group1 = new Kinetic.Group();
|
||||
@ -919,7 +920,9 @@ suite('MouseEvents', function() {
|
||||
e.push('group2');
|
||||
});
|
||||
layer.on('click', function(evt) {
|
||||
console.log(evt)
|
||||
//console.log(evt)
|
||||
assert.equal(evt.target.id(), 'myCircle');
|
||||
assert.equal(evt.type, 'click');
|
||||
e.push('layer');
|
||||
});
|
||||
stage.on('click', function(evt) {
|
||||
|
Loading…
Reference in New Issue
Block a user