git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further optimize the empty/remove/cleanData logic.
[jquery.git]
/
test
/
unit
/
event.js
diff --git
a/test/unit/event.js
b/test/unit/event.js
index
824707f
..
b0cc502
100644
(file)
--- a/
test/unit/event.js
+++ b/
test/unit/event.js
@@
-72,7
+72,7
@@
test("bind(), multiple events at once and namespaces", function() {
});
test("bind(), namespace with special add", function() {
});
test("bind(), namespace with special add", function() {
- expect(9);
+ expect(18);
var div = jQuery("<div/>").bind("test", function(e) {
ok( true, "Test event fired." );
var div = jQuery("<div/>").bind("test", function(e) {
ok( true, "Test event fired." );
@@
-81,6
+81,11
@@
test("bind(), namespace with special add", function() {
var i = 0;
jQuery.event.special.test = {
var i = 0;
jQuery.event.special.test = {
+ _default: function(e) {
+ equals( this, document, "Make sure we're at the top of the chain." );
+ equals( e.type, "test", "And that we're still dealing with a test event." );
+ equals( e.target, div[0], "And that the target is correct." );
+ },
setup: function(){},
teardown: function(){},
add: function( handler, data, namespaces ) {
setup: function(){},
teardown: function(){},
add: function( handler, data, namespaces ) {