aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/event.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/event.js')
-rw-r--r--test/unit/event.js25
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) {