diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-09-06 23:20:48 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-09-19 15:42:31 -0400 |
commit | 005958b7313323911825b343178cdc5084e1796f (patch) | |
tree | fb107b2aae2df4c8b7a5f4d78b6a7040a7debbca /test | |
parent | 9038aa958614583f581c2be39267d81bb42f3115 (diff) | |
download | jquery-005958b7313323911825b343178cdc5084e1796f.tar.gz jquery-005958b7313323911825b343178cdc5084e1796f.zip |
Fixes for IE8. Avoid killer recursion in special events during removal. Use q instead of quote in unit tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/event.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/test/unit/event.js b/test/unit/event.js index 9e49a1e13..5bc20801a 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -2311,7 +2311,16 @@ test(".on and .off", function() { test("delegated events quickIs", function() { expect(23); - var markup = jQuery( '<div#quickis><p class="D">dead<b devo="cool">beat</b>club</p><quote id="famous">worked<em>or</em>borked?<em></em></quote></div>' ), + var markup = jQuery( + '<div>'+ + '<p class="D">'+ + 'dead<b devo="cool">beat</b>club'+ + '</p>'+ + '<q id="famous">'+ + 'worked<em>or</em>borked?<em></em>'+ + '</q>'+ + '</div>' + ), str, check = function(el, expect){ str = ""; @@ -2326,7 +2335,7 @@ test("delegated events quickIs", function() { // tag#id.class[name=value] markup - .appendTo( "body " ) + .appendTo( "body" ) .on( "blink", "em", func ) .on( "blink", ".D", func ) .on( "blink", ".d", func ) @@ -2342,7 +2351,7 @@ test("delegated events quickIs", function() { check( "[devo='']", "" ); check( "p", "p|.D p|:first-child" ); check( "b", "b|[devo=cool] p|.D p|:first-child" ); - check( "em", "em|em quote|#famous em|em em|em:empty em|em:last-child quote|#famous" ); + check( "em", "em|em q|#famous em|em em|em:empty em|em:last-child q|#famous" ); markup.find( "b" ).attr( "devo", "NO" ); check( "b", "b|[devo='NO'] p|.D p|:first-child" ); |