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