Skip to content

Commit

Permalink
one more on() test
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Apr 9, 2012
1 parent ba883a7 commit 671a350
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ <h1>Zepto event tests</h1>
t.assertEqual('a b', log.sort().join(' '))
},

testOnWithNullSelector: function(t){
var log = []
this.el.on('click', null, function(){ log.push('a') }).
on('click', undefined, function(){ log.push('b') })

click(this.el)
t.assertEqual('a b', log.sort().join(' '))
},

testOffWithObject: function(t){
var log = [],
fn = function(){ log.push('a') },
Expand Down

0 comments on commit 671a350

Please sign in to comment.