Add tests for event vnode second argument
This commit is contained in:
parent
e78d1b692c
commit
81b7ff56ee
1 changed files with 3 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ o.spec("event", function() {
|
|||
o(spy.this).equals(div.dom)
|
||||
o(spy.args[0].type).equals("click")
|
||||
o(spy.args[0].target).equals(div.dom)
|
||||
o(spy.args[1]).equals(div)
|
||||
o(onevent.callCount).equals(1)
|
||||
o(onevent.this).equals(div.dom)
|
||||
o(onevent.args[0].type).equals("click")
|
||||
|
|
@ -64,6 +65,7 @@ o.spec("event", function() {
|
|||
o(spy.this).equals(div.dom)
|
||||
o(spy.args[0].type).equals("click")
|
||||
o(spy.args[0].target).equals(div.dom)
|
||||
o(spy.args[1]).equals(div)
|
||||
o(onevent.callCount).equals(1)
|
||||
o(onevent.this).equals(div.dom)
|
||||
o(onevent.args[0].type).equals("click")
|
||||
|
|
@ -85,6 +87,7 @@ o.spec("event", function() {
|
|||
o(spy.this).equals(div.dom)
|
||||
o(spy.args[0].type).equals("transitionend")
|
||||
o(spy.args[0].target).equals(div.dom)
|
||||
o(spy.args[1]).equals(div)
|
||||
o(onevent.callCount).equals(1)
|
||||
o(onevent.this).equals(div.dom)
|
||||
o(onevent.args[0].type).equals("transitionend")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue