aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/event.js
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2009-06-17 02:31:45 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2009-06-17 02:31:45 +0000
commitee34b6982ab25cd7699f68506d7b18a02c3c4d44 (patch)
tree6e6a4f17f466dfa349e58bd896bdf257bdf5d5b3 /test/unit/event.js
parent739644dce5312fc66a37806ff5e07c8e9784f803 (diff)
downloadjquery-ee34b6982ab25cd7699f68506d7b18a02c3c4d44.tar.gz
jquery-ee34b6982ab25cd7699f68506d7b18a02c3c4d44.zip
fix for #3533, triggering an event with a colon in the name on a table no longer throws an error in IE
Diffstat (limited to 'test/unit/event.js')
-rw-r--r--test/unit/event.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index d32443276..cc8478648 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -337,7 +337,7 @@ test("trigger() bubbling", 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" );
@@ -374,6 +374,14 @@ test("trigger(type, [data], [fn])", function() {
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() {