1a8c176a024838628013a5607aea0ad105e11174
[jquery.git] / index.html
1 <html id="html">
2 <head>
3         <script type="text/javascript" src="../dist/jquery.js"></script>
4         <script type="text/javascript" src="data/testrunner.js"></script>
5         <script>
6         $(document).ready(function(){
7                 $('#userAgent').html(navigator.userAgent);
8                 runTest(function() {
9                         {TESTS}
10                 });
11         });
12         </script>
13         <link rel="Stylesheet" media="screen" href="data/testsuite.css" />
14 </head>
15 <body id="body">
16         <h1 id="banner">jQuery Core - Test Suite</h1>
17         <h2 id="userAgent"></h2>
18         
19         <!-- Test HTML -->
20         <dl style="display:none;">
21         <div id="main" style="display: none;">
22                 <p id="firstp">See <a id="simon1" href="http://simon.incutio.com/archive/2003/03/25/#getElementsBySelector" rel="bookmark">this blog entry</a> for more information.</p>
23                 <p id="ap">
24                         Here are some links in a normal paragraph: <a id="google" href="http://www.google.com/" title="Google!">Google</a>, 
25                         <a id="groups" href="http://groups.google.com/">Google Groups</a>. 
26                         This link has <code><a href="#" id="anchor1">class="blog"</a></code>: 
27                         <a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a>
28
29                 </p>
30                 <div id="foo">
31                         <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
32                         <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>
33                         <p id="sap">This link has <code><a href="#2" id="anchor2">class="blog"</a></code>: <a href="http://simon.incutio.com/" class="blog link" id="simon">Simon Willison's Weblog</a></p>
34
35                 </div>
36                 <p id="first">Try them out:</p>
37                 <ul id="firstUL"></ul>
38                 <ol id="empty"></ol>
39                 <form id="form" action="formaction">
40                         <input type="text" name="action" value="Test" id="text1"/>
41                         <input type="text" name="text2" value="Test" id="text2" disabled="disabled"/>
42                         <input type="radio" name="radio1" id="radio1"/>
43
44                         <input type="radio" name="radio2" id="radio2" checked="checked"/>
45                         <input type="checkbox" name="check" id="check1" checked="checked"/>
46                         <input type="checkbox" id="check2"/>
47
48                         <input type="hidden" name="hidden" id="hidden1"/>
49                         <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>
50                         
51                         <input type="text" id="name" name="name" value="name" />
52                         
53                         <button id="button" name="button">Button</button>
54                         
55                         <textarea id="area1">foobar</textarea>
56                         
57                         <select name="select1" id="select1">
58                                 <option id="option1a" value="">Nothing</option>
59                                 <option id="option1b" value="1">1</option>
60                                 <option id="option1c" value="2">2</option>
61                                 <option id="option1d" value="3">3</option>
62                         </select>
63                         <select name="select2" id="select2">
64                                 <option id="option2a" value="">Nothing</option>
65                                 <option id="option2b" value="1">1</option>
66                                 <option id="option2c" value="2">2</option>
67                                 <option id="option2d" selected="selected" value="3">3</option>
68                         </select>
69                         <select name="select3" id="select3" multiple="multiple">
70                                 <option id="option3a" value="">Nothing</option>
71                                 <option id="option3b" selected="selected" value="1">1</option>
72                                 <option id="option3c" selected="selected" value="2">2</option>
73                                 <option id="option3d" value="3">3</option>
74                         </select>
75                 </form>
76                 <b id="floatTest">Float test.</b>
77         </div>
78         </dl>
79         
80         <ol id="tests"></ol>
81 </body>
82 </html>