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