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="data/testsuite.css" />
8 <script type="text/javascript">var jQuery = "jQuery", $ = "$"; // For testing .noConflict()</script>
9 <script type="text/javascript" src="../dist/jquery.js"></script>
10 <script type="text/javascript" src="data/testrunner.js"></script>
11 <script type="text/javascript" src="unit/core.js"></script>
12 <script type="text/javascript" src="unit/dimensions.js"></script>
13 <script type="text/javascript" src="unit/selector.js"></script>
14 <script type="text/javascript" src="unit/event.js"></script>
15 <script type="text/javascript" src="unit/ajax.js"></script>
16 <script type="text/javascript" src="unit/fx.js"></script>
20 <h1 id="header">jQuery Test Suite</h1>
22 <h2 id="userAgent"></h2>
25 <div id="nothiddendiv" style="height:1px;background:white;">
26 <div id="nothiddendivchild"></div>
28 <!-- 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 -->
29 <iframe id="loadediframe" name="loadediframe" style="display:none;" src="data/iframe.html"></iframe>
30 <dl id="dl" style="display:none;">
31 <div id="main" style="display: none;">
32 <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>
34 Here are some links in a normal paragraph: <a id="google" href="http://www.google.com/" title="Google!">Google</a>,
35 <a id="groups" href="http://groups.google.com/">Google Groups</a>.
36 This link has <code><a href="http://smin" id="anchor1">class="blog"</a></code>:
37 <a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a>
41 <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
42 <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>
43 <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>
46 <p id="first">Try them out:</p>
47 <ul id="firstUL"></ul>
49 <form id="form" action="formaction">
50 <input type="text" name="action" value="Test" id="text1" maxlength="30"/>
51 <input type="text" name="text2" value="Test" id="text2" disabled="disabled"/>
52 <input type="radio" name="radio1" id="radio1" value="on"/>
54 <input type="radio" name="radio2" id="radio2" checked="checked"/>
55 <input type="checkbox" name="check" id="check1" checked="checked"/>
56 <input type="checkbox" id="check2" value="on"/>
58 <input type="hidden" name="hidden" id="hidden1"/>
59 <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>
61 <input type="text" id="name" name="name" value="name" />
63 <button id="button" name="button">Button</button>
65 <textarea id="area1" maxlength="30">foobar</textarea>
67 <select name="select1" id="select1">
68 <option id="option1a" class="emptyopt" value="">Nothing</option>
69 <option id="option1b" value="1">1</option>
70 <option id="option1c" value="2">2</option>
71 <option id="option1d" value="3">3</option>
73 <select name="select2" id="select2">
74 <option id="option2a" class="emptyopt" value="">Nothing</option>
75 <option id="option2b" value="1">1</option>
76 <option id="option2c" value="2">2</option>
77 <option id="option2d" selected="selected" value="3">3</option>
79 <select name="select3" id="select3" multiple="multiple">
80 <option id="option3a" class="emptyopt" value="">Nothing</option>
81 <option id="option3b" selected="selected" value="1">1</option>
82 <option id="option3c" selected="selected" value="2">2</option>
83 <option id="option3d" value="3">3</option>
86 <object id="object1" codebase="stupid">
87 <param name="p1" value="x1" />
88 <param name="p2" value="x2" />
91 <span id="台北Táiběi"></span>
92 <span id="台北" lang="中文"></span>
93 <span id="utf8class1" class="台北Táiběi 台北"></span>
94 <span id="utf8class2" class="台北"></span>
95 <span id="foo:bar" class="foo:bar"></span>
96 <span id="test.foo[5]bar" class="test.foo[5]bar"></span>
98 <foo_bar id="foobar">test element</foo_bar>
100 <b id="floatTest">Float test.</b>
101 <iframe id="iframe" name="iframe"></iframe>
102 <form id="lengthtest">
103 <input type="text" id="length" name="test"/>
104 <input type="text" id="idTest" name="id"/>
106 <table id="table"></table>
109 <div id="fadein" class='chain test'>fadeIn<div>fadeIn</div></div>
110 <div id="fadeout" class='chain test out'>fadeOut<div>fadeOut</div></div>
112 <div id="show" class='chain test'>show<div>show</div></div>
113 <div id="hide" class='chain test out'>hide<div>hide</div></div>
115 <div id="togglein" class='chain test'>togglein<div>togglein</div></div>
116 <div id="toggleout" class='chain test out'>toggleout<div>toggleout</div></div>
119 <div id="slideup" class='chain test'>slideUp<div>slideUp</div></div>
120 <div id="slidedown" class='chain test out'>slideDown<div>slideDown</div></div>
122 <div id="slidetogglein" class='chain test'>slideToggleIn<div>slideToggleIn</div></div>
123 <div id="slidetoggleout" class='chain test out'>slideToggleOut<div>slideToggleOut</div></div>
126 <div id="fx-tests"></div>
128 <form id="testForm" action="#" method="get">
129 <textarea name="T3" rows="2" cols="15">?
131 <input type="hidden" name="H1" value="x" />
132 <input type="hidden" name="H2" />
133 <input name="PWD" type="password" value="" />
134 <input name="T1" type="text" />
135 <input name="T2" type="text" value="YES" readonly="readonly" />
136 <input type="checkbox" name="C1" value="1" />
137 <input type="checkbox" name="C2" />
138 <input type="radio" name="R1" value="1" />
139 <input type="radio" name="R1" value="2" />
140 <input type="text" name="My Name" value="me" />
141 <input type="reset" name="reset" value="NO" />
143 <option value="abc">ABC</option>
144 <option value="abc">ABC</option>
145 <option value="abc">ABC</option>
147 <select name="S2" multiple="multiple" size="3">
148 <option value="abc">ABC</option>
149 <option value="abc">ABC</option>
150 <option value="abc">ABC</option>
153 <option selected="selected">YES</option>
156 <option value="" selected="selected">NO</option>
158 <input type="submit" name="sub1" value="NO" />
159 <input type="submit" name="sub2" value="NO" />
160 <input type="image" name="sub3" value="NO" />
161 <button name="sub4" type="submit" value="NO">NO</button>
162 <input name="D1" type="text" value="NO" disabled="disabled" />
163 <input type="checkbox" checked="checked" disabled="disabled" name="D2" value="NO" />
164 <input type="radio" name="D3" value="NO" checked="checked" disabled="disabled" />
165 <select name="D4" disabled="disabled">
166 <option selected="selected" value="NO">NO</option>
171 <div id="checkedtest" style="display:none;">
172 <input type="radio" name="checkedtestradios" checked="checked"/>
173 <input type="radio" name="checkedtestradios" value="on"/>
174 <input type="checkbox" name="checkedtestcheckboxes" checked="checked"/>
175 <input type="checkbox" name="checkedtestcheckboxes" />
178 <div id="nonnodes"><span>hi</span> there <!-- mon ami --></div>
180 <div><div class="hidden">hidden</div></div>