git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for #3533, triggering an event with a colon in the name on a table no longer...
[jquery.git]
/
test
/
unit
/
event.js
diff --git
a/test/unit/event.js
b/test/unit/event.js
index
d324432
..
cc84786
100644
(file)
--- a/
test/unit/event.js
+++ b/
test/unit/event.js
@@
-337,7
+337,7
@@
test("trigger() bubbling", function() {
});
test("trigger(type, [data], [fn])", function() {
});
test("trigger(type, [data], [fn])", function() {
- expect(11);
+ expect(12);
var handler = function(event, a, b, c) {
equals( event.type, "click", "check passed data" );
var handler = function(event, a, b, c) {
equals( event.type, "click", "check passed data" );
@@
-374,6
+374,14
@@
test("trigger(type, [data], [fn])", function() {
pass = false;
}
ok( pass, "Trigger focus on hidden element" );
pass = false;
}
ok( pass, "Trigger focus on hidden element" );
+
+ pass = true;
+ try {
+ jQuery('table:first').bind('test:test', function(){}).trigger('test:test');
+ } catch (e) {
+ pass = false;
+ }
+ ok( pass, "Trigger on a table with a colon in the even type, see #3533" );
});
test("trigger(eventObject, [data], [fn])", function() {
});
test("trigger(eventObject, [data], [fn])", function() {