97d9d60b5a82f13b93ed309fe996628d65427d5c
[jquery.git] / index.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html">
3 <head>
4         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5         <title>jQuery Test Suite</title>
6         <link rel="Stylesheet" media="screen" href="qunit/testsuite.css" />
7         <!-- Includes -->
8         <script type="text/javascript">
9                 var jQuery = this.jQuery || "jQuery", // For testing .noConflict()
10                         $ = this.$ || "$",
11                         originaljQuery = jQuery,
12                         original$ = $;
13         </script>
14         <script type="text/javascript" src="../dist/jquery.js"></script>
15         <script type="text/javascript" src="qunit/testrunner.js"></script>
16         <script type="text/javascript" src="data/testrunner.js"></script>
17         <script type="text/javascript" src="unit/core.js"></script>
18         <script type="text/javascript" src="unit/data.js"></script>
19         <script type="text/javascript" src="unit/dimensions.js"></script>
20         <script type="text/javascript" src="unit/selector.js"></script>
21         <script type="text/javascript" src="unit/event.js"></script>
22         <script type="text/javascript" src="unit/ajax.js"></script>
23         <script type="text/javascript" src="unit/fx.js"></script>
24 </head>
25
26 <body id="body">
27         <h1 id="header">jQuery Test Suite</h1>
28         <h2 id="banner"></h2>
29         <h2 id="userAgent"></h2>
30         
31         <!-- Test HTML -->
32         <div id="nothiddendiv" style="height:1px;background:white;" class="nothiddendiv">
33                 <div id="nothiddendivchild"></div>
34         </div>
35         <!-- this iframe is outside the #main so it won't reload constantly wasting time, but it means the tests must be "safe" and clean up after themselves -->
36         <iframe id="loadediframe" name="loadediframe" style="display:none;" src="data/iframe.html"></iframe>
37         <dl id="dl" style="display:none;">
38         <div id="main" style="display: none;">
39                 <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>
40                 <p id="ap">
41                         Here are some links in a normal paragraph: <a id="google" href="http://www.google.com/" title="Google!">Google</a>, 
42                         <a id="groups" href="http://groups.google.com/" class="GROUPS">Google Groups (Link)</a>. 
43                         This link has <code><a href="http://smin" id="anchor1">class="blog"</a></code>: 
44                         <a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a>
45
46                 </p>
47                 <div id="foo">
48                         <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
49                         <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>
50                         <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>
51
52                 </div>
53                 <span id="name+value"></span>
54                 <p id="first">Try them out:</p>
55                 <ul id="firstUL"></ul>
56                 <ol id="empty"></ol>
57                 <form id="form" action="formaction">
58                         <label for="action" id="label-for">Action:</label>
59                         <input type="text" name="action" value="Test" id="text1" maxlength="30"/>
60                         <input type="text" name="text2" value="Test" id="text2" disabled="disabled"/>
61                         <input type="radio" name="radio1" id="radio1" value="on"/>
62
63                         <input type="radio" name="radio2" id="radio2" checked="checked"/>
64                         <input type="checkbox" name="check" id="check1" checked="checked"/>
65                         <input type="checkbox" id="check2" value="on"/>
66
67                         <input type="hidden" name="hidden" id="hidden1"/>
68                         <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>
69                         
70                         <input type="text" id="name" name="name" value="name" />
71                         <input type="search" id="search" name="search" value="search" />
72                         
73                         <button id="button" name="button" type="button">Button</button>
74                         
75                         <textarea id="area1" maxlength="30">foobar</textarea>
76                         
77                         <select name="select1" id="select1">
78                                 <option id="option1a" class="emptyopt" value="">Nothing</option>
79                                 <option id="option1b" value="1">1</option>
80                                 <option id="option1c" value="2">2</option>
81                                 <option id="option1d" value="3">3</option>
82                         </select>
83                         <select name="select2" id="select2">
84                                 <option id="option2a" class="emptyopt" value="">Nothing</option>
85                                 <option id="option2b" value="1">1</option>
86                                 <option id="option2c" value="2">2</option>
87                                 <option id="option2d" selected="selected" value="3">3</option>
88                         </select>
89                         <select name="select3" id="select3" multiple="multiple">
90                                 <option id="option3a" class="emptyopt" value="">Nothing</option>
91                                 <option id="option3b" selected="selected" value="1">1</option>
92                                 <option id="option3c" selected="selected" value="2">2</option>
93                                 <option id="option3d" value="3">3</option>
94                                 <option id="option3e">no value</option>
95                         </select>
96                         
97                         <object id="object1" codebase="stupid">
98                                 <param name="p1" value="x1" />
99                                 <param name="p2" value="x2" />
100                         </object>
101                         
102                         <span id="台北Táiběi"></span>
103                         <span id="台北" lang="中文"></span>
104                         <span id="utf8class1" class="台北Táiběi 台北"></span>
105                         <span id="utf8class2" class="台北"></span>
106                         <span id="foo:bar" class="foo:bar"></span>
107                         <span id="test.foo[5]bar" class="test.foo[5]bar"></span>
108                         
109                         <foo_bar id="foobar">test element</foo_bar>
110                 </form>
111                 <b id="floatTest">Float test.</b>
112                 <iframe id="iframe" name="iframe"></iframe>
113                 <form id="lengthtest">
114                         <input type="text" id="length" name="test"/>
115                         <input type="text" id="idTest" name="id"/>
116                 </form>
117                 <table id="table"></table>
118
119                 <form id="name-tests">
120                         <!-- Inputs with a grouped name attribute. -->
121                         <input name="types[]" id="types_all" type="checkbox" value="all" />
122                         <input name="types[]" id="types_anime" type="checkbox" value="anime" />
123                         <input name="types[]" id="types_movie" type="checkbox" value="movie" />
124                 </form>
125                 
126                 <form id="testForm" action="#" method="get">
127                         <textarea name="T3" rows="2" cols="15">?
128 Z</textarea>
129                         <input type="hidden" name="H1" value="x" />
130                         <input type="hidden" name="H2" />
131                         <input name="PWD" type="password" value="" />
132                         <input name="T1" type="text" />
133                         <input name="T2" type="text" value="YES" readonly="readonly" />
134                         <input type="checkbox" name="C1" value="1" />
135                         <input type="checkbox" name="C2" />
136                         <input type="radio" name="R1" value="1" />
137                         <input type="radio" name="R1" value="2" />
138                         <input type="text" name="My Name" value="me" />
139                         <input type="reset" name="reset" value="NO" />
140                         <select name="S1">
141                                 <option value="abc">ABC</option>
142                                 <option value="abc">ABC</option>
143                                 <option value="abc">ABC</option>
144                         </select>
145                         <select name="S2" multiple="multiple" size="3">
146                                 <option value="abc">ABC</option>
147                                 <option value="abc">ABC</option>
148                                 <option value="abc">ABC</option>
149                         </select>
150                         <select name="S3">
151                                 <option selected="selected">YES</option>
152                         </select>
153                         <select name="S4">
154                                 <option value="" selected="selected">NO</option>
155                         </select>
156                         <input type="submit" name="sub1" value="NO" />
157                         <input type="submit" name="sub2" value="NO" />
158                         <input type="image" name="sub3" value="NO" />
159                         <button name="sub4" type="submit" value="NO">NO</button>
160                         <input name="D1" type="text" value="NO" disabled="disabled" />
161                         <input type="checkbox" checked="checked" disabled="disabled" name="D2" value="NO" />
162                         <input type="radio" name="D3" value="NO" checked="checked" disabled="disabled" />
163                         <select name="D4" disabled="disabled">
164                                 <option selected="selected" value="NO">NO</option>
165                         </select>
166                 </form>
167                 <div id="moretests">
168                         <form>
169                                 <div id="checkedtest" style="display:none;">
170                                         <input type="radio" name="checkedtestradios" checked="checked"/>
171                                         <input type="radio" name="checkedtestradios" value="on"/>
172                                         <input type="checkbox" name="checkedtestcheckboxes" checked="checked"/>
173                                         <input type="checkbox" name="checkedtestcheckboxes" />
174                                 </div>
175                         </form>
176                         <div id="nonnodes"><span>hi</span> there <!-- mon ami --></div>
177                         <div id="t2037">
178                                 <div><div class="hidden">hidden</div></div>
179                         </div>
180                 </div>
181                 
182                 <div id="tabindex-tests">
183                         <ol id="listWithTabIndex" tabindex="5">
184                                 <li id="foodWithNegativeTabIndex" tabindex="-1">Rice</li>
185                                 <li id="foodNoTabIndex">Beans</li>
186                                 <li>Blinis</li>
187                                 <li>Tofu</li>
188                         </ol>
189                 
190                         <div id="divWithNoTabIndex">I'm hungry. I should...</div>
191                         <span>...</span><a href="#" id="linkWithNoTabIndex">Eat lots of food</a><span>...</span> |
192                         <span>...</span><a href="#" id="linkWithTabIndex" tabindex="2">Eat a little food</a><span>...</span> |
193                         <span>...</span><a href="#" id="linkWithNegativeTabIndex" tabindex="-1">Eat no food</a><span>...</span>
194                         <span>...</span><a id="linkWithNoHrefWithNoTabIndex">Eat a burger</a><span>...</span>
195                         <span>...</span><a id="linkWithNoHrefWithTabIndex" tabindex="1">Eat some funyuns</a><span>...</span>
196                         <span>...</span><a id="linkWithNoHrefWithNegativeTabIndex" tabindex="-1">Eat some funyuns</a><span>...</span>
197                 </div>
198                 
199                 <div id="liveHandlerOrder">
200                         <span id="liveSpan1"><a href="#" id="liveLink1"></a></span>
201                         <span id="liveSpan2"><a href="#" id="liveLink2"></a></span>
202                 </div>
203         </div>
204         </dl>
205         <div id="fx-test-group" style="width:1px;height:1px;overflow:hidden;">
206                 <div id="fx-queue" name="test">
207                         <div id="fadein" class='chain test' name='div'>fadeIn<div>fadeIn</div></div>
208                         <div id="fadeout" class='chain test out'>fadeOut<div>fadeOut</div></div>
209                         
210                         <div id="show" class='chain test'>show<div>show</div></div>
211                         <div id="hide" class='chain test out'>hide<div>hide</div></div>
212                         
213                         <div id="togglein" class='chain test'>togglein<div>togglein</div></div>
214                         <div id="toggleout" class='chain test out'>toggleout<div>toggleout</div></div>
215                 
216                         
217                         <div id="slideup" class='chain test'>slideUp<div>slideUp</div></div>
218                         <div id="slidedown" class='chain test out'>slideDown<div>slideDown</div></div>
219                         
220                         <div id="slidetogglein" class='chain test'>slideToggleIn<div>slideToggleIn</div></div>
221                         <div id="slidetoggleout" class='chain test out'>slideToggleOut<div>slideToggleOut</div></div>
222                 </div>
223                 
224                 <div id="fx-tests"></div>
225         </div>
226         
227         <ol id="tests"></ol>
228 </body>
229 </html>