michael@0: actual = ''; michael@0: expected = 'nocrash,'; michael@0: michael@0: function jQuery(a, c) { michael@0: } michael@0: jQuery.fn = {}; michael@0: (function() { michael@0: var e = michael@0: ["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"]; michael@0: for (var i = 0; i < e.length; i++) { michael@0: new function() { michael@0: var o = e[i]; michael@0: jQuery.fn[o] = function(f) { michael@0: return this.bind(o, f); michael@0: } michael@0: }; michael@0: } michael@0: })(); michael@0: michael@0: michael@0: appendToActual('nocrash') michael@0: michael@0: michael@0: assertEq(actual, expected)