index.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <!doctype html>
  2. <html lang="en" dir="ltr" id="html">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>jQuery Test Suite</title>
  6. <link rel="stylesheet" media="screen" href="../qunit/qunit.css">
  7. <link rel="stylesheet" media="screen" href="data/testsuite.css">
  8. <script src="data/testinit.js"></script>
  9. <script src="../../src/html5shiv-printshiv.js"></script>
  10. <script src="//code.jquery.com/jquery-1.7.1.min.js"></script>
  11. <script src="data/versioncheck.js"></script>
  12. <script src="../qunit/qunit.js"></script>
  13. <script src="data/testrunner.js"></script>
  14. <script src="unit/core.js"></script>
  15. <script src="unit/traversing.js"></script>
  16. <script src="unit/manipulation.js"></script>
  17. </head>
  18. <body id="body">
  19. <h1 id="qunit-header"><a href="/jquery/test/index.html">jQuery Test Suite</a>
  20. <a href="?jquery=min">(minified)</a>
  21. </h1>
  22. <h2 id="qunit-banner"></h2>
  23. <div id="qunit-testrunner-toolbar"></div>
  24. <h2 id="qunit-userAgent"></h2>
  25. <ol id="qunit-tests"></ol>
  26. <!-- Test HTML -->
  27. <div id="nothiddendiv" style="height:1px;background:white;" class="nothiddendiv">
  28. <div id="nothiddendivchild"></div>
  29. </div>
  30. <!-- 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 -->
  31. <iframe id="loadediframe" name="loadediframe" style="display:none;" src="data/iframe.html"></iframe>
  32. <dl id="dl" style="position:absolute;top:-32767px;left:-32767px;width:1px">
  33. <div id="qunit-fixture">
  34. <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>
  35. <p id="ap">
  36. Here are some links in a normal paragraph: <a id="google" href="http://www.google.com/" title="Google!">Google</a>,
  37. <a id="groups" href="http://groups.google.com/" class="GROUPS">Google Groups (Link)</a>.
  38. This link has <code><a href="http://smin" id="anchor1">class="blog"</a></code>:
  39. <a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a>
  40. </p>
  41. <div id="foo">
  42. <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
  43. <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>
  44. <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>
  45. </div>
  46. <span id="name+value"></span>
  47. <p id="first">Try them out:</p>
  48. <ul id="firstUL"></ul>
  49. <ol id="empty"></ol>
  50. <form id="form" action="formaction">
  51. <label for="action" id="label-for">Action:</label>
  52. <input type="text" name="action" value="Test" id="text1" maxlength="30">
  53. <input type="text" name="text2" value="Test" id="text2" disabled="disabled">
  54. <input type="radio" name="radio1" id="radio1" value="on">
  55. <input type="radio" name="radio2" id="radio2" checked="checked">
  56. <input type="checkbox" name="check" id="check1" checked="checked">
  57. <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">
  60. <input type="text" id="name" name="name" value="name">
  61. <input type="search" id="search" name="search" value="search">
  62. <button id="button" name="button" type="button">Button</button>
  63. <textarea id="area1" maxlength="30">foobar</textarea>
  64. <select name="select1" id="select1">
  65. <option id="option1a" class="emptyopt" value="">Nothing</option>
  66. <option id="option1b" value="1">1</option>
  67. <option id="option1c" value="2">2</option>
  68. <option id="option1d" value="3">3</option>
  69. </select>
  70. <select name="select2" id="select2">
  71. <option id="option2a" class="emptyopt" value="">Nothing</option>
  72. <option id="option2b" value="1">1</option>
  73. <option id="option2c" value="2">2</option>
  74. <option id="option2d" selected="selected" value="3">3</option>
  75. </select>
  76. <select name="select3" id="select3" multiple="multiple">
  77. <option id="option3a" class="emptyopt" value="">Nothing</option>
  78. <option id="option3b" selected="selected" value="1">1</option>
  79. <option id="option3c" selected="selected" value="2">2</option>
  80. <option id="option3d" value="3">3</option>
  81. <option id="option3e">no value</option>
  82. </select>
  83. <select name="select4" id="select4" multiple="multiple">
  84. <optgroup disabled="disabled">
  85. <option id="option4a" class="emptyopt" value="">Nothing</option>
  86. <option id="option4b" disabled="disabled" selected="selected" value="1">1</option>
  87. <option id="option4c" selected="selected" value="2">2</option>
  88. </optgroup>
  89. <option selected="selected" disabled="disabled" id="option4d" value="3">3</option>
  90. <option id="option4e">no value</option>
  91. </select>
  92. <select name="select5" id="select5">
  93. <option id="option5a" value="3">1</option>
  94. <option id="option5b" value="2">2</option>
  95. <option id="option5c" value="1" data-attr="">3</option>
  96. </select>
  97. <object id="object1" codebase="stupid">
  98. <param name="p1" value="x1">
  99. <param name="p2" value="x2">
  100. </object>
  101. <span id="台北Táiběi"></span>
  102. <span id="台北" lang="中文"></span>
  103. <span id="utf8class1" class="台北Táiběi 台北"></span>
  104. <span id="utf8class2" class="台北"></span>
  105. <span id="foo:bar" class="foo:bar"></span>
  106. <span id="test.foo[5]bar" class="test.foo[5]bar"></span>
  107. <foo_bar id="foobar">test element</foo_bar>
  108. </form>
  109. <b id="floatTest">Float test.</b>
  110. <iframe id="iframe" name="iframe"></iframe>
  111. <form id="lengthtest">
  112. <input type="text" id="length" name="test">
  113. <input type="text" id="idTest" name="id">
  114. </form>
  115. <table id="table"></table>
  116. <form id="name-tests">
  117. <!-- Inputs with a grouped name attribute. -->
  118. <input name="types[]" id="types_all" type="checkbox" value="all">
  119. <input name="types[]" id="types_anime" type="checkbox" value="anime">
  120. <input name="types[]" id="types_movie" type="checkbox" value="movie">
  121. </form>
  122. <form id="testForm" action="#" method="get">
  123. <textarea name="T3" rows="2" cols="15">?
  124. Z</textarea>
  125. <input type="hidden" name="H1" value="x">
  126. <input type="hidden" name="H2">
  127. <input name="PWD" type="password" value="">
  128. <input name="T1" type="text">
  129. <input name="T2" type="text" value="YES" readonly="readonly">
  130. <input type="checkbox" name="C1" value="1">
  131. <input type="checkbox" name="C2">
  132. <input type="radio" name="R1" value="1">
  133. <input type="radio" name="R1" value="2">
  134. <input type="text" name="My Name" value="me">
  135. <input type="reset" name="reset" value="NO">
  136. <select name="S1">
  137. <option value="abc">ABC</option>
  138. <option value="abc">ABC</option>
  139. <option value="abc">ABC</option>
  140. </select>
  141. <select name="S2" multiple="multiple" size="3">
  142. <option value="abc">ABC</option>
  143. <option value="abc">ABC</option>
  144. <option value="abc">ABC</option>
  145. </select>
  146. <select name="S3">
  147. <option selected="selected">YES</option>
  148. </select>
  149. <select name="S4">
  150. <option value="" selected="selected">NO</option>
  151. </select>
  152. <input type="submit" name="sub1" value="NO">
  153. <input type="submit" name="sub2" value="NO">
  154. <input type="image" name="sub3" value="NO">
  155. <button name="sub4" type="submit" value="NO">NO</button>
  156. <input name="D1" type="text" value="NO" disabled="disabled">
  157. <input type="checkbox" checked="checked" disabled="disabled" name="D2" value="NO">
  158. <input type="radio" name="D3" value="NO" checked="checked" disabled="disabled">
  159. <select name="D4" disabled="disabled">
  160. <option selected="selected" value="NO">NO</option>
  161. </select>
  162. <input id="list-test" type="text">
  163. <datalist id="datalist">
  164. <option value="option"></option>
  165. </datalist>
  166. </form>
  167. <div id="moretests">
  168. <form>
  169. <div id="checkedtest" style="display:none;">
  170. <input type="radio" name="checkedtestradios" checked="checked">
  171. <input type="radio" name="checkedtestradios" value="on">
  172. <input type="checkbox" name="checkedtestcheckboxes" checked="checked">
  173. <input type="checkbox" name="checkedtestcheckboxes">
  174. </div>
  175. </form>
  176. <div id="nonnodes"><span>hi</span> there <!-- mon ami --></div>
  177. <div id="t2037">
  178. <div><div class="hidden">hidden</div></div>
  179. </div>
  180. <div id="t6652">
  181. <div></div>
  182. </div>
  183. <div id="no-clone-exception"><object><embed></embed></object></div>
  184. </div>
  185. <div id="tabindex-tests">
  186. <ol id="listWithTabIndex" tabindex="5">
  187. <li id="foodWithNegativeTabIndex" tabindex="-1">Rice</li>
  188. <li id="foodNoTabIndex">Beans</li>
  189. <li>Blinis</li>
  190. <li>Tofu</li>
  191. </ol>
  192. <div id="divWithNoTabIndex">I'm hungry. I should...</div>
  193. <span>...</span><a href="#" id="linkWithNoTabIndex">Eat lots of food</a><span>...</span> |
  194. <span>...</span><a href="#" id="linkWithTabIndex" tabindex="2">Eat a little food</a><span>...</span> |
  195. <span>...</span><a href="#" id="linkWithNegativeTabIndex" tabindex="-1">Eat no food</a><span>...</span>
  196. <span>...</span><a id="linkWithNoHrefWithNoTabIndex">Eat a burger</a><span>...</span>
  197. <span>...</span><a id="linkWithNoHrefWithTabIndex" tabindex="1">Eat some funyuns</a><span>...</span>
  198. <span>...</span><a id="linkWithNoHrefWithNegativeTabIndex" tabindex="-1">Eat some funyuns</a><span>...</span>
  199. </div>
  200. <div id="liveHandlerOrder">
  201. <span id="liveSpan1"><a href="#" id="liveLink1"></a></span>
  202. <span id="liveSpan2"><a href="#" id="liveLink2"></a></span>
  203. </div>
  204. <div id="siblingTest">
  205. <em id="siblingfirst">1</em>
  206. <em id="siblingnext">2</em>
  207. </div>
  208. </div>
  209. </dl>
  210. <div id="fx-test-group" style="position:absolute;width:1px;height:1px;overflow:hidden;">
  211. <div id="fx-queue" name="test">
  212. <div id="fadein" class='chain test' name='div'>fadeIn<div>fadeIn</div></div>
  213. <div id="fadeout" class='chain test out'>fadeOut<div>fadeOut</div></div>
  214. <div id="show" class='chain test'>show<div>show</div></div>
  215. <div id="hide" class='chain test out'>hide<div>hide</div></div>
  216. <div id="togglein" class='chain test'>togglein<div>togglein</div></div>
  217. <div id="toggleout" class='chain test out'>toggleout<div>toggleout</div></div>
  218. <div id="slideup" class='chain test'>slideUp<div>slideUp</div></div>
  219. <div id="slidedown" class='chain test out'>slideDown<div>slideDown</div></div>
  220. <div id="slidetogglein" class='chain test'>slideToggleIn<div>slideToggleIn</div></div>
  221. <div id="slidetoggleout" class='chain test out'>slideToggleOut<div>slideToggleOut</div></div>
  222. <div id="fadetogglein" class='chain test'>fadeToggleIn<div>fadeToggleIn</div></div>
  223. <div id="fadetoggleout" class='chain test out'>fadeToggleOut<div>fadeToggleOut</div></div>
  224. <div id="fadeto" class='chain test'>fadeTo<div>fadeTo</div></div>
  225. </div>
  226. <div id="fx-tests"></div>
  227. </div>
  228. </body>
  229. </html>