PageRenderTime 55ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/tests/unit/navigation/index.html

https://github.com/vsxed/jquery-mobile
HTML | 279 lines | 213 code | 57 blank | 9 comment | 0 complexity | 5e05449b2e4ac4e539e030248ea30ecf MD5 | raw file
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>jQuery Mobile Navigation Test Suite</title>
  7. <script src="../../../js/jquery.js"></script>
  8. <script src="../jquery.setNameSpace.js"></script>
  9. <script src="../../../js/"></script>
  10. <script src="../../../tests/jquery.testHelper.js"></script>
  11. <link rel="stylesheet" href="../../../themes/default/"/>
  12. <link rel="stylesheet" href="../../../external/qunit.css"/>
  13. <script src="../../../external/qunit.js"></script>
  14. <script type="text/javascript">
  15. $.testHelper.setPushStateFor([
  16. "navigation_transitions.js",
  17. "navigation_helpers.js",
  18. "navigation_core.js",
  19. "navigation_paths.js"
  20. ]);
  21. </script>
  22. </head>
  23. <body>
  24. <h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1>
  25. <h2 id="qunit-banner"></h2>
  26. <h2 id="qunit-userAgent"></h2>
  27. <ol id="qunit-tests">
  28. </ol>
  29. <div id="harmless-default-page" data-nstest-role="page">
  30. </div>
  31. <div id="foo" data-nstest-role="page" class="foo-class">
  32. <a href="#bar" data-nstest-transition="flip"></a>
  33. </div>
  34. <div id="prefetch" data-nstest-role="page">
  35. <a href="prefetched.html" data-nstest-prefetch>Prefetch test</a>
  36. </div>
  37. <div id="foozball" data-nstest-role="page">
  38. </div>
  39. <div id="bar" data-nstest-role="page">
  40. <a href="#baz"></a>
  41. </div>
  42. <div id="baz" data-nstest-role="page">
  43. <a href="#foo"></a>
  44. </div>
  45. <div id="fade-trans" data-nstest-role="page">
  46. <a href="#flip-trans" data-nstest-transition="fade"></a>
  47. </div>
  48. <div id="flip-trans" data-nstest-role="page">
  49. <a href="#fade-trans" data-nstest-transition="flip"></a>
  50. </div>
  51. <div id="no-trans" data-nstest-role="page">
  52. <a href="#pop-trans"></a>
  53. </div>
  54. <div id="pop-trans" data-nstest-role="page">
  55. <a href="#no-trans" data-nstest-transition="pop"></a>
  56. </div>
  57. <div id="default-trans" data-nstest-role="page">
  58. <a href="#no-trans"></a>
  59. </div>
  60. <div id="data-url" data-nstest-role="page">
  61. <a href="data-url-tests/data-url.html"></a>
  62. </div>
  63. <div id="non-data-url" data-nstest-role="page">
  64. <a href="data-url-tests/non-data-url.html"></a>
  65. </div>
  66. <div id="nested-data-url" data-nstest-role="page">
  67. <a href="data-url-tests/nested.html"></a>
  68. </div>
  69. <div id="single-quotes-data-url" data-nstest-role="page">
  70. <a href="data-url-tests/single-quotes.html"></a>
  71. </div>
  72. <div id="reverse-attr-data-url" data-nstest-role="page">
  73. <a href="data-url-tests/reverse-attr.html"></a>
  74. </div>
  75. <div id="ajax-disabled-form" data-nstest-role="page">
  76. <form method="POST" id="non-ajax-form" action="/ajax-disabled-form" data-nstest-ajax="false">
  77. </form>
  78. <form method="POST" id="ajax-form" action="/ajax-disabled-form">
  79. </form>
  80. <form method="POST" id="rand-ajax-form" action="/ajax-disabled-form" data-nstest-ajax="foo">
  81. </form>
  82. </div>
  83. <div id="default-trans-dialog" data-nstest-role="page">
  84. <a href="#no-trans-dialog" data-nstest-rel="dialog"></a>
  85. </div>
  86. <div id="no-trans-dialog" data-nstest-role="page">
  87. </div>
  88. <div id="dup-history-first" data-nstest-role="page">
  89. <a href="#dup-history-second" data-nstest-transition="slideup" data-nstest-role="button" >
  90. Page 2
  91. </a>
  92. </div>
  93. <div id="dup-history-second" data-nstest-role="page">
  94. <a href="#dup-history-first" data-nstest-transition="slideup" data-nstest-role="button">
  95. Page 1
  96. </a>
  97. <a href="#dup-history-dialog" data-nstest-role="button" data-nstest-transition="pop" data-nstest-rel="dialog">Dialog</a>
  98. </div>
  99. <div id="dup-history-dialog" data-nstest-role="dialog">
  100. <div data-nstest-role="header" data-nstest-position="inline">
  101. <h1>Dialog</h1>
  102. </div>
  103. </div>
  104. <div id="skip-dialog-first" data-nstest-role="page">
  105. <div data-nstest-role="content">
  106. <a href="#skip-dialog" data-nstest-role="button" data-nstest-transition="pop" data-nstest-rel="dialog">Dialog</a>
  107. </div>
  108. </div>
  109. <div id="skip-dialog" data-nstest-role="dialog">
  110. <div data-nstest-role="content">
  111. <a href="#skip-dialog-second">Page 2</a>
  112. </div>
  113. </div>
  114. <div id="skip-dialog-second" data-nstest-role="page">
  115. <a href="#" data-nstest-rel="back">Go Back</a>
  116. </div>
  117. <div id="nested-dialog-page" data-nstest-role="page">
  118. <div data-nstest-role="content">
  119. <a href="#nested-dialog-first">Dialog</a>
  120. </div>
  121. </div>
  122. <div id="nested-dialog-first" data-nstest-role="dialog">
  123. <div data-nstest-role="content">
  124. <a href="#nested-dialog-second">Dialog 2</a>
  125. </div>
  126. </div>
  127. <div id="nested-dialog-second" data-nstest-role="dialog">
  128. </div>
  129. <div id="relative-after-embeded-page-first" data-nstest-role="page">
  130. <div data-nstest-role="content">
  131. <a href="#relative-after-embeded-page-second">second page</a>
  132. </div>
  133. </div>
  134. <div id="relative-after-embeded-page-second" data-nstest-role="page">
  135. <div data-nstest-role="content">
  136. <a href="data-url-tests/data-url.html">file path page</a>
  137. </div>
  138. </div>
  139. <div id="ajax-title-page" data-nstest-title="Title Attr 1" data-nstest-role="page">
  140. <a href="title1.html" id="titletest1" data-nstest-transition="none">test</a>
  141. <a href="title2.html" id="titletest2" data-nstest-transition="none">test</a>
  142. <a href="title3.html" id="titletest3" data-nstest-transition="none">test</a>
  143. </div>
  144. <div data-nstest-role="page" id="titletest4" data-nstest-title="Title Attr 2">
  145. <div data-nstest-role="header"><h1>Title Heading</h1></div>
  146. </div>
  147. <div data-nstest-role="page" id="titletest5" data-nstest-title="Title Attr">
  148. <div data-nstest-role="header"><h1>Title Heading</h1></div>
  149. </div>
  150. <div data-nstest-role="page" id="self-link">
  151. <a href="#self-link">self!</a>
  152. </div>
  153. <div data-nstest-role="page" id="dialog-param-link">
  154. <a href="dialog-param-test/dialog-param.html">go</a>
  155. </div>
  156. <div data-nstest-role="page" id="pathing-tests">
  157. <!-- doc rel links -->
  158. <a href="file.html" id="doc-rel-test-one">go</a>
  159. <a href="path-tests/file.html" id="doc-rel-test-two">go</a>
  160. <a href="path-tests/sub-dir/file.html" id="doc-rel-test-three">go</a>
  161. <a href="path-tests/sub-dir/" id="doc-rel-test-four">go</a>
  162. <a href="../../unit/navigation/path-tests/parent-ref.html" id="doc-rel-test-five">go</a>
  163. <a href="../../unit/navigation/path-tests/parent/" id="doc-rel-test-six">go</a>
  164. <!-- site rel links -->
  165. <!-- these will be altered before the test suite runs to use the current path -->
  166. <a href="file.html" id="site-rel-test-one" class="site-rel">go</a>
  167. <a href="path-tests/file.html" id="site-rel-test-two" class="site-rel">go</a>
  168. <a href="path-tests/sub-dir/file.html" id="site-rel-test-three" class="site-rel">go</a>
  169. <a href="path-tests/sub-dir/" id="site-rel-test-four" class="site-rel">go</a>
  170. <a href="../../unit/navigation/path-tests/parent-ref.html" id="site-rel-test-five" class="site-rel">go</a>
  171. <a href="../../unit/navigation/path-tests/parent/" id="site-rel-test-six" class="site-rel">go</a>
  172. <!-- protocol rel links -->
  173. <!-- these will be altered before the test suite runs to use the
  174. current domain and path -->
  175. <a href="file.html" id="protocol-rel-test-one" class="protocol-rel">go</a>
  176. <a href="path-tests/file.html" id="protocol-rel-test-two" class="protocol-rel">go</a>
  177. <a href="path-tests/sub-dir/file.html" id="protocol-rel-test-three" class="protocol-rel">go</a>
  178. <a href="path-tests/sub-dir/" id="protocol-rel-test-four" class="protocol-rel">go</a>
  179. <a href="../../unit/navigation/path-tests/parent-ref.html" id="protocol-rel-test-five" class="protocol-rel">go</a>
  180. <a href="../../unit/navigation/path-tests/parent/" id="protocol-rel-test-six" class="protocol-rel">go</a>
  181. <!-- absolute links -->
  182. <!-- these will be altered before the test suite runs to use the
  183. current protocol, domain and path -->
  184. <a href="file.html" id="absolute-test-one" class="absolute">go</a>
  185. <a href="path-tests/file.html" id="absolute-test-two" class="absolute">go</a>
  186. <a href="path-tests/sub-dir/file.html" id="absolute-test-three" class="absolute">go</a>
  187. <a href="path-tests/sub-dir/" id="absolute-test-four" class="absolute">go</a>
  188. <a href="../../unit/navigation/path-tests/parent-ref.html" id="absolute-test-five" class="absolute">go</a>
  189. <a href="../../unit/navigation/path-tests/parent/" id="absolute-test-six" class="absolute">go</a>
  190. </div>
  191. <div data-nstest-role="page" id="pathing-tests-reset">
  192. <div class="reset-value">page didn't change!</div>
  193. </div>
  194. <div data-nstest-role="page" id="internal-no-action-form-page">
  195. <div data-nstest-role="content">
  196. <form>
  197. <input type="hidden" name="foo" value="1">
  198. <input type="hidden" name="bar" value="2">
  199. </form>
  200. <a href="form-tests/form-no-action.html">External page containing form with no action.</a>
  201. </div>
  202. </div>
  203. <div id="active-state-page1" data-nstest-role="page">
  204. <div data-nstest-role="content">
  205. <a href="#active-state-page2" data-nstest-role="button">page2</a>
  206. </div>
  207. </div>
  208. <div id="active-state-page2" data-nstest-role="page">
  209. <div data-nstest-role="content">
  210. <a href="#active-state-page1" data-nstest-role="button">href button</a>
  211. <a href="#active-state-page1" data-nstest-rel="back" data-nstest-role="button">back button</a>
  212. </div>
  213. </div>
  214. <div id="odd-clicks-page" data-nstest-role="page">
  215. <a href="#odd-clicks-page-dest" id="right-or-middle-click">foo</a>
  216. </div>
  217. <div id="odd-clicks-page-dest" data-nstest-role="page"></div>
  218. <div id="inject-links-page" data-nstest-role="page">
  219. <a href="#injected-test-page" id="static-injected-test-page-link">static link</a>
  220. </div>
  221. </body>
  222. </html>