Commit graph

732 commits

Author SHA1 Message Date
scottjehl
e35327c894 rewrote the transitions test suite and handlers to account for our new sequence. The main difference is most tests are async now, and use two functions: onFromComplete and onToComplete to test conditions before each page's animationComplete handler finishes (while animation classes are still present, for instance). onToComplete must call start() so that pages stay in proper sequences, as fromComplete may not always run depending on pages in play, and it's only halfway done in the trans.Needs more tests now! 2012-01-10 17:30:28 +07:00
scottjehl
679a46dbf0 even when stubbing out the function for testing, this $.fn needs to return this (it's relied upon for chaining in nav) 2012-01-10 13:23:55 +07:00
John Bender
cf611bc1c7 conceding defeat on determining the load order issue that's causing the test failure 2012-01-06 15:27:21 -08:00
John Bender
f60dd96178 remove duplicate test run 2012-01-06 15:27:21 -08:00
John Bender
12f112d6d4 check to make sure cached test page appears 2012-01-06 15:27:21 -08:00
John Bender
3cea545f73 enforce test order ... dying a little inside 2012-01-05 14:23:17 -08:00
John Bender
3c2bfaca8a remove define stub, it's now stubbed through including jquery.mobile.define.js in js/index.php 2012-01-04 14:26:03 -08:00
John Bender
b47d9ba24e fix async loading select test issue where keepnative isn't defined in time for the leading test 2012-01-04 13:13:24 -08:00
John Bender
95073892f0 Merge branch 'amd' 2012-01-04 12:24:33 -08:00
John Bender
223ad8daab move to reloadModule as it returns a deferred 2012-01-04 11:26:36 -08:00
John Bender
bda2834acc make sure the slider core runs before init to set keepNative properly 2012-01-04 11:23:21 -08:00
John Bender
0a48b9168f update select cached tests to use async 2012-01-04 11:10:04 -08:00
John Bender
dc3e42ec86 update listview pushstate test to use async 2012-01-04 11:08:21 -08:00
John Bender
912a7e852f init test order and other small fixes 2012-01-04 11:05:52 -08:00
John Bender
739452ded0 fixed listview tests async loading 2012-01-04 09:45:36 -08:00
Mat Marquis
573fcf8668 Updating select menu tests to match recent dialog markup changes. 2012-01-04 12:35:13 -05:00
John Bender
16391e4af9 stub define in event tests 2012-01-04 09:10:52 -08:00
John Bender
81d1f6f282 stubbed define in nav tests 2012-01-04 08:56:35 -08:00
John Bender
9c7e1b755f fix url checks to use search where appropriate 2012-01-04 08:02:31 -08:00
Mat Marquis
9b3aefae84 Moved .ui-dialog to element wrapping dialog header/content/footer, switched overlay non-theming class to .ui-dialog-page. 2012-01-03 18:16:29 -05:00
John Bender
d82b6aacfc update nav base tests to use new push state helper 2012-01-03 14:13:56 -08:00
Ghislain Seguin
c5415307ba Fixed checkboxradio tests 2011-12-28 14:08:18 -08:00
Ghislain Seguin
83de694e9f Reverted unwanted changes 2011-12-24 00:51:39 -08:00
Ghislain Seguin
0bd10de3e8 Added require.js 1.0.3 as a submodule 2011-12-24 00:48:08 -08:00
Ghislain Seguin
42190caef2 AMDized 2011-12-22 17:32:01 -08:00
Ghislain Seguin
d97118d891 Added $.testHelper.deferredSequence
Renamed reloadLib to reloadModule
Resuscitated $.testHelper.reloadLib
2011-12-22 17:31:11 -08:00
Ghislain Seguin
1bbd67bc98 Remove .js suffix from libName 2011-12-22 10:44:08 -08:00
Ghislain Seguin
db5a919928 Use new testHelper.reloadLib 2011-12-22 09:55:07 -08:00
Ghislain Seguin
a3392bc0ff Remove .js suffix from libName 2011-12-22 09:53:26 -08:00
Ghislain Seguin
22c6409f63 AMDized 2011-12-22 09:49:33 -08:00
Ghislain Seguin
c58022c8ff AMDized 2011-12-21 16:41:43 -08:00
Ghislain Seguin
67df0cdf10 Minimized imported resources
Added css links
2011-12-21 14:41:48 -08:00
Ghislain Seguin
dba47fee54 Fixed test name 2011-12-21 14:41:19 -08:00
Ghislain Seguin
5c4c62e5e5 AMDized 2011-12-21 14:39:45 -08:00
Ghislain Seguin
2f43368fda Trailing comma 2011-12-21 14:37:43 -08:00
Ghislain Seguin
4bb45a9b70 Minimized imported resources 2011-12-21 14:35:14 -08:00
Ghislain Seguin
ee91030bb3 AMDized 2011-12-21 14:29:09 -08:00
Ghislain Seguin
69d69092d5 AMDized 2011-12-21 13:59:48 -08:00
Ghislain Seguin
2c38391171 AMDized 2011-12-21 13:43:48 -08:00
Ghislain Seguin
ba6c4dd8c8 AMDized 2011-12-21 13:36:59 -08:00
Ghislain Seguin
185ea02809 AMDized 2011-12-21 11:54:12 -08:00
Ghislain Seguin
65c1d48e47 Use .js convention provided by requirejs 2011-12-21 11:50:46 -08:00
Ghislain Seguin
4e60cd57f2 AMDized 2011-12-21 11:46:11 -08:00
Ghislain Seguin
2a2ebfa55a Make sure controlGroup is loaded after checkboxradio (via order plugin) 2011-12-21 11:46:11 -08:00
John Bender
5158cbf4ce remove base url juggling in favore of .js convention provided by requirejs 2011-12-21 11:30:46 -08:00
John Bender
dc203029a3 update dialog tests to use amd 2011-12-21 08:13:24 -08:00
John Bender
94b6e9c8da upgrade degrade inputs tests to use amd, whitespace 2011-12-21 08:03:15 -08:00
John Bender
981a210d78 update core tests to use amd, fix misleading test 2011-12-21 07:58:11 -08:00
John Bender
0d7a3b9014 update control group tests to use amd 2011-12-20 23:06:40 -08:00
John Bender
38bd74cc95 remove unecessary collapsible test dep 2011-12-20 23:06:15 -08:00
John Bender
790e0439d1 update collapsible tests to use amd 2011-12-20 22:53:32 -08:00
John Bender
e778924de3 update checkboxradio tests to use amd 2011-12-20 22:49:16 -08:00
John Bender
88c22906a4 update buttonMarkup tests to amd 2011-12-20 22:43:25 -08:00
John Bender
1e4be460c2 update button core tests to amd 2011-12-20 22:24:03 -08:00
John Bender
af50e19b1f page test moved to async load, fix for bad assumption in return false test 2011-12-20 17:02:43 -08:00
John Bender
810edd8472 more flexible async loading helper, converted select test 2011-12-20 17:01:16 -08:00
John Bender
e466f6844c whitespace in page core tests 2011-12-20 16:33:38 -08:00
John Bender
b0c1acae4d alter select index tests to use async load 2011-12-20 15:02:09 -08:00
scottjehl
b70832981d fixed up the failing unit test by ensuring the toolbars were shown before testing for transition classes. 2011-12-20 17:38:06 +07:00
scottjehl
68e7bc562d changed any tests that used :visible or :hidden, because the toolbars are now hidden with absolute positioning, and are aways visible. Instead, checked for presence of hide class. 2011-12-20 17:38:06 +07:00
scottjehl
05d01e70fe Created 33 unit tests for the base features and methods of the fixedtoolbar plugin. 5 tests are currently failing due to a change in logic in the show/hide methods. Those tests just need adjusting, as the feature itself is currently working. 2011-12-20 17:38:05 +07:00
John Bender
c716ab707a take closestParentPage off of $.fn 2011-12-09 14:39:57 -08:00
John Bender
5071221291 respect page loading times and comment on assumption in degradeInputs test 2011-12-09 12:52:53 -08:00
John Bender
def90bf230 whitespace in degradeInputs tests 2011-12-09 12:51:38 -08:00
John Bender
a80e4c3b4c test that closestPageData works as expected 2011-12-09 12:31:49 -08:00
John Bender
2b49d382d8 Merge branch 'master' of https://github.com/eromba/jquery-mobile into eromba-master 2011-12-09 11:50:15 -08:00
John Bender
7a267e2c7d test that the link title value is the selected option text 2011-12-06 16:09:52 -08:00
John Bender
5f6ce0d651 test that an empty string val results in the min attr value on refresh 2011-12-05 15:38:25 -08:00
John Bender
b4f945f73b test steps in refresh 2011-11-23 13:30:40 -08:00
John Bender
3b78250b17 comment linebreak 2011-11-23 13:30:40 -08:00
John Bender
3b83d4e032 force round numbers to avoid testing step rounding in keypress tests 2011-11-23 13:30:40 -08:00
Ethan Romba
a8c04855b4 Issue #3081: Range inputs on dialogs don't degrade
The degradeInputs plugin bails early for pages that do not have
data-role="page". This behavior prevented range inputs (for slider widgets)
from degrading properly when used in dialogs.

Updated degradeInputs unit tests to check dialogs, too.
2011-11-21 16:47:14 -06:00
John Bender
a9d9ca3dac test navbar button click functionality 2011-11-21 13:09:00 -08:00
jblas@adobe.com
afb7bab90f Test case for issues:
3046 - closestEnabledButton() conflicts with OpenLayers
3054 - RC3 - button conflicts with svg element, throws error: Uncaught TypeError: Object #<SVGAnimatedString> has no method 'split'
2011-11-15 10:22:36 -08:00
John Bender
54e9cc6466 test list view parent theme inheritance 2011-11-14 10:13:07 -08:00
John Bender
d35b86fea0 test that the hidden element for input button submission is added many times 2011-11-11 12:08:24 -08:00
John Bender
f501712617 Merge pull request #2919 from redaemn/flip-switch-improvements
Corrected some tests for the slider widget
2011-11-10 15:10:38 -08:00
Ghislain Seguin
b4df2ecfb2 Added some more negative testing for theming 2011-11-10 10:10:08 -08:00
John Bender
50204053bc test for page load text area autogrow 2011-11-09 11:35:22 -08:00
Ghislain Seguin
99783f4803 Merge pull request #2997 from eddiemonge/docs
Unify css and js references for doc changes
2011-11-09 10:56:44 -08:00
Eddie Monge
88884db175 Unify css and js references for doc changes 2011-11-08 18:39:49 -08:00
John Bender
949dd4c6c8 test that title is restored on link transition to first page 2011-11-08 15:41:37 -08:00
jblas@adobe.com
d6f2f438b6 Fixing the busted unit/core tests.
- Clear the namespace property name cache if the namespace is changed.
2011-11-08 13:05:51 -08:00
Ghislain Seguin
3da8e0d171 Added tests for dialog theming and overlayTheme 2011-11-04 22:34:58 -07:00
jblas@adobe.com
b7c88e4d08 Added unit test case for issue #2520 (No longer able to remove / expire pages reliably). 2011-11-04 11:03:50 -07:00
Gabriele Rabbiosi
0e14c98efe Corrected some tests for the slider widget 2011-11-02 23:58:50 +01:00
John Bender
70571119b7 test that the text and val can update the parent button markup 2011-10-31 14:07:10 -07:00
John Bender
fef4b200a6 handle pixel values from calls to $.fn.css('left') in slider tests 2011-10-28 15:58:25 -07:00
Todd Parker
6264d95da2 Merge pull request #2812 from redaemn/flip-switch-improvements
Fix for issue #2756 - flip toggle slider animated snapping. Thanks redaemn!
2011-10-27 18:31:39 -07:00
Maurice Gottlieb
d59a9d8b15 Fix issue #2845: remove xhtml endtag from css-link 2011-10-27 14:45:32 +02:00
jblas@adobe.com
b37bf0223c Added unit tests for issue #2835 - pagechangefailed not triggered when changing to non-existent internal page. 2011-10-25 17:07:31 -07:00
John Bender
6549b42ab5 test that clicks bound to labeled checkbox input are fired by label clicks 2011-10-25 10:55:13 -07:00
Gabriele Rabbiosi
ee05bb5576 Fixed issue #2631 - flip toggle switch animation improved 2011-10-23 14:30:10 +02:00
Gabriele Rabbiosi
396f8d019e Issue #2756 - flip toggle switch value can be changed when the switch is disabled 2011-10-22 17:05:05 +02:00
Ghislain Seguin
55d89893a2 Merge pull request #2492 from hpbuniat/search-filter-bar-2416
Fix for #2416
2011-10-21 16:48:20 -07:00
John Bender
f3c5cd811e tests to verify that items embedded in page sub elements are enhanced properly 2011-10-21 15:56:26 -07:00
John Bender
1896235247 add linkBindingEnabled tests 2011-10-20 15:16:03 -07:00
John Bender
4bb744025e whitespace in button markup 2011-10-20 12:48:10 -07:00
John Bender
76d8d3825a cleaned up test to limit event binding bleed 2011-10-19 10:35:14 -07:00
John Bender
911ff69972 test for custom select dialog title update from dom 2011-10-18 09:39:25 -07:00
Eddie Monge
8bc5e42fb3 2700: Step 5 Update all doc references 2011-10-17 13:51:45 -07:00
Matthew Leon Grinshpun
8b713b26f3 add button tag 2011-10-15 15:13:21 -04:00
Matthew Leon Grinshpun
62459c7cca fix for button iconshadow 2011-10-15 15:09:45 -04:00
Matthew Leon Grinshpun
b1c3de990b git both tests to fail 2011-10-15 14:56:55 -04:00
Matthew Leon Grinshpun
79c7a225b3 failing button ui shadow tests 2011-10-15 14:49:10 -04:00
Gabriele Rabbiosi
862f58e90c refactored degradeInputs tests 2011-10-14 01:02:37 +02:00
Gabriele Rabbiosi
9903376f35 degradeInputs now uses the recently introduced keepNativeSelector() 2011-10-14 00:50:29 +02:00
Gabriele Rabbiosi
7c34c5dc4b Merge branch 'master' of git://github.com/jquery/jquery-mobile into Issue-#2654 2011-10-14 00:25:49 +02:00
Gabriele Rabbiosi
1559478aae Issue #2654 - 'degradeInputs' plugin doesn't trigger on 'create' events; modified plugin and added tests 2011-10-13 22:21:47 +02:00
John Bender
49325216ed second half of the test fix from yesterday that was required by the root page url default 2011-10-12 11:54:07 -07:00
John Bender
713c6a0342 fixed broken path tests
normally I wouldn't accept re-ordering of tests as a solution to any problem, but the issue here was multiple changepage events overlapping during our tests. generally we have browser state issues in our test suite and we need a general solution for them which will come post 1.0
2011-10-12 11:54:07 -07:00
John Bender
475069becd added test for prefetched dialog pages 2011-10-11 16:19:18 -07:00
John Bender
2b5d9a9a3a correction to nav test to account for root element using the pathname + search 2011-10-11 13:11:11 -07:00
John Bender
e4cf491c2c missing semi 2011-10-11 11:37:37 -07:00
John Bender
845f657ddf test that autogrow is triggered on keyup 2011-10-11 11:32:38 -07:00
John Bender
5150114c13 test page init textarea autogrow 2011-10-11 11:32:38 -07:00
John Bender
0aec8639d0 fixes to test unit runner for upgrade to qunit 2011-10-11 08:42:26 -07:00
John Bender
2efeafde40 corrected failing checkboxradio test 2011-10-11 08:39:10 -07:00
John Bender
623433f75b tests for enhance and exclusion through keepNative 2011-10-10 14:21:37 -07:00
John Bender
b958e84e2c correction of slider test markup 2011-10-10 14:21:37 -07:00
John Bender
f368f01a82 correct selector in test 2011-10-10 14:21:37 -07:00
John Bender
ec2c015136 slider enhanceWith tests 2011-10-10 14:21:37 -07:00
John Bender
63ab61cb89 test for enhanceWithin use 2011-10-10 14:21:37 -07:00
John Bender
18737f4940 test to verify that textinputs are kept native where necessary 2011-10-10 14:21:37 -07:00
John Bender
c1bd079b90 test for keepnative on the select menu 2011-10-10 14:21:37 -07:00
John Bender
b358985ca2 tests for keepNativeSelector method 2011-10-10 14:21:36 -07:00
John Bender
92baba02d4 orientation change check requires stubbing onorientationchange 2011-10-07 13:32:34 -07:00
John Bender
c2c7af8876 fix for failing tests adding root page to the dom twice because of the search string 2011-10-07 13:30:31 -07:00
Jörn Zaefferer
23a24f6106 Update to latest QUnit. Fix event tests that were calling both asyncTest 2011-10-04 17:34:33 -04:00
Jörn Zaefferer
0ed1460279 Add swarminject.js to prepare for TestSwarm integration 2011-10-04 15:02:17 -04:00
Kin Blas
5811440641 Added a test for diretly loading Urls with a hash that contains just the dialogHashKey. This tests to make sure these issues don't happen again:
Issue #2570 - Refreshing a page with #&ui-state=dialog causes syntax error
Issue #2582 - Refreshing a page with #&ui-state=dialog causes page duplication
2011-09-30 12:40:57 -07:00
scottjehl
e29346daf5 Merge remote branch 'origin/master' 2011-09-29 14:47:24 -04:00
scottjehl
a93c4878aa removed media classes JS - deprecated since Beta 1. Use CSS3 Media Queries with a polyfill instead :) Docs are updated to link to old code in case anyone still needs a backwards-port 2011-09-29 14:47:05 -04:00
Kin Blas
d64eaf0500 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-28 11:40:33 -07:00
Kin Blas
880df5fcf5 Added unit test for issue #2537 - Add new pageremove event.
The test makes use of a pageremove callback that conditionally calls preventDefault() on the event so that the test can make sure a developer can prevent a specific page from being removed from the DOM.
2011-09-28 11:38:18 -07:00
gseguin
bc2243342d Changed collapsible tests following fix for #2527 2011-09-28 11:01:58 -07:00
John Bender
9acbcb3b15 add test to guarantee that getEncodedText does not return html 2011-09-27 15:55:44 -07:00
John Bender
d816fe1ec1 tests for getEncodedText helper and issue #2547 2011-09-27 15:48:52 -07:00
Hans-Peter Buniat
68e2839209 removed settimeout 2011-09-25 14:12:55 +02:00
gseguin
5bd72c7b96 Merge branch 'collapsible-redesign' 2011-09-24 22:12:22 -07:00
gseguin
16c34ce3ac Behavior changed, fixed test 2011-09-24 22:02:18 -07:00
gseguin
553de2d265 Unit tests for collapsible and collapsible-set following commit bdaa477f68 2011-09-24 17:24:07 -07:00
John Bender
e8f87f864f test to cover text inputs without types 2011-09-23 20:45:55 -07:00
John Bender
20810a00e5 test to verify removal of child menupages 2011-09-23 16:32:56 -07:00
John Bender
4852491f9e test for new core helpers 2011-09-23 16:32:56 -07:00
John Bender
890c96146e test core helpers 2011-09-23 16:32:56 -07:00
John Bender
76eb594cd1 fix nav test to use close button in dialog and not data rel back 2011-09-23 16:32:56 -07:00
John Bender
eb7c4d08d8 closed tags in test redirect pages 2011-09-23 16:32:56 -07:00
Hans-Peter Buniat
d79c8a63cf added test for #2416 2011-09-23 08:13:19 +02:00
Kin Blas
a5c873e388 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-22 16:25:38 -07:00