test runner: the changes are:
authorAriel Flesler <aflesler@gmail.com>
Wed, 28 May 2008 23:18:25 +0000 (23:18 +0000)
committerAriel Flesler <aflesler@gmail.com>
Wed, 28 May 2008 23:18:25 +0000 (23:18 +0000)
- Replaced all the $ for jQuery in the tests and suite.
- Added a noConflict to testrunner.js.
- Modified the test for noConflict() so that it still work.
- Added jQuery 1.2.1 and 1.2.3 to otherlibs.

test/data/testrunner.js
test/index.html
test/otherlibs/jquery/1.2.1/jquery.js [new file with mode: 0644]
test/otherlibs/jquery/1.2.3/jquery.js [new file with mode: 0644]
test/unit/ajax.js
test/unit/core.js
test/unit/dimensions.js
test/unit/event.js
test/unit/fx.js
test/unit/offset.js
test/unit/selector.js

index d4fdcf5..821799b 100644 (file)
@@ -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;
-               $("<div>").html(['<p class="result">Tests completed in ',
+               jQuery("<div>").html(['<p class="result">Tests completed in ',
                        time, ' milliseconds.<br/>',
                        _config.stats.bad, ' tests of ', _config.stats.all, ' failed.</p>']
                        .join(''))
                        .appendTo("body");
-               $("#banner").addClass(_config.stats.bad ? "fail" : "pass");
+               jQuery("#banner").addClass(_config.stats.bad ? "fail" : "pass");
        });
 }
 
@@ -154,11 +156,11 @@ function test(name, callback, nowait) {
                        else
                                n.style.display = "none";
                };
