Reorders condition at L65 for efficiency
[jquery.git] / test / data / testrunner.js
1 jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
2
3 // jQuery-specific QUnit.reset
4 (function() {
5         var reset = QUnit.reset;
6         var ajaxSettings = jQuery.ajaxSettings
7         QUnit.reset = function() {
8                 reset.apply(this, arguments);
9                 jQuery.event.global = {};
10                 jQuery.ajaxSettings = jQuery.extend({}, ajaxSettings);
11         };
12 })();
13
14 // load testswarm agent
15 (function() {
16         var url = window.location.search;
17         url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
18         if ( !url || url.indexOf("http") !== 0 ) {
19                 return;
20         }
21
22         // (Temporarily) Disable Ajax tests to reduce network strain
23         isLocal = QUnit.isLocal = true;
24
25         document.write("<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" + (new Date).getTime() + "'></scr" + "ipt>");
26 })();