diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-10-24 17:26:43 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-10-24 17:26:43 -0400 |
commit | ee3eb6cabf1383efe479e090fe6ad8ed2e5a09a3 (patch) | |
tree | 904fd00bb924bdeb2b50f9d0c72802a6bcd22113 /test | |
parent | 09c089aac9236e9e1866d8daad2e3b61a57f7d4c (diff) | |
download | jquery-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.js | 8 |
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(); }); |