index.html 9.5 KB

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