mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-12 10:21:02 +00:00
19 lines
No EOL
439 B
JavaScript
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); |