PageRenderTime 58ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/test/index.html

https://github.com/hairballopolis/simples
HTML | 312 lines | 279 code | 30 blank | 3 comment | 0 complexity | bacc348a4d9cac653adb0c6cd86cb37b MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  6. <meta name="apple-mobile-web-app-capable" content="yes">
  7. <meta names="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  8. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  9. <title>Simples Prototype Tests</title>
  10. <link rel="stylesheet" href="qunit/qunit/qunit.css" type="text/css" media="screen">
  11. <link rel="Stylesheet" media="screen" href="data/testsuite.css" />
  12. <script type="text/javascript" src="qunit/qunit/qunit.js"></script>
  13. <script type="text/javascript" charset="utf-8">
  14. /**
  15. * Add random number to url to stop IE from caching
  16. *
  17. * @example url("data/test.html")
  18. * @result "data/test.html?10538358428943"
  19. *
  20. * @example url("data/test.php?foo=bar")
  21. * @result "data/test.php?foo=bar&10538358345554"
  22. */
  23. function url(value) {
  24. return value + (/\?/.test(value) ? "&" : "?") + new Date().getTime() + "" + parseInt(Math.random()*100000);
  25. }
  26. </script>
  27. </head>
  28. <body>
  29. <h1 id="qunit-header" data-title="Simples ( one third the size of jQuery )">Simples <small>( a micro framework )</small> Test Suite</h1>
  30. <h2 id="qunit-banner"></h2>
  31. <div id="qunit-testrunner-toolbar"></div>
  32. <h2 id="qunit-userAgent"></h2>
  33. <ol id="qunit-tests"></ol>
  34. <div id="test-area">
  35. </div>
  36. <div id="nothiddendiv" style="height:1px;background:white;" class="nothiddendiv">
  37. <div id="nothiddendivchild"></div>
  38. </div>
  39. <dl id="dl" style="display:none;">
  40. <div id="row-wrapper">
  41. <input name="row" type="hidden"/>
  42. <input name="row" type="hidden"/>
  43. <div class="row">
  44. <div id="cell-test"></div>
  45. <div class="cell"></div>
  46. </div>
  47. <div class="row">
  48. <div class="cell"></div>
  49. <div class="cell"></div>
  50. </div>
  51. <div class="row">
  52. <div class="cell"></div>
  53. <div class="cell"></div>
  54. <div class="cell"></div>
  55. </div>
  56. <div class="row">
  57. <div class="cell"></div>
  58. <div class="cell"></div>
  59. <div class="cell"></div>
  60. <div class="cell"></div>
  61. </div>
  62. <div class="row">
  63. <div class="cell"></div>
  64. <div class="cell"></div>
  65. <div class="cell"></div>
  66. <div class="cell"></div>
  67. <div class="cell"></div>
  68. </div>
  69. <div class="row">
  70. <div class="cell"></div>
  71. <div class="cell"></div>
  72. <div class="cell"></div>
  73. <div class="cell"></div>
  74. <div class="cell"></div>
  75. <div class="cell"></div>
  76. </div>
  77. <div class="row">
  78. <div class="cell"></div>
  79. <div class="cell"></div>
  80. <div class="cell"></div>
  81. <div class="cell"></div>
  82. <div class="cell"></div>
  83. <div class="cell"></div>
  84. <div class="cell"></div>
  85. </div>
  86. <div class="row">
  87. <div class="cell"></div>
  88. <div class="cell"></div>
  89. <div class="cell"></div>
  90. <div class="cell"></div>
  91. <div class="cell"></div>
  92. <div class="cell"></div>
  93. <div class="cell"></div>
  94. <div class="cell"></div>
  95. </div>
  96. </div>
  97. <input name="hammer" type="hidden"/>
  98. <input name="row" type="hidden"/>
  99. <div class="cell"></div>
  100. <div class="cell"></div>
  101. <div class="cell"></div>
  102. <div class="cell"></div>
  103. <div id="main" style="display: none;">
  104. <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>
  105. <p id="ap">
  106. Here are some links in a normal paragraph: <a id="google" href="http://www.google.com/" title="Google!">Google</a>,
  107. <a id="groups" href="http://groups.google.com/" class="GROUPS">Google Groups (Link)</a>.
  108. This link has <code><a href="http://smin" id="anchor1">class="blog"</a></code>:
  109. <a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a>
  110. </p>
  111. <div id="foo">
  112. <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
  113. <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>
  114. <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>
  115. </div>
  116. <span id="name+value"></span>
  117. <p id="first">Try them out:</p>
  118. <ul id="firstUL"></ul>
  119. <ol id="empty"></ol>
  120. <form id="form" action="formaction">
  121. <label for="action" id="label-for">Action:</label>
  122. <input type="text" name="action" value="Test" id="text1" maxlength="30"/>
  123. <input type="text" name="text2" value="Test" id="text2" disabled="disabled"/>
  124. <input type="radio" name="radio1" id="radio1" value="on"/>
  125. <input type="radio" name="radio2" id="radio2" checked="checked"/>
  126. <input type="checkbox" name="check" id="check1" checked="checked"/>
  127. <input type="checkbox" id="check2" value="on"/>
  128. <input type="hidden" name="hidden" id="hidden1"/>
  129. <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>
  130. <input type="text" id="name" name="name" value="name" />
  131. <input type="search" id="search" name="search" value="search" />
  132. <button id="button" name="button" type="button">Button</button>
  133. <textarea id="area1" maxlength="30">foobar</textarea>
  134. <select name="select1" id="select1">
  135. <option id="option1a" class="emptyopt" value="">Nothing</option>
  136. <option id="option1b" value="1">1</option>
  137. <option id="option1c" value="2">2</option>
  138. <option id="option1d" value="3">3</option>
  139. </select>
  140. <select name="select2" id="select2">
  141. <option id="option2a" class="emptyopt" value="">Nothing</option>
  142. <option id="option2b" value="1">1</option>
  143. <option id="option2c" value="2">2</option>
  144. <option id="option2d" selected="selected" value="3">3</option>
  145. </select>
  146. <select name="select3" id="select3" multiple="multiple">
  147. <option id="option3a" class="emptyopt" value="">Nothing</option>
  148. <option id="option3b" selected="selected" value="1">1</option>
  149. <option id="option3c" selected="selected" value="2">2</option>
  150. <option id="option3d" value="3">3</option>
  151. <option id="option3e">no value</option>
  152. </select>
  153. <object id="object1" codebase="stupid">
  154. <param name="p1" value="x1" />
  155. <param name="p2" value="x2" />
  156. </object>
  157. <span id="台北Táiběi"></span>
  158. <span id="台北" lang="中文"></span>
  159. <span id="utf8class1" class="台北Táiběi 台北"></span>
  160. <span id="utf8class2" class="台北"></span>
  161. <span id="foo:bar" class="foo:bar"></span>
  162. <span id="test.foo[5]bar" class="test.foo[5]bar"></span>
  163. <foo_bar id="foobar">test element</foo_bar>
  164. </form>
  165. <b id="floatTest">Float test.</b>
  166. <iframe id="iframe" name="iframe"></iframe>
  167. <form id="lengthtest">
  168. <input type="text" id="length" name="test"/>
  169. <input type="text" id="idTest" name="id"/>
  170. </form>
  171. <table id="table"></table>
  172. <form id="name-tests">
  173. <!-- Inputs with a grouped name attribute. -->
  174. <input name="types[]" id="types_all" type="checkbox" value="all" />
  175. <input name="types[]" id="types_anime" type="checkbox" value="anime" />
  176. <input name="types[]" id="types_movie" type="checkbox" value="movie" />
  177. </form>
  178. <form id="testForm" action="#" method="get">
  179. <textarea name="T3" rows="2" cols="15">?
  180. Z</textarea>
  181. <input type="hidden" name="H1" value="x" />
  182. <input type="hidden" name="H2" />
  183. <input name="PWD" type="password" value="" />
  184. <input name="T1" type="text" />
  185. <input name="T2" type="text" value="YES" readonly="readonly" />
  186. <input type="checkbox" name="C1" value="1" />
  187. <input type="checkbox" name="C2" />
  188. <input type="radio" name="R1" value="1" />
  189. <input type="radio" name="R1" value="2" />
  190. <input type="text" name="My Name" value="me" />
  191. <input type="reset" name="reset" value="NO" />
  192. <select name="S1">
  193. <option value="abc">ABC</option>
  194. <option value="abc">ABC</option>
  195. <option value="abc">ABC</option>
  196. </select>
  197. <select name="S2" multiple="multiple" size="3">
  198. <option value="abc">ABC</option>
  199. <option value="abc">ABC</option>
  200. <option value="abc">ABC</option>
  201. </select>
  202. <select name="S3">
  203. <option selected="selected">YES</option>
  204. </select>
  205. <select name="S4">
  206. <option value="" selected="selected">NO</option>
  207. </select>
  208. <input type="submit" name="sub1" value="NO" />
  209. <input type="submit" name="sub2" value="NO" />
  210. <input type="image" name="sub3" value="NO" />
  211. <button name="sub4" type="submit" value="NO">NO</button>
  212. <input name="D1" type="text" value="NO" disabled="disabled" />
  213. <input type="checkbox" checked="checked" disabled="disabled" name="D2" value="NO" />
  214. <input type="radio" name="D3" value="NO" checked="checked" disabled="disabled" />
  215. <select name="D4" disabled="disabled">
  216. <option selected="selected" value="NO">NO</option>
  217. </select>
  218. </form>
  219. <div id="moretests">
  220. <form>
  221. <div id="checkedtest" style="display:none;">
  222. <input type="radio" name="checkedtestradios" checked="checked"/>
  223. <input type="radio" name="checkedtestradios" value="on"/>
  224. <input type="checkbox" name="checkedtestcheckboxes" checked="checked"/>
  225. <input type="checkbox" name="checkedtestcheckboxes" />
  226. </div>
  227. </form>
  228. <div id="nonnodes"><span>hi</span> there <!-- mon ami --></div>
  229. <div id="t2037">
  230. <div><div class="hidden">hidden</div></div>
  231. </div>
  232. </div>
  233. <div id="tabindex-tests">
  234. <ol id="listWithTabIndex" tabindex="5">
  235. <li id="foodWithNegativeTabIndex" tabindex="-1">Rice</li>
  236. <li id="foodNoTabIndex">Beans</li>
  237. <li>Blinis</li>
  238. <li>Tofu</li>
  239. </ol>
  240. <div id="divWithNoTabIndex">I'm hungry. I should...</div>
  241. <span>...</span><a href="#" id="linkWithNoTabIndex">Eat lots of food</a><span>...</span> |
  242. <span>...</span><a href="#" id="linkWithTabIndex" tabindex="2">Eat a little food</a><span>...</span> |
  243. <span>...</span><a href="#" id="linkWithNegativeTabIndex" tabindex="-1">Eat no food</a><span>...</span>
  244. <span>...</span><a id="linkWithNoHrefWithNoTabIndex">Eat a burger</a><span>...</span>
  245. <span>...</span><a id="linkWithNoHrefWithTabIndex" tabindex="1">Eat some funyuns</a><span>...</span>
  246. <span>...</span><a id="linkWithNoHrefWithNegativeTabIndex" tabindex="-1">Eat some funyuns</a><span>...</span>
  247. </div>
  248. <div id="liveHandlerOrder">
  249. <span id="liveSpan1"><a href="#" id="liveLink1"></a></span>
  250. <span id="liveSpan2"><a href="#" id="liveLink2"></a></span>
  251. </div>
  252. <div id="siblingTest">
  253. <em id="siblingfirst">1</em>
  254. <em id="siblingnext">2</em>
  255. </div>
  256. </div>
  257. </dl>
  258. <!-- Library Files -->
  259. <script type="text/javascript" charset="utf-8" src="../src/core.js"></script>
  260. <script type="text/javascript" charset="utf-8" src="../src/support.js"></script>
  261. <script type="text/javascript" charset="utf-8" src="../src/json2.js"></script>
  262. <script type="text/javascript" charset="utf-8" src="../src/data.js"></script>
  263. <script type="text/javascript" charset="utf-8" src="../src/ajax.js"></script>
  264. <script type="text/javascript" charset="utf-8" src="../src/selector.js"></script>
  265. <script type="text/javascript" charset="utf-8" src="../src/dom.js"></script>
  266. <script type="text/javascript" charset="utf-8" src="../src/css.js"></script>
  267. <script type="text/javascript" charset="utf-8" src="../src/events.js"></script>
  268. <script type="text/javascript" charset="utf-8" src="../src/position.js"></script>
  269. <script type="text/javascript" charset="utf-8" src="../src/animation.js"></script>
  270. <!-- Test Files -->
  271. <script type="text/javascript" charset="utf-8" src="core.js"></script>
  272. <script type="text/javascript" charset="utf-8" src="support.js"></script>
  273. <script type="text/javascript" charset="utf-8" src="data.js"></script>
  274. <script type="text/javascript" charset="utf-8" src="ajax.js"></script>
  275. <script type="text/javascript" charset="utf-8" src="selector.js"></script>
  276. <script type="text/javascript" charset="utf-8" src="dom.js"></script>
  277. <script type="text/javascript" charset="utf-8" src="css.js"></script>
  278. <script type="text/javascript" charset="utf-8" src="events.js"></script>
  279. <script type="text/javascript" charset="utf-8" src="position.js"></script>
  280. <script type="text/javascript" charset="utf-8" src="animation.js"></script>
  281. </body>
  282. </html>