2 <html lang=
"en" id=
"html">
5 <title>jQuery Test Suite
</title>
6 <link rel=
"stylesheet" href=
"../external/qunit/qunit.css" />
7 <link rel=
"stylesheet" href=
"data/testsuite.css" />
10 We have to use previous jQuery as helper to ensure testability with
11 ajax-free builds (and non-interference when changing ajax internals)
13 <script src=
"data/jquery-1.9.1.js"></script>
15 <script src=
"../external/qunit/qunit.js"></script>
16 <script src=
"../external/npo/npo.js"></script>
17 <script src=
"../external/requirejs/require.js"></script>
18 <script src=
"../external/sinon/fake_timers.js"></script>
19 <!-- See testinit for the list of tests -->
20 <script src=
"data/testinit.js"></script>
22 <!-- A script that includes jQuery min, dev, or AMD -->
23 <!-- Adds "basic" URL option, even to iframes -->
24 <!-- iframes will not load AMD as loading needs to be synchronous for some tests -->
25 <!-- Also executes the function above to load tests -->
26 <script src=
"jquery.js"></script>
29 // Load tests if they have not been loaded
30 // This is in a different script tag to ensure that
31 // jQuery is on the page when the testrunner executes
32 if ( !QUnit
.urlParams
.amd
) {
39 <div id=
"qunit"></div>
42 <!-- this iframe is outside the #qunit-fixture 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=
"position:absolute;top:-32767px;left:-32767px;width:1px;">
45 <div id=
"qunit-fixture">
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 <div id=
"nothiddendiv" style=
"height:1px;background:white;" class=
"nothiddendiv">
61 <div id=
"nothiddendivchild"></div>
63 <span id=
"name+value"></span>
64 <p id=
"first">Try them out:
</p>
65 <ul id=
"firstUL"></ul>
67 <form id=
"form" action=
"formaction">
68 <label for=
"action" id=
"label-for">Action:
</label>
69 <input type=
"text" name=
"action" value=
"Test" id=
"text1" maxlength=
"30"/>
70 <input type=
"text" name=
"text2" value=
"Test" id=
"text2" disabled=
"disabled"/>
71 <input type=
"radio" name=
"radio1" id=
"radio1" value=
"on"/>
73 <input type=
"radio" name=
"radio2" id=
"radio2" checked=
"checked"/>
74 <input type=
"checkbox" name=
"check" id=
"check1" checked=
"checked"/>
75 <input type=
"checkbox" id=
"check2" value=
"on"/>
77 <input type=
"hidden" name=
"hidden" id=
"hidden1"/>
78 <input type=
"text" style=
"display:none;" name=
"foo[bar]" id=
"hidden2"/>
80 <input type=
"text" id=
"name" name=
"name" value=
"name" />
81 <input type=
"search" id=
"search" name=
"search" value=
"search" />
83 <button id=
"button" name=
"button" type=
"button">Button
</button>
85 <textarea id=
"area1" maxlength=
"30">foobar
</textarea>
87 <select name=
"select1" id=
"select1">
88 <option id=
"option1a" class=
"emptyopt" value=
"">Nothing
</option>
89 <option id=
"option1b" value=
"1">1</option>
90 <option id=
"option1c" value=
"2">2</option>
91 <option id=
"option1d" value=
"3">3</option>
93 <select name=
"select2" id=
"select2">
94 <option id=
"option2a" class=
"emptyopt" value=
"">Nothing
</option>
95 <option id=
"option2b" value=
"1">1</option>
96 <option id=
"option2c" value=
"2">2</option>
97 <option id=
"option2d" selected=
"selected" value=
"3">3</option>
99 <select name=
"select3" id=
"select3" multiple=
"multiple">
100 <option id=
"option3a" class=
"emptyopt" value=
"">Nothing
</option>
101 <option id=
"option3b" selected=
"selected" value=
"1">1</option>
102 <option id=
"option3c" selected=
"selected" value=
"2">2</option>
103 <option id=
"option3d" value=
"3">3</option>
104 <option id=
"option3e">no value
</option>
106 <select name=
"select4" id=
"select4" multiple=
"multiple">
107 <optgroup disabled=
"disabled">
108 <option id=
"option4a" class=
"emptyopt" value=
"">Nothing
</option>
109 <option id=
"option4b" disabled=
"disabled" selected=
"selected" value=
"1">1</option>
110 <option id=
"option4c" selected=
"selected" value=
"2">2</option>
112 <option selected=
"selected" disabled=
"disabled" id=
"option4d" value=
"3">3</option>
113 <option id=
"option4e">no value
</option>
115 <select name=
"select5" id=
"select5">
116 <option id=
"option5a" value=
"3">1</option>
117 <option id=
"option5b" value=
"2">2</option>
118 <option id=
"option5c" value=
"1" data-attr=
"">3</option>
121 <object id=
"object1" codebase=
"stupid">
122 <param name=
"p1" value=
"x1" />
123 <param name=
"p2" value=
"x2" />
126 <span id=
"台北Táiběi"></span>
127 <span id=
"台北" lang=
"中文"></span>
128 <span id=
"utf8class1" class=
"台北Táiběi 台北"></span>
129 <span id=
"utf8class2" class=
"台北"></span>
130 <span id=
"foo:bar" class=
"foo:bar"></span>
131 <span id=
"test.foo[5]bar" class=
"test.foo[5]bar"></span>
133 <foo_bar id=
"foobar">test element
</foo_bar>
135 <b id=
"floatTest">Float test.
</b>
136 <iframe id=
"iframe" name=
"iframe"></iframe>
137 <form id=
"lengthtest">
138 <input type=
"text" id=
"length" name=
"test"/>
139 <input type=
"text" id=
"idTest" name=
"id"/>
141 <table id=
"table"></table>
143 <form id=
"name-tests">
144 <!-- Inputs with a grouped name attribute. -->
145 <input name=
"types[]" id=
"types_all" type=
"checkbox" value=
"all" />
146 <input name=
"types[]" id=
"types_anime" type=
"checkbox" value=
"anime" />
147 <input name=
"types[]" id=
"types_movie" type=
"checkbox" value=
"movie" />
150 <form id=
"testForm" action=
"#" method=
"get">
151 <textarea name=
"T3" rows=
"2" cols=
"15">?
153 <input type=
"hidden" name=
"H1" value=
"x" />
154 <input type=
"hidden" name=
"H2" />
155 <input name=
"PWD" type=
"password" value=
"" />
156 <input name=
"T1" type=
"text" />
157 <input name=
"T2" type=
"text" value=
"YES" readonly=
"readonly" />
158 <input type=
"checkbox" name=
"C1" value=
"1" />
159 <input type=
"checkbox" name=
"C2" />
160 <input type=
"radio" name=
"R1" value=
"1" />
161 <input type=
"radio" name=
"R1" value=
"2" />
162 <input type=
"text" name=
"My Name" value=
"me" />
163 <input type=
"reset" name=
"reset" value=
"NO" />
165 <option value=
"abc">ABC
</option>
166 <option value=
"abc">ABC
</option>
167 <option value=
"abc">ABC
</option>
169 <select name=
"S2" multiple=
"multiple" size=
"3">
170 <option value=
"abc">ABC
</option>
171 <option value=
"abc">ABC
</option>
172 <option value=
"abc">ABC
</option>
175 <option selected=
"selected">YES
</option>
178 <option value=
"" selected=
"selected">NO
</option>
180 <input type=
"submit" name=
"sub1" value=
"NO" />
181 <input type=
"submit" name=
"sub2" value=
"NO" />
182 <input type=
"image" name=
"sub3" value=
"NO" />
183 <button name=
"sub4" type=
"submit" value=
"NO">NO
</button>
184 <input name=
"D1" type=
"text" value=
"NO" disabled=
"disabled" />
185 <input type=
"checkbox" checked=
"checked" disabled=
"disabled" name=
"D2" value=
"NO" />
186 <input type=
"radio" name=
"D3" value=
"NO" checked=
"checked" disabled=
"disabled" />
187 <select name=
"D4" disabled=
"disabled">
188 <option selected=
"selected" value=
"NO">NO
</option>
190 <input id=
"list-test" type=
"text" />
191 <datalist id=
"datalist">
192 <option value=
"option"></option>
197 <div id=
"checkedtest" style=
"display:none;">
198 <input type=
"radio" name=
"checkedtestradios" checked=
"checked"/>
199 <input type=
"radio" name=
"checkedtestradios" value=
"on"/>
200 <input type=
"checkbox" name=
"checkedtestcheckboxes" checked=
"checked"/>
201 <input type=
"checkbox" name=
"checkedtestcheckboxes" />
204 <div id=
"nonnodes"><span id=
"nonnodesElement">hi
</span> there
<!-- mon ami --></div>
206 <div><div class=
"hidden">hidden
</div></div>
211 <div id=
"no-clone-exception"><object><embed></embed></object></div>
214 <div id=
"tabindex-tests">
215 <ol id=
"listWithTabIndex" tabindex=
"5">
216 <li id=
"foodWithNegativeTabIndex" tabindex=
"-1">Rice
</li>
217 <li id=
"foodNoTabIndex">Beans
</li>
222 <div id=
"divWithNoTabIndex">I'm hungry. I should...
</div>
223 <span>...
</span><a href=
"#" id=
"linkWithNoTabIndex">Eat lots of food
</a><span>...
</span> |
224 <span>...
</span><a href=
"#" id=
"linkWithTabIndex" tabindex=
"2">Eat a little food
</a><span>...
</span> |
225 <span>...
</span><a href=
"#" id=
"linkWithNegativeTabIndex" tabindex=
"-1">Eat no food
</a><span>...
</span>
226 <span>...
</span><a id=
"linkWithNoHrefWithNoTabIndex">Eat a burger
</a><span>...
</span>
227 <span>...
</span><a id=
"linkWithNoHrefWithTabIndex" tabindex=
"1">Eat some funyuns
</a><span>...
</span>
228 <span>...
</span><a id=
"linkWithNoHrefWithNegativeTabIndex" tabindex=
"-1">Eat some funyuns
</a><span>...
</span>
229 <input id=
"inputWithoutTabIndex"/>
230 <button id=
"buttonWithoutTabIndex"></button>
231 <textarea id=
"textareaWithoutTabIndex"></textarea>
233 <menuitem id=
"menuitemWithoutTabIndex" command=
"submitbutton" default
/>
237 <div id=
"liveHandlerOrder">
238 <span id=
"liveSpan1"><a href=
"#" id=
"liveLink1"></a></span>
239 <span id=
"liveSpan2"><a href=
"#" id=
"liveLink2"></a></span>
242 <div id=
"siblingTest">
243 <em id=
"siblingfirst">1</em>
244 <em id=
"siblingnext">2</em>
245 <em id=
"siblingthird">
246 <em id=
"siblingchild">
247 <em id=
"siblinggrandchild">
248 <em id=
"siblinggreatgrandchild"></em>
252 <span id=
"siblingspan"></span>
254 <div id=
"fx-test-group" style=
"position: absolute; width: 1px; height: 1px; overflow: hidden;">
255 <div id=
"fx-queue" name=
"test">
256 <div id=
"fadein" class='chain-test' name='div'
>fadeIn
<div>fadeIn
</div></div>
257 <div id=
"fadeout" class='chain-test chain-test-out'
>fadeOut
<div>fadeOut
</div></div>
259 <div id=
"show" class='chain-test'
>show
<div>show
</div></div>
260 <div id=
"hide" class='chain-test chain-test-out'
>hide
<div>hide
</div></div>
261 <div id=
"easehide" class='chain-test chain-test-out'
>hide
<div>hide
</div></div>
263 <div id=
"togglein" class='chain-test'
>togglein
<div>togglein
</div></div>
264 <div id=
"toggleout" class='chain-test chain-test-out'
>toggleout
<div>toggleout
</div></div>
265 <div id=
"easetoggleout" class='chain-test chain-test-out'
>toggleout
<div>toggleout
</div></div>
267 <div id=
"slideup" class='chain-test'
>slideUp
<div>slideUp
</div></div>
268 <div id=
"slidedown" class='chain-test chain-test-out'
>slideDown
<div>slideDown
</div></div>
269 <div id=
"easeslideup" class='chain-test'
>slideUp
<div>slideUp
</div></div>
271 <div id=
"slidetogglein" class='chain-test'
>slideToggleIn
<div>slideToggleIn
</div></div>
272 <div id=
"slidetoggleout" class='chain-test chain-test-out'
>slideToggleOut
<div>slideToggleOut
</div></div>
274 <div id=
"fadetogglein" class='chain-test'
>fadeToggleIn
<div>fadeToggleIn
</div></div>
275 <div id=
"fadetoggleout" class='chain-test chain-test-out'
>fadeToggleOut
<div>fadeToggleOut
</div></div>
277 <div id=
"fadeto" class='chain-test'
>fadeTo
<div>fadeTo
</div></div>
280 <div id=
"fx-tests"></div>
281 <span id=
"display"></span>
285 <map name=
"imgmap" id=
"imgmap">
286 <area shape=
"rect" coords=
"0,0,200,50">