Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move navigation tests to integration, make sure the whole suite passes

  • Loading branch information...
commit b4460e126aa66bb663f09b2e741152ea8ba47067 1 parent 944779f
@johnbender johnbender authored
Showing with 306 additions and 144 deletions.
  1. +2 −2 tests/integration/button-markup/index.html
  2. +2 −2 tests/integration/checkboxradio/index.html
  3. +2 −2 tests/integration/collapsible/index.html
  4. +2 −2 tests/integration/core/index.html
  5. +2 −2 tests/integration/degrade-inputs/index.html
  6. +2 −2 tests/integration/dialog/index.html
  7. +3 −3 tests/integration/dialog/no-hash-tests.html
  8. +2 −2 tests/integration/fixed-toolbar/index.html
  9. +2 −2 tests/integration/listview/index.html
  10. +2 −2 tests/integration/listview/nested-tests.html
  11. +2 −2 tests/integration/listview/push-state-disabled-tests.html
  12. 0  tests/{unit → integration}/navigation/base-change.html
  13. +2 −2 tests/{unit → integration}/navigation/base-tests.html
  14. 0  tests/{unit → integration}/navigation/base-tests/app-base/base-page-1.html
  15. 0  tests/{unit → integration}/navigation/base-tests/app-base/base-page-2.html
  16. 0  tests/{unit → integration}/navigation/base-tests/content/content-page-1.html
  17. 0  tests/{unit → integration}/navigation/base-tests/content/content-page-2.html
  18. 0  tests/{unit → integration}/navigation/blank.html
  19. 0  tests/{unit → integration}/navigation/cached-external.html
  20. 0  tests/{unit → integration}/navigation/data-url-tests/data-url.html
  21. 0  tests/{unit → integration}/navigation/data-url-tests/nested.html
  22. 0  tests/{unit → integration}/navigation/data-url-tests/non-data-url.html
  23. 0  tests/{unit → integration}/navigation/data-url-tests/parentheses.html
  24. 0  tests/{unit → integration}/navigation/data-url-tests/reverse-attr.html
  25. 0  tests/{unit → integration}/navigation/data-url-tests/single-quotes.html
  26. 0  tests/{unit → integration}/navigation/dialog-param-test/dialog-param.html
  27. 0  tests/{unit → integration}/navigation/dialog.html
  28. +1 −1  tests/{unit → integration}/navigation/event/beforenavigate-tests.html
  29. 0  tests/{unit → integration}/navigation/event/event_beforenavigate.js
  30. 0  tests/{unit → integration}/navigation/event/event_core.js
  31. +1 −1  tests/{unit → integration}/navigation/event/index.html
  32. +2 −2 tests/{unit → integration}/navigation/event/push-state-disabled-tests.html
  33. 0  tests/{unit → integration}/navigation/external.html
  34. 0  tests/{unit → integration}/navigation/file.html
  35. 0  tests/{unit → integration}/navigation/form-tests/changepage-data.html
  36. 0  tests/{unit → integration}/navigation/form-tests/form-no-action.html
  37. 0  tests/{unit → integration}/navigation/go-to-dialog.html
  38. +10 −10 tests/{unit → integration}/navigation/index.html
  39. +2 −2 tests/{unit → integration}/navigation/init-query-param-hash-tests.html
  40. 0  tests/{unit → integration}/navigation/init-tests/navigation_query_param_hash.js
  41. +2 −2 tests/{unit → integration}/navigation/init-tests/query-param-hash.html
  42. +1 −1  tests/{unit → integration}/navigation/method/index.html
  43. 0  tests/{unit → integration}/navigation/method/method_core.js
  44. +2 −2 tests/{unit → integration}/navigation/method/push-state-disabled-method-tests.html
  45. +2 −2 tests/{unit → integration}/navigation/multipage/index.html
  46. 0  tests/{unit → integration}/navigation/multipage/multipage_core.js
  47. 0  tests/{unit → integration}/navigation/navigation_base.js
  48. +1 −1  tests/{unit → integration}/navigation/navigation_core.js
  49. 0  tests/{unit → integration}/navigation/navigation_paths.js
  50. 0  tests/{unit → integration}/navigation/navigation_transitions.js
  51. 0  tests/{unit → integration}/navigation/path-tests/file.html
  52. 0  tests/{unit → integration}/navigation/path-tests/parent-ref.html
  53. 0  tests/{unit → integration}/navigation/path-tests/parent/index.html
  54. 0  tests/{unit → integration}/navigation/path-tests/sub-dir/file.html
  55. 0  tests/{unit → integration}/navigation/path-tests/sub-dir/index.html
  56. 0  tests/{unit → integration}/navigation/prefetched-dialog.html
  57. 0  tests/{unit → integration}/navigation/prefetched.html
  58. +2 −2 tests/{unit → integration}/navigation/push-state-disabled-base-tests.html
  59. +2 −2 tests/{unit → integration}/navigation/push-state-disabled-tests.html
  60. 0  tests/{unit → integration}/navigation/sequence/another-page.html
  61. 0  tests/{unit → integration}/navigation/sequence/basic-dialog.html
  62. 0  tests/{unit → integration}/navigation/sequence/basic-dialog1.html
  63. +2 −2 tests/{unit → integration}/navigation/sequence/index.html
  64. 0  tests/{unit → integration}/navigation/sequence/sequence-dialog-hash-key-tests.html
  65. 0  tests/{unit → integration}/navigation/sequence/sequence-path1-path2-dialog-hash-key-tests.html
  66. +2 −2 tests/{unit → integration}/navigation/sequence/sequence-push-state-disabled-dialog-hash-key-tests.html
  67. +2 −2 ...→ integration}/navigation/sequence/sequence-push-state-disabled-path1-path2-dialog-hash-key-tests.html
  68. +2 −2 tests/{unit → integration}/navigation/sequence/sequence-push-state-disabled-tests.html
  69. +2 −2 tests/{unit → integration}/navigation/sequence/sequence-redirect.html
  70. 0  tests/{unit → integration}/navigation/sequence/sequence_core.js
  71. 0  tests/{unit → integration}/navigation/title1.html
  72. 0  tests/{unit → integration}/navigation/title2.html
  73. 0  tests/{unit → integration}/navigation/title3.html
  74. +10 −10 tests/{unit → integration}/navigation/transition-tests.html
  75. +2 −2 tests/integration/page/{page-with-entities-in-title-tests.html → index.html}
  76. +2 −2 tests/integration/select/cached-tests.html
  77. +4 −0 tests/integration/select/defineKeepNative.js
  78. +3 −3 tests/integration/select/index.html
  79. +34 −0 tests/integration/select/select_events.js
  80. +124 −0 tests/integration/select/select_native.js
  81. 0  tests/{unit → }/jquery.setNameSpace.js
  82. 0  tests/{unit → }/swarminject.js
  83. +2 −2 tests/unit/button-markup/index.html
  84. +2 −2 tests/unit/button/index.html
  85. +2 −2 tests/unit/checkboxradio/index.html
  86. +2 −2 tests/unit/controlgroup/index.html
  87. +2 −2 tests/unit/core/index.html
  88. +2 −2 tests/unit/degrade-inputs/index.html
  89. +3 −3 tests/unit/dialog/{data-attr-init-tests.html → index.html}
  90. +2 −2 tests/unit/event/index.html
  91. +2 −2 tests/unit/field-contain/index.html
  92. +2 −2 tests/unit/fixed-toolbar/index.html
  93. +2 −2 tests/unit/init/dialog-load-tests.html
  94. +2 −2 tests/unit/init/index.html
  95. +2 −2 tests/unit/init/nopage.html
  96. +2 −2 tests/unit/kitchensink/index.html
  97. +2 −2 tests/unit/loader/index.html
  98. +2 −2 tests/unit/media/index.html
  99. +2 −2 tests/unit/navbar/index.html
  100. +2 −2 tests/unit/page-sections/index.html
  101. +2 −2 tests/unit/page/index.html
  102. +2 −2 tests/unit/panel/index.html
  103. +2 −2 tests/unit/path/index.html
  104. +2 −2 tests/unit/popup/index.html
  105. +2 −2 tests/unit/rangeslider/index.html
  106. +2 −2 tests/unit/reset/index.html
  107. +2 −2 tests/unit/select/index.html
  108. +2 −2 tests/unit/slider/index.html
  109. +2 −2 tests/unit/support/index.html
  110. +2 −2 tests/unit/table/index.html
  111. +1 −1  tests/unit/textinput/index.html
  112. +2 −2 tests/unit/widget/index.html
  113. +2 −2 tests/unit/zoom/index.html
  114. +2 −2 tests/unit/zoom/initial-disable.html
