2008-05-28 23:18:25 +00:00
|
|
|
jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
|
2010-03-23 16:19:47 +00:00
|
|
|
|
2010-07-27 10:50:08 +00:00
|
|
|
// jQuery-specific QUnit.reset
|
|
|
|
(function() {
|
2011-04-28 20:31:51 +00:00
|
|
|
var reset = QUnit.reset,
|
|
|
|
ajaxSettings = jQuery.ajaxSettings;
|
|
|
|
|
2010-07-27 10:50:08 +00:00
|
|
|
QUnit.reset = function() {
|
|
|
|
reset.apply(this, arguments);
|
|
|
|
jQuery.event.global = {};
|
|
|
|
jQuery.ajaxSettings = jQuery.extend({}, ajaxSettings);
|
|
|
|
};
|
|
|
|
})();
|
|
|
|
|
2010-03-23 16:19:47 +00:00
|
|
|
// load testswarm agent
|
|
|
|
(function() {
|
|
|
|
var url = window.location.search;
|
|
|
|
url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
|
|
|
|
if ( !url || url.indexOf("http") !== 0 ) {
|
|
|
|
return;
|
|
|
|
}
|
2010-03-24 20:04:10 +00:00
|
|
|
|
|
|
|
// (Temporarily) Disable Ajax tests to reduce network strain
|
2011-10-13 16:07:54 +00:00
|
|
|
// isLocal = QUnit.isLocal = true;
|
2010-03-24 20:04:10 +00:00
|
|
|
|
2010-03-23 19:21:42 +00:00
|
|
|
document.write("<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" + (new Date).getTime() + "'></scr" + "ipt>");
|
2010-03-23 16:19:47 +00:00
|
|
|
})();
|