aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-10-24 17:26:43 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-10-24 17:26:43 -0400
commitee3eb6cabf1383efe479e090fe6ad8ed2e5a09a3 (patch)
tree904fd00bb924bdeb2b50f9d0c72802a6bcd22113 /test
parent09c089aac9236e9e1866d8daad2e3b61a57f7d4c (diff)
downloadjquery-ee3eb6cabf1383efe479e090fe6ad8ed2e5a09a3.tar.gz
jquery-ee3eb6cabf1383efe479e090fe6ad8ed2e5a09a3.zip
Fix #10567. Make sure quickIs matches correct class name.
Diffstat (limited to 'test')
-rw-r--r--test/unit/event.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index ef2bc19c8..de9c225c1 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -2452,6 +2452,14 @@ test("delegated events quickIs", function() {
markup.find( "b" ).attr( "devo", "NO" );
check( "b", "b|[devo='NO'] p|.D" );
+ markup
+ .on( "blink", ".tricky", function() {
+ ok( false, "triggered on wrong class name match" );
+ })
+ .find( "p" )
+ .attr( "class", "tricky-match" )
+ .trigger( "blink" );
+
markup.remove();
});