Commit graph

581 commits

Author SHA1 Message Date
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
Kin Blas
36a47bbb0e Added slider unit test for issue 2315 - Flip toggle switch with change event bound, triggers multiple times 2011-09-22 16:24:56 -07:00
gseguin
141b199224 Updated tests for $.jqmData() and $.fn.jqmData() to match the new behavior 2011-10-05 15:13:44 -07:00
John Bender
94bc82f64c fix for failing checkbox radio test 2011-09-22 15:38:49 -07:00
John Bender
5b42fe6ea0 whitespace in checkboxradio core 2011-09-22 15:38:49 -07:00
John Bender
dd75904c11 fix the scrolling test in nav core to account for timing expectations in the page 2011-09-22 08:52:45 -07:00
Kin Blas
7ec8999bd0 Added a navigation test for issue 1243 - Can't link to dynamically created data-role="page" 2011-09-21 15:47:14 -07:00
Kin Blas
9b0bf5252d Removed deprecated "beforechangepage", "changepage", and "changepagefailed" event references in preparation for jQM 1.0 release.
Updated the unit tests to use "pagechange" event instead of "changepage".
2011-09-20 16:59:30 -07:00
Kin Blas
c75a7ad654 Fix for issue 1666 - Deprecate $.mobile.pageLoading()
- Removed $.mobile.pageLoading().
- Updated tests/unit/init/ to call the new showPageLoadingMsg/hidePageLoadingMsg functions.
2011-09-20 14:45:26 -07:00
John Bender
c61354447c alter pageinit test to validate that child widgets are in fact enhanced when the event is fired. covers the previous tests case 2011-09-16 10:24:14 -07:00
gseguin
095d731398 Updated tests following removal of .jqmHasData() ( commit 15667eee1b ) 2011-09-16 09:19:12 -07:00
gseguin
101657d7b7 Tests following .jqmData() behavior change ( commit a0ca22ae3d ) 2011-09-16 09:14:46 -07:00
John Bender
f932c9b13d init test for jqm using page widget 2011-09-15 15:35:48 -07:00
John Bender
150697c8d2 whitespace fix for nav core tests 2011-09-15 15:12:52 -07:00
John Bender
56c0b9de36 unmock which value for other tests 2011-09-15 11:10:15 -07:00
John Bender
5346a91595 added event test to make sure the which was being defined on triggered events 2011-09-15 10:36:12 -07:00
John Bender
9cc8daa91a test that middle click doesn't trigger a page change 2011-09-15 10:25:04 -07:00
gseguin
518894fc69 Merge branch 'issue-1899' 2011-09-14 16:22:16 -07:00
gseguin
688b2b45c0 Fixed collapsible unit test to match last commit e6eaf7cacd 2011-09-14 16:06:31 -07:00
John Bender
3ed30673ad test for issue 2444 2011-09-14 15:54:00 -07:00
gseguin
8c8d66781f Added some unit tests for Collapsible 2011-09-14 11:06:24 -07:00
Kin Blas
56a22727ab Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-13 00:23:33 -07:00
Kin Blas
1a92be0240 Fix for issue 2406 - Navigation from one page back to multi-page template
- Make sure that our hashchange resolves non-path hashes against the documentBase. This prevents the resulting changePath() call from incorrectly resolving against the URL for the current active (external) page.