-               $(b).dblclick(function(event) {
+               jQuery(b).dblclick(function(event) {
                        var target = jQuery(event.target).filter("strong").clone();
                        if ( target.length ) {
                                target.children().remove();
-                               location.href = location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent($.trim(target.text()));
+                               location.href = location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent(jQuery.trim(target.text()));
                        }
                });
                li.appendChild( b );
@@ -184,14 +186,14 @@ function expect(asserts) {
  * Resets the test setup. Useful for tests that modify the DOM.
  */
 function reset() {
-       $("#main").html( _config.fixture );
-       $.event.global = {};
-       $.ajaxSettings = $.extend({}, _config.ajaxSettings);
+       jQuery("#main").html( _config.fixture );
+       jQuery.event.global = {};
+       jQuery.ajaxSettings = jQuery.extend({}, _config.ajaxSettings);
 }
 
 /**
  * Asserts true.
- * @example ok( $("a").size() > 5, "There must be at least 5 anchors" );
+ * @example ok( jQuery("a").size() > 5, "There must be at least 5 anchors" );
  */
 function ok(a, msg) {
        _config.Test.push( [ !!a, msg ] );
index 558c0f7..0127c43 100644 (file)
@@ -5,7 +5,12 @@
        <title>jQuery Test Suite</title>
        <link rel="Stylesheet" media="screen" href="data/testsuite.css" />
        <!-- Includes -->
-       <script type="text/javascript">var jQuery = "jQuery", $ = "$"; // For testing .noConflict()</script>
+       <script type="text/javascript">
+               var jQuery = this.jQuery || "jQuery", // For testing .noConflict()
+                       $ = this.$ || "$",
+                       originaljQuery = jQuery,
+                       original$ = $;
+       </script>
        <script type="text/javascript" src="../dist/jquery.js"></script>
        <script type="text/javascript" src="data/testrunner.js"></script>
        <script type="text/javascript" src="unit/core.js"></script>
diff --git a/test/otherlibs/jquery/1.2.1/jquery.js b/test/otherlibs/jquery/1.2.1/jquery.js
new file mode 100644 (file)
index 0000000..d646859
--- /dev/null
@@ -0,0 +1,11 @@
+/*
+ * jQuery 1.2.1 - New Wave Javascript
+ *
+ * Copyright (c) 2007 John Resig (jquery.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * $Date: 2007-09-16 23:42:06 -0400 (Sun, 16 Sep 2007) $
+ * $Rev: 3353 $
+ */
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(G(){9(1m E!="W")H w=E;H E=18.15=G(a,b){I 6 7u E?6.5N(a,b):1u E(a,b)};9(1m $!="W")H D=$;18.$=E;H u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/;E.1b=E.3A={5N:G(c,a){c=c||U;9(1m c=="1M"){H m=u.2S(c);9(m&&(m[1]||!a)){9(m[1])c=E.4D([m[1]],a);J{H b=U.3S(m[3]);9(b)9(b.22!=m[3])I E().1Y(c);J{6[0]=b;6.K=1;I 6}J c=[]}}J I 1u E(a).1Y(c)}J 9(E.1n(c))I 1u E(U)[E.1b.2d?"2d":"39"](c);I 6.6v(c.1c==1B&&c||(c.4c||c.K&&c!=18&&!c.1y&&c[0]!=W&&c[0].1y)&&E.2h(c)||[c])},4c:"1.2.1",7Y:G(){I 6.K},K:0,21:G(a){I a==W?E.2h(6):6[a]},2o:G(a){H b=E(a);b.4Y=6;I b},6v:G(a){6.K=0;1B.3A.1a.16(6,a);I 6},N:G(a,b){I E.N(6,a,b)},4I:G(a){H b=-1;6.N(G(i){9(6==a)b=i});I b},1x:G(f,d,e){H c=f;9(f.1c==3X)9(d==W)I 6.K&&E[e||"1x"](6[0],f)||W;J{c={};c[f]=d}I 6.N(G(a){L(H b 1i c)E.1x(e?6.R:6,b,E.1e(6,c[b],e,a,b))})},17:G(b,a){I 6.1x(b,a,"3C")},2g:G(e){9(1m e!="5i"&&e!=S)I 6.4n().3g(U.6F(e));H t="";E.N(e||6,G(){E.N(6.3j,G(){9(6.1y!=8)t+=6.1y!=1?6.6x:E.1b.2g([6])})});I t},5m:G(b){9(6[0])E(b,6[0].3H).6u().3d(6[0]).1X(G(){H a=6;1W(a.1w)a=a.1w;I a}).3g(6);I 6},8m:G(a){I 6.N(G(){E(6).6q().5m(a)})},8d:G(a){I 6.N(G(){E(6).5m(a)})},3g:G(){I 6.3z(1q,Q,1,G(a){6.58(a)})},6j:G(){I 6.3z(1q,Q,-1,G(a){6.3d(a,6.1w)})},6g:G(){I 6.3z(1q,P,1,G(a){6.12.3d(a,6)})},50:G(){I 6.3z(1q,P,-1,G(a){6.12.3d(a,6.2q)})},2D:G(){I 6.4Y||E([])},1Y:G(t){H b=E.1X(6,G(a){I E.1Y(t,a)});I 6.2o(/[^+>] [^+>]/.14(t)||t.1g("..")>-1?E.4V(b):b)},6u:G(e){H f=6.1X(G(){I 6.67?E(6.67)[0]:6.4R(Q)});H d=f.1Y("*").4O().N(G(){9(6[F]!=W)6[F]=S});9(e===Q)6.1Y("*").4O().N(G(i){H c=E.M(6,"2P");L(H a 1i c)L(H b 1i c[a])E.1j.1f(d[i],a,c[a][b],c[a][b].M)});I f},1E:G(t){I 6.2o(E.1n(t)&&E.2W(6,G(b,a){I t.16(b,[a])})||E.3m(t,6))},5V:G(t){I 6.2o(t.1c==3X&&E.3m(t,6,Q)||E.2W(6,G(a){I(t.1c==1B||t.4c)?E.2A(a,t)<0:a!=t}))},1f:G(t){I 6.2o(E.1R(6.21(),t.1c==3X?E(t).21():t.K!=W&&(!t.11||E.11(t,"2Y"))?t:[t]))},3t:G(a){I a?E.3m(a,6).K>0:P},7c:G(a){I 6.3t("."+a)},3i:G(b){9(b==W){9(6.K){H c=6[0];9(E.11(c,"24")){H e=c.4Z,a=[],Y=c.Y,2G=c.O=="24-2G";9(e<0)I S;L(H i=2G?e:0,33=2G?e+1:Y.K;i<33;i++){H d=Y[i];9(d.26){H b=E.V.1h&&!d.9V["1Q"].9L?d.2g:d.1Q;9(2G)I b;a.1a(b)}}I a}J I 6[0].1Q.1p(/\\r/g,"")}}J I 6.N(G(){9(b.1c==1B&&/4k|5j/.14(6.O))6.2Q=(E.2A(6.1Q,b)>=0||E.2A(6.2H,b)>=0);J 9(E.11(6,"24")){H a=b.1c==1B?b:[b];E("9h",6).N(G(){6.26=(E.2A(6.1Q,a)>=0||E.2A(6.2g,a)>=0)});9(!a.K)6.4Z=-1}J 6.1Q=b})},4o:G(a){I a==W?(6.K?6[0].3O:S):6.4n().3g(a)},6H:G(a){I 6.50(a).28()},6E:G(i){I 6.2J(i,i+1)},2J:G(){I 6.2o(1B.3A.2J.16(6,1q))},1X:G(b){I 6.2o(E.1X(6,G(a,i){I b.2O(a,i,a)}))},4O:G(){I 6.1f(6.4Y)},3z:G(f,d,g,e){H c=6.K>1,a;I 6.N(G(){9(!a){a=E.4D(f,6.3H);9(g<0)a.8U()}H b=6;9(d&&E.11(6,"1I")&&E.11(a[0],"4m"))b=6.4l("1K")[0]||6.58(U.5B("1K"));E.N(a,G(){H a=c?6.4R(Q):6;9(!5A(0,a))e.2O(b,a)})})}};G 5A(i,b){H a=E.11(b,"1J");9(a){9(b.3k)E.3G({1d:b.3k,3e:P,1V:"1J"});J E.5f(b.2g||b.6s||b.3O||"");9(b.12)b.12.3b(b)}J 9(b.1y==1)E("1J",b).N(5A);I a}E.1k=E.1b.1k=G(){H c=1q[0]||{},a=1,2c=1q.K,5e=P;9(c.1c==8o){5e=c;c=1q[1]||{}}9(2c==1){c=6;a=0}H b;L(;a<2c;a++)9((b=1q[a])!=S)L(H i 1i b){9(c==b[i])6r;9(5e&&1m b[i]==\'5i\'&&c[i])E.1k(c[i],b[i]);J 9(b[i]!=W)c[i]=b[i]}I c};H F="15"+(1u 3D()).3B(),6p=0,5c={};E.1k({8a:G(a){18.$=D;9(a)18.15=w;I E},1n:G(a){I!!a&&1m a!="1M"&&!a.11&&a.1c!=1B&&/G/i.14(a+"")},4a:G(a){I a.2V&&!a.1G||a.37&&a.3H&&!a.3H.1G},5f:G(a){a=E.36(a);9(a){9(18.6l)18.6l(a);J 9(E.V.1N)18.56(a,0);J 3w.2O(18,a)}},11:G(b,a){I b.11&&b.11.27()==a.27()},1L:{},M:G(c,d,b){c=c==18?5c:c;H a=c[F];9(!a)a=c[F]=++6p;9(d&&!E.1L[a])E.1L[a]={};9(b!=W)E.1L[a][d]=b;I d?E.1L[a][d]:a},30:G(c,b){c=c==18?5c:c;H a=c[F];9(b){9(E.1L[a]){2E E.1L[a][b];b="";L(b 1i E.1L[a])1T;9(!b)E.30(c)}}J{2a{2E c[F]}29(e){9(c.53)c.53(F)}2E E.1L[a]}},N:G(a,b,c){9(c){9(a.K==W)L(H i 1i a)b.16(a[i],c);J L(H i=0,48=a.K;i<48;i++)9(b.16(a[i],c)===P)1T}J{9(a.K==W)L(H i 1i a)b.2O(a[i],i,a[i]);J L(H i=0,48=a.K,3i=a[0];i<48&&b.2O(3i,i,3i)!==P;3i=a[++i]){}}I a},1e:G(c,b,d,e,a){9(E.1n(b))b=b.2O(c,[e]);H f=/z-?4I|7T-?7Q|1r|69|7P-?1H/i;I b&&b.1c==4W&&d=="3C"&&!f.14(a)?b+"2T":b},1o:{1f:G(b,c){E.N((c||"").2l(/\\s+/),G(i,a){9(!E.1o.3K(b.1o,a))b.1o+=(b.1o?" ":"")+a})},28:G(b,c){b.1o=c!=W?E.2W(b.1o.2l(/\\s+/),G(a){I!E.1o.3K(c,a)}).66(" "):""},3K:G(t,c){I E.2A(c,(t.1o||t).3s().2l(/\\s+/))>-1}},2k:G(e,o,f){L(H i 1i o){e.R["3r"+i]=e.R[i];e.R[i]=o[i]}f.16(e,[]);L(H i 1i o)e.R[i]=e.R["3r"+i]},17:G(e,p){9(p=="1H"||p=="2N"){H b={},42,41,d=["7J","7I","7G","7F"];E.N(d,G(){b["7C"+6]=0;b["7B"+6+"5Z"]=0});E.2k(e,b,G(){9(E(e).3t(\':3R\')){42=e.7A;41=e.7w}J{e=E(e.4R(Q)).1Y(":4k").5W("2Q").2D().17({4C:"1P",2X:"4F",19:"2Z",7o:"0",1S:"0"}).5R(e.12)[0];H a=E.17(e.12,"2X")||"3V";9(a=="3V")e.12.R.2X="7g";42=e.7e;41=e.7b;9(a=="3V")e.12.R.2X="3V";e.12.3b(e)}});I p=="1H"?42:41}I E.3C(e,p)},3C:G(h,j,i){H g,2w=[],2k=[];G 3n(a){9(!E.V.1N)I P;H b=U.3o.3Z(a,S);I!b||b.4y("3n")==""}9(j=="1r"&&E.V.1h){g=E.1x(h.R,"1r");I g==""?"1":g}9(j.1t(/4u/i))j=y;9(!i&&h.R[j])g=h.R[j];J 9(U.3o&&U.3o.3Z){9(j.1t(/4u/i))j="4u";j=j.1p(/([A-Z])/g,"-$1").2p();H d=U.3o.3Z(h,S);9(d&&!3n(h))g=d.4y(j);J{L(H a=h;a&&3n(a);a=a.12)2w.4w(a);L(a=0;a<2w.K;a++)9(3n(2w[a])){2k[a]=2w[a].R.19;2w[a].R.19="2Z"}g=j=="19"&&2k[2w.K-1]!=S?"2s":U.3o.3Z(h,S).4y(j)||"";L(a=0;a<2k.K;a++)9(2k[a]!=S)2w[a].R.19=2k[a]}9(j=="1r"&&g=="")g="1"}J 9(h.3Q){H f=j.1p(/\\-(\\w)/g,G(m,c){I c.27()});g=h.3Q[j]||h.3Q[f];9(!/^\\d+(2T)?$/i.14(g)&&/^\\d/.14(g)){H k=h.R.1S;H e=h.4v.1S;h.4v.1S=h.3Q.1S;h.R.1S=g||0;g=h.R.71+"2T";h.R.1S=k;h.4v.1S=e}}I g},4D:G(a,e){H r=[];e=e||U;E.N(a,G(i,d){9(!d)I;9(d.1c==4W)d=d.3s();9(1m d=="1M"){d=d.1p(/(<(\\w+)[^>]*?)\\/>/g,G(m,a,b){I b.1t(/^(70|6Z|6Y|9Q|4t|9N|9K|3a|9G|9E)$/i)?m:a+"></"+b+">"});H s=E.36(d).2p(),1s=e.5B("1s"),2x=[];H c=!s.1g("<9y")&&[1,"<24>","</24>"]||!s.1g("<9w")&&[1,"<6T>","</6T>"]||s.1t(/^<(9u|1K|9t|9r|9p)/)&&[1,"<1I>","</1I>"]||!s.1g("<4m")&&[2,"<1I><1K>","</1K></1I>"]||(!s.1g("<9m")||!s.1g("<9k"))&&[3,"<1I><1K><4m>","</4m></1K></1I>"]||!s.1g("<6Y")&&[2,"<1I><1K></1K><6L>","</6L></1I>"]||E.V.1h&&[1,"1s<1s>","</1s>"]||[0,"",""];1s.3O=c[1]+d+c[2];1W(c[0]--)1s=1s.5p;9(E.V.1h){9(!s.1g("<1I")&&s.1g("<1K")<0)2x=1s.1w&&1s.1w.3j;J 9(c[1]=="<1I>"&&s.1g("<1K")<0)2x=1s.3j;L(H n=2x.K-1;n>=0;--n)9(E.11(2x[n],"1K")&&!2x[n].3j.K)2x[n].12.3b(2x[n]);9(/^\\s/.14(d))1s.3d(e.6F(d.1t(/^\\s*/)[0]),1s.1w)}d=E.2h(1s.3j)}9(0===d.K&&(!E.11(d,"2Y")&&!E.11(d,"24")))I;9(d[0]==W||E.11(d,"2Y")||d.Y)r.1a(d);J r=E.1R(r,d)});I r},1x:G(c,d,a){H e=E.4a(c)?{}:E.5o;9(d=="26"&&E.V.1N)c.12.4Z;9(e[d]){9(a!=W)c[e[d]]=a;I c[e[d]]}J 9(E.V.1h&&d=="R")I E.1x(c.R,"9e",a);J 9(a==W&&E.V.1h&&E.11(c,"2Y")&&(d=="9d"||d=="9a"))I c.97(d).6x;J 9(c.37){9(a!=W){9(d=="O"&&E.11(c,"4t")&&c.12)6G"O 94 93\'t 92 91";c.90(d,a)}9(E.V.1h&&/6C|3k/.14(d)&&!E.4a(c))I c.4p(d,2);I c.4p(d)}J{9(d=="1r"&&E.V.1h){9(a!=W){c.69=1;c.1E=(c.1E||"").1p(/6O\\([^)]*\\)/,"")+(3I(a).3s()=="8S"?"":"6O(1r="+a*6A+")")}I c.1E?(3I(c.1E.1t(/1r=([^)]*)/)[1])/6A).3s():""}d=d.1p(/-([a-z])/8Q,G(z,b){I b.27()});9(a!=W)c[d]=a;I c[d]}},36:G(t){I(t||"").1p(/^\\s+|\\s+$/g,"")},2h:G(a){H r=[];9(1m a!="8P")L(H i=0,2c=a.K;i<2c;i++)r.1a(a[i]);J r=a.2J(0);I r},2A:G(b,a){L(H i=0,2c=a.K;i<2c;i++)9(a[i]==b)I i;I-1},1R:G(a,b){9(E.V.1h){L(H i=0;b[i];i++)9(b[i].1y!=8)a.1a(b[i])}J L(H i=0;b[i];i++)a.1a(b[i]);I a},4V:G(b){H r=[],2f={};2a{L(H i=0,6y=b.K;i<6y;i++){H a=E.M(b[i]);9(!2f[a]){2f[a]=Q;r.1a(b[i])}}}29(e){r=b}I r},2W:G(b,a,c){9(1m a=="1M")a=3w("P||G(a,i){I "+a+"}");H d=[];L(H i=0,4g=b.K;i<4g;i++)9(!c&&a(b[i],i)||c&&!a(b[i],i))d.1a(b[i]);I d},1X:G(c,b){9(1m b=="1M")b=3w("P||G(a){I "+b+"}");H d=[];L(H i=0,4g=c.K;i<4g;i++){H a=b(c[i],i);9(a!==S&&a!=W){9(a.1c!=1B)a=[a];d=d.8M(a)}}I d}});H v=8K.8I.2p();E.V={4s:(v.1t(/.+(?:8F|8E|8C|8B)[\\/: ]([\\d.]+)/)||[])[1],1N:/6w/.14(v),34:/34/.14(v),1h:/1h/.14(v)&&!/34/.14(v),35:/35/.14(v)&&!/(8z|6w)/.14(v)};H y=E.V.1h?"4h":"5h";E.1k({5g:!E.V.1h||U.8y=="8x",4h:E.V.1h?"4h":"5h",5o:{"L":"8w","8v":"1o","4u":y,5h:y,4h:y,3O:"3O",1o:"1o",1Q:"1Q",3c:"3c",2Q:"2Q",8u:"8t",26:"26",8s:"8r"}});E.N({1D:"a.12",8q:"15.4e(a,\'12\')",8p:"15.2I(a,2,\'2q\')",8n:"15.2I(a,2,\'4d\')",8l:"15.4e(a,\'2q\')",8k:"15.4e(a,\'4d\')",8j:"15.5d(a.12.1w,a)",8i:"15.5d(a.1w)",6q:"15.11(a,\'8h\')?a.8f||a.8e.U:15.2h(a.3j)"},G(i,n){E.1b[i]=G(a){H b=E.1X(6,n);9(a&&1m a=="1M")b=E.3m(a,b);I 6.2o(E.4V(b))}});E.N({5R:"3g",8c:"6j",3d:"6g",8b:"50",89:"6H"},G(i,n){E.1b[i]=G(){H a=1q;I 6.N(G(){L(H j=0,2c=a.K;j<2c;j++)E(a[j])[n](6)})}});E.N({5W:G(a){E.1x(6,a,"");6.53(a)},88:G(c){E.1o.1f(6,c)},87:G(c){E.1o.28(6,c)},86:G(c){E.1o[E.1o.3K(6,c)?"28":"1f"](6,c)},28:G(a){9(!a||E.1E(a,[6]).r.K){E.30(6);6.12.3b(6)}},4n:G(){E("*",6).N(G(){E.30(6)});1W(6.1w)6.3b(6.1w)}},G(i,n){E.1b[i]=G(){I 6.N(n,1q)}});E.N(["85","5Z"],G(i,a){H n=a.2p();E.1b[n]=G(h){I 6[0]==18?E.V.1N&&3y["84"+a]||E.5g&&38.33(U.2V["5a"+a],U.1G["5a"+a])||U.1G["5a"+a]:6[0]==U?38.33(U.1G["6n"+a],U.1G["6m"+a]):h==W?(6.K?E.17(6[0],n):S):6.17(n,h.1c==3X?h:h+"2T")}});H C=E.V.1N&&3x(E.V.4s)<83?"(?:[\\\\w*57-]|\\\\\\\\.)":"(?:[\\\\w\\82-\\81*57-]|\\\\\\\\.)",6k=1u 47("^>\\\\s*("+C+"+)"),6i=1u 47("^("+C+"+)(#)("+C+"+)"),6h=1u 47("^([#.]?)("+C+"*)");E.1k({55:{"":"m[2]==\'*\'||15.11(a,m[2])","#":"a.4p(\'22\')==m[2]",":":{80:"i<m[3]-0",7Z:"i>m[3]-0",2I:"m[3]-0==i",6E:"m[3]-0==i",3v:"i==0",3u:"i==r.K-1",6f:"i%2==0",6e:"i%2","3v-46":"a.12.4l(\'*\')[0]==a","3u-46":"15.2I(a.12.5p,1,\'4d\')==a","7X-46":"!15.2I(a.12.5p,2,\'4d\')",1D:"a.1w",4n:"!a.1w",7W:"(a.6s||a.7V||15(a).2g()||\'\').1g(m[3])>=0",3R:\'"1P"!=a.O&&15.17(a,"19")!="2s"&&15.17(a,"4C")!="1P"\',1P:\'"1P"==a.O||15.17(a,"19")=="2s"||15.17(a,"4C")=="1P"\',7U:"!a.3c",3c:"a.3c",2Q:"a.2Q",26:"a.26||15.1x(a,\'26\')",2g:"\'2g\'==a.O",4k:"\'4k\'==a.O",5j:"\'5j\'==a.O",54:"\'54\'==a.O",52:"\'52\'==a.O",51:"\'51\'==a.O",6d:"\'6d\'==a.O",6c:"\'6c\'==a.O",2r:\'"2r"==a.O||15.11(a,"2r")\',4t:"/4t|24|6b|2r/i.14(a.11)",3K:"15.1Y(m[3],a).K",7S:"/h\\\\d/i.14(a.11)",7R:"15.2W(15.32,G(1b){I a==1b.T;}).K"}},6a:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,1u 47("^([:.#]*)("+C+"+)")],3m:G(a,c,b){H d,2b=[];1W(a&&a!=d){d=a;H f=E.1E(a,c,b);a=f.t.1p(/^\\s*,\\s*/,"");2b=b?c=f.r:E.1R(2b,f.r)}I 2b},1Y:G(t,o){9(1m t!="1M")I[t];9(o&&!o.1y)o=S;o=o||U;H d=[o],2f=[],3u;1W(t&&3u!=t){H r=[];3u=t;t=E.36(t);H l=P;H g=6k;H m=g.2S(t);9(m){H p=m[1].27();L(H i=0;d[i];i++)L(H c=d[i].1w;c;c=c.2q)9(c.1y==1&&(p=="*"||c.11.27()==p.27()))r.1a(c);d=r;t=t.1p(g,"");9(t.1g(" ")==0)6r;l=Q}J{g=/^([>+~])\\s*(\\w*)/i;9((m=g.2S(t))!=S){r=[];H p=m[2],1R={};m=m[1];L(H j=0,31=d.K;j<31;j++){H n=m=="~"||m=="+"?d[j].2q:d[j].1w;L(;n;n=n.2q)9(n.1y==1){H h=E.M(n);9(m=="~"&&1R[h])1T;9(!p||n.11.27()==p.27()){9(m=="~")1R[h]=Q;r.1a(n)}9(m=="+")1T}}d=r;t=E.36(t.1p(g,""));l=Q}}9(t&&!l){9(!t.1g(",")){9(o==d[0])d.44();2f=E.1R(2f,d);r=d=[o];t=" "+t.68(1,t.K)}J{H k=6i;H m=k.2S(t);9(m){m=[0,m[2],m[3],m[1]]}J{k=6h;m=k.2S(t)}m[2]=m[2].1p(/\\\\/g,"");H f=d[d.K-1];9(m[1]=="#"&&f&&f.3S&&!E.4a(f)){H q=f.3S(m[2]);9((E.V.1h||E.V.34)&&q&&1m q.22=="1M"&&q.22!=m[2])q=E(\'[@22="\'+m[2]+\'"]\',f)[0];d=r=q&&(!m[3]||E.11(q,m[3]))?[q]:[]}J{L(H i=0;d[i];i++){H a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];9(a=="*"&&d[i].11.2p()=="5i")a="3a";r=E.1R(r,d[i].4l(a))}9(m[1]==".")r=E.4X(r,m[2]);9(m[1]=="#"){H e=[];L(H i=0;r[i];i++)9(r[i].4p("22")==m[2]){e=[r[i]];1T}r=e}d=r}t=t.1p(k,"")}}9(t){H b=E.1E(t,r);d=r=b.r;t=E.36(b.t)}}9(t)d=[];9(d&&o==d[0])d.44();2f=E.1R(2f,d);I 2f},4X:G(r,m,a){m=" "+m+" ";H c=[];L(H i=0;r[i];i++){H b=(" "+r[i].1o+" ").1g(m)>=0;9(!a&&b||a&&!b)c.1a(r[i])}I c},1E:G(t,r,h){H d;1W(t&&t!=d){d=t;H p=E.6a,m;L(H i=0;p[i];i++){m=p[i].2S(t);9(m){t=t.7O(m[0].K);m[2]=m[2].1p(/\\\\/g,"");1T}}9(!m)1T;9(m[1]==":"&&m[2]=="5V")r=E.1E(m[3],r,Q).r;J 9(m[1]==".")r=E.4X(r,m[2],h);J 9(m[1]=="["){H g=[],O=m[3];L(H i=0,31=r.K;i<31;i++){H a=r[i],z=a[E.5o[m[2]]||m[2]];9(z==S||/6C|3k|26/.14(m[2]))z=E.1x(a,m[2])||\'\';9((O==""&&!!z||O=="="&&z==m[5]||O=="!="&&z!=m[5]||O=="^="&&z&&!z.1g(m[5])||O=="$="&&z.68(z.K-m[5].K)==m[5]||(O=="*="||O=="~=")&&z.1g(m[5])>=0)^h)g.1a(a)}r=g}J 9(m[1]==":"&&m[2]=="2I-46"){H e={},g=[],14=/(\\d*)n\\+?(\\d*)/.2S(m[3]=="6f"&&"2n"||m[3]=="6e"&&"2n+1"||!/\\D/.14(m[3])&&"n+"+m[3]||m[3]),3v=(14[1]||1)-0,d=14[2]-0;L(H i=0,31=r.K;i<31;i++){H j=r[i],12=j.12,22=E.M(12);9(!e[22]){H c=1;L(H n=12.1w;n;n=n.2q)9(n.1y==1)n.4U=c++;e[22]=Q}H b=P;9(3v==1){9(d==0||j.4U==d)b=Q}J 9((j.4U+d)%3v==0)b=Q;9(b^h)g.1a(j)}r=g}J{H f=E.55[m[1]];9(1m f!="1M")f=E.55[m[1]][m[2]];f=3w("P||G(a,i){I "+f+"}");r=E.2W(r,f,h)}}I{r:r,t:t}},4e:G(b,c){H d=[];H a=b[c];1W(a&&a!=U){9(a.1y==1)d.1a(a);a=a[c]}I d},2I:G(a,e,c,b){e=e||1;H d=0;L(;a;a=a[c])9(a.1y==1&&++d==e)1T;I a},5d:G(n,a){H r=[];L(;n;n=n.2q){9(n.1y==1&&(!a||n!=a))r.1a(n)}I r}});E.1j={1f:G(g,e,c,h){9(E.V.1h&&g.4j!=W)g=18;9(!c.2u)c.2u=6.2u++;9(h!=W){H d=c;c=G(){I d.16(6,1q)};c.M=h;c.2u=d.2u}H i=e.2l(".");e=i[0];c.O=i[1];H b=E.M(g,"2P")||E.M(g,"2P",{});H f=E.M(g,"2t",G(){H a;9(1m E=="W"||E.1j.4T)I a;a=E.1j.2t.16(g,1q);I a});H j=b[e];9(!j){j=b[e]={};9(g.4S)g.4S(e,f,P);J g.7N("43"+e,f)}j[c.2u]=c;6.1Z[e]=Q},2u:1,1Z:{},28:G(d,c,b){H e=E.M(d,"2P"),2L,4I;9(1m c=="1M"){H a=c.2l(".");c=a[0]}9(e){9(c&&c.O){b=c.4Q;c=c.O}9(!c){L(c 1i e)6.28(d,c)}J 9(e[c]){9(b)2E e[c][b.2u];J L(b 1i e[c])9(!a[1]||e[c][b].O==a[1])2E e[c][b];L(2L 1i e[c])1T;9(!2L){9(d.4P)d.4P(c,E.M(d,"2t"),P);J d.7M("43"+c,E.M(d,"2t"));2L=S;2E e[c]}}L(2L 1i e)1T;9(!2L){E.30(d,"2P");E.30(d,"2t")}}},1F:G(d,b,e,c,f){b=E.2h(b||[]);9(!e){9(6.1Z[d])E("*").1f([18,U]).1F(d,b)}J{H a,2L,1b=E.1n(e[d]||S),4N=!b[0]||!b[0].2M;9(4N)b.4w(6.4M({O:d,2m:e}));b[0].O=d;9(E.1n(E.M(e,"2t")))a=E.M(e,"2t").16(e,b);9(!1b&&e["43"+d]&&e["43"+d].16(e,b)===P)a=P;9(4N)b.44();9(f&&f.16(e,b)===P)a=P;9(1b&&c!==P&&a!==P&&!(E.11(e,\'a\')&&d=="4L")){6.4T=Q;e[d]()}6.4T=P}I a},2t:G(d){H a;d=E.1j.4M(d||18.1j||{});H b=d.O.2l(".");d.O=b[0];H c=E.M(6,"2P")&&E.M(6,"2P")[d.O],3q=1B.3A.2J.2O(1q,1);3q.4w(d);L(H j 1i c){3q[0].4Q=c[j];3q[0].M=c[j].M;9(!b[1]||c[j].O==b[1]){H e=c[j].16(6,3q);9(a!==P)a=e;9(e===P){d.2M();d.3p()}}}9(E.V.1h)d.2m=d.2M=d.3p=d.4Q=d.M=S;I a},4M:G(c){H a=c;c=E.1k({},a);c.2M=G(){9(a.2M)a.2M();a.7L=P};c.3p=G(){9(a.3p)a.3p();a.7K=Q};9(!c.2m&&c.65)c.2m=c.65;9(E.V.1N&&c.2m.1y==3)c.2m=a.2m.12;9(!c.4K&&c.4J)c.4K=c.4J==c.2m?c.7H:c.4J;9(c.64==S&&c.63!=S){H e=U.2V,b=U.1G;c.64=c.63+(e&&e.2R||b.2R||0);c.7E=c.7D+(e&&e.2B||b.2B||0)}9(!c.3Y&&(c.61||c.60))c.3Y=c.61||c.60;9(!c.5F&&c.5D)c.5F=c.5D;9(!c.3Y&&c.2r)c.3Y=(c.2r&1?1:(c.2r&2?3:(c.2r&4?2:0)));I c}};E.1b.1k({3W:G(c,a,b){I c=="5Y"?6.2G(c,a,b):6.N(G(){E.1j.1f(6,c,b||a,b&&a)})},2G:G(d,b,c){I 6.N(G(){E.1j.1f(6,d,G(a){E(6).5X(a);I(c||b).16(6,1q)},c&&b)})},5X:G(a,b){I 6.N(G(){E.1j.28(6,a,b)})},1F:G(c,a,b){I 6.N(G(){E.1j.1F(c,a,6,Q,b)})},7x:G(c,a,b){9(6[0])I E.1j.1F(c,a,6[0],P,b)},25:G(){H a=1q;I 6.4L(G(e){6.4H=0==6.4H?1:0;e.2M();I a[6.4H].16(6,[e])||P})},7v:G(f,g){G 4G(e){H p=e.4K;1W(p&&p!=6)2a{p=p.12}29(e){p=6};9(p==6)I P;I(e.O=="4x"?f:g).16(6,[e])}I 6.4x(4G).5U(4G)},2d:G(f){5T();9(E.3T)f.16(U,[E]);J E.3l.1a(G(){I f.16(6,[E])});I 6}});E.1k({3T:P,3l:[],2d:G(){9(!E.3T){E.3T=Q;9(E.3l){E.N(E.3l,G(){6.16(U)});E.3l=S}9(E.V.35||E.V.34)U.4P("5S",E.2d,P);9(!18.7t.K)E(18).39(G(){E("#4E").28()})}}});E.N(("7s,7r,39,7q,6n,5Y,4L,7p,"+"7n,7m,7l,4x,5U,7k,24,"+"51,7j,7i,7h,3U").2l(","),G(i,o){E.1b[o]=G(f){I f?6.3W(o,f):6.1F(o)}});H x=P;G 5T(){9(x)I;x=Q;9(E.V.35||E.V.34)U.4S("5S",E.2d,P);J 9(E.V.1h){U.7f("<7d"+"7y 22=4E 7z=Q "+"3k=//:><\\/1J>");H a=U.3S("4E");9(a)a.62=G(){9(6.2C!="1l")I;E.2d()};a=S}J 9(E.V.1N)E.4B=4j(G(){9(U.2C=="5Q"||U.2C=="1l"){4A(E.4B);E.4B=S;E.2d()}},10);E.1j.1f(18,"39",E.2d)}E.1b.1k({39:G(g,d,c){9(E.1n(g))I 6.3W("39",g);H e=g.1g(" ");9(e>=0){H i=g.2J(e,g.K);g=g.2J(0,e)}c=c||G(){};H f="4z";9(d)9(E.1n(d)){c=d;d=S}J{d=E.3a(d);f="5P"}H h=6;E.3G({1d:g,O:f,M:d,1l:G(a,b){9(b=="1C"||b=="5O")h.4o(i?E("<1s/>").3g(a.40.1p(/<1J(.|\\s)*?\\/1J>/g,"")).1Y(i):a.40);56(G(){h.N(c,[a.40,b,a])},13)}});I 6},7a:G(){I E.3a(6.5M())},5M:G(){I 6.1X(G(){I E.11(6,"2Y")?E.2h(6.79):6}).1E(G(){I 6.2H&&!6.3c&&(6.2Q||/24|6b/i.14(6.11)||/2g|1P|52/i.14(6.O))}).1X(G(i,c){H b=E(6).3i();I b==S?S:b.1c==1B?E.1X(b,G(a,i){I{2H:c.2H,1Q:a}}):{2H:c.2H,1Q:b}}).21()}});E.N("5L,5K,6t,5J,5I,5H".2l(","),G(i,o){E.1b[o]=G(f){I 6.3W(o,f)}});H B=(1u 3D).3B();E.1k({21:G(d,b,a,c){9(E.1n(b)){a=b;b=S}I E.3G({O:"4z",1d:d,M:b,1C:a,1V:c})},78:G(b,a){I E.21(b,S,a,"1J")},77:G(c,b,a){I E.21(c,b,a,"45")},76:G(d,b,a,c){9(E.1n(b)){a=b;b={}}I E.3G({O:"5P",1d:d,M:b,1C:a,1V:c})},75:G(a){E.1k(E.59,a)},59:{1Z:Q,O:"4z",2z:0,5G:"74/x-73-2Y-72",6o:Q,3e:Q,M:S},49:{},3G:G(s){H f,2y=/=(\\?|%3F)/g,1v,M;s=E.1k(Q,s,E.1k(Q,{},E.59,s));9(s.M&&s.6o&&1m s.M!="1M")s.M=E.3a(s.M);9(s.1V=="4b"){9(s.O.2p()=="21"){9(!s.1d.1t(2y))s.1d+=(s.1d.1t(/\\?/)?"&":"?")+(s.4b||"5E")+"=?"}J 9(!s.M||!s.M.1t(2y))s.M=(s.M?s.M+"&":"")+(s.4b||"5E")+"=?";s.1V="45"}9(s.1V=="45"&&(s.M&&s.M.1t(2y)||s.1d.1t(2y))){f="4b"+B++;9(s.M)s.M=s.M.1p(2y,"="+f);s.1d=s.1d.1p(2y,"="+f);s.1V="1J";18[f]=G(a){M=a;1C();1l();18[f]=W;2a{2E 18[f]}29(e){}}}9(s.1V=="1J"&&s.1L==S)s.1L=P;9(s.1L===P&&s.O.2p()=="21")s.1d+=(s.1d.1t(/\\?/)?"&":"?")+"57="+(1u 3D()).3B();9(s.M&&s.O.2p()=="21"){s.1d+=(s.1d.1t(/\\?/)?"&":"?")+s.M;s.M=S}9(s.1Z&&!E.5b++)E.1j.1F("5L");9(!s.1d.1g("8g")&&s.1V=="1J"){H h=U.4l("9U")[0];H g=U.5B("1J");g.3k=s.1d;9(!f&&(s.1C||s.1l)){H j=P;g.9R=g.62=G(){9(!j&&(!6.2C||6.2C=="5Q"||6.2C=="1l")){j=Q;1C();1l();h.3b(g)}}}h.58(g);I}H k=P;H i=18.6X?1u 6X("9P.9O"):1u 6W();i.9M(s.O,s.1d,s.3e);9(s.M)i.5C("9J-9I",s.5G);9(s.5y)i.5C("9H-5x-9F",E.49[s.1d]||"9D, 9C 9B 9A 5v:5v:5v 9z");i.5C("X-9x-9v","6W");9(s.6U)s.6U(i);9(s.1Z)E.1j.1F("5H",[i,s]);H c=G(a){9(!k&&i&&(i.2C==4||a=="2z")){k=Q;9(d){4A(d);d=S}1v=a=="2z"&&"2z"||!E.6S(i)&&"3U"||s.5y&&E.6R(i,s.1d)&&"5O"||"1C";9(1v=="1C"){2a{M=E.6Q(i,s.1V)}29(e){1v="5k"}}9(1v=="1C"){H b;2a{b=i.5s("6P-5x")}29(e){}9(s.5y&&b)E.49[s.1d]=b;9(!f)1C()}J E.5r(s,i,1v);1l();9(s.3e)i=S}};9(s.3e){H d=4j(c,13);9(s.2z>0)56(G(){9(i){i.9q();9(!k)c("2z")}},s.2z)}2a{i.9o(s.M)}29(e){E.5r(s,i,S,e)}9(!s.3e)c();I i;G 1C(){9(s.1C)s.1C(M,1v);9(s.1Z)E.1j.1F("5I",[i,s])}G 1l(){9(s.1l)s.1l(i,1v);9(s.1Z)E.1j.1F("6t",[i,s]);9(s.1Z&&!--E.5b)E.1j.1F("5K")}},5r:G(s,a,b,e){9(s.3U)s.3U(a,b,e);9(s.1Z)E.1j.1F("5J",[a,s,e])},5b:0,6S:G(r){2a{I!r.1v&&9n.9l=="54:"||(r.1v>=6N&&r.1v<9j)||r.1v==6M||E.V.1N&&r.1v==W}29(e){}I P},6R:G(a,c){2a{H b=a.5s("6P-5x");I a.1v==6M||b==E.49[c]||E.V.1N&&a.1v==W}29(e){}I P},6Q:G(r,b){H c=r.5s("9i-O");H d=b=="6K"||!b&&c&&c.1g("6K")>=0;H a=d?r.9g:r.40;9(d&&a.2V.37=="5k")6G"5k";9(b=="1J")E.5f(a);9(b=="45")a=3w("("+a+")");I a},3a:G(a){H s=[];9(a.1c==1B||a.4c)E.N(a,G(){s.1a(3f(6.2H)+"="+3f(6.1Q))});J L(H j 1i a)9(a[j]&&a[j].1c==1B)E.N(a[j],G(){s.1a(3f(j)+"="+3f(6))});J s.1a(3f(j)+"="+3f(a[j]));I s.66("&").1p(/%20/g,"+")}});E.1b.1k({1A:G(b,a){I b?6.1U({1H:"1A",2N:"1A",1r:"1A"},b,a):6.1E(":1P").N(G(){6.R.19=6.3h?6.3h:"";9(E.17(6,"19")=="2s")6.R.19="2Z"}).2D()},1z:G(b,a){I b?6.1U({1H:"1z",2N:"1z",1r:"1z"},b,a):6.1E(":3R").N(G(){6.3h=6.3h||E.17(6,"19");9(6.3h=="2s")6.3h="2Z";6.R.19="2s"}).2D()},6J:E.1b.25,25:G(a,b){I E.1n(a)&&E.1n(b)?6.6J(a,b):a?6.1U({1H:"25",2N:"25",1r:"25"},a,b):6.N(G(){E(6)[E(6).3t(":1P")?"1A":"1z"]()})},9c:G(b,a){I 6.1U({1H:"1A"},b,a)},9b:G(b,a){I 6.1U({1H:"1z"},b,a)},99:G(b,a){I 6.1U({1H:"25"},b,a)},98:G(b,a){I 6.1U({1r:"1A"},b,a)},96:G(b,a){I 6.1U({1r:"1z"},b,a)},95:G(c,a,b){I 6.1U({1r:a},c,b)},1U:G(k,i,h,g){H j=E.6D(i,h,g);I 6[j.3L===P?"N":"3L"](G(){j=E.1k({},j);H f=E(6).3t(":1P"),3y=6;L(H p 1i k){9(k[p]=="1z"&&f||k[p]=="1A"&&!f)I E.1n(j.1l)&&j.1l.16(6);9(p=="1H"||p=="2N"){j.19=E.17(6,"19");j.2U=6.R.2U}}9(j.2U!=S)6.R.2U="1P";j.3M=E.1k({},k);E.N(k,G(c,a){H e=1u E.2j(3y,j,c);9(/25|1A|1z/.14(a))e[a=="25"?f?"1A":"1z":a](k);J{H b=a.3s().1t(/^([+-]=)?([\\d+-.]+)(.*)$/),1O=e.2b(Q)||0;9(b){H d=3I(b[2]),2i=b[3]||"2T";9(2i!="2T"){3y.R[c]=(d||1)+2i;1O=((d||1)/e.2b(Q))*1O;3y.R[c]=1O+2i}9(b[1])d=((b[1]=="-="?-1:1)*d)+1O;e.3N(1O,d,2i)}J e.3N(1O,a,"")}});I Q})},3L:G(a,b){9(E.1n(a)){b=a;a="2j"}9(!a||(1m a=="1M"&&!b))I A(6[0],a);I 6.N(G(){9(b.1c==1B)A(6,a,b);J{A(6,a).1a(b);9(A(6,a).K==1)b.16(6)}})},9f:G(){H a=E.32;I 6.N(G(){L(H i=0;i<a.K;i++)9(a[i].T==6)a.6I(i--,1)}).5n()}});H A=G(b,c,a){9(!b)I;H q=E.M(b,c+"3L");9(!q||a)q=E.M(b,c+"3L",a?E.2h(a):[]);I q};E.1b.5n=G(a){a=a||"2j";I 6.N(G(){H q=A(6,a);q.44();9(q.K)q[0].16(6)})};E.1k({6D:G(b,a,c){H d=b&&b.1c==8Z?b:{1l:c||!c&&a||E.1n(b)&&b,2e:b,3J:c&&a||a&&a.1c!=8Y&&a};d.2e=(d.2e&&d.2e.1c==4W?d.2e:{8X:8W,8V:6N}[d.2e])||8T;d.3r=d.1l;d.1l=G(){E(6).5n();9(E.1n(d.3r))d.3r.16(6)};I d},3J:{6B:G(p,n,b,a){I b+a*p},5q:G(p,n,b,a){I((-38.9s(p*38.8R)/2)+0.5)*a+b}},32:[],2j:G(b,c,a){6.Y=c;6.T=b;6.1e=a;9(!c.3P)c.3P={}}});E.2j.3A={4r:G(){9(6.Y.2F)6.Y.2F.16(6.T,[6.2v,6]);(E.2j.2F[6.1e]||E.2j.2F.6z)(6);9(6.1e=="1H"||6.1e=="2N")6.T.R.19="2Z"},2b:G(a){9(6.T[6.1e]!=S&&6.T.R[6.1e]==S)I 6.T[6.1e];H r=3I(E.3C(6.T,6.1e,a));I r&&r>-8O?r:3I(E.17(6.T,6.1e))||0},3N:G(c,b,e){6.5u=(1u 3D()).3B();6.1O=c;6.2D=b;6.2i=e||6.2i||"2T";6.2v=6.1O;6.4q=6.4i=0;6.4r();H f=6;G t(){I f.2F()}t.T=6.T;E.32.1a(t);9(E.32.K==1){H d=4j(G(){H a=E.32;L(H i=0;i<a.K;i++)9(!a[i]())a.6I(i--,1);9(!a.K)4A(d)},13)}},1A:G(){6.Y.3P[6.1e]=E.1x(6.T.R,6.1e);6.Y.1A=Q;6.3N(0,6.2b());9(6.1e=="2N"||6.1e=="1H")6.T.R[6.1e]="8N";E(6.T).1A()},1z:G(){6.Y.3P[6.1e]=E.1x(6.T.R,6.1e);6.Y.1z=Q;6.3N(6.2b(),0)},2F:G(){H t=(1u 3D()).3B();9(t>6.Y.2e+6.5u){6.2v=6.2D;6.4q=6.4i=1;6.4r();6.Y.3M[6.1e]=Q;H a=Q;L(H i 1i 6.Y.3M)9(6.Y.3M[i]!==Q)a=P;9(a){9(6.Y.19!=S){6.T.R.2U=6.Y.2U;6.T.R.19=6.Y.19;9(E.17(6.T,"19")=="2s")6.T.R.19="2Z"}9(6.Y.1z)6.T.R.19="2s";9(6.Y.1z||6.Y.1A)L(H p 1i 6.Y.3M)E.1x(6.T.R,p,6.Y.3P[p])}9(a&&E.1n(6.Y.1l))6.Y.1l.16(6.T);I P}J{H n=t-6.5u;6.4i=n/6.Y.2e;6.4q=E.3J[6.Y.3J||(E.3J.5q?"5q":"6B")](6.4i,n,0,1,6.Y.2e);6.2v=6.1O+((6.2D-6.1O)*6.4q);6.4r()}I Q}};E.2j.2F={2R:G(a){a.T.2R=a.2v},2B:G(a){a.T.2B=a.2v},1r:G(a){E.1x(a.T.R,"1r",a.2v)},6z:G(a){a.T.R[a.1e]=a.2v+a.2i}};E.1b.6m=G(){H c=0,3E=0,T=6[0],5t;9(T)8L(E.V){H b=E.17(T,"2X")=="4F",1D=T.12,23=T.23,2K=T.3H,4f=1N&&3x(4s)<8J;9(T.6V){5w=T.6V();1f(5w.1S+38.33(2K.2V.2R,2K.1G.2R),5w.3E+38.33(2K.2V.2B,2K.1G.2B));9(1h){H d=E("4o").17("8H");d=(d=="8G"||E.5g&&3x(4s)>=7)&&2||d;1f(-d,-d)}}J{1f(T.5l,T.5z);1W(23){1f(23.5l,23.5z);9(35&&/^t[d|h]$/i.14(1D.37)||!4f)d(23);9(4f&&!b&&E.17(23,"2X")=="4F")b=Q;23=23.23}1W(1D.37&&!/^1G|4o$/i.14(1D.37)){9(!/^8D|1I-9S.*$/i.14(E.17(1D,"19")))1f(-1D.2R,-1D.2B);9(35&&E.17(1D,"2U")!="3R")d(1D);1D=1D.12}9(4f&&b)1f(-2K.1G.5l,-2K.1G.5z)}5t={3E:3E,1S:c}}I 5t;G d(a){1f(E.17(a,"9T"),E.17(a,"8A"))}G 1f(l,t){c+=3x(l)||0;3E+=3x(t)||0}}})();',62,616,'||||||this|||if|||||||||||||||||||||||||||||||||function|var|return|else|length|for|data|each|type|false|true|style|null|elem|document|browser|undefined||options|||nodeName|parentNode||test|jQuery|apply|css|window|display|push|fn|constructor|url|prop|add|indexOf|msie|in|event|extend|complete|typeof|isFunction|className|replace|arguments|opacity|div|match|new|status|firstChild|attr|nodeType|hide|show|Array|success|parent|filter|trigger|body|height|table|script|tbody|cache|string|safari|start|hidden|value|merge|left|break|animate|dataType|while|map|find|global||get|id|offsetParent|select|toggle|selected|toUpperCase|remove|catch|try|cur|al|ready|duration|done|text|makeArray|unit|fx|swap|split|target||pushStack|toLowerCase|nextSibling|button|none|handle|guid|now|stack|tb|jsre|timeout|inArray|scrollTop|readyState|end|delete|step|one|name|nth|slice|doc|ret|preventDefault|width|call|events|checked|scrollLeft|exec|px|overflow|documentElement|grep|position|form|block|removeData|rl|timers|max|opera|mozilla|trim|tagName|Math|load|param|removeChild|disabled|insertBefore|async|encodeURIComponent|append|oldblock|val|childNodes|src|readyList|multiFilter|color|defaultView|stopPropagation|args|old|toString|is|last|first|eval|parseInt|self|domManip|prototype|getTime|curCSS|Date|top||ajax|ownerDocument|parseFloat|easing|has|queue|curAnim|custom|innerHTML|orig|currentStyle|visible|getElementById|isReady|error|static|bind|String|which|getComputedStyle|responseText|oWidth|oHeight|on|shift|json|child|RegExp|ol|lastModified|isXMLDoc|jsonp|jquery|previousSibling|dir|safari2|el|styleFloat|state|setInterval|radio|getElementsByTagName|tr|empty|html|getAttribute|pos|update|version|input|float|runtimeStyle|unshift|mouseover|getPropertyValue|GET|clearInterval|safariTimer|visibility|clean|__ie_init|absolute|handleHover|lastToggle|index|fromElement|relatedTarget|click|fix|evt|andSelf|removeEventListener|handler|cloneNode|addEventListener|triggered|nodeIndex|unique|Number|classFilter|prevObject|selectedIndex|after|submit|password|removeAttribute|file|expr|setTimeout|_|appendChild|ajaxSettings|client|active|win|sibling|deep|globalEval|boxModel|cssFloat|object|checkbox|parsererror|offsetLeft|wrapAll|dequeue|props|lastChild|swing|handleError|getResponseHeader|results|startTime|00|box|Modified|ifModified|offsetTop|evalScript|createElement|setRequestHeader|ctrlKey|callback|metaKey|contentType|ajaxSend|ajaxSuccess|ajaxError|ajaxStop|ajaxStart|serializeArray|init|notmodified|POST|loaded|appendTo|DOMContentLoaded|bindReady|mouseout|not|removeAttr|unbind|unload|Width|keyCode|charCode|onreadystatechange|clientX|pageX|srcElement|join|outerHTML|substr|zoom|parse|textarea|reset|image|odd|even|before|quickClass|quickID|prepend|quickChild|execScript|offset|scroll|processData|uuid|contents|continue|textContent|ajaxComplete|clone|setArray|webkit|nodeValue|fl|_default|100|linear|href|speed|eq|createTextNode|throw|replaceWith|splice|_toggle|xml|colgroup|304|200|alpha|Last|httpData|httpNotModified|httpSuccess|fieldset|beforeSend|getBoundingClientRect|XMLHttpRequest|ActiveXObject|col|br|abbr|pixelLeft|urlencoded|www|application|ajaxSetup|post|getJSON|getScript|elements|serialize|clientWidth|hasClass|scr|clientHeight|write|relative|keyup|keypress|keydown|change|mousemove|mouseup|mousedown|right|dblclick|resize|focus|blur|frames|instanceof|hover|offsetWidth|triggerHandler|ipt|defer|offsetHeight|border|padding|clientY|pageY|Left|Right|toElement|Bottom|Top|cancelBubble|returnValue|detachEvent|attachEvent|substring|line|weight|animated|header|font|enabled|innerText|contains|only|size|gt|lt|uFFFF|u0128|417|inner|Height|toggleClass|removeClass|addClass|replaceAll|noConflict|insertAfter|prependTo|wrap|contentWindow|contentDocument|http|iframe|children|siblings|prevAll|nextAll|wrapInner|prev|Boolean|next|parents|maxLength|maxlength|readOnly|readonly|class|htmlFor|CSS1Compat|compatMode|compatible|borderTopWidth|ie|ra|inline|it|rv|medium|borderWidth|userAgent|522|navigator|with|concat|1px|10000|array|ig|PI|NaN|400|reverse|fast|600|slow|Function|Object|setAttribute|changed|be|can|property|fadeTo|fadeOut|getAttributeNode|fadeIn|slideToggle|method|slideUp|slideDown|action|cssText|stop|responseXML|option|content|300|th|protocol|td|location|send|cap|abort|colg|cos|tfoot|thead|With|leg|Requested|opt|GMT|1970|Jan|01|Thu|area|Since|hr|If|Type|Content|meta|specified|open|link|XMLHTTP|Microsoft|img|onload|row|borderLeftWidth|head|attributes'.split('|'),0,{}))
\ No newline at end of file
diff --git a/test/otherlibs/jquery/1.2.3/jquery.js b/test/otherlibs/jquery/1.2.3/jquery.js
new file mode 100644 (file)
index 0000000..74cdfee
--- /dev/null
@@ -0,0 +1,11 @@
+/*
+ * jQuery 1.2.3 - New Wave Javascript
+ *
+ * Copyright (c) 2008 John Resig (jquery.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $
+ * $Rev: 4663 $
+ */
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(J(){7(1e.3N)L w=1e.3N;L E=1e.3N=J(a,b){K 1B E.2l.4T(a,b)};7(1e.$)L D=1e.$;1e.$=E;L u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/;L G=/^.[^:#\\[\\.]*$/;E.1n=E.2l={4T:J(d,b){d=d||T;7(d.15){6[0]=d;6.M=1;K 6}N 7(1o d=="25"){L c=u.2O(d);7(c&&(c[1]||!b)){7(c[1])d=E.4a([c[1]],b);N{L a=T.5J(c[3]);7(a)7(a.2w!=c[3])K E().2s(d);N{6[0]=a;6.M=1;K 6}N d=[]}}N K 1B E(b).2s(d)}N 7(E.1q(d))K 1B E(T)[E.1n.21?"21":"3U"](d);K 6.6E(d.1k==1M&&d||(d.5h||d.M&&d!=1e&&!d.15&&d[0]!=10&&d[0].15)&&E.2I(d)||[d])},5h:"1.2.3",87:J(){K 6.M},M:0,22:J(a){K a==10?E.2I(6):6[a]},2F:J(b){L a=E(b);a.54=6;K a},6E:J(a){6.M=0;1M.2l.1g.1i(6,a);K 6},R:J(a,b){K E.R(6,a,b)},4X:J(b){L a=-1;6.R(J(i){7(6==b)a=i});K a},1J:J(c,a,b){L d=c;7(c.1k==4e)7(a==10)K 6.M&&E[b||"1J"](6[0],c)||10;N{d={};d[c]=a}K 6.R(J(i){Q(c 1p d)E.1J(b?6.W:6,c,E.1l(6,d[c],b,i,c))})},1j:J(b,a){7((b==\'27\'||b==\'1R\')&&2M(a)<0)a=10;K 6.1J(b,a,"2o")},1u:J(b){7(1o b!="3V"&&b!=V)K 6.4x().3t((6[0]&&6[0].2i||T).5r(b));L a="";E.R(b||6,J(){E.R(6.3p,J(){7(6.15!=8)a+=6.15!=1?6.6K:E.1n.1u([6])})});K a},5m:J(b){7(6[0])E(b,6[0].2i).5k().3o(6[0]).2c(J(){L a=6;2b(a.1C)a=a.1C;K a}).3t(6);K 6},8w:J(a){K 6.R(J(){E(6).6z().5m(a)})},8p:J(a){K 6.R(J(){E(6).5m(a)})},3t:J(){K 6.3O(18,P,S,J(a){7(6.15==1)6.38(a)})},6q:J(){K 6.3O(18,P,P,J(a){7(6.15==1)6.3o(a,6.1C)})},6o:J(){K 6.3O(18,S,S,J(a){6.1a.3o(a,6)})},5a:J(){K 6.3O(18,S,P,J(a){6.1a.3o(a,6.2B)})},3h:J(){K 6.54||E([])},2s:J(b){L c=E.2c(6,J(a){K E.2s(b,a)});K 6.2F(/[^+>] [^+>]/.17(b)||b.1f("..")>-1?E.57(c):c)},5k:J(e){L f=6.2c(J(){7(E.14.1d&&!E.3E(6)){L a=6.69(P),4Y=T.3s("1x");4Y.38(a);K E.4a([4Y.3d])[0]}N K 6.69(P)});L d=f.2s("*").4R().R(J(){7(6[F]!=10)6[F]=V});7(e===P)6.2s("*").4R().R(J(i){7(6.15==3)K;L c=E.O(6,"2R");Q(L a 1p c)Q(L b 1p c[a])E.16.1b(d[i],a,c[a][b],c[a][b].O)});K f},1E:J(b){K 6.2F(E.1q(b)&&E.3y(6,J(a,i){K b.1P(a,i)})||E.3e(b,6))},56:J(b){7(b.1k==4e)7(G.17(b))K 6.2F(E.3e(b,6,P));N b=E.3e(b,6);L a=b.M&&b[b.M-1]!==10&&!b.15;K 6.1E(J(){K a?E.33(6,b)<0:6!=b})},1b:J(a){K!a?6:6.2F(E.37(6.22(),a.1k==4e?E(a).22():a.M!=10&&(!a.12||E.12(a,"3u"))?a:[a]))},3H:J(a){K a?E.3e(a,6).M>0:S},7j:J(a){K 6.3H("."+a)},5O:J(b){7(b==10){7(6.M){L c=6[0];7(E.12(c,"2k")){L e=c.3T,5I=[],11=c.11,2X=c.U=="2k-2X";7(e<0)K V;Q(L i=2X?e:0,2f=2X?e+1:11.M;i<2f;i++){L d=11[i];7(d.2p){b=E.14.1d&&!d.9J.1A.9y?d.1u:d.1A;7(2X)K b;5I.1g(b)}}K 5I}N K(6[0].1A||"").1r(/\\r/g,"")}K 10}K 6.R(J(){7(6.15!=1)K;7(b.1k==1M&&/5u|5t/.17(6.U))6.3k=(E.33(6.1A,b)>=0||E.33(6.31,b)>=0);N 7(E.12(6,"2k")){L a=b.1k==1M?b:[b];E("98",6).R(J(){6.2p=(E.33(6.1A,a)>=0||E.33(6.1u,a)>=0)});7(!a.M)6.3T=-1}N 6.1A=b})},3q:J(a){K a==10?(6.M?6[0].3d:V):6.4x().3t(a)},6S:J(a){K 6.5a(a).1V()},6Z:J(i){K 6.2K(i,i+1)},2K:J(){K 6.2F(1M.2l.2K.1i(6,18))},2c:J(b){K 6.2F(E.2c(6,J(a,i){K b.1P(a,i,a)}))},4R:J(){K 6.1b(6.54)},O:J(d,b){L a=d.23(".");a[1]=a[1]?"."+a[1]:"";7(b==V){L c=6.5n("8P"+a[1]+"!",[a[0]]);7(c==10&&6.M)c=E.O(6[0],d);K c==V&&a[1]?6.O(a[0]):c}N K 6.1N("8K"+a[1]+"!",[a[0],b]).R(J(){E.O(6,d,b)})},35:J(a){K 6.R(J(){E.35(6,a)})},3O:J(g,f,h,d){L e=6.M>1,3n;K 6.R(J(){7(!3n){3n=E.4a(g,6.2i);7(h)3n.8D()}L b=6;7(f&&E.12(6,"1O")&&E.12(3n[0],"4v"))b=6.3S("1U")[0]||6.38(6.2i.3s("1U"));L c=E([]);E.R(3n,J(){L a=e?E(6).5k(P)[0]:6;7(E.12(a,"1m")){c=c.1b(a)}N{7(a.15==1)c=c.1b(E("1m",a).1V());d.1P(b,a)}});c.R(6A)})}};E.2l.4T.2l=E.2l;J 6A(i,a){7(a.3Q)E.3P({1c:a.3Q,3l:S,1H:"1m"});N E.5g(a.1u||a.6x||a.3d||"");7(a.1a)a.1a.34(a)}E.1s=E.1n.1s=J(){L b=18[0]||{},i=1,M=18.M,5c=S,11;7(b.1k==8d){5c=b;b=18[1]||{};i=2}7(1o b!="3V"&&1o b!="J")b={};7(M==1){b=6;i=0}Q(;i<M;i++)7((11=18[i])!=V)Q(L a 1p 11){7(b===11[a])6w;7(5c&&11[a]&&1o 11[a]=="3V"&&b[a]&&!11[a].15)b[a]=E.1s(b[a],11[a]);N 7(11[a]!=10)b[a]=11[a]}K b};L F="3N"+(1B 3v()).3L(),6t=0,5b={};L H=/z-?4X|86-?84|1w|6k|7Z-?1R/i;E.1s({7Y:J(a){1e.$=D;7(a)1e.3N=w;K E},1q:J(a){K!!a&&1o a!="25"&&!a.12&&a.1k!=1M&&/J/i.17(a+"")},3E:J(a){K a.1F&&!a.1h||a.28&&a.2i&&!a.2i.1h},5g:J(a){a=E.3g(a);7(a){L b=T.3S("6f")[0]||T.1F,1m=T.3s("1m");1m.U="1u/4m";7(E.14.1d)1m.1u=a;N 1m.38(T.5r(a));b.38(1m);b.34(1m)}},12:J(b,a){K b.12&&b.12.2E()==a.2E()},1T:{},O:J(c,d,b){c=c==1e?5b:c;L a=c[F];7(!a)a=c[F]=++6t;7(d&&!E.1T[a])E.1T[a]={};7(b!=10)E.1T[a][d]=b;K d?E.1T[a][d]:a},35:J(c,b){c=c==1e?5b:c;L a=c[F];7(b){7(E.1T[a]){2V E.1T[a][b];b="";Q(b 1p E.1T[a])1Q;7(!b)E.35(c)}}N{1S{2V c[F]}1X(e){7(c.52)c.52(F)}2V E.1T[a]}},R:J(c,a,b){7(b){7(c.M==10){Q(L d 1p c)7(a.1i(c[d],b)===S)1Q}N Q(L i=0,M=c.M;i<M;i++)7(a.1i(c[i],b)===S)1Q}N{7(c.M==10){Q(L d 1p c)7(a.1P(c[d],d,c[d])===S)1Q}N Q(L i=0,M=c.M,1A=c[0];i<M&&a.1P(1A,i,1A)!==S;1A=c[++i]){}}K c},1l:J(b,a,c,i,d){7(E.1q(a))a=a.1P(b,i);K a&&a.1k==51&&c=="2o"&&!H.17(d)?a+"2S":a},1t:{1b:J(c,b){E.R((b||"").23(/\\s+/),J(i,a){7(c.15==1&&!E.1t.3Y(c.1t,a))c.1t+=(c.1t?" ":"")+a})},1V:J(c,b){7(c.15==1)c.1t=b!=10?E.3y(c.1t.23(/\\s+/),J(a){K!E.1t.3Y(b,a)}).6a(" "):""},3Y:J(b,a){K E.33(a,(b.1t||b).3X().23(/\\s+/))>-1}},68:J(b,c,a){L e={};Q(L d 1p c){e[d]=b.W[d];b.W[d]=c[d]}a.1P(b);Q(L d 1p c)b.W[d]=e[d]},1j:J(d,e,c){7(e=="27"||e=="1R"){L b,46={43:"4W",4U:"1Z",19:"3D"},3c=e=="27"?["7O","7M"]:["7J","7I"];J 5E(){b=e=="27"?d.7H:d.7F;L a=0,2N=0;E.R(3c,J(){a+=2M(E.2o(d,"7E"+6,P))||0;2N+=2M(E.2o(d,"2N"+6+"5X",P))||0});b-=24.7C(a+2N)}7(E(d).3H(":4d"))5E();N E.68(d,46,5E);K 24.2f(0,b)}K E.2o(d,e,c)},2o:J(e,k,j){L d;J 3x(b){7(!E.14.2d)K S;L a=T.4c.4K(b,V);K!a||a.4M("3x")==""}7(k=="1w"&&E.14.1d){d=E.1J(e.W,"1w");K d==""?"1":d}7(E.14.2z&&k=="19"){L c=e.W.50;e.W.50="0 7r 7o";e.W.50=c}7(k.1D(/4g/i))k=y;7(!j&&e.W&&e.W[k])d=e.W[k];N 7(T.4c&&T.4c.4K){7(k.1D(/4g/i))k="4g";k=k.1r(/([A-Z])/g,"-$1").2h();L h=T.4c.4K(e,V);7(h&&!3x(e))d=h.4M(k);N{L f=[],2C=[];Q(L a=e;a&&3x(a);a=a.1a)2C.4J(a);Q(L i=0;i<2C.M;i++)7(3x(2C[i])){f[i]=2C[i].W.19;2C[i].W.19="3D"}d=k=="19"&&f[2C.M-1]!=V?"2H":(h&&h.4M(k))||"";Q(L i=0;i<f.M;i++)7(f[i]!=V)2C[i].W.19=f[i]}7(k=="1w"&&d=="")d="1"}N 7(e.4n){L g=k.1r(/\\-(\\w)/g,J(a,b){K b.2E()});d=e.4n[k]||e.4n[g];7(!/^\\d+(2S)?$/i.17(d)&&/^\\d/.17(d)){L l=e.W.26,3K=e.3K.26;e.3K.26=e.4n.26;e.W.26=d||0;d=e.W.7f+"2S";e.W.26=l;e.3K.26=3K}}K d},4a:J(l,h){L k=[];h=h||T;7(1o h.3s==\'10\')h=h.2i||h[0]&&h[0].2i||T;E.R(l,J(i,d){7(!d)K;7(d.1k==51)d=d.3X();7(1o d=="25"){d=d.1r(/(<(\\w+)[^>]*?)\\/>/g,J(b,a,c){K c.1D(/^(aa|a6|7e|a5|4D|7a|a0|3m|9W|9U|9S)$/i)?b:a+"></"+c+">"});L f=E.3g(d).2h(),1x=h.3s("1x");L e=!f.1f("<9P")&&[1,"<2k 74=\'74\'>","</2k>"]||!f.1f("<9M")&&[1,"<73>","</73>"]||f.1D(/^<(9G|1U|9E|9B|9x)/)&&[1,"<1O>","</1O>"]||!f.1f("<4v")&&[2,"<1O><1U>","</1U></1O>"]||(!f.1f("<9w")||!f.1f("<9v"))&&[3,"<1O><1U><4v>","</4v></1U></1O>"]||!f.1f("<7e")&&[2,"<1O><1U></1U><6V>","</6V></1O>"]||E.14.1d&&[1,"1x<1x>","</1x>"]||[0,"",""];1x.3d=e[1]+d+e[2];2b(e[0]--)1x=1x.5o;7(E.14.1d){L g=!f.1f("<1O")&&f.1f("<1U")<0?1x.1C&&1x.1C.3p:e[1]=="<1O>"&&f.1f("<1U")<0?1x.3p:[];Q(L j=g.M-1;j>=0;--j)7(E.12(g[j],"1U")&&!g[j].3p.M)g[j].1a.34(g[j]);7(/^\\s/.17(d))1x.3o(h.5r(d.1D(/^\\s*/)[0]),1x.1C)}d=E.2I(1x.3p)}7(d.M===0&&(!E.12(d,"3u")&&!E.12(d,"2k")))K;7(d[0]==10||E.12(d,"3u")||d.11)k.1g(d);N k=E.37(k,d)});K k},1J:J(d,e,c){7(!d||d.15==3||d.15==8)K 10;L f=E.3E(d)?{}:E.46;7(e=="2p"&&E.14.2d)d.1a.3T;7(f[e]){7(c!=10)d[f[e]]=c;K d[f[e]]}N 7(E.14.1d&&e=="W")K E.1J(d.W,"9u",c);N 7(c==10&&E.14.1d&&E.12(d,"3u")&&(e=="9r"||e=="9o"))K d.9m(e).6K;N 7(d.28){7(c!=10){7(e=="U"&&E.12(d,"4D")&&d.1a)6Q"U 9i 9h\'t 9g 9e";d.9b(e,""+c)}7(E.14.1d&&/6O|3Q/.17(e)&&!E.3E(d))K d.4z(e,2);K d.4z(e)}N{7(e=="1w"&&E.14.1d){7(c!=10){d.6k=1;d.1E=(d.1E||"").1r(/6M\\([^)]*\\)/,"")+(2M(c).3X()=="96"?"":"6M(1w="+c*6L+")")}K d.1E&&d.1E.1f("1w=")>=0?(2M(d.1E.1D(/1w=([^)]*)/)[1])/6L).3X():""}e=e.1r(/-([a-z])/95,J(a,b){K b.2E()});7(c!=10)d[e]=c;K d[e]}},3g:J(a){K(a||"").1r(/^\\s+|\\s+$/g,"")},2I:J(b){L a=[];7(1o b!="93")Q(L i=0,M=b.M;i<M;i++)a.1g(b[i]);N a=b.2K(0);K a},33:J(b,a){Q(L i=0,M=a.M;i<M;i++)7(a[i]==b)K i;K-1},37:J(a,b){7(E.14.1d){Q(L i=0;b[i];i++)7(b[i].15!=8)a.1g(b[i])}N Q(L i=0;b[i];i++)a.1g(b[i]);K a},57:J(a){L c=[],2r={};1S{Q(L i=0,M=a.M;i<M;i++){L b=E.O(a[i]);7(!2r[b]){2r[b]=P;c.1g(a[i])}}}1X(e){c=a}K c},3y:J(c,a,d){L b=[];Q(L i=0,M=c.M;i<M;i++)7(!d&&a(c[i],i)||d&&!a(c[i],i))b.1g(c[i]);K b},2c:J(d,a){L c=[];Q(L i=0,M=d.M;i<M;i++){L b=a(d[i],i);7(b!==V&&b!=10){7(b.1k!=1M)b=[b];c=c.71(b)}}K c}});L v=8Y.8W.2h();E.14={5K:(v.1D(/.+(?:8T|8S|8R|8O)[\\/: ]([\\d.]+)/)||[])[1],2d:/77/.17(v),2z:/2z/.17(v),1d:/1d/.17(v)&&!/2z/.17(v),48:/48/.17(v)&&!/(8L|77)/.17(v)};L y=E.14.1d?"6H":"75";E.1s({8I:!E.14.1d||T.6F=="79",46:{"Q":"8F","8E":"1t","4g":y,75:y,6H:y,3d:"3d",1t:"1t",1A:"1A",2Y:"2Y",3k:"3k",8C:"8B",2p:"2p",8A:"8z",3T:"3T",6C:"6C",28:"28",12:"12"}});E.R({6B:J(a){K a.1a},8y:J(a){K E.4u(a,"1a")},8x:J(a){K E.2Z(a,2,"2B")},8v:J(a){K E.2Z(a,2,"4t")},8u:J(a){K E.4u(a,"2B")},8t:J(a){K E.4u(a,"4t")},8s:J(a){K E.5i(a.1a.1C,a)},8r:J(a){K E.5i(a.1C)},6z:J(a){K E.12(a,"8q")?a.8o||a.8n.T:E.2I(a.3p)}},J(c,d){E.1n[c]=J(b){L a=E.2c(6,d);7(b&&1o b=="25")a=E.3e(b,a);K 6.2F(E.57(a))}});E.R({6y:"3t",8m:"6q",3o:"6o",8l:"5a",8k:"6S"},J(c,b){E.1n[c]=J(){L a=18;K 6.R(J(){Q(L i=0,M=a.M;i<M;i++)E(a[i])[b](6)})}});E.R({8j:J(a){E.1J(6,a,"");7(6.15==1)6.52(a)},8i:J(a){E.1t.1b(6,a)},8h:J(a){E.1t.1V(6,a)},8g:J(a){E.1t[E.1t.3Y(6,a)?"1V":"1b"](6,a)},1V:J(a){7(!a||E.1E(a,[6]).r.M){E("*",6).1b(6).R(J(){E.16.1V(6);E.35(6)});7(6.1a)6.1a.34(6)}},4x:J(){E(">*",6).1V();2b(6.1C)6.34(6.1C)}},J(a,b){E.1n[a]=J(){K 6.R(b,18)}});E.R(["8f","5X"],J(i,c){L b=c.2h();E.1n[b]=J(a){K 6[0]==1e?E.14.2z&&T.1h["5e"+c]||E.14.2d&&1e["8e"+c]||T.6F=="79"&&T.1F["5e"+c]||T.1h["5e"+c]:6[0]==T?24.2f(24.2f(T.1h["5d"+c],T.1F["5d"+c]),24.2f(T.1h["5L"+c],T.1F["5L"+c])):a==10?(6.M?E.1j(6[0],b):V):6.1j(b,a.1k==4e?a:a+"2S")}});L C=E.14.2d&&4s(E.14.5K)<8c?"(?:[\\\\w*4r-]|\\\\\\\\.)":"(?:[\\\\w\\8b-\\8a*4r-]|\\\\\\\\.)",6v=1B 4q("^>\\\\s*("+C+"+)"),6u=1B 4q("^("+C+"+)(#)("+C+"+)"),6s=1B 4q("^([#.]?)("+C+"*)");E.1s({6r:{"":J(a,i,m){K m[2]=="*"||E.12(a,m[2])},"#":J(a,i,m){K a.4z("2w")==m[2]},":":{89:J(a,i,m){K i<m[3]-0},88:J(a,i,m){K i>m[3]-0},2Z:J(a,i,m){K m[3]-0==i},6Z:J(a,i,m){K m[3]-0==i},3j:J(a,i){K i==0},3J:J(a,i,m,r){K i==r.M-1},6n:J(a,i){K i%2==0},6l:J(a,i){K i%2},"3j-4p":J(a){K a.1a.3S("*")[0]==a},"3J-4p":J(a){K E.2Z(a.1a.5o,1,"4t")==a},"83-4p":J(a){K!E.2Z(a.1a.5o,2,"4t")},6B:J(a){K a.1C},4x:J(a){K!a.1C},82:J(a,i,m){K(a.6x||a.81||E(a).1u()||"").1f(m[3])>=0},4d:J(a){K"1Z"!=a.U&&E.1j(a,"19")!="2H"&&E.1j(a,"4U")!="1Z"},1Z:J(a){K"1Z"==a.U||E.1j(a,"19")=="2H"||E.1j(a,"4U")=="1Z"},80:J(a){K!a.2Y},2Y:J(a){K a.2Y},3k:J(a){K a.3k},2p:J(a){K a.2p||E.1J(a,"2p")},1u:J(a){K"1u"==a.U},5u:J(a){K"5u"==a.U},5t:J(a){K"5t"==a.U},59:J(a){K"59"==a.U},3I:J(a){K"3I"==a.U},58:J(a){K"58"==a.U},6j:J(a){K"6j"==a.U},6i:J(a){K"6i"==a.U},2G:J(a){K"2G"==a.U||E.12(a,"2G")},4D:J(a){K/4D|2k|6h|2G/i.17(a.12)},3Y:J(a,i,m){K E.2s(m[3],a).M},7X:J(a){K/h\\d/i.17(a.12)},7W:J(a){K E.3y(E.3G,J(b){K a==b.Y}).M}}},6g:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,1B 4q("^([:.#]*)("+C+"+)")],3e:J(a,c,b){L d,2m=[];2b(a&&a!=d){d=a;L f=E.1E(a,c,b);a=f.t.1r(/^\\s*,\\s*/,"");2m=b?c=f.r:E.37(2m,f.r)}K 2m},2s:J(t,p){7(1o t!="25")K[t];7(p&&p.15!=1&&p.15!=9)K[];p=p||T;L d=[p],2r=[],3J,12;2b(t&&3J!=t){L r=[];3J=t;t=E.3g(t);L o=S;L g=6v;L m=g.2O(t);7(m){12=m[1].2E();Q(L i=0;d[i];i++)Q(L c=d[i].1C;c;c=c.2B)7(c.15==1&&(12=="*"||c.12.2E()==12))r.1g(c);d=r;t=t.1r(g,"");7(t.1f(" ")==0)6w;o=P}N{g=/^([>+~])\\s*(\\w*)/i;7((m=g.2O(t))!=V){r=[];L l={};12=m[2].2E();m=m[1];Q(L j=0,3f=d.M;j<3f;j++){L n=m=="~"||m=="+"?d[j].2B:d[j].1C;Q(;n;n=n.2B)7(n.15==1){L h=E.O(n);7(m=="~"&&l[h])1Q;7(!12||n.12.2E()==12){7(m=="~")l[h]=P;r.1g(n)}7(m=="+")1Q}}d=r;t=E.3g(t.1r(g,""));o=P}}7(t&&!o){7(!t.1f(",")){7(p==d[0])d.4l();2r=E.37(2r,d);r=d=[p];t=" "+t.6e(1,t.M)}N{L k=6u;L m=k.2O(t);7(m){m=[0,m[2],m[3],m[1]]}N{k=6s;m=k.2O(t)}m[2]=m[2].1r(/\\\\/g,"");L f=d[d.M-1];7(m[1]=="#"&&f&&f.5J&&!E.3E(f)){L q=f.5J(m[2]);7((E.14.1d||E.14.2z)&&q&&1o q.2w=="25"&&q.2w!=m[2])q=E(\'[@2w="\'+m[2]+\'"]\',f)[0];d=r=q&&(!m[3]||E.12(q,m[3]))?[q]:[]}N{Q(L i=0;d[i];i++){L a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];7(a=="*"&&d[i].12.2h()=="3V")a="3m";r=E.37(r,d[i].3S(a))}7(m[1]==".")r=E.55(r,m[2]);7(m[1]=="#"){L e=[];Q(L i=0;r[i];i++)7(r[i].4z("2w")==m[2]){e=[r[i]];1Q}r=e}d=r}t=t.1r(k,"")}}7(t){L b=E.1E(t,r);d=r=b.r;t=E.3g(b.t)}}7(t)d=[];7(d&&p==d[0])d.4l();2r=E.37(2r,d);K 2r},55:J(r,m,a){m=" "+m+" ";L c=[];Q(L i=0;r[i];i++){L b=(" "+r[i].1t+" ").1f(m)>=0;7(!a&&b||a&&!b)c.1g(r[i])}K c},1E:J(t,r,h){L d;2b(t&&t!=d){d=t;L p=E.6g,m;Q(L i=0;p[i];i++){m=p[i].2O(t);7(m){t=t.7V(m[0].M);m[2]=m[2].1r(/\\\\/g,"");1Q}}7(!m)1Q;7(m[1]==":"&&m[2]=="56")r=G.17(m[3])?E.1E(m[3],r,P).r:E(r).56(m[3]);N 7(m[1]==".")r=E.55(r,m[2],h);N 7(m[1]=="["){L g=[],U=m[3];Q(L i=0,3f=r.M;i<3f;i++){L a=r[i],z=a[E.46[m[2]]||m[2]];7(z==V||/6O|3Q|2p/.17(m[2]))z=E.1J(a,m[2])||\'\';7((U==""&&!!z||U=="="&&z==m[5]||U=="!="&&z!=m[5]||U=="^="&&z&&!z.1f(m[5])||U=="$="&&z.6e(z.M-m[5].M)==m[5]||(U=="*="||U=="~=")&&z.1f(m[5])>=0)^h)g.1g(a)}r=g}N 7(m[1]==":"&&m[2]=="2Z-4p"){L e={},g=[],17=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2O(m[3]=="6n"&&"2n"||m[3]=="6l"&&"2n+1"||!/\\D/.17(m[3])&&"7U+"+m[3]||m[3]),3j=(17[1]+(17[2]||1))-0,d=17[3]-0;Q(L i=0,3f=r.M;i<3f;i++){L j=r[i],1a=j.1a,2w=E.O(1a);7(!e[2w]){L c=1;Q(L n=1a.1C;n;n=n.2B)7(n.15==1)n.4k=c++;e[2w]=P}L b=S;7(3j==0){7(j.4k==d)b=P}N 7((j.4k-d)%3j==0&&(j.4k-d)/3j>=0)b=P;7(b^h)g.1g(j)}r=g}N{L f=E.6r[m[1]];7(1o f=="3V")f=f[m[2]];7(1o f=="25")f=6c("S||J(a,i){K "+f+";}");r=E.3y(r,J(a,i){K f(a,i,m,r)},h)}}K{r:r,t:t}},4u:J(b,c){L d=[];L a=b[c];2b(a&&a!=T){7(a.15==1)d.1g(a);a=a[c]}K d},2Z:J(a,e,c,b){e=e||1;L d=0;Q(;a;a=a[c])7(a.15==1&&++d==e)1Q;K a},5i:J(n,a){L r=[];Q(;n;n=n.2B){7(n.15==1&&(!a||n!=a))r.1g(n)}K r}});E.16={1b:J(f,i,g,e){7(f.15==3||f.15==8)K;7(E.14.1d&&f.53!=10)f=1e;7(!g.2D)g.2D=6.2D++;7(e!=10){L h=g;g=J(){K h.1i(6,18)};g.O=e;g.2D=h.2D}L j=E.O(f,"2R")||E.O(f,"2R",{}),1v=E.O(f,"1v")||E.O(f,"1v",J(){L a;7(1o E=="10"||E.16.5f)K a;a=E.16.1v.1i(18.3R.Y,18);K a});1v.Y=f;E.R(i.23(/\\s+/),J(c,b){L a=b.23(".");b=a[0];g.U=a[1];L d=j[b];7(!d){d=j[b]={};7(!E.16.2y[b]||E.16.2y[b].4j.1P(f)===S){7(f.3F)f.3F(b,1v,S);N 7(f.6b)f.6b("4i"+b,1v)}}d[g.2D]=g;E.16.2a[b]=P});f=V},2D:1,2a:{},1V:J(e,h,f){7(e.15==3||e.15==8)K;L i=E.O(e,"2R"),29,4X;7(i){7(h==10||(1o h=="25"&&h.7T(0)=="."))Q(L g 1p i)6.1V(e,g+(h||""));N{7(h.U){f=h.2q;h=h.U}E.R(h.23(/\\s+/),J(b,a){L c=a.23(".");a=c[0];7(i[a]){7(f)2V i[a][f.2D];N Q(f 1p i[a])7(!c[1]||i[a][f].U==c[1])2V i[a][f];Q(29 1p i[a])1Q;7(!29){7(!E.16.2y[a]||E.16.2y[a].4h.1P(e)===S){7(e.67)e.67(a,E.O(e,"1v"),S);N 7(e.66)e.66("4i"+a,E.O(e,"1v"))}29=V;2V i[a]}}})}Q(29 1p i)1Q;7(!29){L d=E.O(e,"1v");7(d)d.Y=V;E.35(e,"2R");E.35(e,"1v")}}},1N:J(g,c,d,f,h){c=E.2I(c||[]);7(g.1f("!")>=0){g=g.2K(0,-1);L a=P}7(!d){7(6.2a[g])E("*").1b([1e,T]).1N(g,c)}N{7(d.15==3||d.15==8)K 10;L b,29,1n=E.1q(d[g]||V),16=!c[0]||!c[0].36;7(16)c.4J(6.4Z({U:g,2L:d}));c[0].U=g;7(a)c[0].65=P;7(E.1q(E.O(d,"1v")))b=E.O(d,"1v").1i(d,c);7(!1n&&d["4i"+g]&&d["4i"+g].1i(d,c)===S)b=S;7(16)c.4l();7(h&&E.1q(h)){29=h.1i(d,b==V?c:c.71(b));7(29!==10)b=29}7(1n&&f!==S&&b!==S&&!(E.12(d,\'a\')&&g=="4V")){6.5f=P;1S{d[g]()}1X(e){}}6.5f=S}K b},1v:J(c){L a;c=E.16.4Z(c||1e.16||{});L b=c.U.23(".");c.U=b[0];L f=E.O(6,"2R")&&E.O(6,"2R")[c.U],42=1M.2l.2K.1P(18,1);42.4J(c);Q(L j 1p f){L d=f[j];42[0].2q=d;42[0].O=d.O;7(!b[1]&&!c.65||d.U==b[1]){L e=d.1i(6,42);7(a!==S)a=e;7(e===S){c.36();c.44()}}}7(E.14.1d)c.2L=c.36=c.44=c.2q=c.O=V;K a},4Z:J(c){L a=c;c=E.1s({},a);c.36=J(){7(a.36)a.36();a.7S=S};c.44=J(){7(a.44)a.44();a.7R=P};7(!c.2L)c.2L=c.7Q||T;7(c.2L.15==3)c.2L=a.2L.1a;7(!c.4S&&c.5w)c.4S=c.5w==c.2L?c.7P:c.5w;7(c.64==V&&c.63!=V){L b=T.1F,1h=T.1h;c.64=c.63+(b&&b.2v||1h&&1h.2v||0)-(b.62||0);c.7N=c.7L+(b&&b.2x||1h&&1h.2x||0)-(b.60||0)}7(!c.3c&&((c.4f||c.4f===0)?c.4f:c.5Z))c.3c=c.4f||c.5Z;7(!c.7b&&c.5Y)c.7b=c.5Y;7(!c.3c&&c.2G)c.3c=(c.2G&1?1:(c.2G&2?3:(c.2G&4?2:0)));K c},2y:{21:{4j:J(){5M();K},4h:J(){K}},3C:{4j:J(){7(E.14.1d)K S;E(6).2j("4P",E.16.2y.3C.2q);K P},4h:J(){7(E.14.1d)K S;E(6).3w("4P",E.16.2y.3C.2q);K P},2q:J(a){7(I(a,6))K P;18[0].U="3C";K E.16.1v.1i(6,18)}},3B:{4j:J(){7(E.14.1d)K S;E(6).2j("4O",E.16.2y.3B.2q);K P},4h:J(){7(E.14.1d)K S;E(6).3w("4O",E.16.2y.3B.2q);K P},2q:J(a){7(I(a,6))K P;18[0].U="3B";K E.16.1v.1i(6,18)}}}};E.1n.1s({2j:J(c,a,b){K c=="4H"?6.2X(c,a,b):6.R(J(){E.16.1b(6,c,b||a,b&&a)})},2X:J(d,b,c){K 6.R(J(){E.16.1b(6,d,J(a){E(6).3w(a);K(c||b).1i(6,18)},c&&b)})},3w:J(a,b){K 6.R(J(){E.16.1V(6,a,b)})},1N:J(c,a,b){K 6.R(J(){E.16.1N(c,a,6,P,b)})},5n:J(c,a,b){7(6[0])K E.16.1N(c,a,6[0],S,b);K 10},2g:J(){L b=18;K 6.4V(J(a){6.4N=0==6.4N?1:0;a.36();K b[6.4N].1i(6,18)||S})},7D:J(a,b){K 6.2j(\'3C\',a).2j(\'3B\',b)},21:J(a){5M();7(E.2Q)a.1P(T,E);N E.3A.1g(J(){K a.1P(6,E)});K 6}});E.1s({2Q:S,3A:[],21:J(){7(!E.2Q){E.2Q=P;7(E.3A){E.R(E.3A,J(){6.1i(T)});E.3A=V}E(T).5n("21")}}});L x=S;J 5M(){7(x)K;x=P;7(T.3F&&!E.14.2z)T.3F("5W",E.21,S);7(E.14.1d&&1e==3b)(J(){7(E.2Q)K;1S{T.1F.7B("26")}1X(3a){3z(18.3R,0);K}E.21()})();7(E.14.2z)T.3F("5W",J(){7(E.2Q)K;Q(L i=0;i<T.4L.M;i++)7(T.4L[i].2Y){3z(18.3R,0);K}E.21()},S);7(E.14.2d){L a;(J(){7(E.2Q)K;7(T.39!="5V"&&T.39!="1y"){3z(18.3R,0);K}7(a===10)a=E("W, 7a[7A=7z]").M;7(T.4L.M!=a){3z(18.3R,0);K}E.21()})()}E.16.1b(1e,"3U",E.21)}E.R(("7y,7x,3U,7w,5d,4H,4V,7v,"+"7G,7u,7t,4P,4O,7s,2k,"+"58,7K,7q,7p,3a").23(","),J(i,b){E.1n[b]=J(a){K a?6.2j(b,a):6.1N(b)}});L I=J(a,c){L b=a.4S;2b(b&&b!=c)1S{b=b.1a}1X(3a){b=c}K b==c};E(1e).2j("4H",J(){E("*").1b(T).3w()});E.1n.1s({3U:J(g,d,c){7(E.1q(g))K 6.2j("3U",g);L e=g.1f(" ");7(e>=0){L i=g.2K(e,g.M);g=g.2K(0,e)}c=c||J(){};L f="4Q";7(d)7(E.1q(d)){c=d;d=V}N{d=E.3m(d);f="61"}L h=6;E.3P({1c:g,U:f,1H:"3q",O:d,1y:J(a,b){7(b=="1W"||b=="5U")h.3q(i?E("<1x/>").3t(a.4b.1r(/<1m(.|\\s)*?\\/1m>/g,"")).2s(i):a.4b);h.R(c,[a.4b,b,a])}});K 6},7n:J(){K E.3m(6.5T())},5T:J(){K 6.2c(J(){K E.12(6,"3u")?E.2I(6.7m):6}).1E(J(){K 6.31&&!6.2Y&&(6.3k||/2k|6h/i.17(6.12)||/1u|1Z|3I/i.17(6.U))}).2c(J(i,c){L b=E(6).5O();K b==V?V:b.1k==1M?E.2c(b,J(a,i){K{31:c.31,1A:a}}):{31:c.31,1A:b}}).22()}});E.R("5S,6d,5R,6D,5Q,6m".23(","),J(i,o){E.1n[o]=J(f){K 6.2j(o,f)}});L B=(1B 3v).3L();E.1s({22:J(d,b,a,c){7(E.1q(b)){a=b;b=V}K E.3P({U:"4Q",1c:d,O:b,1W:a,1H:c})},7l:J(b,a){K E.22(b,V,a,"1m")},7k:J(c,b,a){K E.22(c,b,a,"3i")},7i:J(d,b,a,c){7(E.1q(b)){a=b;b={}}K E.3P({U:"61",1c:d,O:b,1W:a,1H:c})},85:J(a){E.1s(E.4I,a)},4I:{2a:P,U:"4Q",2U:0,5P:"4o/x-7h-3u-7g",5N:P,3l:P,O:V,6p:V,3I:V,49:{3M:"4o/3M, 1u/3M",3q:"1u/3q",1m:"1u/4m, 4o/4m",3i:"4o/3i, 1u/4m",1u:"1u/a7",4G:"*/*"}},4F:{},3P:J(s){L f,2W=/=\\?(&|$)/g,1z,O;s=E.1s(P,s,E.1s(P,{},E.4I,s));7(s.O&&s.5N&&1o s.O!="25")s.O=E.3m(s.O);7(s.1H=="4E"){7(s.U.2h()=="22"){7(!s.1c.1D(2W))s.1c+=(s.1c.1D(/\\?/)?"&":"?")+(s.4E||"7d")+"=?"}N 7(!s.O||!s.O.1D(2W))s.O=(s.O?s.O+"&":"")+(s.4E||"7d")+"=?";s.1H="3i"}7(s.1H=="3i"&&(s.O&&s.O.1D(2W)||s.1c.1D(2W))){f="4E"+B++;7(s.O)s.O=(s.O+"").1r(2W,"="+f+"$1");s.1c=s.1c.1r(2W,"="+f+"$1");s.1H="1m";1e[f]=J(a){O=a;1W();1y();1e[f]=10;1S{2V 1e[f]}1X(e){}7(h)h.34(g)}}7(s.1H=="1m"&&s.1T==V)s.1T=S;7(s.1T===S&&s.U.2h()=="22"){L i=(1B 3v()).3L();L j=s.1c.1r(/(\\?|&)4r=.*?(&|$)/,"$a4="+i+"$2");s.1c=j+((j==s.1c)?(s.1c.1D(/\\?/)?"&":"?")+"4r="+i:"")}7(s.O&&s.U.2h()=="22"){s.1c+=(s.1c.1D(/\\?/)?"&":"?")+s.O;s.O=V}7(s.2a&&!E.5H++)E.16.1N("5S");7((!s.1c.1f("a3")||!s.1c.1f("//"))&&s.1H=="1m"&&s.U.2h()=="22"){L h=T.3S("6f")[0];L g=T.3s("1m");g.3Q=s.1c;7(s.7c)g.a2=s.7c;7(!f){L l=S;g.9Z=g.9Y=J(){7(!l&&(!6.39||6.39=="5V"||6.39=="1y")){l=P;1W();1y();h.34(g)}}}h.38(g);K 10}L m=S;L k=1e.78?1B 78("9X.9V"):1B 76();k.9T(s.U,s.1c,s.3l,s.6p,s.3I);1S{7(s.O)k.4C("9R-9Q",s.5P);7(s.5C)k.4C("9O-5A-9N",E.4F[s.1c]||"9L, 9K 9I 9H 5z:5z:5z 9F");k.4C("X-9C-9A","76");k.4C("9z",s.1H&&s.49[s.1H]?s.49[s.1H]+", */*":s.49.4G)}1X(e){}7(s.6Y)s.6Y(k);7(s.2a)E.16.1N("6m",[k,s]);L c=J(a){7(!m&&k&&(k.39==4||a=="2U")){m=P;7(d){6I(d);d=V}1z=a=="2U"&&"2U"||!E.6X(k)&&"3a"||s.5C&&E.6J(k,s.1c)&&"5U"||"1W";7(1z=="1W"){1S{O=E.6W(k,s.1H)}1X(e){1z="5x"}}7(1z=="1W"){L b;1S{b=k.5q("6U-5A")}1X(e){}7(s.5C&&b)E.4F[s.1c]=b;7(!f)1W()}N E.5v(s,k,1z);1y();7(s.3l)k=V}};7(s.3l){L d=53(c,13);7(s.2U>0)3z(J(){7(k){k.9t();7(!m)c("2U")}},s.2U)}1S{k.9s(s.O)}1X(e){E.5v(s,k,V,e)}7(!s.3l)c();J 1W(){7(s.1W)s.1W(O,1z);7(s.2a)E.16.1N("5Q",[k,s])}J 1y(){7(s.1y)s.1y(k,1z);7(s.2a)E.16.1N("5R",[k,s]);7(s.2a&&!--E.5H)E.16.1N("6d")}K k},5v:J(s,a,b,e){7(s.3a)s.3a(a,b,e);7(s.2a)E.16.1N("6D",[a,s,e])},5H:0,6X:J(r){1S{K!r.1z&&9q.9p=="59:"||(r.1z>=6T&&r.1z<9n)||r.1z==6R||r.1z==9l||E.14.2d&&r.1z==10}1X(e){}K S},6J:J(a,c){1S{L b=a.5q("6U-5A");K a.1z==6R||b==E.4F[c]||E.14.2d&&a.1z==10}1X(e){}K S},6W:J(r,b){L c=r.5q("9k-U");L d=b=="3M"||!b&&c&&c.1f("3M")>=0;L a=d?r.9j:r.4b;7(d&&a.1F.28=="5x")6Q"5x";7(b=="1m")E.5g(a);7(b=="3i")a=6c("("+a+")");K a},3m:J(a){L s=[];7(a.1k==1M||a.5h)E.R(a,J(){s.1g(3r(6.31)+"="+3r(6.1A))});N Q(L j 1p a)7(a[j]&&a[j].1k==1M)E.R(a[j],J(){s.1g(3r(j)+"="+3r(6))});N s.1g(3r(j)+"="+3r(a[j]));K s.6a("&").1r(/%20/g,"+")}});E.1n.1s({1G:J(c,b){K c?6.2e({1R:"1G",27:"1G",1w:"1G"},c,b):6.1E(":1Z").R(J(){6.W.19=6.5s||"";7(E.1j(6,"19")=="2H"){L a=E("<"+6.28+" />").6y("1h");6.W.19=a.1j("19");7(6.W.19=="2H")6.W.19="3D";a.1V()}}).3h()},1I:J(b,a){K b?6.2e({1R:"1I",27:"1I",1w:"1I"},b,a):6.1E(":4d").R(J(){6.5s=6.5s||E.1j(6,"19");6.W.19="2H"}).3h()},6N:E.1n.2g,2g:J(a,b){K E.1q(a)&&E.1q(b)?6.6N(a,b):a?6.2e({1R:"2g",27:"2g",1w:"2g"},a,b):6.R(J(){E(6)[E(6).3H(":1Z")?"1G":"1I"]()})},9f:J(b,a){K 6.2e({1R:"1G"},b,a)},9d:J(b,a){K 6.2e({1R:"1I"},b,a)},9c:J(b,a){K 6.2e({1R:"2g"},b,a)},9a:J(b,a){K 6.2e({1w:"1G"},b,a)},99:J(b,a){K 6.2e({1w:"1I"},b,a)},97:J(c,a,b){K 6.2e({1w:a},c,b)},2e:J(l,k,j,h){L i=E.6P(k,j,h);K 6[i.2P===S?"R":"2P"](J(){7(6.15!=1)K S;L g=E.1s({},i);L f=E(6).3H(":1Z"),4A=6;Q(L p 1p l){7(l[p]=="1I"&&f||l[p]=="1G"&&!f)K E.1q(g.1y)&&g.1y.1i(6);7(p=="1R"||p=="27"){g.19=E.1j(6,"19");g.32=6.W.32}}7(g.32!=V)6.W.32="1Z";g.40=E.1s({},l);E.R(l,J(c,a){L e=1B E.2t(4A,g,c);7(/2g|1G|1I/.17(a))e[a=="2g"?f?"1G":"1I":a](l);N{L b=a.3X().1D(/^([+-]=)?([\\d+-.]+)(.*)$/),1Y=e.2m(P)||0;7(b){L d=2M(b[2]),2A=b[3]||"2S";7(2A!="2S"){4A.W[c]=(d||1)+2A;1Y=((d||1)/e.2m(P))*1Y;4A.W[c]=1Y+2A}7(b[1])d=((b[1]=="-="?-1:1)*d)+1Y;e.45(1Y,d,2A)}N e.45(1Y,a,"")}});K P})},2P:J(a,b){7(E.1q(a)||(a&&a.1k==1M)){b=a;a="2t"}7(!a||(1o a=="25"&&!b))K A(6[0],a);K 6.R(J(){7(b.1k==1M)A(6,a,b);N{A(6,a).1g(b);7(A(6,a).M==1)b.1i(6)}})},94:J(b,c){L a=E.3G;7(b)6.2P([]);6.R(J(){Q(L i=a.M-1;i>=0;i--)7(a[i].Y==6){7(c)a[i](P);a.72(i,1)}});7(!c)6.5p();K 6}});L A=J(b,c,a){7(!b)K 10;c=c||"2t";L q=E.O(b,c+"2P");7(!q||a)q=E.O(b,c+"2P",a?E.2I(a):[]);K q};E.1n.5p=J(a){a=a||"2t";K 6.R(J(){L q=A(6,a);q.4l();7(q.M)q[0].1i(6)})};E.1s({6P:J(b,a,c){L d=b&&b.1k==92?b:{1y:c||!c&&a||E.1q(b)&&b,2u:b,3Z:c&&a||a&&a.1k!=91&&a};d.2u=(d.2u&&d.2u.1k==51?d.2u:{90:8Z,9D:6T}[d.2u])||8X;d.5y=d.1y;d.1y=J(){7(d.2P!==S)E(6).5p();7(E.1q(d.5y))d.5y.1i(6)};K d},3Z:{70:J(p,n,b,a){K b+a*p},5j:J(p,n,b,a){K((-24.8V(p*24.8U)/2)+0.5)*a+b}},3G:[],3W:V,2t:J(b,c,a){6.11=c;6.Y=b;6.1l=a;7(!c.47)c.47={}}});E.2t.2l={4y:J(){7(6.11.30)6.11.30.1i(6.Y,[6.2J,6]);(E.2t.30[6.1l]||E.2t.30.4G)(6);7(6.1l=="1R"||6.1l=="27")6.Y.W.19="3D"},2m:J(a){7(6.Y[6.1l]!=V&&6.Y.W[6.1l]==V)K 6.Y[6.1l];L r=2M(E.1j(6.Y,6.1l,a));K r&&r>-8Q?r:2M(E.2o(6.Y,6.1l))||0},45:J(c,b,d){6.5B=(1B 3v()).3L();6.1Y=c;6.3h=b;6.2A=d||6.2A||"2S";6.2J=6.1Y;6.4B=6.4w=0;6.4y();L e=6;J t(a){K e.30(a)}t.Y=6.Y;E.3G.1g(t);7(E.3W==V){E.3W=53(J(){L a=E.3G;Q(L i=0;i<a.M;i++)7(!a[i]())a.72(i--,1);7(!a.M){6I(E.3W);E.3W=V}},13)}},1G:J(){6.11.47[6.1l]=E.1J(6.Y.W,6.1l);6.11.1G=P;6.45(0,6.2m());7(6.1l=="27"||6.1l=="1R")6.Y.W[6.1l]="8N";E(6.Y).1G()},1I:J(){6.11.47[6.1l]=E.1J(6.Y.W,6.1l);6.11.1I=P;6.45(6.2m(),0)},30:J(a){L t=(1B 3v()).3L();7(a||t>6.11.2u+6.5B){6.2J=6.3h;6.4B=6.4w=1;6.4y();6.11.40[6.1l]=P;L b=P;Q(L i 1p 6.11.40)7(6.11.40[i]!==P)b=S;7(b){7(6.11.19!=V){6.Y.W.32=6.11.32;6.Y.W.19=6.11.19;7(E.1j(6.Y,"19")=="2H")6.Y.W.19="3D"}7(6.11.1I)6.Y.W.19="2H";7(6.11.1I||6.11.1G)Q(L p 1p 6.11.40)E.1J(6.Y.W,p,6.11.47[p])}7(b&&E.1q(6.11.1y))6.11.1y.1i(6.Y);K S}N{L n=t-6.5B;6.4w=n/6.11.2u;6.4B=E.3Z[6.11.3Z||(E.3Z.5j?"5j":"70")](6.4w,n,0,1,6.11.2u);6.2J=6.1Y+((6.3h-6.1Y)*6.4B);6.4y()}K P}};E.2t.30={2v:J(a){a.Y.2v=a.2J},2x:J(a){a.Y.2x=a.2J},1w:J(a){E.1J(a.Y.W,"1w",a.2J)},4G:J(a){a.Y.W[a.1l]=a.2J+a.2A}};E.1n.5L=J(){L b=0,3b=0,Y=6[0],5l;7(Y)8M(E.14){L d=Y.1a,41=Y,1K=Y.1K,1L=Y.2i,5D=2d&&4s(5K)<8J&&!/a1/i.17(v),2T=E.1j(Y,"43")=="2T";7(Y.6G){L c=Y.6G();1b(c.26+24.2f(1L.1F.2v,1L.1h.2v),c.3b+24.2f(1L.1F.2x,1L.1h.2x));1b(-1L.1F.62,-1L.1F.60)}N{1b(Y.5G,Y.5F);2b(1K){1b(1K.5G,1K.5F);7(48&&!/^t(8H|d|h)$/i.17(1K.28)||2d&&!5D)2N(1K);7(!2T&&E.1j(1K,"43")=="2T")2T=P;41=/^1h$/i.17(1K.28)?41:1K;1K=1K.1K}2b(d&&d.28&&!/^1h|3q$/i.17(d.28)){7(!/^8G|1O.*$/i.17(E.1j(d,"19")))1b(-d.2v,-d.2x);7(48&&E.1j(d,"32")!="4d")2N(d);d=d.1a}7((5D&&(2T||E.1j(41,"43")=="4W"))||(48&&E.1j(41,"43")!="4W"))1b(-1L.1h.5G,-1L.1h.5F);7(2T)1b(24.2f(1L.1F.2v,1L.1h.2v),24.2f(1L.1F.2x,1L.1h.2x))}5l={3b:3b,26:b}}J 2N(a){1b(E.2o(a,"a8",P),E.2o(a,"a9",P))}J 1b(l,t){b+=4s(l)||0;3b+=4s(t)||0}K 5l}})();',62,631,'||||||this|if||||||||||||||||||||||||||||||||||||||function|return|var|length|else|data|true|for|each|false|document|type|null|style||elem||undefined|options|nodeName||browser|nodeType|event|test|arguments|display|parentNode|add|url|msie|window|indexOf|push|body|apply|css|constructor|prop|script|fn|typeof|in|isFunction|replace|extend|className|text|handle|opacity|div|complete|status|value|new|firstChild|match|filter|documentElement|show|dataType|hide|attr|offsetParent|doc|Array|trigger|table|call|break|height|try|cache|tbody|remove|success|catch|start|hidden||ready|get|split|Math|string|left|width|tagName|ret|global|while|map|safari|animate|max|toggle|toLowerCase|ownerDocument|bind|select|prototype|cur||curCSS|selected|handler|done|find|fx|duration|scrollLeft|id|scrollTop|special|opera|unit|nextSibling|stack|guid|toUpperCase|pushStack|button|none|makeArray|now|slice|target|parseFloat|border|exec|queue|isReady|events|px|fixed|timeout|delete|jsre|one|disabled|nth|step|name|overflow|inArray|removeChild|removeData|preventDefault|merge|appendChild|readyState|error|top|which|innerHTML|multiFilter|rl|trim|end|json|first|checked|async|param|elems|insertBefore|childNodes|html|encodeURIComponent|createElement|append|form|Date|unbind|color|grep|setTimeout|readyList|mouseleave|mouseenter|block|isXMLDoc|addEventListener|timers|is|password|last|runtimeStyle|getTime|xml|jQuery|domManip|ajax|src|callee|getElementsByTagName|selectedIndex|load|object|timerId|toString|has|easing|curAnim|offsetChild|args|position|stopPropagation|custom|props|orig|mozilla|accepts|clean|responseText|defaultView|visible|String|charCode|float|teardown|on|setup|nodeIndex|shift|javascript|currentStyle|application|child|RegExp|_|parseInt|previousSibling|dir|tr|state|empty|update|getAttribute|self|pos|setRequestHeader|input|jsonp|lastModified|_default|unload|ajaxSettings|unshift|getComputedStyle|styleSheets|getPropertyValue|lastToggle|mouseout|mouseover|GET|andSelf|relatedTarget|init|visibility|click|absolute|index|container|fix|outline|Number|removeAttribute|setInterval|prevObject|classFilter|not|unique|submit|file|after|windowData|deep|scroll|client|triggered|globalEval|jquery|sibling|swing|clone|results|wrapAll|triggerHandler|lastChild|dequeue|getResponseHeader|createTextNode|oldblock|checkbox|radio|handleError|fromElement|parsererror|old|00|Modified|startTime|ifModified|safari2|getWH|offsetTop|offsetLeft|active|values|getElementById|version|offset|bindReady|processData|val|contentType|ajaxSuccess|ajaxComplete|ajaxStart|serializeArray|notmodified|loaded|DOMContentLoaded|Width|ctrlKey|keyCode|clientTop|POST|clientLeft|clientX|pageX|exclusive|detachEvent|removeEventListener|swap|cloneNode|join|attachEvent|eval|ajaxStop|substr|head|parse|textarea|reset|image|zoom|odd|ajaxSend|even|before|username|prepend|expr|quickClass|uuid|quickID|quickChild|continue|textContent|appendTo|contents|evalScript|parent|defaultValue|ajaxError|setArray|compatMode|getBoundingClientRect|styleFloat|clearInterval|httpNotModified|nodeValue|100|alpha|_toggle|href|speed|throw|304|replaceWith|200|Last|colgroup|httpData|httpSuccess|beforeSend|eq|linear|concat|splice|fieldset|multiple|cssFloat|XMLHttpRequest|webkit|ActiveXObject|CSS1Compat|link|metaKey|scriptCharset|callback|col|pixelLeft|urlencoded|www|post|hasClass|getJSON|getScript|elements|serialize|black|keyup|keypress|solid|change|mousemove|mouseup|dblclick|resize|focus|blur|stylesheet|rel|doScroll|round|hover|padding|offsetHeight|mousedown|offsetWidth|Bottom|Top|keydown|clientY|Right|pageY|Left|toElement|srcElement|cancelBubble|returnValue|charAt|0n|substring|animated|header|noConflict|line|enabled|innerText|contains|only|weight|ajaxSetup|font|size|gt|lt|uFFFF|u0128|417|Boolean|inner|Height|toggleClass|removeClass|addClass|removeAttr|replaceAll|insertAfter|prependTo|contentWindow|contentDocument|wrap|iframe|children|siblings|prevAll|nextAll|prev|wrapInner|next|parents|maxLength|maxlength|readOnly|readonly|reverse|class|htmlFor|inline|able|boxModel|522|setData|compatible|with|1px|ie|getData|10000|ra|it|rv|PI|cos|userAgent|400|navigator|600|slow|Function|Object|array|stop|ig|NaN|fadeTo|option|fadeOut|fadeIn|setAttribute|slideToggle|slideUp|changed|slideDown|be|can|property|responseXML|content|1223|getAttributeNode|300|method|protocol|location|action|send|abort|cssText|th|td|cap|specified|Accept|With|colg|Requested|fast|tfoot|GMT|thead|1970|Jan|attributes|01|Thu|leg|Since|If|opt|Type|Content|embed|open|area|XMLHTTP|hr|Microsoft|onreadystatechange|onload|meta|adobeair|charset|http|1_|img|br|plain|borderLeftWidth|borderTopWidth|abbr'.split('|'),0,{}))
\ No newline at end of file
index 9514a8e..62c5ece 100644 (file)
@@ -7,15 +7,15 @@ module("ajax");
 
 if ( !isLocal ) {
 
-test("$.ajax() - success callbacks", function() {
+test("jQuery.ajax() - success callbacks", function() {
        expect( 8 );
        
-       $.ajaxSetup({ timeout: 0 });
+       jQuery.ajaxSetup({ timeout: 0 });
        
        stop();
        
        setTimeout(function(){  
-        $('#foo').ajaxStart(function(){
+        jQuery('#foo').ajaxStart(function(){
             ok( true, "ajaxStart" );
         }).ajaxStop(function(){
             ok( true, "ajaxStop" );
@@ -30,7 +30,7 @@ test("$.ajax() - success callbacks", function() {
             ok( true, "ajaxSuccess" );
         });
         
-        $.ajax({
+        jQuery.ajax({
             url: url("data/name.html"),
             beforeSend: function(){ ok(true, "beforeSend"); },
             success: function(){ ok(true, "success"); },
@@ -40,11 +40,11 @@ test("$.ajax() - success callbacks", function() {
     }, 13);
 });
 
-test("$.ajax() - error callbacks", function() {
+test("jQuery.ajax() - error callbacks", function() {
     expect( 8 );
     stop();
     
-    $('#foo').ajaxStart(function(){
+    jQuery('#foo').ajaxStart(function(){
         ok( true, "ajaxStart" );
     }).ajaxStop(function(){
         ok( true, "ajaxStop" );
@@ -59,9 +59,9 @@ test("$.ajax() - error callbacks", function() {
         ok( false, "ajaxSuccess" );
     });
     
-    $.ajaxSetup({ timeout: 500 });
+    jQuery.ajaxSetup({ timeout: 500 });
     
-    $.ajax({
+    jQuery.ajax({
         url: url("data/name.php?wait=5"),
         beforeSend: function(){ ok(true, "beforeSend"); },
         success: function(){ ok(false, "success"); },
@@ -70,11 +70,11 @@ test("$.ajax() - error callbacks", function() {
     });
 });
 
-test("$.ajax() - disabled globals", function() {
+test("jQuery.ajax() - disabled globals", function() {
        expect( 3 );
        stop();
        
-       $('#foo').ajaxStart(function(){
+       jQuery('#foo').ajaxStart(function(){
                ok( false, "ajaxStart" );
        }).ajaxStop(function(){
                ok( false, "ajaxStop" );
@@ -88,7 +88,7 @@ test("$.ajax() - disabled globals", function() {
                ok( false, "ajaxSuccess" );
        });
        
-       $.ajax({
+       jQuery.ajax({
                global: false,
                url: url("data/name.html"),
                beforeSend: function(){ ok(true, "beforeSend"); },
@@ -101,30 +101,30 @@ test("$.ajax() - disabled globals", function() {
        });
 });
 
-test("$.ajax - xml: non-namespace elements inside namespaced elements", function() {
+test("jQuery.ajax - xml: non-namespace elements inside namespaced elements", function() {
        expect(3);
        stop();
-       $.ajax({
+       jQuery.ajax({
          url: url("data/with_fries.xml"),
          dataType: "xml",
          success: function(resp) {
-           equals( $("properties", resp).length, 1, 'properties in responseXML' );
-           equals( $("jsconf", resp).length, 1, 'jsconf in responseXML' );
-           equals( $("thing", resp).length, 2, 'things in responseXML' );
+           equals( jQuery("properties", resp).length, 1, 'properties in responseXML' );
+           equals( jQuery("jsconf", resp).length, 1, 'jsconf in responseXML' );
+           equals( jQuery("thing", resp).length, 2, 'things in responseXML' );
            start();
          }
        });
 });
 
-test("$.ajax - beforeSend", function() {
+test("jQuery.ajax - beforeSend", function() {
        expect(1);
        stop();
        
        var check = false;
        
-       $.ajaxSetup({ timeout: 0 });
+       jQuery.ajaxSetup({ timeout: 0 });
        
-       $.ajax({
+       jQuery.ajax({
                url: url("data/name.html"), 
                beforeSend: function(xml) {
                        check = true;
@@ -136,9 +136,9 @@ test("$.ajax - beforeSend", function() {
        });
 });
 
-test("$.ajax - beforeSend, cancel request (#2688)", function() {
+test("jQuery.ajax - beforeSend, cancel request (#2688)", function() {
        expect(2);
-       var request = $.ajax({
+       var request = jQuery.ajax({
                url: url("data/name.html"), 
                beforeSend: function() {
                        ok( true, "beforeSend got called, canceling" );
@@ -159,7 +159,7 @@ test("$.ajax - beforeSend, cancel request (#2688)", function() {
 
 var foobar;
 
-test("$.ajax - dataType html", function() {
+test("jQuery.ajax - dataType html", function() {
        expect(5);
        stop();
        
@@ -172,11 +172,11 @@ test("$.ajax - dataType html", function() {
          start();
        };
 
-       $.ajax({
+       jQuery.ajax({
          dataType: "html",
          url: url("data/test.html"),
          success: function(data) {
-               $("#ap").html(data);
+               jQuery("#ap").html(data);
            ok( data.match(/^html text/), 'Check content for datatype html' );
            setTimeout(verifyEvaluation, 600);
          }
@@ -186,55 +186,55 @@ test("$.ajax - dataType html", function() {
 test("serialize()", function() {
        expect(6);
        
-       equals( $('#form').serialize(),
+       equals( jQuery('#form').serialize(),
                "action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&select1=&select2=3&select3=1&select3=2",
                'Check form serialization as query string');
                
-       equals( $('#form :input').serialize(),
+       equals( jQuery('#form :input').serialize(),
                "action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&select1=&select2=3&select3=1&select3=2",
                'Check input serialization as query string');
        
-       equals( $('#testForm').serialize(), 
+       equals( jQuery('#testForm').serialize(), 
                'T3=%3F%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4=', 
                'Check form serialization as query string');
                
-       equals( $('#testForm :input').serialize(), 
+       equals( jQuery('#testForm :input').serialize(), 
                'T3=%3F%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4=', 
                'Check input serialization as query string');
                
-       equals( $('#form, #testForm').serialize(),
+       equals( jQuery('#form, #testForm').serialize(),
                "action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&select1=&select2=3&select3=1&select3=2&T3=%3F%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4=",
                'Multiple form serialization as query string');
                
-       equals( $('#form, #testForm :input').serialize(),
+       equals( jQuery('#form, #testForm :input').serialize(),
                "action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&select1=&select2=3&select3=1&select3=2&T3=%3F%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4=",
                'Mixed form/input serialization as query string');
 });
 
-test("$.param()", function() {
+test("jQuery.param()", function() {
        expect(4);
        var params = {foo:"bar", baz:42, quux:"All your base are belong to us"};
-       equals( $.param(params), "foo=bar&baz=42&quux=All+your+base+are+belong+to+us", "simple" );
+       equals( jQuery.param(params), "foo=bar&baz=42&quux=All+your+base+are+belong+to+us", "simple" );
        
        params = {someName: [1, 2, 3], regularThing: "blah" };
-       equals( $.param(params), "someName=1&someName=2&someName=3&regularThing=blah", "with array" );
+       equals( jQuery.param(params), "someName=1&someName=2&someName=3&regularThing=blah", "with array" );
        
        params = {"foo[]":["baz", 42, "All your base are belong to us"]};
-       equals( $.param(params), "foo%5B%5D=baz&foo%5B%5D=42&foo%5B%5D=All+your+base+are+belong+to+us", "more array" );
+       equals( jQuery.param(params), "foo%5B%5D=baz&foo%5B%5D=42&foo%5B%5D=All+your+base+are+belong+to+us", "more array" );
        
        params = {"foo[bar]":"baz", "foo[beep]":42, "foo[quux]":"All your base are belong to us"};
-       equals( $.param(params), "foo%5Bbar%5D=baz&foo%5Bbeep%5D=42&foo%5Bquux%5D=All+your+base+are+belong+to+us", "even more arrays" );
+       equals( jQuery.param(params), "foo%5Bbar%5D=baz&foo%5Bbeep%5D=42&foo%5Bquux%5D=All+your+base+are+belong+to+us", "even more arrays" );
 });
 
 test("synchronous request", function() {
        expect(1);
-       ok( /^{ "data"/.test( $.ajax({url: url("data/json_obj.js"), async: false}).responseText ), "check returned text" );
+       ok( /^{ "data"/.test( jQuery.ajax({url: url("data/json_obj.js"), async: false}).responseText ), "check returned text" );
 });
 
 test("synchronous request with callbacks", function() {
        expect(2);
        var result;
-       $.ajax({url: url("data/json_obj.js"), async: false, success: function(data) { ok(true, "sucess callback executed"); result = data; } });
+       jQuery.ajax({url: url("data/json_obj.js"), async: false, success: function(data) { ok(true, "sucess callback executed"); result = data; } });
        ok( /^{ "data"/.test( result ), "check returned text" );
 });
 
@@ -249,22 +249,22 @@ test("pass-through request object", function() {
        var success = function() {
                successCount++;
        };
-       $("#foo").ajaxError(function (e, xml, s, ex) {
+       jQuery("#foo").ajaxError(function (e, xml, s, ex) {
                errorCount++;
     errorEx += ": " + xml.status;
        });
-       $("#foo").one('ajaxStop', function () {
+       jQuery("#foo").one('ajaxStop', function () {
                equals(successCount, 5, "Check all ajax calls successful");
                equals(errorCount, 0, "Check no ajax errors (status" + errorEx + ")");
-               $("#foo").unbind('ajaxError');
+               jQuery("#foo").unbind('ajaxError');
                start();
        });
        
-       ok( $.get(url(target), success), "get" );
-       ok( $.post(url(target), success), "post" );
-       ok( $.getScript(url("data/test.js"), success), "script" );
-       ok( $.getJSON(url("data/json_obj.js"), success), "json" );
-       ok( $.ajax({url: url(target), success: success}), "generic" );
+       ok( jQuery.get(url(target), success), "get" );
+       ok( jQuery.post(url(target), success), "post" );
+       ok( jQuery.getScript(url("data/test.js"), success), "script" );
+       ok( jQuery.getJSON(url("data/json_obj.js"), success), "json" );
+       ok( jQuery.ajax({url: url(target), success: success}), "generic" );
 });
 
 test("ajax cache", function () {
@@ -273,7 +273,7 @@ test("ajax cache", function () {
        
        var count = 0;
 
-       $("#firstp").bind("ajaxSuccess", function (e, xml, s) {
+       jQuery("#firstp").bind("ajaxSuccess", function (e, xml, s) {
                var re = /_=(.*?)(&|$)/g;
     var oldOne = null;
                for (var i = 0; i < 6; i++) {
@@ -289,12 +289,12 @@ test("ajax cache", function () {
                        start();
        });
 
-       ok( $.ajax({url: "data/text.php", cache:false}), "test with no parameters" );
-       ok( $.ajax({url: "data/text.php?pizza=true", cache:false}), "test with 1 parameter" );
-       ok( $.ajax({url: "data/text.php?_=tobereplaced555", cache:false}), "test with _= parameter" );
-       ok( $.ajax({url: "data/text.php?pizza=true&_=tobereplaced555", cache:false}), "test with 1 parameter plus _= one" );
-       ok( $.ajax({url: "data/text.php?_=tobereplaced555&tv=false", cache:false}), "test with 1 parameter plus _= one before it" );
-       ok( $.ajax({url: "data/text.php?name=David&_=tobereplaced555&washere=true", cache:false}), "test with 2 parameters surrounding _= one" );
+       ok( jQuery.ajax({url: "data/text.php", cache:false}), "test with no parameters" );
+       ok( jQuery.ajax({url: "data/text.php?pizza=true", cache:false}), "test with 1 parameter" );
+       ok( jQuery.ajax({url: "data/text.php?_=tobereplaced555", cache:false}), "test with _= parameter" );
+       ok( jQuery.ajax({url: "data/text.php?pizza=true&_=tobereplaced555", cache:false}), "test with 1 parameter plus _= one" );
+       ok( jQuery.ajax({url: "data/text.php?_=tobereplaced555&tv=false", cache:false}), "test with 1 parameter plus _= one before it" );
+       ok( jQuery.ajax({url: "data/text.php?name=David&_=tobereplaced555&washere=true", cache:false}), "test with 2 parameters surrounding _= one" );
 });
 
 test("global ajaxSettings", function() {
@@ -304,16 +304,16 @@ test("global ajaxSettings", function() {
     var orig = { url: "data/with_fries.xml" };
        var t;
 
-       $.ajaxSetup({ data: {foo: 'bar', bar: 'BAR'} });
+       jQuery.ajaxSetup({ data: {foo: 'bar', bar: 'BAR'} });
 
     t = jQuery.extend({}, orig);
        t.data = {};
-    $.ajax(t);
+    jQuery.ajax(t);
        ok( t.url.indexOf('foo') > -1 && t.url.indexOf('bar') > -1, "Check extending {}" );
 
     t = jQuery.extend({}, orig);
        t.data = { zoo: 'a', ping: 'b' };
-    $.ajax(t);
+    jQuery.ajax(t);
        ok( t.url.indexOf('ping') > -1 && t.url.indexOf('zoo') > -1 && t.url.indexOf('foo') > -1 && t.url.indexOf('bar') > -1, "Check extending { zoo: 'a', ping: 'b' }" );
        
        jQuery.ajaxSettings = tmp;
@@ -322,14 +322,14 @@ test("global ajaxSettings", function() {
 test("load(String)", function() {
        expect(1);
        stop(true); // check if load can be called with only url
-       $('#first').load("data/name.html", start);
+       jQuery('#first').load("data/name.html", start);
 });
 
 test("load('url selector')", function() {
        expect(1);
        stop(true); // check if load can be called with only url
-       $('#first').load("data/test3.html div.user", function(){
-               equals( $(this).children("div").length, 2, "Verify that specific elements were injected" );
+       jQuery('#first').load("data/test3.html div.user", function(){
+               equals( jQuery(this).children("div").length, 2, "Verify that specific elements were injected" );
                start();
        });
 });
@@ -337,21 +337,21 @@ test("load('url selector')", function() {
 test("load(String, Function) with ajaxSetup on dataType json, see #2046", function() {
        expect(1);
        stop();
-       $.ajaxSetup({ dataType: "json" });
-       $("#first").ajaxComplete(function (e, xml, s) {
+       jQuery.ajaxSetup({ dataType: "json" });
+       jQuery("#first").ajaxComplete(function (e, xml, s) {
                equals( s.dataType, "html", "Verify the load() dataType was html" );
-               $("#first").unbind("ajaxComplete");
-               $.ajaxSetup({ dataType: "" });
+               jQuery("#first").unbind("ajaxComplete");
+               jQuery.ajaxSetup({ dataType: "" });
                start();
        });
-       $('#first').load("data/test3.html");
+       jQuery('#first').load("data/test3.html");
 });
 
 test("load(String, Function) - simple: inject text into DOM", function() {
        expect(2);
        stop();
-       $('#first').load(url("data/name.html"), function() {
-               ok( /^ERROR/.test($('#first').text()), 'Check if content was injected into the DOM' );
+       jQuery('#first').load(url("data/name.html"), function() {
+               ok( /^ERROR/.test(jQuery('#first').text()), 'Check if content was injected into the DOM' );
                start();
        });
 });
@@ -363,12 +363,12 @@ test("load(String, Function) - check scripts", function() {
        window.foobar = null;
        var verifyEvaluation = function() {
                equals( foobar, "bar", 'Check if script src was evaluated after load' );
-               equals( $('#ap').html(), 'bar', 'Check if script evaluation has modified DOM');
+               equals( jQuery('#ap').html(), 'bar', 'Check if script evaluation has modified DOM');
                 start();
        };
-       $('#first').load(url('data/test.html'), function() {
-               ok( $('#first').html().match(/^html text/), 'Check content after loading html' );
-               equals( $('#foo').html(), 'foo', 'Check if script evaluation has modified DOM');
+       jQuery('#first').load(url('data/test.html'), function() {
+               ok( jQuery('#first').html().match(/^html text/), 'Check content after loading html' );
+               equals( jQuery('#foo').html(), 'foo', 'Check if script evaluation has modified DOM');
                equals( testFoo, "foo", 'Check if script was evaluated after load' );
                setTimeout(verifyEvaluation, 600);
        });
@@ -378,8 +378,8 @@ test("load(String, Function) - check file with only a script tag", function() {
        expect(3);
        stop();
        testFoo = undefined;
-       $('#first').load(url('data/test2.html'), function() {
-               equals( $('#foo').html(), 'foo', 'Check if script evaluation has modified DOM');
+       jQuery('#first').load(url('data/test2.html'), function() {
+               equals( jQuery('#foo').html(), 'foo', 'Check if script evaluation has modified DOM');
                equals( testFoo, "foo", 'Check if script was evaluated after load' );
                start();
        });
@@ -389,8 +389,8 @@ test("load(String, Object, Function)", function() {
        expect(2);
        stop();
        
-       $('<div />').load(url('data/params_html.php'), { foo:3, bar:'ok' }, function() {
-               var $post = $(this).find('#post');              
+       jQuery('<div />').load(url('data/params_html.php'), { foo:3, bar:'ok' }, function() {
+               var $post = jQuery(this).find('#post');         
                equals( $post.find('#foo').text(), '3', 'Check if a hash of data is passed correctly');
                equals( $post.find('#bar').text(), 'ok', 'Check if a hash of data is passed correctly');
                start();
@@ -401,21 +401,21 @@ test("load(String, String, Function)", function() {
        expect(2);
        stop();
        
-       $('<div />').load(url('data/params_html.php'), 'foo=3&bar=ok', function() {
-               var $get = $(this).find('#get');                
+       jQuery('<div />').load(url('data/params_html.php'), 'foo=3&bar=ok', function() {
+               var $get = jQuery(this).find('#get');           
                equals( $get.find('#foo').text(), '3', 'Check if a string of data is passed correctly');
                equals( $get.find('#bar').text(), 'ok', 'Check if a  of data is passed correctly');
                start();
        });
 });
 
-test("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() {
+test("jQuery.get(String, Hash, Function) - parse xml and use text() on nodes", function() {
        expect(2);
        stop();
-       $.get(url('data/dashboard.xml'), function(xml) {
+       jQuery.get(url('data/dashboard.xml'), function(xml) {
                var content = [];
-               $('tab', xml).each(function() {
-                       content.push($(this).text());
+               jQuery('tab', xml).each(function() {
+                       content.push(jQuery(this).text());
                });
                equals( content[0], 'blabla', 'Check first tab');
                equals( content[1], 'blublu', 'Check second tab');
@@ -423,23 +423,23 @@ test("$.get(String, Hash, Function) - parse xml and use text() on nodes", functi
        });
 });
 
-test("$.getScript(String, Function) - with callback", function() {
+test("jQuery.getScript(String, Function) - with callback", function() {
        expect(2);
        stop();
        window.foobar = null;
-       $.getScript(url("data/test.js"), function() {
+       jQuery.getScript(url("data/test.js"), function() {
                equals( foobar, "bar", 'Check if script was evaluated' );
                setTimeout(start, 100);
        });
 });
 
-test("$.getScript(String, Function) - no callback", function() {
+test("jQuery.getScript(String, Function) - no callback", function() {
        expect(1);
        stop(true);
-       $.getScript(url("data/test.js"), start);
+       jQuery.getScript(url("data/test.js"), start);
 });
 
-test("$.ajax() - JSONP, Local", function() {
+test("jQuery.ajax() - JSONP, Local", function() {
        expect(7);
 
        var count = 0;
@@ -447,7 +447,7 @@ test("$.ajax() - JSONP, Local", function() {
 
        stop();
 
-       $.ajax({
+       jQuery.ajax({
                url: "data/jsonp.php",
                dataType: "jsonp",
                success: function(data){
@@ -460,7 +460,7 @@ test("$.ajax() - JSONP, Local", function() {
                }
        });
 
-       $.ajax({
+       jQuery.ajax({
                url: "data/jsonp.php?callback=?",
                dataType: "jsonp",
                success: function(data){
@@ -473,7 +473,7 @@ test("$.ajax() - JSONP, Local", function() {
                }
        });
 
-       $.ajax({
+       jQuery.ajax({
                url: "data/jsonp.php",
                dataType: "jsonp",
                data: "callback=?",
@@ -487,7 +487,7 @@ test("$.ajax() - JSONP, Local", function() {
                }
        });
 
-       $.ajax({
+       jQuery.ajax({
                url: "data/jsonp.php",
                dataType: "jsonp",
                jsonp: "callback",
@@ -501,7 +501,7 @@ test("$.ajax() - JSONP, Local", function() {
                }
        });
 
-       $.ajax({
+       jQuery.ajax({
                type: "POST",
                url: "data/jsonp.php",
                dataType: "jsonp",
@@ -515,7 +515,7 @@ test("$.ajax() - JSONP, Local", function() {
                }
        });
 
-       $.ajax({
+       jQuery.ajax({
                type: "POST",
                url: "data/jsonp.php",
                data: "callback=?",
@@ -530,7 +530,7 @@ test("$.ajax() - JSONP, Local", function() {
                }
        });
 
-       $.ajax({
+       jQuery.ajax({
                type: "POST",
                url: "data/jsonp.php",
                jsonp: "callback",
@@ -546,7 +546,7 @@ test("$.ajax() - JSONP, Local", function() {
        });
 });
 
-test("$.ajax() - JSONP, Remote", function() {
+test("jQuery.ajax() - JSONP, Remote", function() {
        expect(4);
 
        var count = 0;
@@ -556,7 +556,7 @@ test("$.ajax() - JSONP, Remote", function() {
 
        stop();
 
-       $.ajax({
+       jQuery.ajax({
                url: base + "data/jsonp.php",
                dataType: "jsonp",
                success: function(data){
@@ -569,7 +569,7 @@ test("$.ajax() - JSONP, Remote", function() {
                }
        });
 
-       $.ajax({
+       jQuery.ajax({
                url: base + "data/jsonp.php?callback=?",
                dataType: "jsonp",
                success: function(data){
@@ -582,7 +582,7 @@ test("$.ajax() - JSONP, Remote", function() {
                }
        });
 
-       $.ajax({
+       jQuery.ajax({
                url: base + "data/jsonp.php",
                dataType: "jsonp",
                data: "callback=?",
@@ -596,7 +596,7 @@ test("$.ajax() - JSONP, Remote", function() {
                }
        });
 
-       $.ajax({
+       jQuery.ajax({
                url: base + "data/jsonp.php",
                dataType: "jsonp",
                jsonp: "callback",
@@ -611,7 +611,7 @@ test("$.ajax() - JSONP, Remote", function() {
        });
 });
 
-test("$.ajax() - script, Remote", function() {
+test("jQuery.ajax() - script, Remote", function() {
        expect(2);
 
        var base = window.location.href.replace(/\?.*$/, "");
@@ -619,7 +619,7 @@ test("$.ajax() - script, Remote", function() {
        stop();
 
        window.foobar = null;
-       $.ajax({
+       jQuery.ajax({
                url: base + "data/test.js",
                dataType: "script",
                success: function(data){
@@ -629,7 +629,7 @@ test("$.ajax() - script, Remote", function() {
        });
 });
 
-test("$.ajax() - script, Remote with POST", function() {
+test("jQuery.ajax() - script, Remote with POST", function() {
        expect(3);
 
        var base = window.location.href.replace(/\?.*$/, "");
@@ -637,7 +637,7 @@ test("$.ajax() - script, Remote with POST", function() {
        stop();
 
        window.foobar = null;
-       $.ajax({
+       jQuery.ajax({
                url: base + "data/test.js",
                type: "POST",
                dataType: "script",
@@ -649,7 +649,7 @@ test("$.ajax() - script, Remote with POST", function() {
        });
 });
 
-test("$.ajax() - script, Remote with scheme-less URL", function() {
+test("jQuery.ajax() - script, Remote with scheme-less URL", function() {
        expect(2);
 
        var base = window.location.href.replace(/\?.*$/, "");
@@ -658,7 +658,7 @@ test("$.ajax() - script, Remote with scheme-less URL", function() {
        stop();
 
        window.foobar = null;
-       $.ajax({
+       jQuery.ajax({
                url: base + "data/test.js",
                dataType: "script",
                success: function(data){
@@ -668,10 +668,10 @@ test("$.ajax() - script, Remote with scheme-less URL", function() {
        });
 });
 
-test("$.getJSON(String, Hash, Function) - JSON array", function() {
+test("jQuery.getJSON(String, Hash, Function) - JSON array", function() {
        expect(4);
        stop();
-       $.getJSON(url("data/json.php"), {json: "array"}, function(json) {
+       jQuery.getJSON(url("data/json.php"), {json: "array"}, function(json) {
          equals( json[0].name, 'John', 'Check JSON: first, name' );
          equals( json[0].age, 21, 'Check JSON: first, age' );
          equals( json[1].name, 'Peter', 'Check JSON: second, name' );
@@ -680,60 +680,60 @@ test("$.getJSON(String, Hash, Function) - JSON array", function() {
        });
 });
 
-test("$.getJSON(String, Function) - JSON object", function() {
+test("jQuery.getJSON(String, Function) - JSON object", function() {
        expect(2);
        stop();
-       $.getJSON(url("data/json.php"), function(json) {
+       jQuery.getJSON(url("data/json.php"), function(json) {
          equals( json.data.lang, 'en', 'Check JSON: lang' );
          equals( json.data.length, 25, 'Check JSON: length' );
          start();
        });
 });
 
-test("$.getJSON(String, Function) - JSON object with absolute url to local content", function() {
+test("jQuery.getJSON(String, Function) - JSON object with absolute url to local content", function() {
        expect(2);
 
        var base = window.location.href.replace(/\?.*$/, "");
 
        stop();
-       $.getJSON(url(base + "data/json.php"), function(json) {
+       jQuery.getJSON(url(base + "data/json.php"), function(json) {
          equals( json.data.lang, 'en', 'Check JSON: lang' );
          equals( json.data.length, 25, 'Check JSON: length' );
          start();
        });
 });
 
-test("$.post(String, Hash, Function) - simple with xml", function() {
+test("jQuery.post(String, Hash, Function) - simple with xml", function() {
        expect(4);
        stop();
-       $.post(url("data/name.php"), {xml: "5-2"}, function(xml){
-         $('math', xml).each(function() {
-                   equals( $('calculation', this).text(), '5-2', 'Check for XML' );
-                   equals( $('result', this).text(), '3', 'Check for XML' );
+       jQuery.post(url("data/name.php"), {xml: "5-2"}, function(xml){
+         jQuery('math', xml).each(function() {
+                   equals( jQuery('calculation', this).text(), '5-2', 'Check for XML' );
+                   equals( jQuery('result', this).text(), '3', 'Check for XML' );
                 });
        });
 
-       $.post(url("data/name.php?xml=5-2"), {}, function(xml){
-         $('math', xml).each(function() {
-                   equals( $('calculation', this).text(), '5-2', 'Check for XML' );
-                   equals( $('result', this).text(), '3', 'Check for XML' );
+       jQuery.post(url("data/name.php?xml=5-2"), {}, function(xml){
+         jQuery('math', xml).each(function() {
+                   equals( jQuery('calculation', this).text(), '5-2', 'Check for XML' );
+                   equals( jQuery('result', this).text(), '3', 'Check for XML' );
                 });
          start();
        });
 });
 
-test("$.ajaxSetup({timeout: Number}) - with global timeout", function() {
+test("jQuery.ajaxSetup({timeout: Number}) - with global timeout", function() {
        stop();
        
        var passed = 0;
 
-       $.ajaxSetup({timeout: 1000});
+       jQuery.ajaxSetup({timeout: 1000});
        
        var pass = function() {
                passed++;
                if ( passed == 2 ) {
                        ok( true, 'Check local and global callbacks after timeout' );
-               $('#main').unbind("ajaxError");
+               jQuery('#main').unbind("ajaxError");
                        start();
                }
        };
@@ -743,9 +743,9 @@ test("$.ajaxSetup({timeout: Number}) - with global timeout", function() {
                start();
        };
        
-       $('#main').ajaxError(pass);
+       jQuery('#main').ajaxError(pass);
        
-       $.ajax({
+       jQuery.ajax({
          type: "GET",
          url: url("data/name.php?wait=5"),
          error: pass,
@@ -753,14 +753,14 @@ test("$.ajaxSetup({timeout: Number}) - with global timeout", function() {
        });
        
        // reset timeout
-       $.ajaxSetup({timeout: 0});
+       jQuery.ajaxSetup({timeout: 0});
 });
 
-test("$.ajaxSetup({timeout: Number}) with localtimeout", function() {
+test("jQuery.ajaxSetup({timeout: Number}) with localtimeout", function() {
        stop();
-       $.ajaxSetup({timeout: 50});
+       jQuery.ajaxSetup({timeout: 50});
 
-       $.ajax({
+       jQuery.ajax({
          type: "GET",
          timeout: 5000,
          url: url("data/name.php?wait=1"),
@@ -775,13 +775,13 @@ test("$.ajaxSetup({timeout: Number}) with localtimeout", function() {
        });
 
        // reset timeout
-       $.ajaxSetup({timeout: 0});
+       jQuery.ajaxSetup({timeout: 0});
 });
 
-test("$.ajax - simple get", function() {
+test("jQuery.ajax - simple get", function() {
        expect(1);
        stop();
-       $.ajax({
+       jQuery.ajax({
          type: "GET",
          url: url("data/name.php?name=foo"),
          success: function(msg){
@@ -791,10 +791,10 @@ test("$.ajax - simple get", function() {
        });
 });
 
-test("$.ajax - simple post", function() {
+test("jQuery.ajax - simple post", function() {
        expect(1);
        stop();
-       $.ajax({
+       jQuery.ajax({
          type: "POST",
          url: url("data/name.php"),
          data: "name=peter",
@@ -808,19 +808,19 @@ test("$.ajax - simple post", function() {
 test("ajaxSetup()", function() {
        expect(1);
        stop();
-       $.ajaxSetup({
+       jQuery.ajaxSetup({
                url: url("data/name.php?name=foo"),
                success: function(msg){
                equals( msg, 'bar', 'Check for GET' );
                        start();
                }
        });
-       $.ajax();
+       jQuery.ajax();
 });
 
 test("custom timeout does not set error message when timeout occurs, see #970", function() {
        stop();
-       $.ajax({
+       jQuery.ajax({
                url: "data/name.php?wait=10",
                timeout: 500,
                error: function(request, status) {
@@ -833,7 +833,7 @@ test("custom timeout does not set error message when timeout occurs, see #970",
 
 test("data option: evaluate function values (#2806)", function() {
        stop();
-       $.ajax({
+       jQuery.ajax({
                url: "data/echoQuery.php",
                data: {
                        key: function() {
index 37eee5d..eba9ce5 100644 (file)
@@ -8,20 +8,20 @@ test("Basic requirements", function() {
        ok( document.getElementsByTagName, "getElementsByTagName" );\r
        ok( RegExp, "RegExp" );\r
        ok( jQuery, "jQuery" );\r
-       ok( $, "$()" );\r
+       ok( $, "$" );\r
 });\r
 \r
-test("$()", function() {\r
+test("jQuery()", function() {\r
        expect(8);\r
 \r
-       var main = $("#main");\r
-       isSet( $("div p", main).get(), q("sndp", "en", "sap"), "Basic selector with jQuery object as context" );\r
+       var main = jQuery("#main");\r
+       isSet( jQuery("div p", main).get(), q("sndp", "en", "sap"), "Basic selector with jQuery object as context" );\r
 \r
 /*\r
        // disabled since this test was doing nothing. i tried to fix it but i'm not sure\r
        // what the expected behavior should even be. FF returns "\n" for the text node\r
        // make sure this is handled\r
-       var crlfContainer = $('<p>\r\n</p>');\r
+       var crlfContainer = jQuery('<p>\r\n</p>');\r
        var x = crlfContainer.contents().get(0).nodeValue;\r
        equals( x, what???, "Check for \\r and \\n in jQuery()" );\r
 */\r
@@ -29,27 +29,27 @@ test("$()", function() {
        /* // Disabled until we add this functionality in\r
        var pass = true;\r
        try {\r
-               $("<div>Testing</div>").appendTo(document.getElementById("iframe").contentDocument.body);\r
+               jQuery("<div>Testing</div>").appendTo(document.getElementById("iframe").contentDocument.body);\r
        } catch(e){\r
                pass = false;\r
        }\r
-       ok( pass, "$('&lt;tag&gt;') needs optional document parameter to ease cross-frame DOM wrangling, see #968" );*/\r
+       ok( pass, "jQuery('&lt;tag&gt;') needs optional document parameter to ease cross-frame DOM wrangling, see #968" );*/\r
 \r
-       var code = $("<code/>");\r
+       var code = jQuery("<code/>");\r
        equals( code.length, 1, "Correct number of elements generated for code" );\r
-       var img = $("<img/>");\r
+       var img = jQuery("<img/>");\r
        equals( img.length, 1, "Correct number of elements generated for img" );\r
-       var div = $("<div/><hr/><code/><b/>");\r
+       var div = jQuery("<div/><hr/><code/><b/>");\r
        equals( div.length, 4, "Correct number of elements generated for div hr code b" );\r
 \r
        // can actually yield more than one, when iframes are included, the window is an array as well\r
-       equals( $(window).length, 1, "Correct number of elements generated for window" );\r
+       equals( jQuery(window).length, 1, "Correct number of elements generated for window" );\r
 \r
-       equals( $(document).length, 1, "Correct number of elements generated for document" );\r
+       equals( jQuery(document).length, 1, "Correct number of elements generated for document" );\r
 \r
-       equals( $([1,2,3]).get(1), 2, "Test passing an array to the factory" );\r
+       equals( jQuery([1,2,3]).get(1), 2, "Test passing an array to the factory" );\r
 \r
-       equals( $(document.body).get(0), $('body').get(0), "Test passing an html node to the factory" );\r
+       equals( jQuery(document.body).get(0), jQuery('body').get(0), "Test passing an html node to the factory" );\r
 });\r
 \r
 test("browser", function() {\r
@@ -91,22 +91,19 @@ test("browser", function() {
 test("noConflict", function() {\r
        expect(6);\r
 \r
-       var old = jQuery;\r
-       var newjQuery = jQuery.noConflict();\r
+       var $$ = jQuery;\r
 \r
-       equals( newjQuery, old, "noConflict returned the jQuery object" );\r
-       equals( jQuery, old, "Make sure jQuery wasn't touched." );\r
-       equals( $, "$", "Make sure $ was reverted." );\r
+       equals( jQuery, jQuery.noConflict(), "noConflict returned the jQuery object" );\r
+       equals( jQuery, $$, "Make sure jQuery wasn't touched." );\r
+       equals( $, original$, "Make sure $ was reverted." );\r
 \r
-       jQuery = $ = old;\r
+       jQuery = $ = $$;\r
 \r
-       newjQuery = jQuery.noConflict(true);\r
+       equals( jQuery.noConflict(true), $$, "noConflict returned the jQuery object" );\r
+       equals( jQuery, originaljQuery, "Make sure jQuery was reverted." );\r
+       equals( $, original$, "Make sure $ was reverted." );\r
 \r
-       equals( newjQuery, old, "noConflict returned the jQuery object" );\r
-       equals( jQuery, "jQuery", "Make sure jQuery was reverted." );\r
-       equals( $, "$", "Make sure $ was reverted." );\r
-\r
-       jQuery = $ = old;\r
+       jQuery = $$;\r
 });\r
 \r
 test("isFunction", function() {\r
@@ -196,45 +193,45 @@ test("isFunction", function() {
 \r
 var foo = false;\r
 \r
-test("$('html')", function() {\r
+test("jQuery('html')", function() {\r
        expect(6);\r
 \r
        reset();\r
        foo = false;\r
-       var s = $("<script>var foo='test';</script>")[0];\r
+       var s = jQuery("<script>var foo='test';</script>")[0];\r
        ok( s, "Creating a script" );\r
        ok( !foo, "Make sure the script wasn't executed prematurely" );\r
-       $("body").append(s);\r
+       jQuery("body").append(s);\r
        ok( foo, "Executing a scripts contents in the right context" );\r
 \r
        reset();\r
-       ok( $("<link rel='stylesheet'/>")[0], "Creating a link" );\r
+       ok( jQuery("<link rel='stylesheet'/>")[0], "Creating a link" );\r
 \r
        reset();\r
 \r
-       var j = $("<span>hi</span> there <!-- mon ami -->");\r
+       var j = jQuery("<span>hi</span> there <!-- mon ami -->");\r
        ok( j.length >= 2, "Check node,textnode,comment creation (some browsers delete comments)" );\r
 \r
-       ok( !$("<option>test</option>")[0].selected, "Make sure that options are auto-selected #2050" );\r
+       ok( !jQuery("<option>test</option>")[0].selected, "Make sure that options are auto-selected #2050" );\r
 });\r
 \r
-test("$('html', context)", function() {\r
+test("jQuery('html', context)", function() {\r
        expect(1);\r
 \r
-       var $div = $("<div/>");\r
-       var $span = $("<span/>", $div);\r
+       var $div = jQuery("<div/>");\r
+       var $span = jQuery("<span/>", $div);\r
        equals($span.length, 1, "Verify a span created with a div context works, #1763");\r
 });\r
 \r
 if ( !isLocal ) {\r
-test("$(selector, xml).text(str) - Loaded via XML document", function() {\r
+test("jQuery(selector, xml).text(str) - Loaded via XML document", function() {\r
        expect(2);\r
        stop();\r
-       $.get('data/dashboard.xml', function(xml) {\r
+       jQuery.get('data/dashboard.xml', function(xml) {\r
                // tests for #1419 where IE was a problem\r
-               equals( $("tab:first", xml).text(), "blabla", "Verify initial text correct" );\r
-               $("tab:first", xml).text("newtext");\r
-               equals( $("tab:first", xml).text(), "newtext", "Verify new text correct" );\r
+               equals( jQuery("tab:first", xml).text(), "blabla", "Verify initial text correct" );\r
+               jQuery("tab:first", xml).text("newtext");\r
+               equals( jQuery("tab:first", xml).text(), "newtext", "Verify new text correct" );\r
                start();\r
        });\r
 });\r
@@ -242,55 +239,55 @@ test("$(selector, xml).text(str) - Loaded via XML document", function() {
 \r
 test("length", function() {\r
        expect(1);\r
-       equals( $("p").length, 6, "Get Number of Elements Found" );\r
+       equals( jQuery("p").length, 6, "Get Number of Elements Found" );\r
 });\r
 \r
 test("size()", function() {\r
        expect(1);\r
-       equals( $("p").size(), 6, "Get Number of Elements Found" );\r
+       equals( jQuery("p").size(), 6, "Get Number of Elements Found" );\r
 });\r
 \r
 test("get()", function() {\r
        expect(1);\r
-       isSet( $("p").get(), q("firstp","ap","sndp","en","sap","first"), "Get All Elements" );\r
+       isSet( jQuery("p").get(), q("firstp","ap","sndp","en","sap","first"), "Get All Elements" );\r
 });\r
 \r
 test("get(Number)", function() {\r
        expect(1);\r
-       equals( $("p").get(0), document.getElementById("firstp"), "Get A Single Element" );\r
+       equals( jQuery("p").get(0), document.getElementById("firstp"), "Get A Single Element" );\r
 });\r
 \r
 test("add(String|Element|Array|undefined)", function() {\r
        expect(12);\r
-       isSet( $("#sndp").add("#en").add("#sap").get(), q("sndp", "en", "sap"), "Check elements from document" );\r
-       isSet( $("#sndp").add( $("#en")[0] ).add( $("#sap") ).get(), q("sndp", "en", "sap"), "Check elements from document" );\r
-       ok( $([]).add($("#form")[0].elements).length >= 13, "Check elements from array" );\r
+       isSet( jQuery("#sndp").add("#en").add("#sap").get(), q("sndp", "en", "sap"), "Check elements from document" );\r
+       isSet( jQuery("#sndp").add( jQuery("#en")[0] ).add( jQuery("#sap") ).get(), q("sndp", "en", "sap"), "Check elements from document" );\r
+       ok( jQuery([]).add(jQuery("#form")[0].elements).length >= 13, "Check elements from array" );\r
 \r
-       // For the time being, we're discontinuing support for $(form.elements) since it's ambiguous in IE\r
-       // use $([]).add(form.elements) instead.\r
-       //equals( $([]).add($("#form")[0].elements).length, $($("#form")[0].elements).length, "Array in constructor must equals array in add()" );\r
+       // For the time being, we're discontinuing support for jQuery(form.elements) since it's ambiguous in IE\r
+       // use jQuery([]).add(form.elements) instead.\r
+       //equals( jQuery([]).add(jQuery("#form")[0].elements).length, jQuery(jQuery("#form")[0].elements).length, "Array in constructor must equals array in add()" );\r
 \r
-       var x = $([]).add($("<p id='x1'>xxx</p>")).add($("<p id='x2'>xxx</p>"));\r
+       var x = jQuery([]).add(jQuery("<p id='x1'>xxx</p>")).add(jQuery("<p id='x2'>xxx</p>"));\r
        equals( x[0].id, "x1", "Check on-the-fly element1" );\r
        equals( x[1].id, "x2", "Check on-the-fly element2" );\r
 \r
-       var x = $([]).add("<p id='x1'>xxx</p>").add("<p id='x2'>xxx</p>");\r
+       var x = jQuery([]).add("<p id='x1'>xxx</p>").add("<p id='x2'>xxx</p>");\r
        equals( x[0].id, "x1", "Check on-the-fly element1" );\r
        equals( x[1].id, "x2", "Check on-the-fly element2" );\r
 \r
        var notDefined;\r
-       equals( $([]).add(notDefined).length, 0, "Check that undefined adds nothing" );\r
+       equals( jQuery([]).add(notDefined).length, 0, "Check that undefined adds nothing" );\r
 \r
        // Added after #2811\r
-       equals( $([]).add([window,document,document.body,document]).length, 3, "Pass an array" );\r
-       equals( $(document).add(document).length, 1, "Check duplicated elements" );\r
-       equals( $(window).add(window).length, 1, "Check duplicated elements using the window" );\r
-       ok( $([]).add( document.getElementById('form') ).length >= 13, "Add a form (adds the elements)" );\r
+       equals( jQuery([]).add([window,document,document.body,document]).length, 3, "Pass an array" );\r
+       equals( jQuery(document).add(document).length, 1, "Check duplicated elements" );\r
+       equals( jQuery(window).add(window).length, 1, "Check duplicated elements using the window" );\r
+       ok( jQuery([]).add( document.getElementById('form') ).length >= 13, "Add a form (adds the elements)" );\r
 });\r
 \r
 test("each(Function)", function() {\r
        expect(1);\r
-       var div = $("div");\r
+       var div = jQuery("div");\r
        div.each(function(){this.foo = 'zoo';});\r
        var pass = true;\r
        for ( var i = 0; i < div.size(); i++ ) {\r
@@ -302,8 +299,8 @@ test("each(Function)", function() {
 test("index(Object)", function() {\r
        expect(10);\r
 \r
-       var elements = $([window, document]),\r
-               inputElements = $('#radio1,#radio2,#check1,#check2');\r
+       var elements = jQuery([window, document]),\r
+               inputElements = jQuery('#radio1,#radio2,#check1,#check2');\r
 \r
        equals( elements.index(window), 0, "Check for index of elements" );\r
        equals( elements.index(document), 1, "Check for index of elements" );\r
@@ -321,32 +318,32 @@ test("index(Object)", function() {
 \r
 test("attr(String)", function() {\r
        expect(26);\r
-       equals( $('#text1').attr('value'), "Test", 'Check for value attribute' );\r
-       equals( $('#text1').attr('value', "Test2").attr('defaultValue'), "Test", 'Check for defaultValue attribute' );\r
-       equals( $('#text1').attr('type'), "text", 'Check for type attribute' );\r
-       equals( $('#radio1').attr('type'), "radio", 'Check for type attribute' );\r
-       equals( $('#check1').attr('type'), "checkbox", 'Check for type attribute' );\r
-       equals( $('#simon1').attr('rel'), "bookmark", 'Check for rel attribute' );\r
-       equals( $('#google').attr('title'), "Google!", 'Check for title attribute' );\r
-       equals( $('#mark').attr('hreflang'), "en", 'Check for hreflang attribute' );\r
-       equals( $('#en').attr('lang'), "en", 'Check for lang attribute' );\r
-       equals( $('#simon').attr('class'), "blog link", 'Check for class attribute' );\r
-       equals( $('#name').attr('name'), "name", 'Check for name attribute' );\r
-       equals( $('#text1').attr('name'), "action", 'Check for name attribute' );\r
-       ok( $('#form').attr('action').indexOf("formaction") >= 0, 'Check for action attribute' );\r
-       equals( $('#text1').attr('maxlength'), '30', 'Check for maxlength attribute' );\r
-       equals( $('#text1').attr('maxLength'), '30', 'Check for maxLength attribute' );\r
-       equals( $('#area1').attr('maxLength'), '30', 'Check for maxLength attribute' );\r
-       equals( $('#select2').attr('selectedIndex'), 3, 'Check for selectedIndex attribute' );\r
-       equals( $('#foo').attr('nodeName'), 'DIV', 'Check for nodeName attribute' );\r
-       equals( $('#foo').attr('tagName'), 'DIV', 'Check for tagName attribute' );\r
-\r
-       $('<a id="tAnchor5"></a>').attr('href', '#5').appendTo('#main'); // using innerHTML in IE causes href attribute to be serialized to the full path\r
-       equals( $('#tAnchor5').attr('href'), "#5", 'Check for non-absolute href (an anchor)' );\r
+       equals( jQuery('#text1').attr('value'), "Test", 'Check for value attribute' );\r
+       equals( jQuery('#text1').attr('value', "Test2").attr('defaultValue'), "Test", 'Check for defaultValue attribute' );\r
+       equals( jQuery('#text1').attr('type'), "text", 'Check for type attribute' );\r
+       equals( jQuery('#radio1').attr('type'), "radio", 'Check for type attribute' );\r
+       equals( jQuery('#check1').attr('type'), "checkbox", 'Check for type attribute' );\r
+       equals( jQuery('#simon1').attr('rel'), "bookmark", 'Check for rel attribute' );\r
+       equals( jQuery('#google').attr('title'), "Google!", 'Check for title attribute' );\r
+       equals( jQuery('#mark').attr('hreflang'), "en", 'Check for hreflang attribute' );\r
+       equals( jQuery('#en').attr('lang'), "en", 'Check for lang attribute' );\r
+       equals( jQuery('#simon').attr('class'), "blog link", 'Check for class attribute' );\r
+       equals( jQuery('#name').attr('name'), "name", 'Check for name attribute' );\r
+       equals( jQuery('#text1').attr('name'), "action", 'Check for name attribute' );\r
+       ok( jQuery('#form').attr('action').indexOf("formaction") >= 0, 'Check for action attribute' );\r
+       equals( jQuery('#text1').attr('maxlength'), '30', 'Check for maxlength attribute' );\r
+       equals( jQuery('#text1').attr('maxLength'), '30', 'Check for maxLength attribute' );\r
+       equals( jQuery('#area1').attr('maxLength'), '30', 'Check for maxLength attribute' );\r
+       equals( jQuery('#select2').attr('selectedIndex'), 3, 'Check for selectedIndex attribute' );\r
+       equals( jQuery('#foo').attr('nodeName'), 'DIV', 'Check for nodeName attribute' );\r
+       equals( jQuery('#foo').attr('tagName'), 'DIV', 'Check for tagName attribute' );\r
+\r
+       jQuery('<a id="tAnchor5"></a>').attr('href', '#5').appendTo('#main'); // using innerHTML in IE causes href attribute to be serialized to the full path\r
+       equals( jQuery('#tAnchor5').attr('href'), "#5", 'Check for non-absolute href (an anchor)' );\r
 \r
 \r
        // Related to [5574] and [5683]\r
-       var body = document.body, $body = $(body);\r
+       var body = document.body, $body = jQuery(body);\r
 \r
        ok( $body.attr('foo') === undefined, 'Make sure that a non existent attribute returns undefined' );\r
        ok( $body.attr('nextSibling') === null, 'Make sure a null expando returns null' );\r
@@ -370,9 +367,9 @@ if ( !isLocal ) {
        test("attr(String) in XML Files", function() {\r
                expect(2);\r
                stop();\r
-               $.get("data/dashboard.xml", function(xml) {\r
-                       equals( $("locations", xml).attr("class"), "foo", "Check class attribute in XML document" );\r
-                       equals( $("location", xml).attr("for"), "bar", "Check for attribute in XML document" );\r
+               jQuery.get("data/dashboard.xml", function(xml) {\r
+                       equals( jQuery("locations", xml).attr("class"), "foo", "Check class attribute in XML document" );\r
+                       equals( jQuery("location", xml).attr("for"), "bar", "Check for attribute in XML document" );\r
                        start();\r
                });\r
        });\r
@@ -380,14 +377,14 @@ if ( !isLocal ) {
 \r
 test("attr(String, Function)", function() {\r
        expect(2);\r
-       equals( $('#text1').attr('value', function() { return this.id })[0].value, "text1", "Set value from id" );\r
-       equals( $('#text1').attr('title', function(i) { return i }).attr('title'), "0", "Set value with an index");\r
+       equals( jQuery('#text1').attr('value', function() { return this.id })[0].value, "text1", "Set value from id" );\r
+       equals( jQuery('#text1').attr('title', function(i) { return i }).attr('title'), "0", "Set value with an index");\r
 });\r
 \r
 test("attr(Hash)", function() {\r
        expect(1);\r
        var pass = true;\r
-       $("div").attr({foo: 'baz', zoo: 'ping'}).each(function(){\r
+       jQuery("div").attr({foo: 'baz', zoo: 'ping'}).each(function(){\r
                if ( this.getAttribute('foo') != "baz" && this.getAttribute('zoo') != "ping" ) pass = false;\r
        });\r
        ok( pass, "Set Multiple Attributes" );\r
@@ -395,7 +392,7 @@ test("attr(Hash)", function() {
 \r
 test("attr(String, Object)", function() {\r
        expect(17);\r
-       var div = $("div").attr("foo", "bar");\r
+       var div = jQuery("div").attr("foo", "bar");\r
                fail = false;\r
        for ( var i = 0; i < div.size(); i++ ) {\r
                if ( div.get(i).getAttribute('foo') != "bar" ){\r
@@ -405,33 +402,33 @@ test("attr(String, Object)", function() {
        }\r
        equals( fail, false, "Set Attribute, the #"+fail+" element didn't get the attribute 'foo'" );\r
 \r
-       ok( $("#foo").attr({"width": null}), "Try to set an attribute to nothing" );\r
+       ok( jQuery("#foo").attr({"width": null}), "Try to set an attribute to nothing" );\r
 \r
-       $("#name").attr('name', 'something');\r
-       equals( $("#name").attr('name'), 'something', 'Set name attribute' );\r
-       $("#check2").attr('checked', true);\r
+       jQuery("#name").attr('name', 'something');\r
+       equals( jQuery("#name").attr('name'), 'something', 'Set name attribute' );\r
+       jQuery("#check2").attr('checked', true);\r
        equals( document.getElementById('check2').checked, true, 'Set checked attribute' );\r
-       $("#check2").attr('checked', false);\r
+       jQuery("#check2").attr('checked', false);\r
        equals( document.getElementById('check2').checked, false, 'Set checked attribute' );\r
-       $("#text1").attr('readonly', true);\r
+       jQuery("#text1").attr('readonly', true);\r
        equals( document.getElementById('text1').readOnly, true, 'Set readonly attribute' );\r
-       $("#text1").attr('readonly', false);\r
+       jQuery("#text1").attr('readonly', false);\r
        equals( document.getElementById('text1').readOnly, false, 'Set readonly attribute' );\r
-       $("#name").attr('maxlength', '5');\r
+       jQuery("#name").attr('maxlength', '5');\r
        equals( document.getElementById('name').maxLength, '5', 'Set maxlength attribute' );\r
-       $("#name").attr('maxLength', '10');\r
+       jQuery("#name").attr('maxLength', '10');\r
        equals( document.getElementById('name').maxLength, '10', 'Set maxlength attribute' );\r
 \r
        // for #1070\r
-       $("#name").attr('someAttr', '0');\r
-       equals( $("#name").attr('someAttr'), '0', 'Set attribute to a string of "0"' );\r
-       $("#name").attr('someAttr', 0);\r
-       equals( $("#name").attr('someAttr'), 0, 'Set attribute to the number 0' );\r
-       $("#name").attr('someAttr', 1);\r
-       equals( $("#name").attr('someAttr'), 1, 'Set attribute to the number 1' );\r
+       jQuery("#name").attr('someAttr', '0');\r
+       equals( jQuery("#name").attr('someAttr'), '0', 'Set attribute to a string of "0"' );\r
+       jQuery("#name").attr('someAttr', 0);\r
+       equals( jQuery("#name").attr('someAttr'), 0, 'Set attribute to the number 0' );\r
+       jQuery("#name").attr('someAttr', 1);\r
+       equals( jQuery("#name").attr('someAttr'), 1, 'Set attribute to the number 1' );\r
 \r
        // using contents will get comments regular, text, and comment nodes\r
-       var j = $("#nonnodes").contents();\r
+       var j = jQuery("#nonnodes").contents();\r
 \r
        j.attr("name", "attrvalue");\r
        equals( j.attr("name"), "attrvalue", "Check node,textnode,comment for attr" );\r
@@ -439,35 +436,35 @@ test("attr(String, Object)", function() {
 \r
        reset();\r
 \r
-       var type = $("#check2").attr('type');\r
+       var type = jQuery("#check2").attr('type');\r
        var thrown = false;\r
        try {\r
-               $("#check2").attr('type','hidden');\r
+               jQuery("#check2").attr('type','hidden');\r
        } catch(e) {\r
                thrown = true;\r
        }\r
        ok( thrown, "Exception thrown when trying to change type property" );\r
-       equals( type, $("#check2").attr('type'), "Verify that you can't change the type of an input element" );\r
+       equals( type, jQuery("#check2").attr('type'), "Verify that you can't change the type of an input element" );\r
 \r
        var check = document.createElement("input");\r
        var thrown = true;\r
        try {\r
-               $(check).attr('type','checkbox');\r
+               jQuery(check).attr('type','checkbox');\r
        } catch(e) {\r
                thrown = false;\r
        }\r
        ok( thrown, "Exception thrown when trying to change type property" );\r
-       equals( "checkbox", $(check).attr('type'), "Verify that you can change the type of an input element that isn't in the DOM" );\r
+       equals( "checkbox", jQuery(check).attr('type'), "Verify that you can change the type of an input element that isn't in the DOM" );\r
 });\r
 \r
 if ( !isLocal ) {\r
        test("attr(String, Object) - Loaded via XML document", function() {\r
                expect(2);\r
                stop();\r
-               $.get('data/dashboard.xml', function(xml) {\r
+               jQuery.get('data/dashboard.xml', function(xml) {\r
                        var titles = [];\r
-                       $('tab', xml).each(function() {\r
-                               titles.push($(this).attr('title'));\r
+                       jQuery('tab', xml).each(function() {\r
+                               titles.push(jQuery(this).attr('title'));\r
                        });\r
                        equals( titles[0], 'Location', 'attr() in XML context: Check first title' );\r
                        equals( titles[1], 'Users', 'attr() in XML context: Check second title' );\r
@@ -479,90 +476,90 @@ if ( !isLocal ) {
 test("css(String|Hash)", function() {\r
        expect(19);\r
 \r
-       equals( $('#main').css("display"), 'none', 'Check for css property "display"');\r
-\r
-       ok( $('#foo').is(':visible'), 'Modifying CSS display: Assert element is visible');\r
-       $('#foo').css({display: 'none'});\r
-       ok( !$('#foo').is(':visible'), 'Modified CSS display: Assert element is hidden');\r
-       $('#foo').css({display: 'block'});\r
-       ok( $('#foo').is(':visible'), 'Modified CSS display: Assert element is visible');\r
-\r
-       $('#floatTest').css({styleFloat: 'right'});\r
-       equals( $('#floatTest').css('styleFloat'), 'right', 'Modified CSS float using "styleFloat": Assert float is right');\r
-       $('#floatTest').css({cssFloat: 'left'});\r
-       equals( $('#floatTest').css('cssFloat'), 'left', 'Modified CSS float using "cssFloat": Assert float is left');\r
-       $('#floatTest').css({'float': 'right'});\r
-       equals( $('#floatTest').css('float'), 'right', 'Modified CSS float using "float": Assert float is right');\r
-       $('#floatTest').css({'font-size': '30px'});\r
-       equals( $('#floatTest').css('font-size'), '30px', 'Modified CSS font-size: Assert font-size is 30px');\r
-\r
-       $.each("0,0.25,0.5,0.75,1".split(','), function(i, n) {\r
-               $('#foo').css({opacity: n});\r
-               equals( $('#foo').css('opacity'), parseFloat(n), "Assert opacity is " + parseFloat(n) + " as a String" );\r
-               $('#foo').css({opacity: parseFloat(n)});\r
-               equals( $('#foo').css('opacity'), parseFloat(n), "Assert opacity is " + parseFloat(n) + " as a Number" );\r
+       equals( jQuery('#main').css("display"), 'none', 'Check for css property "display"');\r
+\r
+       ok( jQuery('#foo').is(':visible'), 'Modifying CSS display: Assert element is visible');\r
+       jQuery('#foo').css({display: 'none'});\r
+       ok( !jQuery('#foo').is(':visible'), 'Modified CSS display: Assert element is hidden');\r
+       jQuery('#foo').css({display: 'block'});\r
+       ok( jQuery('#foo').is(':visible'), 'Modified CSS display: Assert element is visible');\r
+\r
+       jQuery('#floatTest').css({styleFloat: 'right'});\r
+       equals( jQuery('#floatTest').css('styleFloat'), 'right', 'Modified CSS float using "styleFloat": Assert float is right');\r
+       jQuery('#floatTest').css({cssFloat: 'left'});\r
+       equals( jQuery('#floatTest').css('cssFloat'), 'left', 'Modified CSS float using "cssFloat": Assert float is left');\r
+       jQuery('#floatTest').css({'float': 'right'});\r
+       equals( jQuery('#floatTest').css('float'), 'right', 'Modified CSS float using "float": Assert float is right');\r
+       jQuery('#floatTest').css({'font-size': '30px'});\r
+       equals( jQuery('#floatTest').css('font-size'), '30px', 'Modified CSS font-size: Assert font-size is 30px');\r
+\r
+       jQuery.each("0,0.25,0.5,0.75,1".split(','), function(i, n) {\r
+               jQuery('#foo').css({opacity: n});\r
+               equals( jQuery('#foo').css('opacity'), parseFloat(n), "Assert opacity is " + parseFloat(n) + " as a String" );\r
+               jQuery('#foo').css({opacity: parseFloat(n)});\r
+               equals( jQuery('#foo').css('opacity'), parseFloat(n), "Assert opacity is " + parseFloat(n) + " as a Number" );\r
        });\r
-       $('#foo').css({opacity: ''});\r
-       equals( $('#foo').css('opacity'), '1', "Assert opacity is 1 when set to an empty String" );\r
+       jQuery('#foo').css({opacity: ''});\r
+       equals( jQuery('#foo').css('opacity'), '1', "Assert opacity is 1 when set to an empty String" );\r
 });\r
 \r
 test("css(String, Object)", function() {\r
        expect(21);\r
-       ok( $('#foo').is(':visible'), 'Modifying CSS display: Assert element is visible');\r
-       $('#foo').css('display', 'none');\r
-       ok( !$('#foo').is(':visible'), 'Modified CSS display: Assert element is hidden');\r
-       $('#foo').css('display', 'block');\r
-       ok( $('#foo').is(':visible'), 'Modified CSS display: Assert element is visible');\r
-\r
-       $('#floatTest').css('styleFloat', 'left');\r
-       equals( $('#floatTest').css('styleFloat'), 'left', 'Modified CSS float using "styleFloat": Assert float is left');\r
-       $('#floatTest').css('cssFloat', 'right');\r
-       equals( $('#floatTest').css('cssFloat'), 'right', 'Modified CSS float using "cssFloat": Assert float is right');\r
-       $('#floatTest').css('float', 'left');\r
-       equals( $('#floatTest').css('float'), 'left', 'Modified CSS float using "float": Assert float is left');\r
-       $('#floatTest').css('font-size', '20px');\r
-       equals( $('#floatTest').css('font-size'), '20px', 'Modified CSS font-size: Assert font-size is 20px');\r
-\r
-       $.each("0,0.25,0.5,0.75,1".split(','), function(i, n) {\r
-               $('#foo').css('opacity', n);\r
-               equals( $('#foo').css('opacity'), parseFloat(n), "Assert opacity is " + parseFloat(n) + " as a String" );\r
-               $('#foo').css('opacity', parseFloat(n));\r
-               equals( $('#foo').css('opacity'), parseFloat(n), "Assert opacity is " + parseFloat(n) + " as a Number" );\r
+       ok( jQuery('#foo').is(':visible'), 'Modifying CSS display: Assert element is visible');\r
+       jQuery('#foo').css('display', 'none');\r
+       ok( !jQuery('#foo').is(':visible'), 'Modified CSS display: Assert element is hidden');\r
+       jQuery('#foo').css('display', 'block');\r
+       ok( jQuery('#foo').is(':visible'), 'Modified CSS display: Assert element is visible');\r
+\r
+       jQuery('#floatTest').css('styleFloat', 'left');\r
+       equals( jQuery('#floatTest').css('styleFloat'), 'left', 'Modified CSS float using "styleFloat": Assert float is left');\r
+       jQuery('#floatTest').css('cssFloat', 'right');\r
+       equals( jQuery('#floatTest').css('cssFloat'), 'right', 'Modified CSS float using "cssFloat": Assert float is right');\r
+       jQuery('#floatTest').css('float', 'left');\r
+       equals( jQuery('#floatTest').css('float'), 'left', 'Modified CSS float using "float": Assert float is left');\r
+       jQuery('#floatTest').css('font-size', '20px');\r
+       equals( jQuery('#floatTest').css('font-size'), '20px', 'Modified CSS font-size: Assert font-size is 20px');\r
+\r
+       jQuery.each("0,0.25,0.5,0.75,1".split(','), function(i, n) {\r
+               jQuery('#foo').css('opacity', n);\r
+               equals( jQuery('#foo').css('opacity'), parseFloat(n), "Assert opacity is " + parseFloat(n) + " as a String" );\r
+               jQuery('#foo').css('opacity', parseFloat(n));\r
+               equals( jQuery('#foo').css('opacity'), parseFloat(n), "Assert opacity is " + parseFloat(n) + " as a Number" );\r
        });\r
-       $('#foo').css('opacity', '');\r
-       equals( $('#foo').css('opacity'), '1', "Assert opacity is 1 when set to an empty String" );\r
+       jQuery('#foo').css('opacity', '');\r
+       equals( jQuery('#foo').css('opacity'), '1', "Assert opacity is 1 when set to an empty String" );\r
        // for #1438, IE throws JS error when filter exists but doesn't have opacity in it\r
        if (jQuery.browser.msie) {\r
-               $('#foo').css("filter", "progid:DXImageTransform.Microsoft.Chroma(color='red');");\r
+               jQuery('#foo').css("filter", "progid:DXImageTransform.Microsoft.Chroma(color='red');");\r
        }\r
-       equals( $('#foo').css('opacity'), '1', "Assert opacity is 1 when a different filter is set in IE, #1438" );\r
+       equals( jQuery('#foo').css('opacity'), '1', "Assert opacity is 1 when a different filter is set in IE, #1438" );\r
 \r
        // using contents will get comments regular, text, and comment nodes\r
-       var j = $("#nonnodes").contents();\r
+       var j = jQuery("#nonnodes").contents();\r
        j.css("padding-left", "1px");\r
        equals( j.css("padding-left"), "1px", "Check node,textnode,comment css works" );\r
 \r
        // opera sometimes doesn't update 'display' correctly, see #2037\r
-       $("#t2037")[0].innerHTML = $("#t2037")[0].innerHTML\r
-       equals( $("#t2037 .hidden").css("display"), "none", "Make sure browser thinks it is hidden" );\r
+       jQuery("#t2037")[0].innerHTML = jQuery("#t2037")[0].innerHTML\r
+       equals( jQuery("#t2037 .hidden").css("display"), "none", "Make sure browser thinks it is hidden" );\r
 });\r
 \r
 test("jQuery.css(elem, 'height') doesn't clear radio buttons (bug #1095)", function () {\r
        expect(4);\r
 \r
-       var $checkedtest = $("#checkedtest");\r
+       var $checkedtest = jQuery("#checkedtest");\r
        // IE6 was clearing "checked" in jQuery.css(elem, "height");\r
        jQuery.css($checkedtest[0], "height");\r
-       ok( !! $(":radio:first", $checkedtest).attr("checked"), "Check first radio still checked." );\r
-       ok( ! $(":radio:last", $checkedtest).attr("checked"), "Check last radio still NOT checked." );\r
-       ok( !! $(":checkbox:first", $checkedtest).attr("checked"), "Check first checkbox still checked." );\r
-       ok( ! $(":checkbox:last", $checkedtest).attr("checked"), "Check last checkbox still NOT checked." );\r
+       ok( !! jQuery(":radio:first", $checkedtest).attr("checked"), "Check first radio still checked." );\r
+       ok( ! jQuery(":radio:last", $checkedtest).attr("checked"), "Check last radio still NOT checked." );\r
+       ok( !! jQuery(":checkbox:first", $checkedtest).attr("checked"), "Check first checkbox still checked." );\r
+       ok( ! jQuery(":checkbox:last", $checkedtest).attr("checked"), "Check last checkbox still NOT checked." );\r
 });\r
 \r
 test("width()", function() {\r
        expect(9);\r
 \r
-       var $div = $("#nothiddendiv");\r
+       var $div = jQuery("#nothiddendiv");\r
        $div.width(30);\r
        equals($div.width(), 30, "Test set to 30 correctly");\r
        $div.width(-1); // handle negative numbers by ignoring #1599\r
@@ -582,15 +579,15 @@ test("width()", function() {
 \r
        $div.css({ display: "", border: "", padding: "" });\r
 \r
-       $("#nothiddendivchild").css({ padding: "3px", border: "2px solid #fff" });\r
-       equals($("#nothiddendivchild").width(), 20, "Test child width with border and padding");\r
-       $("#nothiddendiv, #nothiddendivchild").css({ border: "", padding: "", width: "" });\r
+       jQuery("#nothiddendivchild").css({ padding: "3px", border: "2px solid #fff" });\r
+       equals(jQuery("#nothiddendivchild").width(), 20, "Test child width with border and padding");\r
+       jQuery("#nothiddendiv, #nothiddendivchild").css({ border: "", padding: "", width: "" });\r
 });\r
 \r
 test("height()", function() {\r
        expect(8);\r
 \r
-       var $div = $("#nothiddendiv");\r
+       var $div = jQuery("#nothiddendiv");\r
        $div.height(30);\r
        equals($div.height(), 30, "Test set to 30 correctly");\r
        $div.height(-1); // handle negative numbers by ignoring #1599\r
@@ -614,116 +611,116 @@ test("height()", function() {
 test("text()", function() {\r
        expect(1);\r
        var expected = "This link has class=\"blog\": Simon Willison's Weblog";\r
-       equals( $('#sap').text(), expected, 'Check for merged text of more then one element.' );\r
+       equals( jQuery('#sap').text(), expected, 'Check for merged text of more then one element.' );\r
 });\r
 \r
 test("wrap(String|Element)", function() {\r
        expect(8);\r
        var defaultText = 'Try them out:'\r
-       var result = $('#first').wrap('<div class="red"><span></span></div>').text();\r
+       var result = jQuery('#first').wrap('<div class="red"><span></span></div>').text();\r
        equals( defaultText, result, 'Check for wrapping of on-the-fly html' );\r
-       ok( $('#first').parent().parent().is('.red'), 'Check if wrapper has class "red"' );\r
+       ok( jQuery('#first').parent().parent().is('.red'), 'Check if wrapper has class "red"' );\r
 \r
        reset();\r
        var defaultText = 'Try them out:'\r
-       var result = $('#first').wrap(document.getElementById('empty')).parent();\r
+       var result = jQuery('#first').wrap(document.getElementById('empty')).parent();\r
        ok( result.is('ol'), 'Check for element wrapping' );\r
        equals( result.text(), defaultText, 'Check for element wrapping' );\r
 \r
        reset();\r
-       $('#check1').click(function() {\r
+       jQuery('#check1').click(function() {\r
                var checkbox = this;\r
                ok( checkbox.checked, "Checkbox's state is erased after wrap() action, see #769" );\r
-               $(checkbox).wrap( '<div id="c1" style="display:none;"></div>' );\r
+               jQuery(checkbox).wrap( '<div id="c1" style="display:none;"></div>' );\r
                ok( checkbox.checked, "Checkbox's state is erased after wrap() action, see #769" );\r
        }).click();\r
 \r
        // using contents will get comments regular, text, and comment nodes\r
-       var j = $("#nonnodes").contents();\r
+       var j = jQuery("#nonnodes").contents();\r
        j.wrap("<i></i>");\r
-       equals( $("#nonnodes > i").length, 3, "Check node,textnode,comment wraps ok" );\r
-       equals( $("#nonnodes > i").text(), j.text() + j[1].nodeValue, "Check node,textnode,comment wraps doesn't hurt text" );\r
+       equals( jQuery("#nonnodes > i").length, 3, "Check node,textnode,comment wraps ok" );\r
+       equals( jQuery("#nonnodes > i").text(), j.text() + j[1].nodeValue, "Check node,textnode,comment wraps doesn't hurt text" );\r
 });\r
 \r
 test("wrapAll(String|Element)", function() {\r
        expect(8);\r
-       var prev = $("#first")[0].previousSibling;\r
-       var p = $("#first")[0].parentNode;\r
-       var result = $('#first,#firstp').wrapAll('<div class="red"><div id="tmp"></div></div>');\r
+       var prev = jQuery("#first")[0].previousSibling;\r
+       var p = jQuery("#first")[0].parentNode;\r
+       var result = jQuery('#first,#firstp').wrapAll('<div class="red"><div id="tmp"></div></div>');\r
        equals( result.parent().length, 1, 'Check for wrapping of on-the-fly html' );\r
-       ok( $('#first').parent().parent().is('.red'), 'Check if wrapper has class "red"' );\r
-       ok( $('#firstp').parent().parent().is('.red'), 'Check if wrapper has class "red"' );\r
-       equals( $("#first").parent().parent()[0].previousSibling, prev, "Correct Previous Sibling" );\r
-       equals( $("#first").parent().parent()[0].parentNode, p, "Correct Parent" );\r
+       ok( jQuery('#first').parent().parent().is('.red'), 'Check if wrapper has class "red"' );\r
+       ok( jQuery('#firstp').parent().parent().is('.red'), 'Check if wrapper has class "red"' );\r
+       equals( jQuery("#first").parent().parent()[0].previousSibling, prev, "Correct Previous Sibling" );\r
+       equals( jQuery("#first").parent().parent()[0].parentNode, p, "Correct Parent" );\r
 \r
        reset();\r
-       var prev = $("#first")[0].previousSibling;\r
-       var p = $("#first")[0].parentNode;\r
-       var result = $('#first,#firstp').wrapAll(document.getElementById('empty'));\r
-       equals( $("#first").parent()[0], $("#firstp").parent()[0], "Same Parent" );\r
-       equals( $("#first").parent()[0].previousSibling, prev, "Correct Previous Sibling" );\r
-       equals( $("#first").parent()[0].parentNode, p, "Correct Parent" );\r
+       var prev = jQuery("#first")[0].previousSibling;\r
+       var p = jQuery("#first")[0].parentNode;\r
+       var result = jQuery('#first,#firstp').wrapAll(document.getElementById('empty'));\r
+       equals( jQuery("#first").parent()[0], jQuery("#firstp").parent()[0], "Same Parent" );\r
+       equals( jQuery("#first").parent()[0].previousSibling, prev, "Correct Previous Sibling" );\r
+       equals( jQuery("#first").parent()[0].parentNode, p, "Correct Parent" );\r
 });\r
 \r
 test("wrapInner(String|Element)", function() {\r
        expect(6);\r
-       var num = $("#first").children().length;\r
-       var result = $('#first').wrapInner('<div class="red"><div id="tmp"></div></div>');\r
-       equals( $("#first").children().length, 1, "Only one child" );\r
-       ok( $("#first").children().is(".red"), "Verify Right Element" );\r
-       equals( $("#first").children().children().children().length, num, "Verify Elements Intact" );\r
+       var num = jQuery("#first").children().length;\r
+       var result = jQuery('#first').wrapInner('<div class="red"><div id="tmp"></div></div>');\r
+       equals( jQuery("#first").children().length, 1, "Only one child" );\r
+       ok( jQuery("#first").children().is(".red"), "Verify Right Element" );\r
+       equals( jQuery("#first").children().children().children().length, num, "Verify Elements Intact" );\r
 \r
        reset();\r
-       var num = $("#first").children().length;\r
-       var result = $('#first').wrapInner(document.getElementById('empty'));\r
-       equals( $("#first").children().length, 1, "Only one child" );\r
-       ok( $("#first").children().is("#empty"), "Verify Right Element" );\r
-       equals( $("#first").children().children().length, num, "Verify Elements Intact" );\r
+       var num = jQuery("#first").children().length;\r
+       var result = jQuery('#first').wrapInner(document.getElementById('empty'));\r
+       equals( jQuery("#first").children().length, 1, "Only one child" );\r
+       ok( jQuery("#first").children().is("#empty"), "Verify Right Element" );\r
+       equals( jQuery("#first").children().children().length, num, "Verify Elements Intact" );\r
 });\r
 \r
 test("append(String|Element|Array&lt;Element&gt;|jQuery)", function() {\r
        expect(21);\r
        var defaultText = 'Try them out:'\r
-       var result = $('#first').append('<b>buga</b>');\r
+       var result = jQuery('#first').append('<b>buga</b>');\r
        equals( result.text(), defaultText + 'buga', 'Check if text appending works' );\r
-       equals( $('#select3').append('<option value="appendTest">Append Test</option>').find('option:last-child').attr('value'), 'appendTest', 'Appending html options to select element');\r
+       equals( jQuery('#select3').append('<option value="appendTest">Append Test</option>').find('option:last-child').attr('value'), 'appendTest', 'Appending html options to select element');\r
 \r
        reset();\r
        var expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:";\r
-       $('#sap').append(document.getElementById('first'));\r
-       equals( expected, $('#sap').text(), "Check for appending of element" );\r
+       jQuery('#sap').append(document.getElementById('first'));\r
+       equals( expected, jQuery('#sap').text(), "Check for appending of element" );\r
 \r
        reset();\r
        expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo";\r
-       $('#sap').append([document.getElementById('first'), document.getElementById('yahoo')]);\r
-       equals( expected, $('#sap').text(), "Check for appending of array of elements" );\r
+       jQuery('#sap').append([document.getElementById('first'), document.getElementById('yahoo')]);\r
+       equals( expected, jQuery('#sap').text(), "Check for appending of array of elements" );\r
 \r
        reset();\r
        expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo";\r
-       $('#sap').append($("#first, #yahoo"));\r
-       equals( expected, $('#sap').text(), "Check for appending of jQuery object" );\r
+       jQuery('#sap').append(jQuery("#first, #yahoo"));\r
+       equals( expected, jQuery('#sap').text(), "Check for appending of jQuery object" );\r
 \r
        reset();\r
-       $("#sap").append( 5 );\r
-       ok( $("#sap")[0].innerHTML.match( /5$/ ), "Check for appending a number" );\r
+       jQuery("#sap").append( 5 );\r
+       ok( jQuery("#sap")[0].innerHTML.match( /5$/ ), "Check for appending a number" );\r
 \r
        reset();\r
-       $("#sap").append( " text with spaces " );\r
-       ok( $("#sap")[0].innerHTML.match(/ text with spaces $/), "Check for appending text with spaces" );\r
+       jQuery("#sap").append( " text with spaces " );\r
+       ok( jQuery("#sap")[0].innerHTML.match(/ text with spaces $/), "Check for appending text with spaces" );\r
 \r
        reset();\r
-       ok( $("#sap").append([]), "Check for appending an empty array." );\r
-       ok( $("#sap").append(""), "Check for appending an empty string." );\r
-       ok( $("#sap").append(document.getElementsByTagName("foo")), "Check for appending an empty nodelist." );\r
+       ok( jQuery("#sap").append([]), "Check for appending an empty array." );\r
+       ok( jQuery("#sap").append(""), "Check for appending an empty string." );\r
+       ok( jQuery("#sap").append(document.getElementsByTagName("foo")), "Check for appending an empty nodelist." );\r
 \r
        reset();\r
-       $("#sap").append(document.getElementById('form'));\r
-       equals( $("#sap>form").size(), 1, "Check for appending a form" ); // Bug #910\r
+       jQuery("#sap").append(document.getElementById('form'));\r
+       equals( jQuery("#sap>form").size(), 1, "Check for appending a form" ); // Bug #910\r
 \r
        reset();\r
        var pass = true;\r
        try {\r
-               $( $("#iframe")[0].contentWindow.document.body ).append("<div>test</div>");\r
+               jQuery( jQuery("#iframe")[0].contentWindow.document.body ).append("<div>test</div>");\r
        } catch(e) {\r
                pass = false;\r
        }\r
@@ -731,115 +728,115 @@ test("append(String|Element|Array&lt;Element&gt;|jQuery)", function() {
        ok( pass, "Test for appending a DOM node to the contents of an IFrame" );\r
 \r
        reset();\r
-       $('<fieldset/>').appendTo('#form').append('<legend id="legend">test</legend>');\r
+       jQuery('<fieldset/>').appendTo('#form').append('<legend id="legend">test</legend>');\r
        t( 'Append legend', '#legend', ['legend'] );\r
 \r
        reset();\r
-       $('#select1').append('<OPTION>Test</OPTION>');\r
-       equals( $('#select1 option:last').text(), "Test", "Appending &lt;OPTION&gt; (all caps)" );\r
+       jQuery('#select1').append('<OPTION>Test</OPTION>');\r
+       equals( jQuery('#select1 option:last').text(), "Test", "Appending &lt;OPTION&gt; (all caps)" );\r
 \r
-       $('#table').append('<colgroup></colgroup>');\r
-       ok( $('#table colgroup').length, "Append colgroup" );\r
+       jQuery('#table').append('<colgroup></colgroup>');\r
+       ok( jQuery('#table colgroup').length, "Append colgroup" );\r
 \r
-       $('#table colgroup').append('<col/>');\r
-       ok( $('#table colgroup col').length, "Append col" );\r
+       jQuery('#table colgroup').append('<col/>');\r
+       ok( jQuery('#table colgroup col').length, "Append col" );\r
 \r
        reset();\r
-       $('#table').append('<caption></caption>');\r
-       ok( $('#table caption').length, "Append caption" );\r
+       jQuery('#table').append('<caption></caption>');\r
+       ok( jQuery('#table caption').length, "Append caption" );\r
 \r
        reset();\r
-       $('form:last')\r
+       jQuery('form:last')\r
                .append('<select id="appendSelect1"></select>')\r
                .append('<select id="appendSelect2"><option>Test</option></select>');\r
 \r
        t( "Append Select", "#appendSelect1, #appendSelect2", ["appendSelect1", "appendSelect2"] );\r
 \r
        // using contents will get comments regular, text, and comment nodes\r
-       var j = $("#nonnodes").contents();\r
-       var d = $("<div/>").appendTo("#nonnodes").append(j);\r
-       equals( $("#nonnodes").length, 1, "Check node,textnode,comment append moved leaving just the div" );\r
+       var j = jQuery("#nonnodes").contents();\r
+       var d = jQuery("<div/>").appendTo("#nonnodes").append(j);\r
+       equals( jQuery("#nonnodes").length, 1, "Check node,textnode,comment append moved leaving just the div" );\r
        ok( d.contents().length >= 2, "Check node,textnode,comment append works" );\r
        d.contents().appendTo("#nonnodes");\r
        d.remove();\r
-       ok( $("#nonnodes").contents().length >= 2, "Check node,textnode,comment append cleanup worked" );\r
+       ok( jQuery("#nonnodes").contents().length >= 2, "Check node,textnode,comment append cleanup worked" );\r
 });\r
 \r
 test("appendTo(String|Element|Array&lt;Element&gt;|jQuery)", function() {\r
        expect(6);\r
        var defaultText = 'Try them out:'\r
-       $('<b>buga</b>').appendTo('#first');\r
-       equals( $("#first").text(), defaultText + 'buga', 'Check if text appending works' );\r
-       equals( $('<option value="appendTest">Append Test</option>').appendTo('#select3').parent().find('option:last-child').attr('value'), 'appendTest', 'Appending html options to select element');\r
+       jQuery('<b>buga</b>').appendTo('#first');\r
+       equals( jQuery("#first").text(), defaultText + 'buga', 'Check if text appending works' );\r
+       equals( jQuery('<option value="appendTest">Append Test</option>').appendTo('#select3').parent().find('option:last-child').attr('value'), 'appendTest', 'Appending html options to select element');\r
 \r
        reset();\r
        var expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:";\r
-       $(document.getElementById('first')).appendTo('#sap');\r
-       equals( expected, $('#sap').text(), "Check for appending of element" );\r
+       jQuery(document.getElementById('first')).appendTo('#sap');\r
+       equals( expected, jQuery('#sap').text(), "Check for appending of element" );\r
 \r
        reset();\r
        expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo";\r
-       $([document.getElementById('first'), document.getElementById('yahoo')]).appendTo('#sap');\r
-       equals( expected, $('#sap').text(), "Check for appending of array of elements" );\r
+       jQuery([document.getElementById('first'), document.getElementById('yahoo')]).appendTo('#sap');\r
+       equals( expected, jQuery('#sap').text(), "Check for appending of array of elements" );\r
 \r
        reset();\r
        expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo";\r
-       $("#first, #yahoo").appendTo('#sap');\r
-       equals( expected, $('#sap').text(), "Check for appending of jQuery object" );\r
+       jQuery("#first, #yahoo").appendTo('#sap');\r
+       equals( expected, jQuery('#sap').text(), "Check for appending of jQuery object" );\r
 \r
        reset();\r
-       $('#select1').appendTo('#foo');\r
+       jQuery('#select1').appendTo('#foo');\r
        t( 'Append select', '#foo select', ['select1'] );\r
 });\r
 \r
 test("prepend(String|Element|Array&lt;Element&gt;|jQuery)", function() {\r
        expect(5);\r
        var defaultText = 'Try them out:'\r
-       var result = $('#first').prepend('<b>buga</b>');\r
+       var result = jQuery('#first').prepend('<b>buga</b>');\r
        equals( result.text(), 'buga' + defaultText, 'Check if text prepending works' );\r
-       equals( $('#select3').prepend('<option value="prependTest">Prepend Test</option>').find('option:first-child').attr('value'), 'prependTest', 'Prepending html options to select element');\r
+       equals( jQuery('#select3').prepend('<option value="prependTest">Prepend Test</option>').find('option:first-child').attr('value'), 'prependTest', 'Prepending html options to select element');\r
 \r
        reset();\r
        var expected = "Try them out:This link has class=\"blog\": Simon Willison's Weblog";\r
-       $('#sap').prepend(document.getElementById('first'));\r
-       equals( expected, $('#sap').text(), "Check for prepending of element" );\r
+       jQuery('#sap').prepend(document.getElementById('first'));\r
+       equals( expected, jQuery('#sap').text(), "Check for prepending of element" );\r
 \r
        reset();\r
        expected = "Try them out:YahooThis link has class=\"blog\": Simon Willison's Weblog";\r
-       $('#sap').prepend([document.getElementById('first'), document.getElementById('yahoo')]);\r
-       equals( expected, $('#sap').text(), "Check for prepending of array of elements" );\r
+       jQuery('#sap').prepend([document.getElementById('first'), document.getElementById('yahoo')]);\r
+       equals( expected, jQuery('#sap').text(), "Check for prepending of array of elements" );\r
 \r
        reset();\r
        expected = "Try them out:YahooThis link has class=\"blog\": Simon Willison's Weblog";\r
-       $('#sap').prepend($("#first, #yahoo"));\r
-       equals( expected, $('#sap').text(), "Check for prepending of jQuery object" );\r
+       jQuery('#sap').prepend(jQuery("#first, #yahoo"));\r
+       equals( expected, jQuery('#sap').text(), "Check for prepending of jQuery object" );\r
 });\r
 \r
 test("prependTo(String|Element|Array&lt;Element&gt;|jQuery)", function() {\r
        expect(6);\r
        var defaultText = 'Try them out:'\r
-       $('<b>buga</b>').prependTo('#first');\r
-       equals( $('#first').text(), 'buga' + defaultText, 'Check if text prepending works' );\r
-       equals( $('<option value="prependTest">Prepend Test</option>').prependTo('#select3').parent().find('option:first-child').attr('value'), 'prependTest', 'Prepending html options to select element');\r
+       jQuery('<b>buga</b>').prependTo('#first');\r
+       equals( jQuery('#first').text(), 'buga' + defaultText, 'Check if text prepending works' );\r
+       equals( jQuery('<option value="prependTest">Prepend Test</option>').prependTo('#select3').parent().find('option:first-child').attr('value'), 'prependTest', 'Prepending html options to select element');\r
 \r
        reset();\r
        var expected = "Try them out:This link has class=\"blog\": Simon Willison's Weblog";\r
-       $(document.getElementById('first')).prependTo('#sap');\r
-       equals( expected, $('#sap').text(), "Check for prepending of element" );\r
+       jQuery(document.getElementById('first')).prependTo('#sap');\r
+       equals( expected, jQuery('#sap').text(), "Check for prepending of element" );\r
 \r
        reset();\r
        expected = "Try them out:YahooThis link has class=\"blog\": Simon Willison's Weblog";\r
-       $([document.getElementById('yahoo'), document.getElementById('first')]).prependTo('#sap');\r
-       equals( expected, $('#sap').text(), "Check for prepending of array of elements" );\r
+       jQuery([document.getElementById('yahoo'), document.getElementById('first')]).prependTo('#sap');\r
+       equals( expected, jQuery('#sap').text(), "Check for prepending of array of elements" );\r
 \r
        reset();\r
        expected = "Try them out:YahooThis link has class=\"blog\": Simon Willison's Weblog";\r
-       $("#yahoo, #first").prependTo('#sap');\r
-       equals( expected, $('#sap').text(), "Check for prepending of jQuery object" );\r
+       jQuery("#yahoo, #first").prependTo('#sap');\r
+       equals( expected, jQuery('#sap').text(), "Check for prepending of jQuery object" );\r
 \r
        reset();\r
-       $('<select id="prependSelect1"></select>').prependTo('form:last');\r
-       $('<select id="prependSelect2"><option>Test</option></select>').prependTo('form:last');\r
+       jQuery('<select id="prependSelect1"></select>').prependTo('form:last');\r
+       jQuery('<select id="prependSelect2"><option>Test</option></select>').prependTo('form:last');\r
 \r
        t( "Prepend Select", "#prependSelect1, #prependSelect2", ["prependSelect1", "prependSelect2"] );\r
 });\r
@@ -847,164 +844,164 @@ test("prependTo(String|Element|Array&lt;Element&gt;|jQuery)", function() {
 test("before(String|Element|Array&lt;Element&gt;|jQuery)", function() {\r
        expect(4);\r
        var expected = 'This is a normal link: bugaYahoo';\r
-       $('#yahoo').before('<b>buga</b>');\r
-       equals( expected, $('#en').text(), 'Insert String before' );\r
+       jQuery('#yahoo').before('<b>buga</b>');\r
+       equals( expected, jQuery('#en').text(), 'Insert String before' );\r
 \r
        reset();\r
        expected = "This is a normal link: Try them out:Yahoo";\r
-       $('#yahoo').before(document.getElementById('first'));\r
-       equals( expected, $('#en').text(), "Insert element before" );\r
+       jQuery('#yahoo').before(document.getElementById('first'));\r
+       equals( expected, jQuery('#en').text(), "Insert element before" );\r
 \r
        reset();\r
        expected = "This is a normal link: Try them out:diveintomarkYahoo";\r
-       $('#yahoo').before([document.getElementById('first'), document.getElementById('mark')]);\r
-       equals( expected, $('#en').text(), "Insert array of elements before" );\r
+       jQuery('#yahoo').before([document.getElementById('first'), document.getElementById('mark')]);\r
+       equals( expected, jQuery('#en').text(), "Insert array of elements before" );\r
 \r
        reset();\r
        expected = "This is a normal link: Try them out:diveintomarkYahoo";\r
-       $('#yahoo').before($("#first, #mark"));\r
-       equals( expected, $('#en').text(), "Insert jQuery before" );\r
+       jQuery('#yahoo').before(jQuery("#first, #mark"));\r
+       equals( expected, jQuery('#en').text(), "Insert jQuery before" );\r
 });\r
 \r
 test("insertBefore(String|Element|Array&lt;Element&gt;|jQuery)", function() {\r
        expect(4);\r
        var expected = 'This is a normal link: bugaYahoo';\r
-       $('<b>buga</b>').insertBefore('#yahoo');\r
-       equals( expected, $('#en').text(), 'Insert String before' );\r
+       jQuery('<b>buga</b>').insertBefore('#yahoo');\r
+       equals( expected, jQuery('#en').text(), 'Insert String before' );\r
 \r
        reset();\r
        expected = "This is a normal link: Try them out:Yahoo";\r
-       $(document.getElementById('first')).insertBefore('#yahoo');\r
-       equals( expected, $('#en').text(), "Insert element before" );\r
+       jQuery(document.getElementById('first')).insertBefore('#yahoo');\r
+       equals( expected, jQuery('#en').text(), "Insert element before" );\r
 \r
        reset();\r
        expected = "This is a normal link: Try them out:diveintomarkYahoo";\r
-       $([document.getElementById('first'), document.getElementById('mark')]).insertBefore('#yahoo');\r
-       equals( expected, $('#en').text(), "Insert array of elements before" );\r
+       jQuery([document.getElementById('first'), document.getElementById('mark')]).insertBefore('#yahoo');\r
+       equals( expected, jQuery('#en').text(), "Insert array of elements before" );\r
 \r
        reset();\r
        expected = "This is a normal link: Try them out:diveintomarkYahoo";\r
-       $("#first, #mark").insertBefore('#yahoo');\r
-       equals( expected, $('#en').text(), "Insert jQuery before" );\r
+       jQuery("#first, #mark").insertBefore('#yahoo');\r
+       equals( expected, jQuery('#en').text(), "Insert jQuery before" );\r
 });\r
 \r
 test("after(String|Element|Array&lt;Element&gt;|jQuery)", function() {\r
        expect(4);\r
        var expected = 'This is a normal link: Yahoobuga';\r
-       $('#yahoo').after('<b>buga</b>');\r
-       equals( expected, $('#en').text(), 'Insert String after' );\r
+       jQuery('#yahoo').after('<b>buga</b>');\r
+       equals( expected, jQuery('#en').text(), 'Insert String after' );\r
 \r
        reset();\r
        expected = "This is a normal link: YahooTry them out:";\r
-       $('#yahoo').after(document.getElementById('first'));\r
-       equals( expected, $('#en').text(), "Insert element after" );\r
+       jQuery('#yahoo').after(document.getElementById('first'));\r
+       equals( expected, jQuery('#en').text(), "Insert element after" );\r
 \r
        reset();\r
        expected = "This is a normal link: YahooTry them out:diveintomark";\r
-       $('#yahoo').after([document.getElementById('first'), document.getElementById('mark')]);\r
-       equals( expected, $('#en').text(), "Insert array of elements after" );\r
+       jQuery('#yahoo').after([document.getElementById('first'), document.getElementById('mark')]);\r
+       equals( expected, jQuery('#en').text(), "Insert array of elements after" );\r
 \r
        reset();\r
        expected = "This is a normal link: YahooTry them out:diveintomark";\r
-       $('#yahoo').after($("#first, #mark"));\r
-       equals( expected, $('#en').text(), "Insert jQuery after" );\r
+       jQuery('#yahoo').after(jQuery("#first, #mark"));\r
+       equals( expected, jQuery('#en').text(), "Insert jQuery after" );\r
 });\r
 \r
 test("insertAfter(String|Element|Array&lt;Element&gt;|jQuery)", function() {\r
        expect(4);\r
        var expected = 'This is a normal link: Yahoobuga';\r
-       $('<b>buga</b>').insertAfter('#yahoo');\r
-       equals( expected, $('#en').text(), 'Insert String after' );\r
+       jQuery('<b>buga</b>').insertAfter('#yahoo');\r
+       equals( expected, jQuery('#en').text(), 'Insert String after' );\r
 \r
        reset();\r
        expected = "This is a normal link: YahooTry them out:";\r
-       $(document.getElementById('first')).insertAfter('#yahoo');\r
-       equals( expected, $('#en').text(), "Insert element after" );\r
+       jQuery(document.getElementById('first')).insertAfter('#yahoo');\r
+       equals( expected, jQuery('#en').text(), "Insert element after" );\r
 \r
        reset();\r
        expected = "This is a normal link: YahooTry them out:diveintomark";\r
-       $([document.getElementById('mark'), document.getElementById('first')]).insertAfter('#yahoo');\r
-       equals( expected, $('#en').text(), "Insert array of elements after" );\r
+       jQuery([document.getElementById('mark'), document.getElementById('first')]).insertAfter('#yahoo');\r
+       equals( expected, jQuery('#en').text(), "Insert array of elements after" );\r
 \r
        reset();\r
        expected = "This is a normal link: YahooTry them out:diveintomark";\r
-       $("#mark, #first").insertAfter('#yahoo');\r
-       equals( expected, $('#en').text(), "Insert jQuery after" );\r
+       jQuery("#mark, #first").insertAfter('#yahoo');\r
+       equals( expected, jQuery('#en').text(), "Insert jQuery after" );\r
 });\r
 \r
 test("replaceWith(String|Element|Array&lt;Element&gt;|jQuery)", function() {\r
        expect(10);\r
-       $('#yahoo').replaceWith('<b id="replace">buga</b>');\r
-       ok( $("#replace")[0], 'Replace element with string' );\r
-       ok( !$("#yahoo")[0], 'Verify that original element is gone, after string' );\r
+       jQuery('#yahoo').replaceWith('<b id="replace">buga</b>');\r
+       ok( jQuery("#replace")[0], 'Replace element with string' );\r
+       ok( !jQuery("#yahoo")[0], 'Verify that original element is gone, after string' );\r
 \r
        reset();\r
-       $('#yahoo').replaceWith(document.getElementById('first'));\r
-       ok( $("#first")[0], 'Replace element with element' );\r
-       ok( !$("#yahoo")[0], 'Verify that original element is gone, after element' );\r
+       jQuery('#yahoo').replaceWith(document.getElementById('first'));\r
+       ok( jQuery("#first")[0], 'Replace element with element' );\r
+       ok( !jQuery("#yahoo")[0], 'Verify that original element is gone, after element' );\r
 \r
        reset();\r
-       $('#yahoo').replaceWith([document.getElementById('first'), document.getElementById('mark')]);\r
-       ok( $("#first")[0], 'Replace element with array of elements' );\r
-       ok( $("#mark")[0], 'Replace element with array of elements' );\r
-       ok( !$("#yahoo")[0], 'Verify that original element is gone, after array of elements' );\r
+       jQuery('#yahoo').replaceWith([document.getElementById('first'), document.getElementById('mark')]);\r
+       ok( jQuery("#first")[0], 'Replace element with array of elements' );\r
+       ok( jQuery("#mark")[0], 'Replace element with array of elements' );\r
+       ok( !jQuery("#yahoo")[0], 'Verify that original element is gone, after array of elements' );\r
 \r
        reset();\r
-       $('#yahoo').replaceWith($("#first, #mark"));\r
-       ok( $("#first")[0], 'Replace element with set of elements' );\r
-       ok( $("#mark")[0], 'Replace element with set of elements' );\r
-       ok( !$("#yahoo")[0], 'Verify that original element is gone, after set of elements' );\r
+       jQuery('#yahoo').replaceWith(jQuery("#first, #mark"));\r
+       ok( jQuery("#first")[0], 'Replace element with set of elements' );\r
+       ok( jQuery("#mark")[0], 'Replace element with set of elements' );\r
+       ok( !jQuery("#yahoo")[0], 'Verify that original element is gone, after set of elements' );\r
 });\r
 \r
 test("replaceAll(String|Element|Array&lt;Element&gt;|jQuery)", function() {\r
        expect(10);\r
-       $('<b id="replace">buga</b>').replaceAll("#yahoo");\r
-       ok( $("#replace")[0], 'Replace element with string' );\r
-       ok( !$("#yahoo")[0], 'Verify that original element is gone, after string' );\r
+       jQuery('<b id="replace">buga</b>').replaceAll("#yahoo");\r
+       ok( jQuery("#replace")[0], 'Replace element with string' );\r
+       ok( !jQuery("#yahoo")[0], 'Verify that original element is gone, after string' );\r
 \r
        reset();\r
-       $(document.getElementById('first')).replaceAll("#yahoo");\r
-       ok( $("#first")[0], 'Replace element with element' );\r
-       ok( !$("#yahoo")[0], 'Verify that original element is gone, after element' );\r
+       jQuery(document.getElementById('first')).replaceAll("#yahoo");\r
+       ok( jQuery("#first")[0], 'Replace element with element' );\r
+       ok( !jQuery("#yahoo")[0], 'Verify that original element is gone, after element' );\r
 \r
        reset();\r
-       $([document.getElementById('first'), document.getElementById('mark')]).replaceAll("#yahoo");\r
-       ok( $("#first")[0], 'Replace element with array of elements' );\r
-       ok( $("#mark")[0], 'Replace element with array of elements' );\r
-       ok( !$("#yahoo")[0], 'Verify that original element is gone, after array of elements' );\r
+       jQuery([document.getElementById('first'), document.getElementById('mark')]).replaceAll("#yahoo");\r
+       ok( jQuery("#first")[0], 'Replace element with array of elements' );\r
+       ok( jQuery("#mark")[0], 'Replace element with array of elements' );\r
+       ok( !jQuery("#yahoo")[0], 'Verify that original element is gone, after array of elements' );\r
 \r
        reset();\r
-       $("#first, #mark").replaceAll("#yahoo");\r
-       ok( $("#first")[0], 'Replace element with set of elements' );\r
-       ok( $("#mark")[0], 'Replace element with set of elements' );\r
-       ok( !$("#yahoo")[0], 'Verify that original element is gone, after set of elements' );\r
+       jQuery("#first, #mark").replaceAll("#yahoo");\r
+       ok( jQuery("#first")[0], 'Replace element with set of elements' );\r
+       ok( jQuery("#mark")[0], 'Replace element with set of elements' );\r
+       ok( !jQuery("#yahoo")[0], 'Verify that original element is gone, after set of elements' );\r
 });\r
 \r
 test("end()", function() {\r
        expect(3);\r
-       equals( 'Yahoo', $('#yahoo').parent().end().text(), 'Check for end' );\r
-       ok( $('#yahoo').end(), 'Check for end with nothing to end' );\r
+       equals( 'Yahoo', jQuery('#yahoo').parent().end().text(), 'Check for end' );\r
+       ok( jQuery('#yahoo').end(), 'Check for end with nothing to end' );\r
 \r
-       var x = $('#yahoo');\r
+       var x = jQuery('#yahoo');\r
        x.parent();\r
-       equals( 'Yahoo', $('#yahoo').text(), 'Check for non-destructive behaviour' );\r
+       equals( 'Yahoo', jQuery('#yahoo').text(), 'Check for non-destructive behaviour' );\r
 });\r
 \r
 test("find(String)", function() {\r
        expect(2);\r
-       equals( 'Yahoo', $('#foo').find('.blogTest').text(), 'Check for find' );\r
+       equals( 'Yahoo', jQuery('#foo').find('.blogTest').text(), 'Check for find' );\r
 \r
        // using contents will get comments regular, text, and comment nodes\r
-       var j = $("#nonnodes").contents();\r
+       var j = jQuery("#nonnodes").contents();\r
        equals( j.find("div").length, 0, "Check node,textnode,comment to find zero divs" );\r
 });\r
 \r
 test("clone()", function() {\r
        expect(20);\r
-       equals( 'This is a normal link: Yahoo', $('#en').text(), 'Assert text for #en' );\r
-       var clone = $('#yahoo').clone();\r
-       equals( 'Try them out:Yahoo', $('#first').append(clone).text(), 'Check for clone' );\r
-       equals( 'This is a normal link: Yahoo', $('#en').text(), 'Reassert text for #en' );\r
+       equals( 'This is a normal link: Yahoo', jQuery('#en').text(), 'Assert text for #en' );\r
+       var clone = jQuery('#yahoo').clone();\r
+       equals( 'Try them out:Yahoo', jQuery('#first').append(clone).text(), 'Check for clone' );\r
+       equals( 'This is a normal link: Yahoo', jQuery('#en').text(), 'Reassert text for #en' );\r
 \r
        var cloneTags = [\r
                "<table/>", "<tr/>", "<td/>", "<div/>",\r
@@ -1013,12 +1010,12 @@ test("clone()", function() {
                "<tbody/>", "<thead/>", "<tfoot/>", "<iframe/>"\r
        ];\r
        for (var i = 0; i < cloneTags.length; i++) {\r
-               var j = $(cloneTags[i]);\r
+               var j = jQuery(cloneTags[i]);\r
                equals( j[0].tagName, j.clone()[0].tagName, 'Clone a &lt;' + cloneTags[i].substring(1));\r
        }\r
 \r
        // using contents will get comments regular, text, and comment nodes\r
-       var cl = $("#nonnodes").contents().clone();\r
+       var cl = jQuery("#nonnodes").contents().clone();\r
        ok( cl.length >= 2, "Check node,textnode,comment clone works (some browsers delete comments on clone)" );\r
 });\r
 \r
@@ -1026,12 +1023,12 @@ if (!isLocal) {
 test("clone() on XML nodes", function() {\r
        expect(2);\r
        stop();\r
-       $.get("data/dashboard.xml", function (xml) {\r
-               var root = $(xml.documentElement).clone();\r
-               $("tab:first", xml).text("origval");\r
-               $("tab:first", root).text("cloneval");\r
-               equals($("tab:first", xml).text(), "origval", "Check original XML node was correctly set");\r
-               equals($("tab:first", root).text(), "cloneval", "Check cloned XML node was correctly set");\r
+       jQuery.get("data/dashboard.xml", function (xml) {\r
+               var root = jQuery(xml.documentElement).clone();\r
+               jQuery("tab:first", xml).text("origval");\r
+               jQuery("tab:first", root).text("cloneval");\r
+               equals(jQuery("tab:first", xml).text(), "origval", "Check original XML node was correctly set");\r
+               equals(jQuery("tab:first", root).text(), "cloneval", "Check cloned XML node was correctly set");\r
                start();\r
        });\r
 });\r
@@ -1039,37 +1036,37 @@ test("clone() on XML nodes", function() {
 \r
 test("is(String)", function() {\r
        expect(26);\r
-       ok( $('#form').is('form'), 'Check for element: A form must be a form' );\r
-       ok( !$('#form').is('div'), 'Check for element: A form is not a div' );\r
-       ok( $('#mark').is('.blog'), 'Check for class: Expected class "blog"' );\r
-       ok( !$('#mark').is('.link'), 'Check for class: Did not expect class "link"' );\r
-       ok( $('#simon').is('.blog.link'), 'Check for multiple classes: Expected classes "blog" and "link"' );\r
-       ok( !$('#simon').is('.blogTest'), 'Check for multiple classes: Expected classes "blog" and "link", but not "blogTest"' );\r
-       ok( $('#en').is('[lang="en"]'), 'Check for attribute: Expected attribute lang to be "en"' );\r
-       ok( !$('#en').is('[lang="de"]'), 'Check for attribute: Expected attribute lang to be "en", not "de"' );\r
-       ok( $('#text1').is('[type="text"]'), 'Check for attribute: Expected attribute type to be "text"' );\r
-       ok( !$('#text1').is('[type="radio"]'), 'Check for attribute: Expected attribute type to be "text", not "radio"' );\r
-       ok( $('#text2').is(':disabled'), 'Check for pseudoclass: Expected to be disabled' );\r
-       ok( !$('#text1').is(':disabled'), 'Check for pseudoclass: Expected not disabled' );\r
-       ok( $('#radio2').is(':checked'), 'Check for pseudoclass: Expected to be checked' );\r
-       ok( !$('#radio1').is(':checked'), 'Check for pseudoclass: Expected not checked' );\r
-       ok( $('#foo').is(':has(p)'), 'Check for child: Expected a child "p" element' );\r
-       ok( !$('#foo').is(':has(ul)'), 'Check for child: Did not expect "ul" element' );\r
-       ok( $('#foo').is(':has(p):has(a):has(code)'), 'Check for childs: Expected "p", "a" and "code" child elements' );\r
-       ok( !$('#foo').is(':has(p):has(a):has(code):has(ol)'), 'Check for childs: Expected "p", "a" and "code" child elements, but no "ol"' );\r
-       ok( !$('#foo').is(0), 'Expected false for an invalid expression - 0' );\r
-       ok( !$('#foo').is(null), 'Expected false for an invalid expression - null' );\r
-       ok( !$('#foo').is(''), 'Expected false for an invalid expression - ""' );\r
-       ok( !$('#foo').is(undefined), 'Expected false for an invalid expression - undefined' );\r
+       ok( jQuery('#form').is('form'), 'Check for element: A form must be a form' );\r
+       ok( !jQuery('#form').is('div'), 'Check for element: A form is not a div' );\r
+       ok( jQuery('#mark').is('.blog'), 'Check for class: Expected class "blog"' );\r
+       ok( !jQuery('#mark').is('.link'), 'Check for class: Did not expect class "link"' );\r
+       ok( jQuery('#simon').is('.blog.link'), 'Check for multiple classes: Expected classes "blog" and "link"' );\r
+       ok( !jQuery('#simon').is('.blogTest'), 'Check for multiple classes: Expected classes "blog" and "link", but not "blogTest"' );\r
+       ok( jQuery('#en').is('[lang="en"]'), 'Check for attribute: Expected attribute lang to be "en"' );\r
+       ok( !jQuery('#en').is('[lang="de"]'), 'Check for attribute: Expected attribute lang to be "en", not "de"' );\r
+       ok( jQuery('#text1').is('[type="text"]'), 'Check for attribute: Expected attribute type to be "text"' );\r
+       ok( !jQuery('#text1').is('[type="radio"]'), 'Check for attribute: Expected attribute type to be "text", not "radio"' );\r
+       ok( jQuery('#text2').is(':disabled'), 'Check for pseudoclass: Expected to be disabled' );\r
+       ok( !jQuery('#text1').is(':disabled'), 'Check for pseudoclass: Expected not disabled' );\r
+       ok( jQuery('#radio2').is(':checked'), 'Check for pseudoclass: Expected to be checked' );\r
+       ok( !jQuery('#radio1').is(':checked'), 'Check for pseudoclass: Expected not checked' );\r
+       ok( jQuery('#foo').is(':has(p)'), 'Check for child: Expected a child "p" element' );\r
+       ok( !jQuery('#foo').is(':has(ul)'), 'Check for child: Did not expect "ul" element' );\r
+       ok( jQuery('#foo').is(':has(p):has(a):has(code)'), 'Check for childs: Expected "p", "a" and "code" child elements' );\r
+       ok( !jQuery('#foo').is(':has(p):has(a):has(code):has(ol)'), 'Check for childs: Expected "p", "a" and "code" child elements, but no "ol"' );\r
+       ok( !jQuery('#foo').is(0), 'Expected false for an invalid expression - 0' );\r
+       ok( !jQuery('#foo').is(null), 'Expected false for an invalid expression - null' );\r
+       ok( !jQuery('#foo').is(''), 'Expected false for an invalid expression - ""' );\r
+       ok( !jQuery('#foo').is(undefined), 'Expected false for an invalid expression - undefined' );\r
 \r
        // test is() with comma-seperated expressions\r
-       ok( $('#en').is('[lang="en"],[lang="de"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' );\r
-       ok( $('#en').is('[lang="de"],[lang="en"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' );\r
-       ok( $('#en').is('[lang="en"] , [lang="de"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' );\r
-       ok( $('#en').is('[lang="de"] , [lang="en"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' );\r
+       ok( jQuery('#en').is('[lang="en"],[lang="de"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' );\r
+       ok( jQuery('#en').is('[lang="de"],[lang="en"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' );\r
+       ok( jQuery('#en').is('[lang="en"] , [lang="de"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' );\r
+       ok( jQuery('#en').is('[lang="de"] , [lang="en"]'), 'Comma-seperated; Check for lang attribute: Expect en or de' );\r
 });\r
 \r
-test("$.extend(Object, Object)", function() {\r
+test("jQuery.extend(Object, Object)", function() {\r
        expect(20);\r
 \r
        var settings = { xnumber1: 5, xnumber2: 7, xstring1: "peter", xstring2: "pan" },\r
@@ -1144,25 +1141,25 @@ test("$.extend(Object, Object)", function() {
 \r
 test("val()", function() {\r
        expect(4);\r
-       equals( $("#text1").val(), "Test", "Check for value of input element" );\r
-       equals( !$("#text1").val(), "", "Check for value of input element" );\r
+       equals( jQuery("#text1").val(), "Test", "Check for value of input element" );\r
+       equals( !jQuery("#text1").val(), "", "Check for value of input element" );\r
        // ticket #1714 this caused a JS error in IE\r
-       equals( $("#first").val(), "", "Check a paragraph element to see if it has a value" );\r
-       ok( $([]).val() === undefined, "Check an empty jQuery object will return undefined from val" );\r
+       equals( jQuery("#first").val(), "", "Check a paragraph element to see if it has a value" );\r
+       ok( jQuery([]).val() === undefined, "Check an empty jQuery object will return undefined from val" );\r
 });\r
 \r
 test("val(String)", function() {\r
        expect(4);\r
        document.getElementById('text1').value = "bla";\r
-       equals( $("#text1").val(), "bla", "Check for modified value of input element" );\r
-       $("#text1").val('test');\r
+       equals( jQuery("#text1").val(), "bla", "Check for modified value of input element" );\r
+       jQuery("#text1").val('test');\r
        ok ( document.getElementById('text1').value == "test", "Check for modified (via val(String)) value of input element" );\r
 \r
-       $("#select1").val("3");\r
-       equals( $("#select1").val(), "3", "Check for modified (via val(String)) value of select element" );\r
+       jQuery("#select1").val("3");\r
+       equals( jQuery("#select1").val(), "3", "Check for modified (via val(String)) value of select element" );\r
 \r
        // using contents will get comments regular, text, and comment nodes\r
-       var j = $("#nonnodes").contents();\r
+       var j = jQuery("#nonnodes").contents();\r
        j.val("asdf");\r
        equals( j.val(), "asdf", "Check node,textnode,comment with val()" );\r
        j.removeAttr("value");\r
@@ -1172,7 +1169,7 @@ var scriptorder = 0;
 \r
 test("html(String)", function() {\r
        expect(11);\r
-       var div = $("#main > div");\r
+       var div = jQuery("#main > div");\r
        div.html("<b>test</b>");\r
        var pass = true;\r
        for ( var i = 0; i < div.size(); i++ ) {\r
@@ -1182,123 +1179,123 @@ test("html(String)", function() {
 \r
        reset();\r
        // using contents will get comments regular, text, and comment nodes\r
-       var j = $("#nonnodes").contents();\r
+       var j = jQuery("#nonnodes").contents();\r
        j.html("<b>bold</b>");\r
 \r
        // this is needed, or the expando added by jQuery unique will yield a different html\r
        j.find('b').removeData();\r
        equals( j.html().toLowerCase(), "<b>bold</b>", "Check node,textnode,comment with html()" );\r
 \r
-       $("#main").html("<select/>");\r
-       $("#main select").html("<option>O1</option><option selected='selected'>O2</option><option>O3</option>");\r
-       equals( $("#main select").val(), "O2", "Selected option correct" );\r
+       jQuery("#main").html("<select/>");\r
+       jQuery("#main select").html("<option>O1</option><option selected='selected'>O2</option><option>O3</option>");\r
+       equals( jQuery("#main select").val(), "O2", "Selected option correct" );\r
 \r
        stop();\r
 \r
-       $("#main").html('<script type="text/javascript">ok( true, "$().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script>');\r
+       jQuery("#main").html('<script type="text/javascript">ok( true, "jQuery().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script>');\r
 \r
-       $("#main").html('foo <form><script type="text/javascript">ok( true, "$().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script></form>');\r
+       jQuery("#main").html('foo <form><script type="text/javascript">ok( true, "jQuery().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script></form>');\r
 \r
        // it was decided that waiting to execute ALL scripts makes sense since nested ones have to wait anyway so this test case is changed, see #1959\r
-       $("#main").html("<script>equals(scriptorder++, 0, 'Script is executed in order');equals($('#scriptorder').length, 1,'Execute after html (even though appears before)')<\/script><span id='scriptorder'><script>equals(scriptorder++, 1, 'Script (nested) is executed in order');equals($('#scriptorder').length, 1,'Execute after html')<\/script></span><script>equals(scriptorder++, 2, 'Script (unnested) is executed in order');equals($('#scriptorder').length, 1,'Execute after html')<\/script>");\r
+       jQuery("#main").html("<script>equals(scriptorder++, 0, 'Script is executed in order');equals(jQuery('#scriptorder').length, 1,'Execute after html (even though appears before)')<\/script><span id='scriptorder'><script>equals(scriptorder++, 1, 'Script (nested) is executed in order');equals(jQuery('#scriptorder').length, 1,'Execute after html')<\/script></span><script>equals(scriptorder++, 2, 'Script (unnested) is executed in order');equals(jQuery('#scriptorder').length, 1,'Execute after html')<\/script>");\r
 \r
        setTimeout( start, 100 );\r
 });\r
 \r
 test("filter()", function() {\r
        expect(6);\r
-       isSet( $("#form input").filter(":checked").get(), q("radio2", "check1"), "filter(String)" );\r
-       isSet( $("p").filter("#ap, #sndp").get(), q("ap", "sndp"), "filter('String, String')" );\r
-       isSet( $("p").filter("#ap,#sndp").get(), q("ap", "sndp"), "filter('String,String')" );\r
-       isSet( $("p").filter(function() { return !$("a", this).length }).get(), q("sndp", "first"), "filter(Function)" );\r
+       isSet( jQuery("#form input").filter(":checked").get(), q("radio2", "check1"), "filter(String)" );\r
+       isSet( jQuery("p").filter("#ap, #sndp").get(), q("ap", "sndp"), "filter('String, String')" );\r
+       isSet( jQuery("p").filter("#ap,#sndp").get(), q("ap", "sndp"), "filter('String,String')" );\r
+       isSet( jQuery("p").filter(function() { return !jQuery("a", this).length }).get(), q("sndp", "first"), "filter(Function)" );\r
 \r
        // using contents will get comments regular, text, and comment nodes\r
-       var j = $("#nonnodes").contents();\r
+       var j = jQuery("#nonnodes").contents();\r
        equals( j.filter("span").length, 1, "Check node,textnode,comment to filter the one span" );\r
        equals( j.filter("[name]").length, 0, "Check node,textnode,comment to filter the one span" );\r
 });\r
 \r
 test("not()", function() {\r
        expect(8);\r
-       equals( $("#main > p#ap > a").not("#google").length, 2, "not('selector')" );\r
-       equals( $("#main > p#ap > a").not(document.getElementById("google")).length, 2, "not(DOMElement)" );\r
-       isSet( $("p").not(".result").get(), q("firstp", "ap", "sndp", "en", "sap", "first"), "not('.class')" );\r
-       isSet( $("p").not("#ap, #sndp, .result").get(), q("firstp", "en", "sap", "first"), "not('selector, selector')" );\r
-       isSet( $("p").not($("#ap, #sndp, .result")).get(), q("firstp", "en", "sap", "first"), "not(jQuery)" );\r
-       equals( $("p").not(document.getElementsByTagName("p")).length, 0, "not(Array-like DOM collection)" );\r
-       isSet( $("#form option").not("option.emptyopt:contains('Nothing'),[selected],[value='1']").get(), q("option1c", "option1d", "option2c", "option3d" ), "not('complex selector')");\r
-\r
-       var selects = $("#form select");\r
+       equals( jQuery("#main > p#ap > a").not("#google").length, 2, "not('selector')" );\r
+       equals( jQuery("#main > p#ap > a").not(document.getElementById("google")).length, 2, "not(DOMElement)" );\r
+       isSet( jQuery("p").not(".result").get(), q("firstp", "ap", "sndp", "en", "sap", "first"), "not('.class')" );\r
+       isSet( jQuery("p").not("#ap, #sndp, .result").get(), q("firstp", "en", "sap", "first"), "not('selector, selector')" );\r
+       isSet( jQuery("p").not(jQuery("#ap, #sndp, .result")).get(), q("firstp", "en", "sap", "first"), "not(jQuery)" );\r
+       equals( jQuery("p").not(document.getElementsByTagName("p")).length, 0, "not(Array-like DOM collection)" );\r
+       isSet( jQuery("#form option").not("option.emptyopt:contains('Nothing'),[selected],[value='1']").get(), q("option1c", "option1d", "option2c", "option3d" ), "not('complex selector')");\r
+\r
+       var selects = jQuery("#form select");\r
        isSet( selects.not( selects[1] ), q("select1", "select3"), "filter out DOM element");\r
 });\r
 \r
 test("andSelf()", function() {\r
        expect(4);\r
-       isSet( $("#en").siblings().andSelf().get(), q("sndp", "sap","en"), "Check for siblings and self" );\r
-       isSet( $("#foo").children().andSelf().get(), q("sndp", "en", "sap", "foo"), "Check for children and self" );\r
-       isSet( $("#en, #sndp").parent().andSelf().get(), q("foo","en","sndp"), "Check for parent and self" );\r
-       isSet( $("#groups").parents("p, div").andSelf().get(), q("ap", "main", "groups"), "Check for parents and self" );\r
+       isSet( jQuery("#en").siblings().andSelf().get(), q("sndp", "sap","en"), "Check for siblings and self" );\r
+       isSet( jQuery("#foo").children().andSelf().get(), q("sndp", "en", "sap", "foo"), "Check for children and self" );\r
+       isSet( jQuery("#en, #sndp").parent().andSelf().get(), q("foo","en","sndp"), "Check for parent and self" );\r
+       isSet( jQuery("#groups").parents("p, div").andSelf().get(), q("ap", "main", "groups"), "Check for parents and self" );\r
 });\r
 \r
 test("siblings([String])", function() {\r
        expect(5);\r
-       isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" );\r
-       isSet( $("#sndp").siblings(":has(code)").get(), q("sap"), "Check for filtered siblings (has code child element)" );\r
-       isSet( $("#sndp").siblings(":has(a)").get(), q("en", "sap"), "Check for filtered siblings (has anchor child element)" );\r
-       isSet( $("#foo").siblings("form, b").get(), q("form", "lengthtest", "testForm", "floatTest"), "Check for multiple filters" );\r
-       isSet( $("#en, #sndp").siblings().get(), q("sndp", "sap", "en"), "Check for unique results from siblings" );\r
+       isSet( jQuery("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" );\r
+       isSet( jQuery("#sndp").siblings(":has(code)").get(), q("sap"), "Check for filtered siblings (has code child element)" );\r
+       isSet( jQuery("#sndp").siblings(":has(a)").get(), q("en", "sap"), "Check for filtered siblings (has anchor child element)" );\r
+       isSet( jQuery("#foo").siblings("form, b").get(), q("form", "lengthtest", "testForm", "floatTest"), "Check for multiple filters" );\r
+       isSet( jQuery("#en, #sndp").siblings().get(), q("sndp", "sap", "en"), "Check for unique results from siblings" );\r
 });\r
 \r
 test("children([String])", function() {\r
        expect(3);\r
-       isSet( $("#foo").children().get(), q("sndp", "en", "sap"), "Check for children" );\r
-       isSet( $("#foo").children(":has(code)").get(), q("sndp", "sap"), "Check for filtered children" );\r
-       isSet( $("#foo").children("#en, #sap").get(), q("en", "sap"), "Check for multiple filters" );\r
+       isSet( jQuery("#foo").children().get(), q("sndp", "en", "sap"), "Check for children" );\r
+       isSet( jQuery("#foo").children(":has(code)").get(), q("sndp", "sap"), "Check for filtered children" );\r
+       isSet( jQuery("#foo").children("#en, #sap").get(), q("en", "sap"), "Check for multiple filters" );\r
 });\r
 \r
 test("parent([String])", function() {\r
        expect(5);\r
-       equals( $("#groups").parent()[0].id, "ap", "Simple parent check" );\r
-       equals( $("#groups").parent("p")[0].id, "ap", "Filtered parent check" );\r
-       equals( $("#groups").parent("div").length, 0, "Filtered parent check, no match" );\r
-       equals( $("#groups").parent("div, p")[0].id, "ap", "Check for multiple filters" );\r
-       isSet( $("#en, #sndp").parent().get(), q("foo"), "Check for unique results from parent" );\r
+       equals( jQuery("#groups").parent()[0].id, "ap", "Simple parent check" );\r
+       equals( jQuery("#groups").parent("p")[0].id, "ap", "Filtered parent check" );\r
+       equals( jQuery("#groups").parent("div").length, 0, "Filtered parent check, no match" );\r
+       equals( jQuery("#groups").parent("div, p")[0].id, "ap", "Check for multiple filters" );\r
+       isSet( jQuery("#en, #sndp").parent().get(), q("foo"), "Check for unique results from parent" );\r
 });\r
 \r
 test("parents([String])", function() {\r
        expect(5);\r
-       equals( $("#groups").parents()[0].id, "ap", "Simple parents check" );\r
-       equals( $("#groups").parents("p")[0].id, "ap", "Filtered parents check" );\r
-       equals( $("#groups").parents("div")[0].id, "main", "Filtered parents check2" );\r
-       isSet( $("#groups").parents("p, div").get(), q("ap", "main"), "Check for multiple filters" );\r
-       isSet( $("#en, #sndp").parents().get(), q("foo", "main", "dl", "body", "html"), "Check for unique results from parents" );\r
+       equals( jQuery("#groups").parents()[0].id, "ap", "Simple parents check" );\r
+       equals( jQuery("#groups").parents("p")[0].id, "ap", "Filtered parents check" );\r
+       equals( jQuery("#groups").parents("div")[0].id, "main", "Filtered parents check2" );\r
+       isSet( jQuery("#groups").parents("p, div").get(), q("ap", "main"), "Check for multiple filters" );\r
+       isSet( jQuery("#en, #sndp").parents().get(), q("foo", "main", "dl", "body", "html"), "Check for unique results from parents" );\r
 });\r
 \r
 test("next([String])", function() {\r
        expect(4);\r
-       equals( $("#ap").next()[0].id, "foo", "Simple next check" );\r
-       equals( $("#ap").next("div")[0].id, "foo", "Filtered next check" );\r
-       equals( $("#ap").next("p").length, 0, "Filtered next check, no match" );\r
-       equals( $("#ap").next("div, p")[0].id, "foo", "Multiple filters" );\r
+       equals( jQuery("#ap").next()[0].id, "foo", "Simple next check" );\r
+       equals( jQuery("#ap").next("div")[0].id, "foo", "Filtered next check" );\r
+       equals( jQuery("#ap").next("p").length, 0, "Filtered next check, no match" );\r
+       equals( jQuery("#ap").next("div, p")[0].id, "foo", "Multiple filters" );\r
 });\r
 \r
 test("prev([String])", function() {\r
        expect(4);\r
-       equals( $("#foo").prev()[0].id, "ap", "Simple prev check" );\r
-       equals( $("#foo").prev("p")[0].id, "ap", "Filtered prev check" );\r
-       equals( $("#foo").prev("div").length, 0, "Filtered prev check, no match" );\r
-       equals( $("#foo").prev("p, div")[0].id, "ap", "Multiple filters" );\r
+       equals( jQuery("#foo").prev()[0].id, "ap", "Simple prev check" );\r
+       equals( jQuery("#foo").prev("p")[0].id, "ap", "Filtered prev check" );\r
+       equals( jQuery("#foo").prev("div").length, 0, "Filtered prev check, no match" );\r
+       equals( jQuery("#foo").prev("p, div")[0].id, "ap", "Multiple filters" );\r
 });\r
 \r
 test("show()", function() {\r
        expect(15);\r
-       var pass = true, div = $("div");\r
+       var pass = true, div = jQuery("div");\r
        div.show().each(function(){\r
                if ( this.style.display == "none" ) pass = false;\r
        });\r
        ok( pass, "Show" );\r
 \r
-       $("#main").append('<div id="show-tests"><div><p><a href="#"></a></p><code></code><pre></pre><span></span></div><table><thead><tr><th></th></tr></thead><tbody><tr><td></td></tr></tbody></table><ul><li></li></ul></div>');\r
+       jQuery("#main").append('<div id="show-tests"><div><p><a href="#"></a></p><code></code><pre></pre><span></span></div><table><thead><tr><th></th></tr></thead><tbody><tr><td></td></tr></tbody></table><ul><li></li></ul></div>');\r
        var test = {\r
                "div"      : "block",\r
                "p"        : "block",\r
@@ -1306,25 +1303,25 @@ test("show()", function() {
                "code"     : "inline",\r
                "pre"      : "block",\r
                "span"     : "inline",\r
-               "table"    : $.browser.msie ? "block" : "table",\r
-               "thead"    : $.browser.msie ? "block" : "table-header-group",\r
-               "tbody"    : $.browser.msie ? "block" : "table-row-group",\r
-               "tr"       : $.browser.msie ? "block" : "table-row",\r
-               "th"       : $.browser.msie ? "block" : "table-cell",\r
-               "td"       : $.browser.msie ? "block" : "table-cell",\r
+               "table"    : jQuery.browser.msie ? "block" : "table",\r
+               "thead"    : jQuery.browser.msie ? "block" : "table-header-group",\r
+               "tbody"    : jQuery.browser.msie ? "block" : "table-row-group",\r
+               "tr"       : jQuery.browser.msie ? "block" : "table-row",\r
+               "th"       : jQuery.browser.msie ? "block" : "table-cell",\r
+               "td"       : jQuery.browser.msie ? "block" : "table-cell",\r
                "ul"       : "block",\r
-               "li"       : $.browser.msie ? "block" : "list-item"\r
+               "li"       : jQuery.browser.msie ? "block" : "list-item"\r
        };\r
 \r
-       $.each(test, function(selector, expected) {\r
-               var elem = $(selector, "#show-tests").show();\r
+       jQuery.each(test, function(selector, expected) {\r
+               var elem = jQuery(selector, "#show-tests").show();\r
                equals( elem.css("display"), expected, "Show using correct display type for " + selector );\r
        });\r
 });\r
 \r
 test("addClass(String)", function() {\r
        expect(2);\r
-       var div = $("div");\r
+       var div = jQuery("div");\r
        div.addClass("test");\r
        var pass = true;\r
        for ( var i = 0; i < div.size(); i++ ) {\r
@@ -1333,14 +1330,14 @@ test("addClass(String)", function() {
        ok( pass, "Add Class" );\r
 \r
        // using contents will get regular, text, and comment nodes\r
-       var j = $("#nonnodes").contents();\r
+       var j = jQuery("#nonnodes").contents();\r
        j.addClass("asdf");\r
        ok( j.hasClass("asdf"), "Check node,textnode,comment for addClass" );\r
 });\r
 \r
 test("removeClass(String) - simple", function() {\r
        expect(4);\r
-       var div = $("div").addClass("test").removeClass("test"),\r
+       var div = jQuery("div").addClass("test").removeClass("test"),\r
                pass = true;\r
        for ( var i = 0; i < div.size(); i++ ) {\r
                if ( div.get(i).className.indexOf("test") != -1 ) pass = false;\r
@@ -1348,7 +1345,7 @@ test("removeClass(String) - simple", function() {
        ok( pass, "Remove Class" );\r
 \r
        reset();\r
-       var div = $("div").addClass("test").addClass("foo").addClass("bar");\r
+       var div = jQuery("div").addClass("test").addClass("foo").addClass("bar");\r
        div.removeClass("test").removeClass("bar").removeClass("foo");\r
        var pass = true;\r
        for ( var i = 0; i < div.size(); i++ ) {\r
@@ -1357,18 +1354,18 @@ test("removeClass(String) - simple", function() {
        ok( pass, "Remove multiple classes" );\r
 \r
        reset();\r
-       var div = $("div:eq(0)").addClass("test").removeClass("");\r
+       var div = jQuery("div:eq(0)").addClass("test").removeClass("");\r
        ok( div.is('.test'), "Empty string passed to removeClass" );\r
 \r
        // using contents will get regular, text, and comment nodes\r
-       var j = $("#nonnodes").contents();\r
+       var j = jQuery("#nonnodes").contents();\r
        j.removeClass("asdf");\r
        ok( !j.hasClass("asdf"), "Check node,textnode,comment for removeClass" );\r
 });\r
 \r
 test("toggleClass(String)", function() {\r
        expect(3);\r
-       var e = $("#firstp");\r
+       var e = jQuery("#firstp");\r
        ok( !e.is(".test"), "Assert class not present" );\r
        e.toggleClass("test");\r
        ok( e.is(".test"), "Assert class present" );\r
@@ -1378,32 +1375,32 @@ test("toggleClass(String)", function() {
 \r
 test("removeAttr(String", function() {\r
        expect(1);\r
-       equals( $('#mark').removeAttr("class")[0].className, "", "remove class" );\r
+       equals( jQuery('#mark').removeAttr("class")[0].className, "", "remove class" );\r
 });\r
 \r
 test("text(String)", function() {\r
        expect(4);\r
-       equals( $("#foo").text("<div><b>Hello</b> cruel world!</div>")[0].innerHTML, "&lt;div&gt;&lt;b&gt;Hello&lt;/b&gt; cruel world!&lt;/div&gt;", "Check escaped text" );\r
+       equals( jQuery("#foo").text("<div><b>Hello</b> cruel world!</div>")[0].innerHTML, "&lt;div&gt;&lt;b&gt;Hello&lt;/b&gt; cruel world!&lt;/div&gt;", "Check escaped text" );\r
 \r
        // using contents will get comments regular, text, and comment nodes\r
-       var j = $("#nonnodes").contents();\r
+       var j = jQuery("#nonnodes").contents();\r
        j.text("hi!");\r
-       equals( $(j[0]).text(), "hi!", "Check node,textnode,comment with text()" );\r
+       equals( jQuery(j[0]).text(), "hi!", "Check node,textnode,comment with text()" );\r
        equals( j[1].nodeValue, " there ", "Check node,textnode,comment with text()" );\r
        equals( j[2].nodeType, 8, "Check node,textnode,comment with text()" );\r
 });\r
 \r
-test("$.each(Object,Function)", function() {\r
+test("jQuery.each(Object,Function)", function() {\r
        expect(12);\r
-       $.each( [0,1,2], function(i, n){\r
+       jQuery.each( [0,1,2], function(i, n){\r
                equals( i, n, "Check array iteration" );\r
        });\r
 \r
-       $.each( [5,6,7], function(i, n){\r
+       jQuery.each( [5,6,7], function(i, n){\r
                equals( i, n - 5, "Check array iteration" );\r
        });\r
 \r
-       $.each( { name: "name", lang: "lang" }, function(i, n){\r
+       jQuery.each( { name: "name", lang: "lang" }, function(i, n){\r
                equals( i, n, "Check object iteration" );\r
        });\r
 \r
@@ -1421,17 +1418,17 @@ test("$.each(Object,Function)", function() {
         equals( total, 3, "Looping over an object, with break" );\r
 });\r
 \r
-test("$.prop", function() {\r
+test("jQuery.prop", function() {\r
        expect(2);\r
        var handle = function() { return this.id };\r
-       equals( $.prop($("#ap")[0], handle), "ap", "Check with Function argument" );\r
-       equals( $.prop($("#ap")[0], "value"), "value", "Check with value argument" );\r
+       equals( jQuery.prop(jQuery("#ap")[0], handle), "ap", "Check with Function argument" );\r
+       equals( jQuery.prop(jQuery("#ap")[0], "value"), "value", "Check with value argument" );\r
 });\r
 \r
-test("$.className", function() {\r
+test("jQuery.className", function() {\r
        expect(6);\r
-       var x = $("<p>Hi</p>")[0];\r
-       var c = $.className;\r
+       var x = jQuery("<p>Hi</p>")[0];\r
+       var c = jQuery.className;\r
        c.add(x, "hi");\r
        equals( x.className, "hi", "Check single added class" );\r
        c.add(x, "foo bar");\r
@@ -1445,9 +1442,9 @@ test("$.className", function() {
        ok( c.has(x, "bar"), "Check has2" );\r
 });\r
 \r
-test("$.data", function() {\r
+test("jQuery.data", function() {\r
        expect(5);\r
-       var div = $("#foo")[0];\r
+       var div = jQuery("#foo")[0];\r
        equals( jQuery.data(div, "test"), undefined, "Check for no data exists" );\r
        jQuery.data(div, "test", "success");\r
        equals( jQuery.data(div, "test"), "success", "Check for added data" );\r
@@ -1461,7 +1458,7 @@ test("$.data", function() {
 \r
 test(".data()", function() {\r
        expect(18);\r
-       var div = $("#foo");\r
+       var div = jQuery("#foo");\r
        equals( div.data("test"), undefined, "Check for no data exists" );\r
        div.data("test", "success");\r
        equals( div.data("test"), "success", "Check for added data" );\r
@@ -1510,9 +1507,9 @@ test(".data()", function() {
        equals( div.data("test.bar"), "testroot", "Check for unmatched namespace" );\r
 });\r
 \r
-test("$.removeData", function() {\r
+test("jQuery.removeData", function() {\r
        expect(1);\r
-       var div = $("#foo")[0];\r
+       var div = jQuery("#foo")[0];\r
        jQuery.data(div, "test", "testing");\r
        jQuery.removeData(div, "test");\r
        equals( jQuery.data(div, "test"), undefined, "Check removal of data" );\r
@@ -1520,7 +1517,7 @@ test("$.removeData", function() {
 \r
 test(".removeData()", function() {\r
        expect(6);\r
-       var div = $("#foo");\r
+       var div = jQuery("#foo");\r
        div.data("test", "testing");\r
        div.removeData("test");\r
        equals( div.data("test"), undefined, "Check removal of data" );\r
@@ -1541,55 +1538,55 @@ test(".removeData()", function() {
 \r
 test("remove()", function() {\r
        expect(6);\r
-       $("#ap").children().remove();\r
-       ok( $("#ap").text().length > 10, "Check text is not removed" );\r
-       equals( $("#ap").children().length, 0, "Check remove" );\r
+       jQuery("#ap").children().remove();\r
+       ok( jQuery("#ap").text().length > 10, "Check text is not removed" );\r
+       equals( jQuery("#ap").children().length, 0, "Check remove" );\r
 \r
        reset();\r
-       $("#ap").children().remove("a");\r
-       ok( $("#ap").text().length > 10, "Check text is not removed" );\r
-       equals( $("#ap").children().length, 1, "Check filtered remove" );\r
+       jQuery("#ap").children().remove("a");\r
+       ok( jQuery("#ap").text().length > 10, "Check text is not removed" );\r
+       equals( jQuery("#ap").children().length, 1, "Check filtered remove" );\r
 \r
        // using contents will get comments regular, text, and comment nodes\r
-       equals( $("#nonnodes").contents().length, 3, "Check node,textnode,comment remove works" );\r
-       $("#nonnodes").contents().remove();\r
-       equals( $("#nonnodes").contents().length, 0, "Check node,textnode,comment remove works" );\r
+       equals( jQuery("#nonnodes").contents().length, 3, "Check node,textnode,comment remove works" );\r
+       jQuery("#nonnodes").contents().remove();\r
+       equals( jQuery("#nonnodes").contents().length, 0, "Check node,textnode,comment remove works" );\r
 });\r
 \r
 test("empty()", function() {\r
        expect(3);\r
-       equals( $("#ap").children().empty().text().length, 0, "Check text is removed" );\r
-       equals( $("#ap").children().length, 4, "Check elements are not removed" );\r
+       equals( jQuery("#ap").children().empty().text().length, 0, "Check text is removed" );\r
+       equals( jQuery("#ap").children().length, 4, "Check elements are not removed" );\r
 \r
        // using contents will get comments regular, text, and comment nodes\r
-       var j = $("#nonnodes").contents();\r
+       var j = jQuery("#nonnodes").contents();\r
        j.empty();\r
        equals( j.html(), "", "Check node,textnode,comment empty works" );\r
 });\r
 \r
 test("slice()", function() {\r
        expect(5);\r
-       isSet( $("#ap a").slice(1,2), q("groups"), "slice(1,2)" );\r
-       isSet( $("#ap a").slice(1), q("groups", "anchor1", "mark"), "slice(1)" );\r
-       isSet( $("#ap a").slice(0,3), q("google", "groups", "anchor1"), "slice(0,3)" );\r
-       isSet( $("#ap a").slice(-1), q("mark"), "slice(-1)" );\r
+       isSet( jQuery("#ap a").slice(1,2), q("groups"), "slice(1,2)" );\r
+       isSet( jQuery("#ap a").slice(1), q("groups", "anchor1", "mark"), "slice(1)" );\r
+       isSet( jQuery("#ap a").slice(0,3), q("google", "groups", "anchor1"), "slice(0,3)" );\r
+       isSet( jQuery("#ap a").slice(-1), q("mark"), "slice(-1)" );\r
 \r
-       isSet( $("#ap a").eq(1), q("groups"), "eq(1)" );\r
+       isSet( jQuery("#ap a").eq(1), q("groups"), "eq(1)" );\r
 });\r
 \r
 test("map()", function() {\r
        expect(2);//expect(6);\r
 \r
        isSet(\r
-               $("#ap").map(function(){\r
-                       return $(this).find("a").get();\r
+               jQuery("#ap").map(function(){\r
+                       return jQuery(this).find("a").get();\r
                }),\r
                q("google", "groups", "anchor1", "mark"),\r
                "Array Map"\r
        );\r
 \r
        isSet(\r
-               $("#ap > a").map(function(){\r
+               jQuery("#ap > a").map(function(){\r
                        return this.parentNode;\r
                }),\r
                q("ap","ap","ap"),\r
@@ -1599,26 +1596,26 @@ test("map()", function() {
        return;//these haven't been accepted yet\r
 \r
        //for #2616\r
-       var keys = $.map( {a:1,b:2}, function( v, k ){\r
+       var keys = jQuery.map( {a:1,b:2}, function( v, k ){\r
                return k;\r
        }, [ ] );\r
 \r
        equals( keys.join(""), "ab", "Map the keys from a hash to an array" );\r
 \r
-       var values = $.map( {a:1,b:2}, function( v, k ){\r
+       var values = jQuery.map( {a:1,b:2}, function( v, k ){\r
                return v;\r
        }, [ ] );\r
 \r
        equals( values.join(""), "12", "Map the values from a hash to an array" );\r
 \r
        var scripts = document.getElementsByTagName("script");\r
-       var mapped = $.map( scripts, function( v, k ){\r
+       var mapped = jQuery.map( scripts, function( v, k ){\r
                return v;\r
        }, {length:0} );\r
 \r
        equals( mapped.length, scripts.length, "Map an array(-like) to a hash" );\r
 \r
-       var flat = $.map( Array(4), function( v, k ){\r
+       var flat = jQuery.map( Array(4), function( v, k ){\r
                return k % 2 ? k : [k,k,k];//try mixing array and regular returns\r
        });\r
 \r
@@ -1627,67 +1624,67 @@ test("map()", function() {
 \r
 test("contents()", function() {\r
        expect(12);\r
-       equals( $("#ap").contents().length, 9, "Check element contents" );\r
-       ok( $("#iframe").contents()[0], "Check existance of IFrame document" );\r
-       var ibody = $("#loadediframe").contents()[0].body;\r
+       equals( jQuery("#ap").contents().length, 9, "Check element contents" );\r
+       ok( jQuery("#iframe").contents()[0], "Check existance of IFrame document" );\r
+       var ibody = jQuery("#loadediframe").contents()[0].body;\r
        ok( ibody, "Check existance of IFrame body" );\r
 \r
-       equals( $("span", ibody).text(), "span text", "Find span in IFrame and check its text" );\r
+       equals( jQuery("span", ibody).text(), "span text", "Find span in IFrame and check its text" );\r
 \r
-       $(ibody).append("<div>init text</div>");\r
-       equals( $("div", ibody).length, 2, "Check the original div and the new div are in IFrame" );\r
+       jQuery(ibody).append("<div>init text</div>");\r
+       equals( jQuery("div", ibody).length, 2, "Check the original div and the new div are in IFrame" );\r
 \r
-       equals( $("div:last", ibody).text(), "init text", "Add text to div in IFrame" );\r
+       equals( jQuery("div:last", ibody).text(), "init text", "Add text to div in IFrame" );\r
 \r
-       $("div:last", ibody).text("div text");\r
-       equals( $("div:last", ibody).text(), "div text", "Add text to div in IFrame" );\r
+       jQuery("div:last", ibody).text("div text");\r
+       equals( jQuery("div:last", ibody).text(), "div text", "Add text to div in IFrame" );\r
 \r
-       $("div:last", ibody).remove();\r
-       equals( $("div", ibody).length, 1, "Delete the div and check only one div left in IFrame" );\r
+       jQuery("div:last", ibody).remove();\r
+       equals( jQuery("div", ibody).length, 1, "Delete the div and check only one div left in IFrame" );\r
 \r
-       equals( $("div", ibody).text(), "span text", "Make sure the correct div is still left after deletion in IFrame" );\r
+       equals( jQuery("div", ibody).text(), "span text", "Make sure the correct div is still left after deletion in IFrame" );\r
 \r
-       $("<table/>", ibody).append("<tr><td>cell</td></tr>").appendTo(ibody);\r
-       $("table", ibody).remove();\r
-       equals( $("div", ibody).length, 1, "Check for JS error on add and delete of a table in IFrame" );\r
+       jQuery("<table/>", ibody).append("<tr><td>cell</td></tr>").appendTo(ibody);\r
+       jQuery("table", ibody).remove();\r
+       equals( jQuery("div", ibody).length, 1, "Check for JS error on add and delete of a table in IFrame" );\r
 \r
        // using contents will get comments regular, text, and comment nodes\r
-       var c = $("#nonnodes").contents().contents();\r
+       var c = jQuery("#nonnodes").contents().contents();\r
        equals( c.length, 1, "Check node,textnode,comment contents is just one" );\r
        equals( c[0].nodeValue, "hi", "Check node,textnode,comment contents is just the one from span" );\r
 });\r
 \r
-test("$.makeArray", function(){\r
+test("jQuery.makeArray", function(){\r
        expect(15);\r
 \r
-       equals( $.makeArray($('html>*'))[0].nodeName, "HEAD", "Pass makeArray a jQuery object" );\r
+       equals( jQuery.makeArray(jQuery('html>*'))[0].nodeName, "HEAD", "Pass makeArray a jQuery object" );\r
 \r
-       equals( $.makeArray(document.getElementsByName("PWD")).slice(0,1)[0].name, "PWD", "Pass makeArray a nodelist" );\r
+       equals( jQuery.makeArray(document.getElementsByName("PWD")).slice(0,1)[0].name, "PWD", "Pass makeArray a nodelist" );\r
 \r
-       equals( (function(){ return $.makeArray(arguments); })(1,2).join(""), "12", "Pass makeArray an arguments array" );\r
+       equals( (function(){ return jQuery.makeArray(arguments); })(1,2).join(""), "12", "Pass makeArray an arguments array" );\r
 \r
-       equals( $.makeArray([1,2,3]).join(""), "123", "Pass makeArray a real array" );\r
+       equals( jQuery.makeArray([1,2,3]).join(""), "123", "Pass makeArray a real array" );\r
 \r
-       equals( $.makeArray().length, 0, "Pass nothing to makeArray and expect an empty array" );\r
+       equals( jQuery.makeArray().length, 0, "Pass nothing to makeArray and expect an empty array" );\r
 \r
-       equals( $.makeArray( 0 )[0], 0 , "Pass makeArray a number" );\r
+       equals( jQuery.makeArray( 0 )[0], 0 , "Pass makeArray a number" );\r
 \r
-       equals( $.makeArray( "foo" )[0], "foo", "Pass makeArray a string" );\r
+       equals( jQuery.makeArray( "foo" )[0], "foo", "Pass makeArray a string" );\r
 \r
-       equals( $.makeArray( true )[0].constructor, Boolean, "Pass makeArray a boolean" );\r
+       equals( jQuery.makeArray( true )[0].constructor, Boolean, "Pass makeArray a boolean" );\r
 \r
-       equals( $.makeArray( document.createElement("div") )[0].nodeName, "DIV", "Pass makeArray a single node" );\r
+       equals( jQuery.makeArray( document.createElement("div") )[0].nodeName, "DIV", "Pass makeArray a single node" );\r
 \r
-       equals( $.makeArray( {length:2, 0:"a", 1:"b"} ).join(""), "ab", "Pass makeArray an array like map (with length)" );\r
+       equals( jQuery.makeArray( {length:2, 0:"a", 1:"b"} ).join(""), "ab", "Pass makeArray an array like map (with length)" );\r
 \r
-       ok( !!$.makeArray( document.documentElement.childNodes ).slice(0,1)[0].nodeName, "Pass makeArray a childNodes array" );\r
+       ok( !!jQuery.makeArray( document.documentElement.childNodes ).slice(0,1)[0].nodeName, "Pass makeArray a childNodes array" );\r
 \r
        //function, is tricky as it has length\r
-       equals( $.makeArray( function(){ return 1;} )[0](), 1, "Pass makeArray a function" );\r
+       equals( jQuery.makeArray( function(){ return 1;} )[0](), 1, "Pass makeArray a function" );\r
        //window, also has length\r
-       equals( $.makeArray(window)[0], window, "Pass makeArray the window" );\r
+       equals( jQuery.makeArray(window)[0], window, "Pass makeArray the window" );\r
 \r
-       equals( $.makeArray(/a/)[0].constructor, RegExp, "Pass makeArray a regex" );\r
+       equals( jQuery.makeArray(/a/)[0].constructor, RegExp, "Pass makeArray a regex" );\r
 \r
-       ok( $.makeArray(document.getElementById('form')).length >= 13, "Pass makeArray a form (treat as elements)" );\r
+       ok( jQuery.makeArray(document.getElementById('form')).length >= 13, "Pass makeArray a form (treat as elements)" );\r
 });\r
index aac1655..2e2bb42 100644 (file)
@@ -3,7 +3,7 @@ module("dimensions");
 test("innerWidth()", function() {
        expect(3);
 
-       var $div = $("#nothiddendiv");
+       var $div = jQuery("#nothiddendiv");
        // set styles
        $div.css({
                margin: 10,
@@ -24,7 +24,7 @@ test("innerWidth()", function() {
 test("innerHeight()", function() {
        expect(3);
        
-       var $div = $("#nothiddendiv");
+       var $div = jQuery("#nothiddendiv");
        // set styles
        $div.css({
                margin: 10,
@@ -45,7 +45,7 @@ test("innerHeight()", function() {
 test("outerWidth()", function() {
        expect(6);
        
-       var $div = $("#nothiddendiv");
+       var $div = jQuery("#nothiddendiv");
        $div.css("width", 30);
        
        equals($div.outerWidth(), 30, "Test with only width set");
@@ -67,7 +67,7 @@ test("outerWidth()", function() {
 test("outerHeight()", function() {
        expect(6);
        
-       var $div = $("#nothiddendiv");
+       var $div = jQuery("#nothiddendiv");
        $div.css("height", 30);
        
        equals($div.outerHeight(), 30, "Test with only width set");
index c393f6d..40dc187 100644 (file)
@@ -6,9 +6,9 @@ test("bind(), with data", function() {
                ok( event.data, "bind() with data, check passed data exists" );
                equals( event.data.foo, "bar", "bind() with data, Check value of passed data" );
        };
-       $("#firstp").bind("click", {foo: "bar"}, handler).click().unbind("click", handler);
+       jQuery("#firstp").bind("click", {foo: "bar"}, handler).click().unbind("click", handler);
 
-       ok( !jQuery.data($("#firstp")[0], "events"), "Event handler unbound when using data." );
+       ok( !jQuery.data(jQuery("#firstp")[0], "events"), "Event handler unbound when using data." );
 });
 
 test("bind(), with data, trigger with data", function() {
@@ -19,7 +19,7 @@ test("bind(), with data, trigger with data", function() {
                ok( data, "Check trigger data" );
                equals( data.bar, "foo", "Check value of trigger data" );
        };
-       $("#firstp").bind("click", {foo: "bar"}, handler).trigger("click", [{bar: "foo"}]).unbind("click", handler);
+       jQuery("#firstp").bind("click", {foo: "bar"}, handler).trigger("click", [{bar: "foo"}]).unbind("click", handler);
 });
 
 test("bind(), multiple events at once", function() {
@@ -32,7 +32,7 @@ test("bind(), multiple events at once", function() {
                else if (event.type == "mouseover")
                        mouseoverCounter += 1;
        };
-       $("#firstp").bind("click mouseover", handler).trigger("click").trigger("mouseover");
+       jQuery("#firstp").bind("click mouseover", handler).trigger("click").trigger("mouseover");
        equals( clickCounter, 1, "bind() with multiple events at once" );
        equals( mouseoverCounter, 1, "bind() with multiple events at once" );
 });
@@ -42,7 +42,7 @@ test("bind(), no data", function() {
        var handler = function(event) {
                ok ( !event.data, "Check that no data is added to the event object" );
        };
-       $("#firstp").bind("click", handler).trigger("click");
+       jQuery("#firstp").bind("click", handler).trigger("click");
 });
 
 test("bind(), iframes", function() {
@@ -53,7 +53,7 @@ test("bind(), iframes", function() {
        //
        // var input = doc.getElementsByTagName("input")[0];
        //
-       // $(input).bind("click",function() {
+       // jQuery(input).bind("click",function() {
        //      ok( true, "Binding to element inside iframe" );
        // }).click();
 });
@@ -64,89 +64,89 @@ test("bind(), trigger change on select", function() {
        function selectOnChange(event) {
                equals( event.data, counter++, "Event.data is not a global event object" );
        };
-       $("#form select").each(function(i){
-               $(this).bind('change', i, selectOnChange);
+       jQuery("#form select").each(function(i){
+               jQuery(this).bind('change', i, selectOnChange);
        }).trigger('change');
 });
 
 test("bind(), namespaced events, cloned events", function() {
        expect(6);
 
-       $("#firstp").bind("custom.test",function(e){
+       jQuery("#firstp").bind("custom.test",function(e){
                ok(true, "Custom event triggered");
        });
 
-       $("#firstp").bind("click",function(e){
+       jQuery("#firstp").bind("click",function(e){
                ok(true, "Normal click triggered");
        });
 
-       $("#firstp").bind("click.test",function(e){
+       jQuery("#firstp").bind("click.test",function(e){
                ok(true, "Namespaced click triggered");
        });
 
        // Trigger both bound fn (2)
-       $("#firstp").trigger("click");
+       jQuery("#firstp").trigger("click");
 
        // Trigger one bound fn (1)
-       $("#firstp").trigger("click.test");
+       jQuery("#firstp").trigger("click.test");
 
        // Remove only the one fn
-       $("#firstp").unbind("click.test");
+       jQuery("#firstp").unbind("click.test");
 
        // Trigger the remaining fn (1)
-       $("#firstp").trigger("click");
+       jQuery("#firstp").trigger("click");
 
        // Remove the remaining fn
-       $("#firstp").unbind(".test");
+       jQuery("#firstp").unbind(".test");
 
        // Trigger the remaining fn (0)
-       $("#firstp").trigger("custom");
+       jQuery("#firstp").trigger("custom");
 
        // using contents will get comments regular, text, and comment nodes
-       $("#nonnodes").contents().bind("tester", function () {
+       jQuery("#nonnodes").contents().bind("tester", function () {
                equals(this.nodeType, 1, "Check node,textnode,comment bind just does real nodes" );
        }).trigger("tester");
 
        // Make sure events stick with appendTo'd elements (which are cloned) #2027
-       $("<a href='#fail' class='test'>test</a>").click(function(){ return false; }).appendTo("p");
-       ok( $("a.test:first").triggerHandler("click") === false, "Handler is bound to appendTo'd elements" );
+       jQuery("<a href='#fail' class='test'>test</a>").click(function(){ return false; }).appendTo("p");
+       ok( jQuery("a.test:first").triggerHandler("click") === false, "Handler is bound to appendTo'd elements" );
 });
 
 test("trigger() shortcuts", function() {
        expect(6);
-       $('<li><a href="#">Change location</a></li>').prependTo('#firstUL').find('a').bind('click', function() {
-               var close = $('spanx', this); // same with $(this).find('span');
+       jQuery('<li><a href="#">Change location</a></li>').prependTo('#firstUL').find('a').bind('click', function() {
+               var close = jQuery('spanx', this); // same with jQuery(this).find('span');
                equals( close.length, 0, "Context element does not exist, length must be zero" );
                ok( !close[0], "Context element does not exist, direct access to element must return undefined" );
                return false;
        }).click();
        
-       $("#check1").click(function() {
+       jQuery("#check1").click(function() {
                ok( true, "click event handler for checkbox gets fired twice, see #815" );
        }).click();
        
        var counter = 0;
-       $('#firstp')[0].onclick = function(event) {
+       jQuery('#firstp')[0].onclick = function(event) {
                counter++;
        };
-       $('#firstp').click();
+       jQuery('#firstp').click();
        equals( counter, 1, "Check that click, triggers onclick event handler also" );
        
        var clickCounter = 0;
-       $('#simon1')[0].onclick = function(event) {
+       jQuery('#simon1')[0].onclick = function(event) {
                clickCounter++;
        };
-       $('#simon1').click();
+       jQuery('#simon1').click();
        equals( clickCounter, 1, "Check that click, triggers onclick event handler on an a tag also" );
        
-       $('<img />').load(function(){
+       jQuery('<img />').load(function(){
                ok( true, "Trigger the load event, using the shortcut .load() (#2819)");
        }).load();
 });
 
 test("unbind(event)", function() {
        expect(8);
-       var el = $("#firstp");
+       var el = jQuery("#firstp");
        el.click(function() {
                ok( true, "Fake normal bind" );
        });
@@ -176,7 +176,7 @@ test("unbind(event)", function() {
                else if (event.type == "mouseover")
                        mouseoverCounter += 1;
        };
-       $("#firstp").bind("click mouseover", handler).unbind("click mouseover", handler).trigger("click").trigger("mouseover");
+       jQuery("#firstp").bind("click mouseover", handler).unbind("click mouseover", handler).trigger("click").trigger("mouseover");
        equals( clickCounter, 0, "unbind() with multiple events at once" );
        equals( mouseoverCounter, 0, "unbind() with multiple events at once" );
 });
@@ -215,50 +215,50 @@ test("trigger(event, [data], [fn])", function() {
        };
 
        // Simulate a "native" click
-       $("#firstp")[0].click = function(){
+       jQuery("#firstp")[0].click = function(){
                ok( true, "Native call was triggered" );
        };
 
        // Triggers handlrs and native
        // Trigger 5
-       $("#firstp").bind("click", handler).trigger("click", [1, "2", "abc"]);
+       jQuery("#firstp").bind("click", handler).trigger("click", [1, "2", "abc"]);
 
        // Triggers handlers, native, and extra fn
        // Triggers 9
-       $("#firstp").trigger("click", [1, "2", "abc"], handler4);
+       jQuery("#firstp").trigger("click", [1, "2", "abc"], handler4);
 
        // Simulate a "native" click
-       $("#firstp")[0].click = function(){
+       jQuery("#firstp")[0].click = function(){
                ok( false, "Native call was triggered" );
        };
 
        // Triggers handlers, native, and extra fn
        // Triggers 7
-       $("#firstp").trigger("click", [1, "2", "abc"], handler2);
+       jQuery("#firstp").trigger("click", [1, "2", "abc"], handler2);
 
        // Trigger only the handlers (no native)
        // Triggers 5
-       equals( $("#firstp").triggerHandler("click", [1, "2", "abc"]), "test", "Verify handler response" );
+       equals( jQuery("#firstp").triggerHandler("click", [1, "2", "abc"]), "test", "Verify handler response" );
 
        // Trigger only the handlers (no native) and extra fn
        // Triggers 8
-       equals( $("#firstp").triggerHandler("click", [1, "2", "abc"], handler2), false, "Verify handler response" );
+       equals( jQuery("#firstp").triggerHandler("click", [1, "2", "abc"], handler2), false, "Verify handler response" );
 
        // Build fake click event to pass in
        var eventObj = jQuery.event.fix({ type: "foo", target: document.body });
 
        // Trigger only the handlers (no native), with external event obj
        // Triggers 5
-       equals( $("#firstp").triggerHandler("click", [eventObj, 1, "2", "abc"]), "test", "Verify handler response" );
+       equals( jQuery("#firstp").triggerHandler("click", [eventObj, 1, "2", "abc"]), "test", "Verify handler response" );
 
        // Trigger only the handlers (no native) and extra fn, with external event obj
        // Triggers 9
        eventObj = jQuery.event.fix({ type: "foo", target: document.body });
-       equals( $("#firstp").triggerHandler("click", [eventObj, 1, "2", "abc"], handler), "test", "Verify handler response" );
+       equals( jQuery("#firstp").triggerHandler("click", [eventObj, 1, "2", "abc"], handler), "test", "Verify handler response" );
        
        var pass = true;
        try {
-               $('input:first')
+               jQuery('input:first')
                        .hide()
                        .trigger('focus');
        } catch(e) {
@@ -268,11 +268,11 @@ test("trigger(event, [data], [fn])", function() {
 
        // have the extra handler override the return
        // Triggers 9
-       equals( $("#firstp").triggerHandler("click", [1, "2", "abc"], handler3), "newVal", "Verify triggerHandler return is overwritten by extra function" );
+       equals( jQuery("#firstp").triggerHandler("click", [1, "2", "abc"], handler3), "newVal", "Verify triggerHandler return is overwritten by extra function" );
 
        // have the extra handler leave the return value alone
        // Triggers 9
-       equals( $("#firstp").triggerHandler("click", [1, "2", "abc"], handler4), "test", "Verify triggerHandler return is not overwritten by extra function" );
+       equals( jQuery("#firstp").triggerHandler("click", [1, "2", "abc"], handler4), "test", "Verify triggerHandler return is not overwritten by extra function" );
 });
 
 test("toggle(Function, Function, ...)", function() {
@@ -282,18 +282,18 @@ test("toggle(Function, Function, ...)", function() {
                fn1 = function(e) { count++; },
                fn2 = function(e) { count--; },
                preventDefault = function(e) { e.preventDefault() },
-               link = $('#mark');
+               link = jQuery('#mark');
        link.click(preventDefault).click().toggle(fn1, fn2).click().click().click().click().click();
        equals( count, 1, "Check for toggle(fn, fn)" );
 
-       $("#firstp").toggle(function () {
+       jQuery("#firstp").toggle(function () {
                equals(arguments.length, 4, "toggle correctly passes through additional triggered arguments, see #1701" )
        }, function() {}).trigger("click", [ 1, 2, 3 ]);
 
        var first = 0;
-       $("#simon1").one("click", function() {
+       jQuery("#simon1").one("click", function() {
                ok( true, "Execute event only once" );
-               $(this).toggle(function() {
+               jQuery(this).toggle(function() {
                        equals( first++, 0, "toggle(Function,Function) assigned from within one('xxx'), see #1054" );
                }, function() {
                        equals( first, 1, "toggle(Function,Function) assigned from within one('xxx'), see #1054" );
@@ -314,7 +314,7 @@ test("toggle(Function, Function, ...)", function() {
                }
        ];
        
-       var $div = $("<div>&nbsp;</div>").toggle( fns[0], fns[1], fns[2] );
+       var $div = jQuery("<div>&nbsp;</div>").toggle( fns[0], fns[1], fns[2] );
        $div.click();
        equals( turn, 1, "Trying toggle with 3 functions, attempt 1 yields 1");
        $div.click();
@@ -327,7 +327,7 @@ test("toggle(Function, Function, ...)", function() {
        equals( turn, 2, "Trying toggle with 3 functions, attempt 5 yields 2");
        
        $div.unbind('click',fns[0]);
-       var data = $.data( $div[0], 'events' );
+       var data = jQuery.data( $div[0], 'events' );
        ok( !data, "Unbinding one function from toggle unbinds them all");
 });
 
@@ -341,7 +341,7 @@ test("jQuery(function($) {})", function() {
 
 test("event properties", function() {
        stop();
-       $("#simon1").click(function(event) {
+       jQuery("#simon1").click(function(event) {
                ok( event.timeStamp, "assert event.timeStamp is present" );
                start();
        }).click();
index cb131ae..f8b6383 100644 (file)
@@ -4,8 +4,8 @@ test("animate(Hash, Object, Function)", function() {
        expect(1);
        stop();
        var hash = {opacity: 'show'};
-       var hashCopy = $.extend({}, hash);
-       $('#foo').animate(hash, 0, function() {
+       var hashCopy = jQuery.extend({}, hash);
+       jQuery('#foo').animate(hash, 0, function() {
                equals( hash.opacity, hashCopy.opacity, 'Check if animate changed the hash parameter' );
                start();
        });
@@ -17,7 +17,7 @@ test("animate option (queue === false)", function () {
 
        var order = [];
 
-       var $foo = $("#foo");
+       var $foo = jQuery("#foo");
        $foo.animate({width:'100px'}, 200, function () {
                // should finish after unqueued animation so second
                order.push(2);
@@ -38,7 +38,7 @@ test("queue() defaults to 'fx' type", function () {
        expect(2);
        stop();
 
-       var $foo = $("#foo");
+       var $foo = jQuery("#foo");
        $foo.queue("fx", [ "sample", "array" ]);
        var arr = $foo.queue();
        isSet(arr, [ "sample", "array" ], "queue() got an array set with type 'fx'");
@@ -55,7 +55,7 @@ test("stop()", function() {
        expect(3);
        stop();
 
-       var $foo = $("#nothiddendiv");
+       var $foo = jQuery("#nothiddendiv");
        var w = 0;
        $foo.hide().width(200).width();
 
@@ -78,7 +78,7 @@ test("stop() - several in queue", function() {
        expect(4);
        stop();
 
-       var $foo = $("#nothiddendiv");
+       var $foo = jQuery("#nothiddendiv");
        var w = 0;
        $foo.hide().width(200).width();
 
@@ -103,7 +103,7 @@ test("stop(clearQueue)", function() {
        expect(4);
        stop();
 
-       var $foo = $("#nothiddendiv");
+       var $foo = jQuery("#nothiddendiv");
        var w = 0;
        $foo.hide().width(200).width();
 
@@ -130,7 +130,7 @@ test("stop(clearQueue, gotoEnd)", function() {
        expect(3);
        stop();
 
-       var $foo = $("#nothiddendiv");
+       var $foo = jQuery("#nothiddendiv");
        var w = 0;
        $foo.hide().width(200).width();
 
@@ -156,7 +156,7 @@ test("stop(clearQueue, gotoEnd)", function() {
 
 test("toggle()", function() {
        expect(3);
-       var x = $("#foo");
+       var x = jQuery("#foo");
        ok( x.is(":visible"), "is visible" );
        x.toggle();
        ok( x.is(":hidden"), "is hidden" );
@@ -167,68 +167,68 @@ test("toggle()", function() {
 var visible = {
        Normal: function(elem){},
        "CSS Hidden": function(elem){
-               $(this).addClass("hidden");
+               jQuery(this).addClass("hidden");
        },
        "JS Hidden": function(elem){
-               $(this).hide();
+               jQuery(this).hide();
        }
 };
 
 var from = {
        "CSS Auto": function(elem,prop){
-               $(elem).addClass("auto" + prop)
+               jQuery(elem).addClass("auto" + prop)
                        .text("This is a long string of text.");
                return "";
        },
        "JS Auto": function(elem,prop){
-               $(elem).css(prop,"auto")
+               jQuery(elem).css(prop,"auto")
                        .text("This is a long string of text.");
                return "";
        },
        "CSS 100": function(elem,prop){
-               $(elem).addClass("large" + prop);
+               jQuery(elem).addClass("large" + prop);
                return "";
        },
        "JS 100": function(elem,prop){
-               $(elem).css(prop,prop == "opacity" ? 1 : "100px");
+               jQuery(elem).css(prop,prop == "opacity" ? 1 : "100px");
                return prop == "opacity" ? 1 : 100;
        },
        "CSS 50": function(elem,prop){
-               $(elem).addClass("med" + prop);
+               jQuery(elem).addClass("med" + prop);
                return "";
        },
        "JS 50": function(elem,prop){
-               $(elem).css(prop,prop == "opacity" ? 0.50 : "50px");
+               jQuery(elem).css(prop,prop == "opacity" ? 0.50 : "50px");
                return prop == "opacity" ? 0.5 : 50;
        },
        "CSS 0": function(elem,prop){
-               $(elem).addClass("no" + prop);
+               jQuery(elem).addClass("no" + prop);
                return "";
        },
        "JS 0": function(elem,prop){
-               $(elem).css(prop,prop == "opacity" ? 0 : "0px");
+               jQuery(elem).css(prop,prop == "opacity" ? 0 : "0px");
                return 0;
        }
 };
 
 var to = {
        "show": function(elem,prop){
-               $(elem).hide().addClass("wide"+prop);
+               jQuery(elem).hide().addClass("wide"+prop);
                return "show";
        },
        "hide": function(elem,prop){
-               $(elem).addClass("wide"+prop);
+               jQuery(elem).addClass("wide"+prop);
                return "hide";
        },
        "100": function(elem,prop){
-               $(elem).addClass("wide"+prop);
+               jQuery(elem).addClass("wide"+prop);
                return prop == "opacity" ? 1 : 100;
        },
        "50": function(elem,prop){
                return prop == "opacity" ? 0.50 : 50;
        },
        "0": function(elem,prop){
-               $(elem).addClass("noback");
+               jQuery(elem).addClass("noback");
                return 0;
        }
 };
@@ -339,7 +339,7 @@ jQuery.each( from, function(fn, f){
                                
                                if ( t_h == "show" ) {
                                        var old_h = jQuery.curCSS(this, "height");
-                                       $(elem).append("<br/>Some more text<br/>and some more...");
+                                       jQuery(elem).append("<br/>Some more text<br/>and some more...");
                                        ok(old_h != jQuery.css(this, "height" ), "Make sure height is auto.");
                                }
        
@@ -374,50 +374,50 @@ function checkState(){
 
 // Chaining Tests
 test("Chain fadeOut fadeIn", function() {
-       $('#fadein div').saveState().fadeOut('fast').fadeIn('fast',checkState);
+       jQuery('#fadein div').saveState().fadeOut('fast').fadeIn('fast',checkState);
 });
 test("Chain fadeIn fadeOut", function() {
-       $('#fadeout div').saveState().fadeIn('fast').fadeOut('fast',checkState);
+       jQuery('#fadeout div').saveState().fadeIn('fast').fadeOut('fast',checkState);
 });
 
 test("Chain hide show", function() {
-       $('#show div').saveState().hide('fast').show('fast',checkState);
+       jQuery('#show div').saveState().hide('fast').show('fast',checkState);
 });
 test("Chain show hide", function() {
-       $('#hide div').saveState().show('fast').hide('fast',checkState);
+       jQuery('#hide div').saveState().show('fast').hide('fast',checkState);
 });
 
 test("Chain toggle in", function() {
-       $('#togglein div').saveState().toggle('fast').toggle('fast',checkState);
+       jQuery('#togglein div').saveState().toggle('fast').toggle('fast',checkState);
 });
 test("Chain toggle out", function() {
-       $('#toggleout div').saveState().toggle('fast').toggle('fast',checkState);
+       jQuery('#toggleout div').saveState().toggle('fast').toggle('fast',checkState);
 });
 
 test("Chain slideDown slideUp", function() {
-       $('#slidedown div').saveState().slideDown('fast').slideUp('fast',checkState);
+       jQuery('#slidedown div').saveState().slideDown('fast').slideUp('fast',checkState);
 });
 test("Chain slideUp slideDown", function() {
-       $('#slideup div').saveState().slideUp('fast').slideDown('fast',checkState);
+       jQuery('#slideup div').saveState().slideUp('fast').slideDown('fast',checkState);
 });
 
 test("Chain slideToggle in", function() {
-       $('#slidetogglein div').saveState().slideToggle('fast').slideToggle('fast',checkState);
+       jQuery('#slidetogglein div').saveState().slideToggle('fast').slideToggle('fast',checkState);
 });
 test("Chain slideToggle out", function() {
-       $('#slidetoggleout div').saveState().slideToggle('fast').slideToggle('fast',checkState);
+       jQuery('#slidetoggleout div').saveState().slideToggle('fast').slideToggle('fast',checkState);
 });
 
 function makeTest( text ){
-       var elem = $("<div></div>")
+       var elem = jQuery("<div></div>")
                .attr("id", "test" + makeTest.id++)
                .addClass("box");
 
-       $("<h4></h4>")
+       jQuery("<h4></h4>")
                .text( text )
                .appendTo("#fx-tests")
                .click(function(){
-                       $(this).next().toggle();
+                       jQuery(this).next().toggle();
                })
                .after( elem );
 
index 55c3c43..8eacec9 100644 (file)
@@ -4,7 +4,7 @@ module("offset");
 var testwin = function(name, fn) {
        testwin[name] = load_offset_fixture(name);
        var interval = setInterval(function() {
-               if (testwin[name] && testwin[name].$ && testwin[name].$.isReady) {
+               if (testwin[name] && testwin[name].$ && testwin[name].jQuery.isReady) {
                        clearInterval(interval);
                        test(name, fn);
                }
@@ -23,30 +23,30 @@ var testwin = function(name, fn) {
 testwin("absolute", function() {
        var $w = testwin["absolute"].$;
        
-       equals( $w('#absolute-1').offset().top, 1, "$('#absolute-1').offset().top" );
-       equals( $w('#absolute-1').offset().left, 1, "$('#absolute-1').offset().left" );
+       equals( $w('#absolute-1').offset().top, 1, "jQuery('#absolute-1').offset().top" );
+       equals( $w('#absolute-1').offset().left, 1, "jQuery('#absolute-1').offset().left" );
        
-       equals( $w('#absolute-1-1').offset().top, 5, "$('#absolute-1-1').offset().top" );
-       equals( $w('#absolute-1-1').offset().left, 5, "$('#absolute-1-1').offset().left" );
+       equals( $w('#absolute-1-1').offset().top, 5, "jQuery('#absolute-1-1').offset().top" );
+       equals( $w('#absolute-1-1').offset().left, 5, "jQuery('#absolute-1-1').offset().left" );
        
-       equals( $w('#absolute-1-1-1').offset().top, 9, "$('#absolute-1-1-1').offset().top" );
-       equals( $w('#absolute-1-1-1').offset().left, 9, "$('#absolute-1-1-1').offset().left" );
+       equals( $w('#absolute-1-1-1').offset().top, 9, "jQuery('#absolute-1-1-1').offset().top" );
+       equals( $w('#absolute-1-1-1').offset().left, 9, "jQuery('#absolute-1-1-1').offset().left" );
        
-       equals( $w('#absolute-2').offset().top, 20, "$('#absolute-2').offset().top" );
-       equals( $w('#absolute-2').offset().left, 20, "$('#absolute-2').offset().left" );
+       equals( $w('#absolute-2').offset().top, 20, "jQuery('#absolute-2').offset().top" );
+       equals( $w('#absolute-2').offset().left, 20, "jQuery('#absolute-2').offset().left" );
        
        
-       equals( $w('#absolute-1').position().top, 0, "$('#absolute-1').position().top" );
-       equals( $w('#absolute-1').position().left, 0, "$('#absolute-1').position().left" );
+       equals( $w('#absolute-1').position().top, 0, "jQuery('#absolute-1').position().top" );
+       equals( $w('#absolute-1').position().left, 0, "jQuery('#absolute-1').position().left" );
        
-       equals( $w('#absolute-1-1').position().top, 1, "$('#absolute-1-1').position().top" );
-       equals( $w('#absolute-1-1').position().left, 1, "$('#absolute-1-1').position().left" );
+       equals( $w('#absolute-1-1').position().top, 1, "jQuery('#absolute-1-1').position().top" );
+       equals( $w('#absolute-1-1').position().left, 1, "jQuery('#absolute-1-1').position().left" );
        
-       equals( $w('#absolute-1-1-1').position().top, 1, "$('#absolute-1-1-1').position().top" );
-       equals( $w('#absolute-1-1-1').position().left, 1, "$('#absolute-1-1-1').position().left" );
+       equals( $w('#absolute-1-1-1').position().top, 1, "jQuery('#absolute-1-1-1').position().top" );
+       equals( $w('#absolute-1-1-1').position().left, 1, "jQuery('#absolute-1-1-1').position().left" );
        
-       equals( $w('#absolute-2').position().top, 19, "$('#absolute-2').position().top" );
-       equals( $w('#absolute-2').position().left, 19, "$('#absolute-2').position().left" );
+       equals( $w('#absolute-2').position().top, 19, "jQuery('#absolute-2').position().top" );
+       equals( $w('#absolute-2').position().left, 19, "jQuery('#absolute-2').position().left" );
        
        testwin["absolute"].close();
 });
@@ -55,29 +55,29 @@ testwin("relative", function() {
        var $w = testwin["relative"].$;
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#relative-1').offset().top, $.browser.msie ? 6 : 7, "$('#relative-1').offset().top" );
-       equals( $w('#relative-1').offset().left, 7, "$('#relative-1').offset().left" );
+       equals( $w('#relative-1').offset().top, jQuery.browser.msie ? 6 : 7, "jQuery('#relative-1').offset().top" );
+       equals( $w('#relative-1').offset().left, 7, "jQuery('#relative-1').offset().left" );
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#relative-1-1').offset().top, $.browser.msie ? 13 : 15, "$('#relative-1-1').offset().top" );
-       equals( $w('#relative-1-1').offset().left, 15, "$('#relative-1-1').offset().left" );
+       equals( $w('#relative-1-1').offset().top, jQuery.browser.msie ? 13 : 15, "jQuery('#relative-1-1').offset().top" );
+       equals( $w('#relative-1-1').offset().left, 15, "jQuery('#relative-1-1').offset().left" );
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#relative-2').offset().top, $.browser.msie ? 141 : 142, "$('#relative-2').offset().top" );
-       equals( $w('#relative-2').offset().left, 27, "$('#relative-2').offset().left" );
+       equals( $w('#relative-2').offset().top, jQuery.browser.msie ? 141 : 142, "jQuery('#relative-2').offset().top" );
+       equals( $w('#relative-2').offset().left, 27, "jQuery('#relative-2').offset().left" );
        
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#relative-1').position().top, $.browser.msie ? 5 : 6, "$('#relative-1').position().top" );
-       equals( $w('#relative-1').position().left, 6, "$('#relative-1').position().left" );
+       equals( $w('#relative-1').position().top, jQuery.browser.msie ? 5 : 6, "jQuery('#relative-1').position().top" );
+       equals( $w('#relative-1').position().left, 6, "jQuery('#relative-1').position().left" );
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#relative-1-1').position().top, $.browser.msie ? 4 : 5, "$('#relative-1-1').position().top" );
-       equals( $w('#relative-1-1').position().left, 5, "$('#relative-1-1').position().left" );
+       equals( $w('#relative-1-1').position().top, jQuery.browser.msie ? 4 : 5, "jQuery('#relative-1-1').position().top" );
+       equals( $w('#relative-1-1').position().left, 5, "jQuery('#relative-1-1').position().left" );
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#relative-2').position().top, $.browser.msie ? 140 : 141, "$('#relative-2').position().top" );
-       equals( $w('#relative-2').position().left, 26, "$('#relative-2').position().left" );
+       equals( $w('#relative-2').position().top, jQuery.browser.msie ? 140 : 141, "jQuery('#relative-2').position().top" );
+       equals( $w('#relative-2').position().left, 26, "jQuery('#relative-2').position().left" );
        
        testwin["relative"].close();
 });
@@ -86,50 +86,50 @@ testwin("static", function() {
        var $w = testwin["static"].$;
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#static-1').offset().top, $.browser.msie ? 6 : 7, "$('#static-1').offset().top" );
-       equals( $w('#static-1').offset().left, 7, "$('#static-1').offset().left" );
+       equals( $w('#static-1').offset().top, jQuery.browser.msie ? 6 : 7, "jQuery('#static-1').offset().top" );
+       equals( $w('#static-1').offset().left, 7, "jQuery('#static-1').offset().left" );
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#static-1-1').offset().top, $.browser.msie ? 13 : 15, "$('#static-1-1').offset().top" );
-       equals( $w('#static-1-1').offset().left, 15, "$('#static-1-1').offset().left" );
+       equals( $w('#static-1-1').offset().top, jQuery.browser.msie ? 13 : 15, "jQuery('#static-1-1').offset().top" );
+       equals( $w('#static-1-1').offset().left, 15, "jQuery('#static-1-1').offset().left" );
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#static-1-1-1').offset().top, $.browser.msie ? 20 : 23, "$('#static-1-1-1').offset().top" );
-       equals( $w('#static-1-1-1').offset().left, 23, "$('#static-1-1-1').offset().left" );
+       equals( $w('#static-1-1-1').offset().top, jQuery.browser.msie ? 20 : 23, "jQuery('#static-1-1-1').offset().top" );
+       equals( $w('#static-1-1-1').offset().left, 23, "jQuery('#static-1-1-1').offset().left" );
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#static-2').offset().top, $.browser.msie ? 121 : 122, "$('#static-2').offset().top" );
-       equals( $w('#static-2').offset().left, 7, "$('#static-2').offset().left" );
+       equals( $w('#static-2').offset().top, jQuery.browser.msie ? 121 : 122, "jQuery('#static-2').offset().top" );
+       equals( $w('#static-2').offset().left, 7, "jQuery('#static-2').offset().left" );
        
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#static-1').position().top, $.browser.msie ? 5 : 6, "$('#static-1').position().top" );
-       equals( $w('#static-1').position().left, 6, "$('#static-1').position().left" );
+       equals( $w('#static-1').position().top, jQuery.browser.msie ? 5 : 6, "jQuery('#static-1').position().top" );
+       equals( $w('#static-1').position().left, 6, "jQuery('#static-1').position().left" );
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#static-1-1').position().top, $.browser.msie ? 12 : 14, "$('#static-1-1').position().top" );
-       equals( $w('#static-1-1').position().left, 14, "$('#static-1-1').position().left" );
+       equals( $w('#static-1-1').position().top, jQuery.browser.msie ? 12 : 14, "jQuery('#static-1-1').position().top" );
+       equals( $w('#static-1-1').position().left, 14, "jQuery('#static-1-1').position().left" );
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#static-1-1-1').position().top, $.browser.msie ? 19 : 22, "$('#static-1-1-1').position().top" );
-       equals( $w('#static-1-1-1').position().left, 22, "$('#static-1-1-1').position().left" );
+       equals( $w('#static-1-1-1').position().top, jQuery.browser.msie ? 19 : 22, "jQuery('#static-1-1-1').position().top" );
+       equals( $w('#static-1-1-1').position().left, 22, "jQuery('#static-1-1-1').position().left" );
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#static-2').position().top, $.browser.msie ? 120 : 121, "$('#static-2').position().top" );
-       equals( $w('#static-2').position().left, 6, "$('#static-2').position().left" );
+       equals( $w('#static-2').position().top, jQuery.browser.msie ? 120 : 121, "jQuery('#static-2').position().top" );
+       equals( $w('#static-2').position().left, 6, "jQuery('#static-2').position().left" );
        
        testwin["static"].close();
 });
 
-if ( !$.browser.msie || ($.browser.msie && parseInt($.browser.version) > 6) )
+if ( !jQuery.browser.msie || (jQuery.browser.msie && parseInt(jQuery.browser.version) > 6) )
        testwin("fixed", function() {
                var $w = testwin["fixed"].$;
        
-               equals( $w('#fixed-1').offset().top, 1001, "$('#fixed-1').offset().top" );
-               equals( $w('#fixed-1').offset().left, $.browser.msie ? 994 : 1001, "$('#fixed-1').offset().left" );
+               equals( $w('#fixed-1').offset().top, 1001, "jQuery('#fixed-1').offset().top" );
+               equals( $w('#fixed-1').offset().left, jQuery.browser.msie ? 994 : 1001, "jQuery('#fixed-1').offset().left" );
        
-               equals( $w('#fixed-2').offset().top, 1021, "$('#fixed-2').offset().top" );
-               equals( $w('#fixed-2').offset().left, $.browser.msie ? 1014 : 1021, "$('#fixed-2').offset().left" );
+               equals( $w('#fixed-2').offset().top, 1021, "jQuery('#fixed-2').offset().top" );
+               equals( $w('#fixed-2').offset().left, jQuery.browser.msie ? 1014 : 1021, "jQuery('#fixed-2').offset().left" );
        
                testwin["fixed"].close();
        });
@@ -137,14 +137,14 @@ if ( !$.browser.msie || ($.browser.msie && parseInt($.browser.version) > 6) )
 testwin("table", function() {
        var $w = testwin["table"].$;
        
-       equals( $w('#table-1').offset().top, 6, "$('#table-1').offset().top" );
-       equals( $w('#table-1').offset().left, 6, "$('#table-1').offset().left" );
+       equals( $w('#table-1').offset().top, 6, "jQuery('#table-1').offset().top" );
+       equals( $w('#table-1').offset().left, 6, "jQuery('#table-1').offset().left" );
        
-       equals( $w('#th-1').offset().top, 10, "$('#table-1').offset().top" );
-       equals( $w('#th-1').offset().left, 10, "$('#table-1').offset().left" );
+       equals( $w('#th-1').offset().top, 10, "jQuery('#table-1').offset().top" );
+       equals( $w('#th-1').offset().left, 10, "jQuery('#table-1').offset().left" );
        
-       equals( $w('#th-2').offset().top, 10, "$('#table-1').offset().top" );
-       equals( $w('#th-2').offset().left, 116, "$('#table-1').offset().left" );
+       equals( $w('#th-2').offset().top, 10, "jQuery('#table-1').offset().top" );
+       equals( $w('#th-2').offset().left, 116, "jQuery('#table-1').offset().left" );
        
        testwin["table"].close();
 });
@@ -153,12 +153,12 @@ testwin("scroll", function() {
        var $w = testwin["scroll"].$;
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#scroll-1').offset().top, $.browser.msie ? 6 : 7, "$('#scroll-1').offset().top" );
-       equals( $w('#scroll-1').offset().left, 7, "$('#scroll-1').offset().left" );
+       equals( $w('#scroll-1').offset().top, jQuery.browser.msie ? 6 : 7, "jQuery('#scroll-1').offset().top" );
+       equals( $w('#scroll-1').offset().left, 7, "jQuery('#scroll-1').offset().left" );
        
        // IE is collapsing the top margin of 1px
-       equals( $w('#scroll-1-1').offset().top, $.browser.msie ? 9 : 11, "$('#scroll-1-1').offset().top" );
-       equals( $w('#scroll-1-1').offset().left, 11, "$('#scroll-1-1').offset().left" );
+       equals( $w('#scroll-1-1').offset().top, jQuery.browser.msie ? 9 : 11, "jQuery('#scroll-1-1').offset().top" );
+       equals( $w('#scroll-1-1').offset().left, 11, "jQuery('#scroll-1-1').offset().left" );
        
        testwin["scroll"].close();
 });
\ No newline at end of file
index 07c4434..c8a6e93 100644 (file)
@@ -2,8 +2,8 @@ module("selector");
 
 test("element", function() {
        expect(9);
-       ok( $("*").size() >= 30, "Select all" );
-       var all = $("*"), good = true;
+       ok( jQuery("*").size() >= 30, "Select all" );
+       var all = jQuery("*"), good = true;
        for ( var i = 0; i < all.length; i++ )
                if ( all[i].nodeType == 8 )
                        good = false;
@@ -12,18 +12,18 @@ test("element", function() {
        t( "Element Selector", "body", ["body"] );
        t( "Element Selector", "html", ["html"] );
        t( "Parent Element", "div p", ["firstp","ap","sndp","en","sap","first"] );
-       equals( $("param", "#object1").length, 2, "Object/param as context" );
+       equals( jQuery("param", "#object1").length, 2, "Object/param as context" );
        
-       ok( $("#length").length, '&lt;input name="length"&gt; cannot be found under IE, see #945' );
-       ok( $("#lengthtest input").length, '&lt;input name="length"&gt; cannot be found under IE, see #945' );
+       ok( jQuery("#length").length, '&lt;input name="length"&gt; cannot be found under IE, see #945' );
+       ok( jQuery("#lengthtest input").length, '&lt;input name="length"&gt; cannot be found under IE, see #945' );
 });
 
 if ( location.protocol != "file:" ) {
        test("Element Selector with underscore", function() {
                expect(1);
                stop();
-               $.get("data/with_fries.xml", function(xml) {
-                       equals( $("foo_bar", xml).length, 1, "Element Selector with underscore" );
+               jQuery.get("data/with_fries.xml", function(xml) {
+                       equals( jQuery("foo_bar", xml).length, 1, "Element Selector with underscore" );
                        start();
                });
        });
@@ -66,14 +66,14 @@ test("id", function() {
        t( "All Children of ID", "#foo > *", ["sndp", "en", "sap"] );
        t( "All Children of ID with no children", "#firstUL/*", [] );
        
-       $('<a name="tName1">tName1 A</a><a name="tName2">tName2 A</a><div id="tName1">tName1 Div</div>').appendTo('#main');
-       equals( $("#tName1")[0].id, 'tName1', "ID selector with same value for a name attribute" );
-       equals( $("#tName2").length, 0, "ID selector non-existing but name attribute on an A tag" );
+       jQuery('<a name="tName1">tName1 A</a><a name="tName2">tName2 A</a><div id="tName1">tName1 Div</div>').appendTo('#main');
+       equals( jQuery("#tName1")[0].id, 'tName1', "ID selector with same value for a name attribute" );
+       equals( jQuery("#tName2").length, 0, "ID selector non-existing but name attribute on an A tag" );
        t( "ID Selector on Form with an input that has a name of 'id'", "#lengthtest", ["lengthtest"] );
        
        t( "ID selector with non-existant ancestor", "#asdfasdf #foobar", [] ); // bug #986
 
-       isSet( $("body").find("div#form"), [], "ID selector within the context of another element" );
+       isSet( jQuery("body").find("div#form"), [], "ID selector within the context of another element" );
 });
 
 test("class", function() {