X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Fdata%2Ftestrunner.js;h=821799bbf5251028bdf9c9b4714f48235b65324f;hb=fa48ad1d1be18482dbabe58182025a8d22dee236;hp=0113ae5c85d074f4544730723afa49457dc9f98e;hpb=1753ab3d823320da79cccc4041f662f2cfd1e20d;p=jquery.git diff --git a/test/data/testrunner.js b/test/data/testrunner.js index 0113ae5..821799b 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -1,3 +1,5 @@ +jQuery.noConflict(); // Allow the test to run with other libs or jQuery's. + var _config = { fixture: null, Test: [], @@ -14,12 +16,12 @@ var _config = { }; _config.filters = location.search.length > 1 && //restrict modules/tests by get parameters - $.map( location.search.slice(1).split('&'), decodeURIComponent ); + jQuery.map( location.search.slice(1).split('&'), decodeURIComponent ); var isLocal = !!(window.location.protocol == 'file:'); -$(function() { - $('#userAgent').html(navigator.userAgent); +jQuery(function() { + jQuery('#userAgent').html(navigator.userAgent); runTest(); }); @@ -81,15 +83,15 @@ function runTest() { _config.blocking = false; var time = new Date(); _config.fixture = document.getElementById('main').innerHTML; - _config.ajaxSettings = $.ajaxSettings; + _config.ajaxSettings = jQuery.ajaxSettings; synchronize(function() { time = new Date() - time; - $("
Tests completed in ', + jQuery("
Tests completed in ',
time, ' milliseconds.
',
_config.stats.bad, ' tests of ', _config.stats.all, ' failed.