- Fixed a problem in the push-state code. A hashchange event is *NOT* fired when navigating back (window.history.back()) from an external page to an internal page. This makes sense when you think about it since hashchange is only ever fired when the hash of the current document url changes, not when the document url itself changes. The fix was to make sure that the pushstate hashchange callback always sets a state object, even on embedded page URLs. This allows the hashchange callback to be triggered from within onPopState().
2011-09-13 00:23:03 -07:00
John Bender
942b0c29ae test for open and close no-op 2011-09-12 16:59:08 -07:00
John Bender
219b450c5a test that embedded listview pages with nested lists aren't removed by the page removal code 2011-09-12 14:47:55 -07:00
John Bender
824bd12e12 add tests for theme inheritance in select menus 2011-09-12 09:08:48 -07:00
jblas@adobe.com
6a4bd76a9c Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-09-09 18:26:21 -07:00
jblas@adobe.com
c348266166 Fixed the page last scroll test which has been failing for a few days now. 2011-09-09 18:25:43 -07:00
John Bender
97654c2d90 tests for newly refreshed items and button update with custom selects 2011-09-09 17:27:26 -07:00
John Bender
fab4f366a4 test for issue 2410, to verify that the button value is updated on refresh with new options 2011-09-09 09:14:39 -07:00
John Resig
0b83cf8d60 Tweak some more stylesheet formatting. 2011-09-08 21:35:28 -04:00
Kin Blas
abb812cc01 Fixes for issue 1464 - No way to stop a link from being followed with some custom event (tap, taphold)
jquery.mobile.vmouse.js:

	- Modified triggerVirtualEvent() so that it returns the virtual event instead of the isDefaultPrevented() result of the virtual event.

		- Updated all references to triggerVirtualEvent() that relied on the boolean return value to instead check the isDefaultPrevented() call on the event now returned.

			- Updated mouseEventCallback() to propagate the iDefaultPrevented(), isPropagationStopped(), and stopImmediatePropagation() values from the virtual event on to the  original mouse event.

			jquery.mobile.event.js

				- Modified the "taphold" trigger code to create a new $.Event() instead of passing the stale vmousedown event.

					- Added clearTapTimer() which is called from a new vmouseup binding, to prevent the timer from firing between the tie the finger/mouse goes up and the click event is dispatched.

					- Added some propagation tests for the "tap" event. Tests for "taphold" will have to wait until we fix the problem where multiple taphold timers are fired off when an element and one of its ancestors is bound to taphold.
2011-09-07 10:09:00 -04:00
John Bender
ad7e5bc8d1 added comment for the touches event proto addition 2011-09-07 10:09:00 -04:00
John Bender
3dfcf5fd77 fixed event tests to trigger on a dom element 2011-09-07 10:09:00 -04:00
scottjehl
28bb987729 added a unit test for last-scroll remembering. 2011-09-07 09:16:02 -04:00
John Bender
f679d30620 added ipv6 support to urlparse regex Fixes #2362 2011-08-30 15:59:46 -07:00
John Bender
23ee457309 whitespace in navigation helper tests 2011-08-30 15:52:31 -07:00
John Bender
fd286444f4 replaceState *and* pushState are now required for $.support.pushState to be true 2011-08-29 10:18:40 -07:00
John Bender
c3bac78880 moved push state dialog key test down into its own file to have the key at the root 2011-08-27 01:01:54 -07:00
John Bender
1811b31715 added sub page hash key tests 2011-08-27 01:01:54 -07:00
John Bender
7ed31bedb5 added test to make sure the dialog key is always in the hash 2011-08-27 01:01:54 -07:00
John Bender
49cf3af91a Merge branch 'replacestate-external' 2011-08-25 13:05:54 -07:00
gseguin
00e56c1560 Added test for ui-li-has presence
related to issue #779
2011-08-24 13:55:15 -07:00
John Bender
12391923fc added comment to make sure folks aren't confused as to why one of the test pages is just a redirect 2011-08-19 18:41:24 -07:00
John Bender
66aec28d8a renamed redirect test pages for clarity in test suite runner 2011-08-19 14:08:37 -07:00
John Bender
a671c559f4 nav tests passing for both push state and hash 2011-08-19 14:02:35 -07:00
John Bender
d3a1acdca8 small fix to capture failures properly in test suite runner 2011-08-18 23:33:16 -07:00
John Bender
7b122cacfc fixed tests to work with both pushstate and hash 2011-08-18 16:28:28 -07:00
John Bender
ef52c8d312 updated core to use the url assertions for both hash and replace state 2011-08-18 14:13:39 -07:00
gseguin
e39a320214 Added unit tests for issue #1405 2011-08-17 18:15:57 -07:00
John Bender
a8aa78d331 remove json_encode for those who aren't able to upgrade their version of php for god knows what reason ;) 2011-08-17 15:40:18 -07:00
John Bender
82dc08fee9 fixed listview tests for both pushstate and hash 2011-08-17 15:19:52 -07:00