aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/event.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-04-07 22:52:15 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-04-07 22:52:15 -0400
commit98d83ef85f41fefb40a14eec24c6804c088bbeeb (patch)
tree6e1a81b0efb21a202783e578c47ded8de0cbafca /test/unit/event.js
parentc470db6950d05644fa9d99e79ce0b2bc3c6235a1 (diff)
downloadjquery-98d83ef85f41fefb40a14eec24c6804c088bbeeb.tar.gz
jquery-98d83ef85f41fefb40a14eec24c6804c088bbeeb.zip
Fixes #8722. Remove try/catch used by #3533 to fix the IE Table Colon Blow bug, and instead check for colon in the event name. Thanks to daguej for scoping this out -- a colonoscopy you might say.
Diffstat (limited to 'test/unit/event.js')
-rw-r--r--test/unit/event.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index a26f54d2f..50bf4e174 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -2055,6 +2055,19 @@ test("focusin bubbles", function() {
jQuery( "body" ).unbind( "focusin.focusinBubblesTest" );
});
+test("custom events with colons (#3533, #8272)", function() {
+ expect(1);
+
+ var tab = jQuery("<table><tr><td>trigger</td></tr></table>").appendTo("body");
+ try {
+ tab.trigger("back:forth");
+ ok( true, "colon events don't throw" );
+ } catch ( e ) {
+ ok( false, "colon events die" );
+ };
+ tab.remove();
+
+});
(function(){
// This code must be run before DOM ready!