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