diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-09-07 21:02:13 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-09-19 15:42:31 -0400 |
commit | 9aa553aa18e79989dfa002ae5a295f626951bdf5 (patch) | |
tree | 897f836dd5b0c2367b52751bcf9b01fdf28980fd /test/unit/event.js | |
parent | ecd10464e8659b008e52161cc029f9d6863e33b3 (diff) | |
download | jquery-9aa553aa18e79989dfa002ae5a295f626951bdf5.tar.gz jquery-9aa553aa18e79989dfa002ae5a295f626951bdf5.zip |
Rework #1486 patch to avoid `try/catch` and look for hidden elements by `.offsetWidth`. Unit test currently disabled due to Chrome bug.
Diffstat (limited to 'test/unit/event.js')
-rw-r--r-- | test/unit/event.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/unit/event.js b/test/unit/event.js index 5bc20801a..c00eb202c 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -34,6 +34,31 @@ test("bind(),live(),delegate() with non-null,defined data", function() { }); +/* +Removed because Chrome 13 snaps/crashes on this 2011-09-07 + +test("Handler changes and .trigger() order", function() { + expect(1); + + var markup = jQuery( + '<div><p><b class="a">b</b></p></div>' + ).appendTo( "body" ); + + var path = ""; + jQuery( "b" ).parents().bind( "click", function(e){ + path += this.nodeName.toLowerCase() + " "; + // Should not change the event triggering order + $(this).parent().remove(); + }); + + markup.find( "b" ).trigger( "click" ); + + equals( path, "p div body html ", "Delivered all events" ) + + markup.remove(); +}); +*/ + test("bind(), with data", function() { expect(4); var handler = function(event) { |