Quick change to the license.
[jquery.git] / test / lib / test.js
1 function q() {
2         var r = new Array();
3         for ( var i = 0; i < arguments.length; i++ ) {
4                 r.push( document.getElementById( arguments[i] ) );
5         }
6         return r;
7 }
8
9 function t(a,b,c) {
10         var f = jQuery.find(b);
11         var s = "";
12         for ( var i = 0; i < f.length; i++ )
13                 s += (s?",":"") + '"' + f[i].id + '"';
14         isSet(f,q.apply(q,c),a + " (" + b + ")") ||
15                 diag( s );
16 }
17
18 function o(a) {
19         var li = document.createElement("li");
20         li.innerHTML = a;
21         if ( a.indexOf("#") == 0 )
22                 li.className = "comment";
23         else if ( a.indexOf("TODO") >= 0 )
24                 li.className = "todo";
25         else if ( a.indexOf("not ok") == 0 )
26                 li.classname = "fail";
27         else
28                 li.className = "pass";
29         document.getElementById("test").appendChild(li);
30 }
31
32 plan({noPlan: true});