This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.fn['fadeIn'] = function( speed, callback ){ | |
this.show(); | |
if (!!callback) { callback.call(); } | |
return this; | |
}; | |
jQuery.fn['fadeOut'] = function( speed, callback ){ | |
this.hide(); | |
if (!!callback) { callback.call(); } | |
return this; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jasmine.Matchers.prototype.toBeSameJqueryObjectAs = function(expected) { | |
var error_message = null; | |
if(!expected || !this.actual || this.actual.length != expected.length) { | |
error_message = "Expected to have same number of matching elements"; | |
} else { | |
for(var i = 0; i < expected.length; i++) { | |
if (this.actual.get(i) != expected.get(i)) { | |
error_message = "Expected the elements to be the same but were not"; | |
break; | |
} |