2008-05-29 01:18:25 +02:00
|
|
|
jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
|
2010-03-23 17:19:47 +01:00
|
|
|
|
2010-07-27 12:50:08 +02:00
|
|
|
// jQuery-specific QUnit.reset
|
|
|
|
(function() {
|
2011-04-28 22:31:51 +02:00
|
|
|
var reset = QUnit.reset,
|
|
|
|
ajaxSettings = jQuery.ajaxSettings;
|
|
|
|
|
2010-07-27 12:50:08 +02:00
|
|
|
QUnit.reset = function() {
|
|
|
|
reset.apply(this, arguments);
|
|
|
|
jQuery.event.global = {};
|
|
|
|
jQuery.ajaxSettings = jQuery.extend({}, ajaxSettings);
|
|
|
|
};
|
|
|
|
})();
|
|
|
|
|
2010-03-23 17:19:47 +01: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 21:04:10 +01:00
|
|
|
|
|
|
|
// (Temporarily) Disable Ajax tests to reduce network strain
|
2010-03-24 21:16:13 +01:00
|
|
|
isLocal = QUnit.isLocal = true;
|
2010-03-24 21:04:10 +01:00
|
|
|
|
2010-03-23 20:21:42 +01:00
|
|
|
document.write("<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" + (new Date).getTime() + "'></scr" + "ipt>");
|
2010-03-23 17:19:47 +01:00
|
|
|
})();
|
2011-04-28 21:28:01 +02:00
|
|
|
|
|
|
|
// QUnit Aliases
|
|
|
|
(function() {
|
|
|
|
|
|
|
|
window.equals = window.equal;
|
|
|
|
window.same = window.deepEqual;
|
|
|
|
|
|
|
|
})();
|
|
|
|
|