Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
namespace: should be able to add multiple custom events to a single handler and call them individually
  • Loading branch information
bartsidee committed May 9, 2012
1 parent 4a8cfcf commit 04f9967
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,13 @@ sink('namespaces', function (test, ok) {
Syn.click(el1)
})

test('namespace: should be able to add multiple custom events to a single handler and call them individually', 2, function () {
var el1 = document.getElementById('foo')
bean.remove(el1)
bean.add(el1, 'fat.test1 fat.test2', function (e) {ok(true, 'bubbles up dom '+e)})
bean.fire(el1, 'fat.test1', ['1'])
bean.fire(el1, 'fat.test2', ['2'])
})
})

sink('custom types', function (test, ok) {
Expand Down

0 comments on commit 04f9967

Please sign in to comment.