View
4 tests/integration/button-markup/index.html
@@ -7,7 +7,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../external/qunit.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script>
@@ -28,7 +28,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/integration/checkboxradio/index.html
@@ -7,7 +7,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -26,7 +26,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/integration/collapsible/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -27,7 +27,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/integration/core/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -21,7 +21,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/integration/degrade-inputs/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -21,7 +21,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/integration/dialog/index.html
@@ -13,7 +13,7 @@
$.mobile.page.prototype.options.contentTheme = "d";
});
</script>
- <script src="../../unit/jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -34,7 +34,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../../unit/swarminject.js"></script>
+ <script src="../../../swarminject.js"></script>
</head>
<body>
View
6 tests/integration/dialog/no-hash-tests.html
@@ -14,7 +14,7 @@
$.mobile.pushStateEnabled = false;
});
</script>
- <script src="../../unit/jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -35,7 +35,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../../unit/swarminject.js"></script>
+ <script src="../../../swarminject.js"></script>
</head>
<body>
@@ -47,7 +47,7 @@ <h2 id="qunit-userAgent"></h2>
<div id="mypage" data-nstest-role="page" data-nstest-theme="a">
<div data-nstest-role="content">
- <a id="dialog-no-hash-link" href="../../unit/dialog/dialog-no-hash.html" data-role="dialog">Dialog</a>
+ <a id="dialog-no-hash-link" href="dialog-no-hash.html" data-role="dialog">Dialog</a>
</div>
</div>
View
4 tests/integration/fixed-toolbar/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -25,7 +25,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/integration/listview/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script type="text/javascript">
@@ -34,7 +34,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/integration/listview/nested-tests.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script type="text/javascript">
@@ -33,7 +33,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/integration/listview/push-state-disabled-tests.html
@@ -2,8 +2,8 @@
<html lang="en">
<head>
<!-- forces the base-tests into a push state disabled run and allows for
- the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
- test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
+ the test suite runner to pick it up as a seperate test set. See test/integration/ls.php,
+ test/integration/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
<script src="../../../js/jquery.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script type="text/javascript">
View
0  tests/unit/navigation/base-change.html → ...s/integration/navigation/base-change.html
File renamed without changes
View
4 tests/unit/navigation/base-tests.html → tests/integration/navigation/base-tests.html
@@ -18,7 +18,7 @@
</script>
<script src="../../../../../js/jquery.tag.inserter.js"></script>
- <script src="../../../jquery.setNameSpace.js"></script>
+ <script src="../../../../jquery.setNameSpace.js"></script>
<script src="../../../../../tests/jquery.testHelper.js"></script>
<script src="../../../../../js/"></script>
@@ -31,7 +31,7 @@
</script>
<script type="text/javascript" src="../../navigation_base.js"></script>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
0  ...tion/base-tests/app-base/base-page-1.html → ...tion/base-tests/app-base/base-page-1.html
File renamed without changes
View
0  ...tion/base-tests/app-base/base-page-2.html → ...tion/base-tests/app-base/base-page-2.html
File renamed without changes
View
0  ...on/base-tests/content/content-page-1.html → ...on/base-tests/content/content-page-1.html
File renamed without changes
View
0  ...on/base-tests/content/content-page-2.html → ...on/base-tests/content/content-page-2.html
File renamed without changes
View
0  tests/unit/navigation/blank.html → tests/integration/navigation/blank.html
File renamed without changes
View
0  tests/unit/navigation/cached-external.html → ...tegration/navigation/cached-external.html
File renamed without changes
View
0  ...t/navigation/data-url-tests/data-url.html → ...n/navigation/data-url-tests/data-url.html
File renamed without changes
View
0  ...nit/navigation/data-url-tests/nested.html → ...ion/navigation/data-url-tests/nested.html
File renamed without changes
View
0  ...vigation/data-url-tests/non-data-url.html → ...vigation/data-url-tests/non-data-url.html
File renamed without changes
View
0  ...avigation/data-url-tests/parentheses.html → ...avigation/data-url-tests/parentheses.html
File renamed without changes
View
0  ...vigation/data-url-tests/reverse-attr.html → ...vigation/data-url-tests/reverse-attr.html
File renamed without changes
View
0  ...igation/data-url-tests/single-quotes.html → ...igation/data-url-tests/single-quotes.html
File renamed without changes
View
0  ...ation/dialog-param-test/dialog-param.html → ...ation/dialog-param-test/dialog-param.html
File renamed without changes
View
0  tests/unit/navigation/dialog.html → tests/integration/navigation/dialog.html
File renamed without changes
View
2  ...avigation/event/beforenavigate-tests.html → ...avigation/event/beforenavigate-tests.html
@@ -16,7 +16,7 @@
[ "event_beforenavigate.js" ]
], "../../../../js" );
</script>
- <script src="../../swarminject.js"></script>
+ <script src="../../../swarminject.js"></script>
</head>
<body>
<div id="qunit"></div>
View
0  .../navigation/event/event_beforenavigate.js → .../navigation/event/event_beforenavigate.js
File renamed without changes
View
0  tests/unit/navigation/event/event_core.js → ...ntegration/navigation/event/event_core.js
File renamed without changes
View
2  tests/unit/navigation/event/index.html → ...s/integration/navigation/event/index.html
@@ -16,7 +16,7 @@
[ "event_core.js" ]
], "../../../../js" );
</script>
- <script src="../../swarminject.js"></script>
+ <script src="../../../swarminject.js"></script>
</head>
<body>
<div id="qunit"></div>
View
4 ...tion/event/push-state-disabled-tests.html → ...tion/event/push-state-disabled-tests.html
@@ -2,8 +2,8 @@
<html lang="en">
<head>
<!-- forces the base-tests into a push state disabled run and allows for
- the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
- test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
+ the test suite runner to pick it up as a seperate test set. See test/integration/ls.php,
+ test/integration/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
<script src="../../../../js/jquery.js"></script>
<script src="../../../jquery.testHelper.js"></script>
<script type="text/javascript">
View
0  tests/unit/navigation/external.html → tests/integration/navigation/external.html
File renamed without changes
View
0  tests/unit/navigation/file.html → tests/integration/navigation/file.html
File renamed without changes
View
0  ...avigation/form-tests/changepage-data.html → ...avigation/form-tests/changepage-data.html
File renamed without changes
View
0  ...navigation/form-tests/form-no-action.html → ...navigation/form-tests/form-no-action.html
File renamed without changes
View
0  tests/unit/navigation/go-to-dialog.html → .../integration/navigation/go-to-dialog.html
File renamed without changes
View
20 tests/unit/navigation/index.html → tests/integration/navigation/index.html
@@ -6,7 +6,7 @@
<title>jQuery Mobile Navigation Test Suite</title>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script type="text/javascript">
$( document ).bind( "mobileinit", function(){
@@ -23,7 +23,7 @@
<script src="../../../external/qunit.js"></script>
<script type="text/javascript" src="navigation_core.js"></script>
<script type="text/javascript" src="navigation_paths.js"></script>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
<div id="qunit"></div>
@@ -215,8 +215,8 @@
<a href="path-tests/file.html" id="doc-rel-test-two">go</a>
<a href="path-tests/sub-dir/file.html" id="doc-rel-test-three">go</a>
<a href="path-tests/sub-dir/" id="doc-rel-test-four">go</a>
- <a href="../../unit/navigation/path-tests/parent-ref.html" id="doc-rel-test-five">go</a>
- <a href="../../unit/navigation/path-tests/parent/" id="doc-rel-test-six">go</a>
+ <a href="../../integration/navigation/path-tests/parent-ref.html" id="doc-rel-test-five">go</a>
+ <a href="../../integration/navigation/path-tests/parent/" id="doc-rel-test-six">go</a>
<!-- site rel links -->
<!-- these will be altered before the test suite runs to use the current path -->
@@ -224,8 +224,8 @@
<a href="path-tests/file.html" id="site-rel-test-two" class="site-rel">go</a>
<a href="path-tests/sub-dir/file.html" id="site-rel-test-three" class="site-rel">go</a>
<a href="path-tests/sub-dir/" id="site-rel-test-four" class="site-rel">go</a>
- <a href="../../unit/navigation/path-tests/parent-ref.html" id="site-rel-test-five" class="site-rel">go</a>
- <a href="../../unit/navigation/path-tests/parent/" id="site-rel-test-six" class="site-rel">go</a>
+ <a href="../../integration/navigation/path-tests/parent-ref.html" id="site-rel-test-five" class="site-rel">go</a>
+ <a href="../../integration/navigation/path-tests/parent/" id="site-rel-test-six" class="site-rel">go</a>
<!-- protocol rel links -->
<!-- these will be altered before the test suite runs to use the
@@ -234,8 +234,8 @@
<a href="path-tests/file.html" id="protocol-rel-test-two" class="protocol-rel">go</a>
<a href="path-tests/sub-dir/file.html" id="protocol-rel-test-three" class="protocol-rel">go</a>
<a href="path-tests/sub-dir/" id="protocol-rel-test-four" class="protocol-rel">go</a>
- <a href="../../unit/navigation/path-tests/parent-ref.html" id="protocol-rel-test-five" class="protocol-rel">go</a>
- <a href="../../unit/navigation/path-tests/parent/" id="protocol-rel-test-six" class="protocol-rel">go</a>
+ <a href="../../integration/navigation/path-tests/parent-ref.html" id="protocol-rel-test-five" class="protocol-rel">go</a>
+ <a href="../../integration/navigation/path-tests/parent/" id="protocol-rel-test-six" class="protocol-rel">go</a>
<!-- absolute links -->
<!-- these will be altered before the test suite runs to use the
@@ -244,8 +244,8 @@
<a href="path-tests/file.html" id="absolute-test-two" class="absolute">go</a>
<a href="path-tests/sub-dir/file.html" id="absolute-test-three" class="absolute">go</a>
<a href="path-tests/sub-dir/" id="absolute-test-four" class="absolute">go</a>
- <a href="../../unit/navigation/path-tests/parent-ref.html" id="absolute-test-five" class="absolute">go</a>
- <a href="../../unit/navigation/path-tests/parent/" id="absolute-test-six" class="absolute">go</a>
+ <a href="../../integration/navigation/path-tests/parent-ref.html" id="absolute-test-five" class="absolute">go</a>
+ <a href="../../integration/navigation/path-tests/parent/" id="absolute-test-six" class="absolute">go</a>
</div>
View
4 ...vigation/init-query-param-hash-tests.html → ...vigation/init-query-param-hash-tests.html
@@ -2,8 +2,8 @@
<html lang="en">
<head>
<!-- forces the base-tests into a push state disabled run and allows for
- the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
- test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
+ the test suite runner to pick it up as a seperate test set. See test/integration/ls.php,
+ test/integration/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
<script src="../../../js/jquery.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script type="text/javascript">
View
0  ...init-tests/navigation_query_param_hash.js → ...init-tests/navigation_query_param_hash.js
File renamed without changes
View
4 ...vigation/init-tests/query-param-hash.html → ...vigation/init-tests/query-param-hash.html
@@ -6,7 +6,7 @@
<title>jQuery Mobile Navigation Test Suite</title>
<script src="../../../../js/jquery.tag.inserter.js"></script>
- <script src="../../jquery.setNameSpace.js"></script>
+ <script src="../../../jquery.setNameSpace.js"></script>
<script src="../../../../tests/jquery.testHelper.js"></script>
<script type="text/javascript">
$( window ).bind( "mobileinit", function(){
@@ -17,7 +17,7 @@
<link rel="stylesheet" href="../../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../../external/qunit.css"/>
<script src="../../../../external/qunit.js"></script>
- <script src="../../swarminject.js"></script>
+ <script src="../../../swarminject.js"></script>
<script type="text/javascript" src="navigation_query_param_hash.js"></script>
</head>
<body>
View
2  tests/unit/navigation/method/index.html → .../integration/navigation/method/index.html
@@ -16,7 +16,7 @@
[ "method_core.js" ]
], "../../../../js" );
</script>
- <script src="../../swarminject.js"></script>
+ <script src="../../../swarminject.js"></script>
</head>
<body>
<div id="qunit"></div>
View
0  tests/unit/navigation/method/method_core.js → ...egration/navigation/method/method_core.js
File renamed without changes
View
4 ...hod/push-state-disabled-method-tests.html → ...hod/push-state-disabled-method-tests.html
@@ -2,8 +2,8 @@
<html lang="en">
<head>
<!-- forces the base-tests into a push state disabled run and allows for
- the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
- test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
+ the test suite runner to pick it up as a seperate test set. See test/integration/ls.php,
+ test/integration/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
<script src="../../../../js/jquery.js"></script>
<script src="../../../jquery.testHelper.js"></script>
<script type="text/javascript">
View
4 tests/unit/navigation/multipage/index.html → ...tegration/navigation/multipage/index.html
@@ -13,7 +13,7 @@
$.mobile.page.prototype.options.contentTheme = "d";
});
</script>
- <script src="../../jquery.setNameSpace.js"></script>
+ <script src="../../../jquery.setNameSpace.js"></script>
<script src="../../../jquery.testHelper.js"></script>
<script src="../../../../external/qunit.js"></script>
<script>
@@ -32,7 +32,7 @@
<link rel="stylesheet" href="../../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../../external/qunit.css"/>
- <script src="../../swarminject.js"></script>
+ <script src="../../../swarminject.js"></script>
</head>
<body>
View
0  ...it/navigation/multipage/multipage_core.js → ...on/navigation/multipage/multipage_core.js
File renamed without changes
View
0  tests/unit/navigation/navigation_base.js → ...integration/navigation/navigation_base.js
File renamed without changes
View
2  tests/unit/navigation/navigation_core.js → ...integration/navigation/navigation_core.js
@@ -41,7 +41,7 @@ $.testHelper.delayStart();
function(){
ok( $.mobile.activePage[0] === $( "#active-state-page1" )[ 0 ], "successful navigation to internal page." );
- $.testHelper.openPage("#/tests/unit/navigation/external.html");
+ $.testHelper.openPage("#/tests/integration/navigation/external.html");
},
function() {
View
0  tests/unit/navigation/navigation_paths.js → ...ntegration/navigation/navigation_paths.js
File renamed without changes
View
0  ...unit/navigation/navigation_transitions.js → ...tion/navigation/navigation_transitions.js
File renamed without changes
View
0  tests/unit/navigation/path-tests/file.html → ...tegration/navigation/path-tests/file.html
File renamed without changes
View
0  ...nit/navigation/path-tests/parent-ref.html → ...ion/navigation/path-tests/parent-ref.html
File renamed without changes
View
0  ...t/navigation/path-tests/parent/index.html → ...n/navigation/path-tests/parent/index.html
File renamed without changes
View
0  ...t/navigation/path-tests/sub-dir/file.html → ...n/navigation/path-tests/sub-dir/file.html
File renamed without changes
View
0  .../navigation/path-tests/sub-dir/index.html → .../navigation/path-tests/sub-dir/index.html
File renamed without changes
View
0  tests/unit/navigation/prefetched-dialog.html → ...gration/navigation/prefetched-dialog.html
File renamed without changes
View
0  tests/unit/navigation/prefetched.html → tests/integration/navigation/prefetched.html
File renamed without changes
View
4 ...ation/push-state-disabled-base-tests.html → ...ation/push-state-disabled-base-tests.html
@@ -2,8 +2,8 @@
<html lang="en">
<head>
<!-- forces the base-tests into a push state disabled run and allows for
- the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
- test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
+ the test suite runner to pick it up as a seperate test set. See test/integration/ls.php,
+ test/integration/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
<script src="../../../js/jquery.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script type="text/javascript">
View
4 ...navigation/push-state-disabled-tests.html → ...navigation/push-state-disabled-tests.html
@@ -2,8 +2,8 @@
<html lang="en">
<head>
<!-- forces the base-tests into a push state disabled run and allows for
- the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
- test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
+ the test suite runner to pick it up as a seperate test set. See test/integration/ls.php,
+ test/integration/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
<script src="../../../js/jquery.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script type="text/javascript">
View
0  ...nit/navigation/sequence/another-page.html → ...ion/navigation/sequence/another-page.html
File renamed without changes
View
0  ...nit/navigation/sequence/basic-dialog.html → ...ion/navigation/sequence/basic-dialog.html
File renamed without changes
View
0  ...it/navigation/sequence/basic-dialog1.html → ...on/navigation/sequence/basic-dialog1.html
File renamed without changes
View
4 tests/unit/navigation/sequence/index.html → ...ntegration/navigation/sequence/index.html
@@ -13,7 +13,7 @@
$.mobile.page.prototype.options.contentTheme = "d";
});
</script>
- <script src="../../jquery.setNameSpace.js"></script>
+ <script src="../../../jquery.setNameSpace.js"></script>
<script src="../../../jquery.testHelper.js"></script>
<script src="../../../../external/qunit.js"></script>
<script>
@@ -34,7 +34,7 @@
<link rel="stylesheet" href="../../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../../external/qunit.css"/>
- <script src="../../swarminject.js"></script>
+ <script src="../../../swarminject.js"></script>
</head>
<body>
View
0  ...uence/sequence-dialog-hash-key-tests.html → ...uence/sequence-dialog-hash-key-tests.html
File renamed without changes
View
0  ...ce-path1-path2-dialog-hash-key-tests.html → ...ce-path1-path2-dialog-hash-key-tests.html
File renamed without changes
View
4 ...state-disabled-dialog-hash-key-tests.html → ...state-disabled-dialog-hash-key-tests.html
@@ -2,8 +2,8 @@
<html lang="en">
<head>
<!-- forces the base-tests into a push state disabled run and allows for
- the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
- test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
+ the test suite runner to pick it up as a seperate test set. See test/integration/ls.php,
+ test/integration/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
<script src="../../../../js/jquery.js"></script>
<script src="../../../jquery.testHelper.js"></script>
<script type="text/javascript">
View
4 ...ed-path1-path2-dialog-hash-key-tests.html → ...ed-path1-path2-dialog-hash-key-tests.html
@@ -2,8 +2,8 @@
<html lang="en">
<head>
<!-- forces the base-tests into a push state disabled run and allows for
- the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
- test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
+ the test suite runner to pick it up as a seperate test set. See test/integration/ls.php,
+ test/integration/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
<script src="../../../../js/jquery.js"></script>
<script src="../../../jquery.testHelper.js"></script>
<script type="text/javascript">
View
4 ...e/sequence-push-state-disabled-tests.html → ...e/sequence-push-state-disabled-tests.html
@@ -2,8 +2,8 @@
<html lang="en">
<head>
<!-- forces the base-tests into a push state disabled run and allows for
- the test suite runner to pick it up as a seperate test set. See test/unit/ls.php,
- test/unit/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
+ the test suite runner to pick it up as a seperate test set. See test/integration/ls.php,
+ test/integration/runner.js, base-tests.html, and tests/jquery.testHelper.js for more. -->
<script src="../../../../js/jquery.js"></script>
<script src="../../../jquery.testHelper.js"></script>
<script type="text/javascript">
View
4 ...avigation/sequence/sequence-redirect.html → ...avigation/sequence/sequence-redirect.html
@@ -13,7 +13,7 @@
$.mobile.page.prototype.options.contentTheme = "d";
});
</script>
- <script src="../../jquery.setNameSpace.js"></script>
+ <script src="../../../jquery.setNameSpace.js"></script>
<script src="../../../jquery.testHelper.js"></script>
<script src="../../../../external/qunit.js"></script>
<script>
@@ -35,7 +35,7 @@
<link rel="stylesheet" href="../../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../../external/qunit.css"/>
- <script src="../../swarminject.js"></script>
+ <script src="../../../swarminject.js"></script>
</head>
<body>
View
0  ...unit/navigation/sequence/sequence_core.js → ...tion/navigation/sequence/sequence_core.js
File renamed without changes
View
0  tests/unit/navigation/title1.html → tests/integration/navigation/title1.html
File renamed without changes
View
0  tests/unit/navigation/title2.html → tests/integration/navigation/title2.html
File renamed without changes
View
0  tests/unit/navigation/title3.html → tests/integration/navigation/title3.html
File renamed without changes
View
20 tests/unit/navigation/transition-tests.html → ...egration/navigation/transition-tests.html
@@ -6,7 +6,7 @@
<title>jQuery Mobile Navigation Test Suite</title>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script type="text/javascript">
$.testHelper.setPushState();
@@ -18,7 +18,7 @@
<script src="../../../external/qunit.js"></script>
<script type="text/javascript" src="navigation_transitions.js"></script>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
@@ -200,8 +200,8 @@ <h2 id="qunit-userAgent"></h2>
<a href="path-tests/file.html" id="doc-rel-test-two">go</a>
<a href="path-tests/sub-dir/file.html" id="doc-rel-test-three">go</a>
<a href="path-tests/sub-dir/" id="doc-rel-test-four">go</a>
- <a href="../../unit/navigation/path-tests/parent-ref.html" id="doc-rel-test-five">go</a>
- <a href="../../unit/navigation/path-tests/parent/" id="doc-rel-test-six">go</a>
+ <a href="../../integration/navigation/path-tests/parent-ref.html" id="doc-rel-test-five">go</a>
+ <a href="../../integration/navigation/path-tests/parent/" id="doc-rel-test-six">go</a>
<!-- site rel links -->
<!-- these will be altered before the test suite runs to use the current path -->
@@ -209,8 +209,8 @@ <h2 id="qunit-userAgent"></h2>
<a href="path-tests/file.html" id="site-rel-test-two" class="site-rel">go</a>
<a href="path-tests/sub-dir/file.html" id="site-rel-test-three" class="site-rel">go</a>
<a href="path-tests/sub-dir/" id="site-rel-test-four" class="site-rel">go</a>
- <a href="../../unit/navigation/path-tests/parent-ref.html" id="site-rel-test-five" class="site-rel">go</a>
- <a href="../../unit/navigation/path-tests/parent/" id="site-rel-test-six" class="site-rel">go</a>
+ <a href="../../integration/navigation/path-tests/parent-ref.html" id="site-rel-test-five" class="site-rel">go</a>
+ <a href="../../integration/navigation/path-tests/parent/" id="site-rel-test-six" class="site-rel">go</a>
<!-- protocol rel links -->
<!-- these will be altered before the test suite runs to use the
@@ -219,8 +219,8 @@ <h2 id="qunit-userAgent"></h2>
<a href="path-tests/file.html" id="protocol-rel-test-two" class="protocol-rel">go</a>
<a href="path-tests/sub-dir/file.html" id="protocol-rel-test-three" class="protocol-rel">go</a>
<a href="path-tests/sub-dir/" id="protocol-rel-test-four" class="protocol-rel">go</a>
- <a href="../../unit/navigation/path-tests/parent-ref.html" id="protocol-rel-test-five" class="protocol-rel">go</a>
- <a href="../../unit/navigation/path-tests/parent/" id="protocol-rel-test-six" class="protocol-rel">go</a>
+ <a href="../../integration/navigation/path-tests/parent-ref.html" id="protocol-rel-test-five" class="protocol-rel">go</a>
+ <a href="../../integration/navigation/path-tests/parent/" id="protocol-rel-test-six" class="protocol-rel">go</a>
<!-- absolute links -->
<!-- these will be altered before the test suite runs to use the
@@ -229,8 +229,8 @@ <h2 id="qunit-userAgent"></h2>
<a href="path-tests/file.html" id="absolute-test-two" class="absolute">go</a>
<a href="path-tests/sub-dir/file.html" id="absolute-test-three" class="absolute">go</a>
<a href="path-tests/sub-dir/" id="absolute-test-four" class="absolute">go</a>
- <a href="../../unit/navigation/path-tests/parent-ref.html" id="absolute-test-five" class="absolute">go</a>
- <a href="../../unit/navigation/path-tests/parent/" id="absolute-test-six" class="absolute">go</a>
+ <a href="../../integration/navigation/path-tests/parent-ref.html" id="absolute-test-five" class="absolute">go</a>
+ <a href="../../integration/navigation/path-tests/parent/" id="absolute-test-six" class="absolute">go</a>
</div>
View
4 ...ge/page-with-entities-in-title-tests.html → tests/integration/page/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../../unit/jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -28,7 +28,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../../unit/swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/integration/select/cached-tests.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../../unit/jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
@@ -26,7 +26,7 @@
]);
</script>
- <script src="../../unit/swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/integration/select/defineKeepNative.js
@@ -0,0 +1,4 @@
+$(document).bind("mobileinit", function() {
+ $.mobile.page.prototype.options.keepNative = "select.should-be-native";
+});
+
View
6 tests/integration/select/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../external/qunit.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script>
@@ -16,7 +16,7 @@
[
"widgets/forms/select",
"widgets/forms/select.custom",
- "../../unit/select/defineKeepNative.js"
+ "../../integration/select/defineKeepNative.js"
],
[ "jquery.mobile.init" ],
[
@@ -30,7 +30,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
34 tests/integration/select/select_events.js
@@ -0,0 +1,34 @@
+/*
+ * mobile select unit tests
+ */
+
+(function($){
+ var libName = "jquery.mobile.forms.select";
+
+ $(document).bind('mobileinit', function(){
+ $.mobile.selectmenu.prototype.options.nativeMenu = false;
+ });
+
+ module(libName,{
+ setup: function(){
+ $.testHelper.openPage( location.hash.indexOf("#default") >= 0 ? "#" : "#default" );
+ }
+ });
+
+ test( "selects marked with data-native-menu=true should use a div as their button", function(){
+ deepEqual($("#select-choice-native-container div.ui-btn").length, 1);
+ });
+
+ test( "selects marked with data-native-menu=true should not have a custom menu", function(){
+ deepEqual($("#select-choice-native-container ul").length, 0);
+ });
+
+ test( "selects marked with data-native-menu=true should sit inside the button", function(){
+ deepEqual($("#select-choice-native-container div.ui-btn select").length, 1);
+ });
+
+ test( "select controls will create when inside a container that receives a 'create' event", function(){
+ ok( !$("#enhancetest").appendTo(".ui-page-active").find(".ui-select").length, "did not have enhancements applied" );
+ ok( $("#enhancetest").trigger("create").find(".ui-select").length, "enhancements applied" );
+ });
+})(jQuery);
View
124 tests/integration/select/select_native.js
@@ -0,0 +1,124 @@
+/*
+ * mobile select unit tests
+ */
+
+(function($){
+ module("jquery.mobile.forms.select native");
+
+ test( "native menu selections alter the button text", function(){
+ var select = $( "#native-select-choice-few" ), setAndCheck;
+
+ setAndCheck = function(key){
+ var text;
+
+ select.val( key ).selectmenu( 'refresh' );
+ text = select.find( "option[value='" + key + "']" ).text();
+ deepEqual( select.parent().find(".ui-btn-text").text(), text );
+ };
+
+ setAndCheck( 'rush' );
+ setAndCheck( 'standard' );
+ });
+
+ asyncTest( "selecting a value removes the related buttons down state", function(){
+ var select = $( "#native-select-choice-few" );
+
+ $.testHelper.sequence([
+ function() {
+ // click the native menu parent button
+ select.parent().trigger( 'vmousedown' );
+ },
+
+ function() {
+ ok( select.parent().hasClass("ui-btn-down-c"), "button down class added" );
+ },
+
+ function() {
+ // trigger a change on the select
+ select.trigger( "change" );
+ },
+
+ function() {
+ ok( !select.parent().hasClass("ui-btn-down-c"), "button down class removed" );
+ start();
+ }
+ ], 300);
+ });
+
+ // issue https://github.com/jquery/jquery-mobile/issues/2410
+ test( "adding options and refreshing a custom select defaults the text", function() {
+ var select = $( "#custom-refresh" ),
+ button = select.siblings( "a" ).find( ".ui-btn-inner" ),
+ text = "foo";
+
+ deepEqual($.trim(button.text()), "default");
+ select.find( "option" ).remove(); //remove the loading message
+ select.append('<option value="1">' + text + '</option>');
+ select.selectmenu( 'refresh' );
+ deepEqual($.trim(button.text()), text);
+ });
+
+ // issue 2424
+ test( "native selects should provide open and close as a no-op", function() {
+ // exception will prevent test success if undef
+ $( "#native-refresh" ).selectmenu( 'open' );
+ $( "#native-refresh" ).selectmenu( 'close' );
+ ok( true );
+ });
+
+ asyncTest( "The preventFocusZoom option is working as expected", function() {
+
+ var zoomoptiondefault = $.mobile.selectmenu.prototype.options.preventFocusZoom;
+ $.mobile.selectmenu.prototype.options.preventFocusZoom = true;
+
+ $(document)
+ .one("vmousedown.test", function(){
+ ok( $.mobile.zoom.enabled === false, "zoom is disabled on vmousedown" );
+ })
+ .one("mouseup.test", function(){
+ setTimeout(function() { // This empty setTimeout is to match the work-around for the issue reported in https://github.com/jquery/jquery-mobile/issues/5041
+ ok( $.mobile.zoom.enabled === true, "zoom is enabled on mouseup" );
+ $.mobile.selectmenu.prototype.options.preventFocusZoom = zoomoptiondefault;
+ $(document).unbind(".test");
+ $( "#select-choice-native" ).selectmenu( "option", "preventFocusZoom", zoomoptiondefault );
+ start();
+ }, 0);
+ });
+
+ $( "#select-choice-native" )
+ .selectmenu( "option", "preventFocusZoom", true )
+ .parent()
+ .trigger( "vmousedown" )
+ .trigger( "mouseup" );
+
+
+
+
+ });
+
+ asyncTest( "The preventFocusZoom option does not manipulate zoom when it is false", function() {
+
+ var zoomstate = $.mobile.zoom.enabled,
+ zoomoptiondefault = $.mobile.selectmenu.prototype.options.preventFocusZoom;
+
+
+ $(document)
+ .one("vmousedown.test", function(){
+ ok( $.mobile.zoom.enabled === zoomstate, "zoom is unaffected on vmousedown" );
+ })
+ .one("mouseup.test", function(){
+ ok( $.mobile.zoom.enabled === zoomstate, "zoom is unaffected on mouseup" );
+ $(document).unbind(".test");
+ $( "#select-choice-native" ).selectmenu( "option", "preventFocusZoom", zoomoptiondefault );
+ start();
+
+ });
+
+ $( "#select-choice-native" )
+ .selectmenu( "option", "preventFocusZoom", false )
+ .parent()
+ .trigger( "vmousedown" )
+ .trigger( "mouseup" );
+
+ });
+})(jQuery);
View
0  tests/unit/jquery.setNameSpace.js → tests/jquery.setNameSpace.js
File renamed without changes
View
0  tests/unit/swarminject.js → tests/swarminject.js
File renamed without changes
View
4 tests/unit/button-markup/index.html
@@ -7,7 +7,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../external/qunit.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script>
@@ -28,7 +28,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/button/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
@@ -27,7 +27,7 @@
]);
</script>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
<h1 id="qunit-header">jQuery Mobile Button Test Suite</h1>
View
4 tests/unit/checkboxradio/index.html
@@ -7,7 +7,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -26,7 +26,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/controlgroup/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -25,7 +25,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/core/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -21,7 +21,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/degrade-inputs/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -21,7 +21,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
6 tests/unit/dialog/data-attr-init-tests.html → tests/unit/dialog/index.html
@@ -13,7 +13,7 @@
$.mobile.page.prototype.options.contentTheme = "d";
});
</script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -34,7 +34,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
@@ -51,7 +51,7 @@ <h2 id="qunit-userAgent"></h2>
<h1>Dialog</h1>
</div>
<div data-nstest-role="content" >
-
+
</div>
<div data-nstest-role="footer">
footer
View
4 tests/unit/event/index.html
@@ -6,7 +6,7 @@
<title>jQuery Mobile Event Test Suite</title>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script type="text/javascript">
$.testHelper.setPushState();
@@ -26,7 +26,7 @@
<script src="event_core.js"></script>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/field-contain/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -26,7 +26,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/fixed-toolbar/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -25,7 +25,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/init/dialog-load-tests.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<title>jQuery Mobile Init Test Suite</title>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script type="text/javascript" src="../../../js/"></script>
@@ -12,7 +12,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</script>
</head>
<body>
View
4 tests/unit/init/index.html
@@ -5,7 +5,7 @@
<title>jQuery Mobile Init Test Suite</title>
<!-- meta viewport left out on purpose for test append -->
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../external/qunit.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="init_core.js"></script>
@@ -20,7 +20,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/init/nopage.html
@@ -5,14 +5,14 @@
<title>jQuery Mobile Init Test Suite</title>
<!-- meta viewport left out on purpose for test append -->
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../js/"></script>
<script src="../../../external/qunit.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="init_core_nopage.js"></script>
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
<style>
[data-nstest-role="page"], [data-nstest-role="dialog"] {
View
4 tests/unit/kitchensink/index.html
@@ -9,7 +9,7 @@
<script src="../../../js/jquery.tag.inserter.js"></script>
<script src="../../../external/qunit.js"></script>
<script src="../../../js/jquery.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<!-- Because our reloading code reloads our AMD modules
but now tests are running against the built bundle, we need to include the define shim
@@ -27,7 +27,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/loader/index.html
@@ -5,7 +5,7 @@
<title>jQuery Mobile Init Test Suite</title>
<!-- meta viewport left out on purpose for test append -->
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../external/qunit.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="loader_core.js"></script>
@@ -13,7 +13,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/media/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -25,7 +25,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/navbar/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -25,7 +25,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
<h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1>
View
4 tests/unit/page-sections/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -28,7 +28,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/page/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
@@ -25,7 +25,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/panel/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script type="text/javascript">
@@ -28,7 +28,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/path/index.html
@@ -7,7 +7,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<link rel="stylesheet" href="../../../../external/qunit.css"/>
@@ -17,7 +17,7 @@
<script src="../../../js/jquery.mobile.define.js"></script>
<script src="../../../js/"></script>
<script type="text/javascript" src="path_core.js"></script>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
<div id="qunit"></div>
View
4 tests/unit/popup/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
@@ -39,7 +39,7 @@
]);
</script>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
<div id="qunit"></div>
View
4 tests/unit/rangeslider/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../external/qunit.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script>
@@ -25,7 +25,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/reset/index.html
@@ -9,7 +9,7 @@
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
@@ -32,7 +32,7 @@
]);
</script>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
<div id="qunit"></div>
View
4 tests/unit/select/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../external/qunit.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script>
@@ -30,7 +30,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/slider/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../external/qunit.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<script>
@@ -27,7 +27,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>
View
4 tests/unit/support/index.html
@@ -8,7 +8,7 @@
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
- <script src="../jquery.setNameSpace.js"></script>
+ <script src="../../jquery.setNameSpace.js"></script>
<script src="../../../external/qunit.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
@@ -26,7 +26,7 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
+ <script src="../../swarminject.js"></script>
</head>
<body>