jquery-mobile/tests/jquery.testHelper.js
2010-11-23 21:08:11 +08:00

19 lines
No EOL
439 B
JavaScript

/*
* mobile support unit tests
*/
(function( $ ) {
$.testHelper = {
excludeFileProtocol: function(callback){
var message = "Tests require script reload and cannot be run via file: protocol";
//NOTE alert tester that running the file locally will not work for these tests
if ( location.protocol == "file:" ) {
test(message, function(){
ok(false, message);
});
} else {
callback();
}
}
};
})(jQuery);