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