Commit graph

302 commits

Author SHA1 Message Date
John Bender
a4ee2d5bbb moved local failing firefox test to pageSequence helper 2011-05-24 16:42:38 -07:00
John Bender
8291f92ce8 fixed error on undefined var in init_core tests 2011-05-24 14:14:19 -07:00
Kin Blas
5e87e8481d Did a sweep over all tests (except for filter tests) to convert them to pageSequence() where possible. This fixes the test bustages caused by the changePage() refactoring. Note that the "Multiple nested lists on a page" test is still busted, as it is on the HEAD. 2011-05-23 16:51:37 -07:00
Kin Blas
786ef25e0a Changes to get the navigation unit tests green again.
- Modified changePage() to set isPageTransitioning earlier.
- Modified pageSequence() to allow the current changepage callback stack to unwind before firing off the next function in the sequence.
2011-05-23 14:30:40 -07:00
John Bender
a2834bb367 removed two unnecessary tests from the navigation suite, and moved a few more over to the pageSequence helper. 2011-05-21 23:36:06 -07:00
John Bender
dc530ea751 page sequence helper added, nav tests in a somewhat better state. the event trigger spot, namespace, and general setup are all up for debate 2011-05-21 22:15:12 -07:00
Kin Blas
2cfacc4804 Changes to get the navigation_core and navigation_helpers tests to pass again:
- Modified changePage() click test so that it expects changePage() to be called twice.
- Added changePage() test that makes sure it is called once when it is invoked with a page element instead of a URL.
- Added siteDirectory path to be used with some tests which assumed that the tests directory was at the top-level of the server site.
2011-05-20 15:32:17 -07:00
Kin Blas
3c792c58f0 Merge branch 'master' into navigation
Fixed Conflicts:
	js/jquery.mobile.init.js
	js/jquery.mobile.navigation.js
2011-05-20 09:39:19 -07:00
John Bender
15b93909f5 tests for nsNormalize 2011-05-20 00:42:11 -07:00
John Bender
7eb1085764 data attribute namespace normalization to comply with spec and jquery 1.6 changes 2011-05-20 00:31:27 -07:00
John Bender
2cff5c3380 whitespace in core tests 2011-05-20 00:30:05 -07:00
scottjehl
10ce4a7c32 fixed some tests that failed in my last changes 2011-05-18 18:25:59 -04:00
scottjehl
adf3808e84 Removed the dynamically-appended Meta tag, which was deprecated in Alpha 4, and scheduled for removal in beta. jQM users must provide their own meta viewport tag in the head of jQM apps. 2011-05-17 18:03:54 -04:00
scottjehl
8ba4c27300 Ya'll can scale your pages now. Fixes #1645. Note: we originally disabled user zooming to work around a bug in iOS that automatically zooms the page beyond the constraints of the viewport on orientation change. We are not working around this bug at all now, but you are free to include any meta tag you'd like, or better yet, consider this polyfill: http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/ 2011-05-17 17:28:19 -04:00
Ghislain Seguin
b0b24add1f Removed double "-" in "data-" attributes 2011-05-16 08:43:02 -07:00
Ghislain Seguin
df9d846bfc Added unit test for issue #1617 2011-05-15 21:33:40 -07:00
Ghislain Seguin
cabdf7926b Revert "Added unit test for issue #1617"
This reverts commit 3c7c73e5ca.
2011-05-15 21:28:40 -07:00
Ghislain Seguin
3c7c73e5ca Added unit test for issue #1617 2011-05-15 21:13:04 -07:00
Kin Blas
0d7754fe4c Fixing listview filter tests that were broken by pull request 1475:
1387fd457f
2011-05-13 14:17:41 -07:00
Ivan Rubanov
af23fa6337 Fixed test for Windows Phone 7 2011-05-09 05:29:35 -07:00
John Bender
91f5a3492b added two more test conditions to ensure a single active button per radio button set and a single checked input 2011-05-02 01:00:04 -07:00
John Bender
cabd45283b test to verify that clicking radio buttons changes checked state and ui btn active 2011-05-02 00:54:59 -07:00
John Bender
e84c2c614b fixed comment in paths tests 2011-05-01 22:26:03 -07:00
John Bender
9096763741 finished basic pathing tests sans site relative root ir / 2011-04-29 22:23:57 -07:00
John Bender
9b88587426 completed doc relative tests 2011-04-27 23:07:58 -07:00
John Bender
84c1cfbcd8 first set of tests for path handling per Kin's wiki page 2011-04-27 22:43:41 -07:00
John Bender
31604bb75a removed uncecessary clone for event names array to fix the tests 2011-04-27 22:04:00 -07:00
Kin Blas
19c06952fd Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute.
The expected prototype for a transitionHandler is as follows:

function handler(name, reverse, $to, $from)

The name parameter is the name of the transition as specified by @data-transition attribute, reverse is a boolean that is false for a normal transition, and true for a reverse transition. The $to param is a jQuery collection containing the page that is being transitioned "to", and $from is an optional collection that tells us what page we are transitioning "from". Because $from is optional, handler developers should take care and check $from to make sure it is not undefined before attempting to dereference it.

In addition to registering custom transition by name, developers can specify a handler to use in the case where a transition name is specified and does not exist within the $.mobile.transitionHanlders dictionary. Within jQuery Mobile, the default handler for unknown transition types is the $.mobile.css3Transition() handler. This handler always assumes that the transition name is to be used as a CSS class to be placed on the $to and $from elements. To change the default handler, simply set $.mobile.defaultTransitionHandler to you function handler:

$.mobile.defaultTransitionHandler = myTransitionHandler;

The changes to make all this necessary are as follows:

- Created $.mobile.noneTransitionHandler which is the default transitionHandler for the framework that simply adds and removes the page active class on the $from and $to pages with no animations.

- Moved class based transition code into a new plugin jquery.mobile.transition.js file. This plugin, when present, overrides the noneTransitionHandler as the defaultTranstionHandler for the framework so that CSS3 animation transitions are available.

- Removed code related to the setting/removal of the ui-mobile-viewport-perspective class. The css3TransitionHandler plugin takes care of automatically placing a "viewport-<transition name>" class on the viewport (body) element. This allows any other transition to specify properties on the viewport that are necessary to accomplish the transition.

- changed the CSS class ui-mobile-viewport-perspective to viewport-flip to match code changes. This makes it more apparent that setting -webkit-perspective is only used with the flip transition.

- Updated js/index.php, Makefile and build.xml to include the new jquery.mobile.transition.js file.
2011-04-26 14:06:10 -07:00
John Bender
dfab3d7920 increased two test timeouts to give slower ci test browser time work, also included a small whitespace fix to nav 2011-04-21 23:17:08 -07:00
John Bender
70a86c748f added a sequenced test to make sure that opening a dialog sized select menu resulted in that same dialog many times. also moved one of the event tests over to core 2011-04-21 22:32:37 -07:00
John Bender
b0e3d5fbf1 select test cleanup, added test to check that the dialog hash key is removed when a large select menu item is clicked Fixes #1454 2011-04-19 23:28:11 -07:00
John Bender
49b1b780ed test alterations for absolute navigation 2011-04-18 21:46:53 -07:00
John Bender
b83d81962e tests for dialog query param support 2011-04-14 21:49:50 -07:00
John Bender
a267a3077c added tests to verify that dialogs referencing themselves with query params don't do anything 2011-04-14 21:49:50 -07:00
scottjehl
d97a964884 been meaning to do this for a while. 2011-04-14 16:04:47 -04:00
Kin Blas
8ca008ee23 It doesn't get any true-er with an extra 'u'! 2011-04-13 18:09:41 -07:00
John Bender
ac736c6053 moved previous strip query tests to tests for cleanHash 2011-04-12 01:16:20 -07:00
John Bender
aee4c631da removed stripQuery helper to reduce confusion and complexity as striping the query param from a url is much more complex than a hash as it was originally intended for 2011-04-12 01:14:05 -07:00
John Bender
cdc0f139ce tests for nested pages/query params 2011-04-12 01:05:36 -07:00
John Bender
8d3dc2cbc2 query param href/actions require absolute path prefixes when no relative path information is contained in the hash 2011-04-12 00:22:42 -07:00
John Bender
193762da19 tests for handling query params in makeAbsolute path helper, moved path helper tests to helper test file 2011-04-11 23:42:01 -07:00
John Bender
5158c6f7cb comment correction in test 2011-04-06 13:33:32 -07:00
John Bender
ceed56fb2a test added for checkbox check and uncheck firing change 2011-04-06 13:31:06 -07:00
John Bender
b1da5f0d06 added tests to make sure links that reference the pages they are defined within don't transition Fixes #1360 2011-04-04 23:47:16 -07:00
John Bender
280394757b fixed titles in the checkbox radio tests 2011-04-01 23:43:59 -07:00
John Bender
4bea7c41b8 fixed broken open page call to prevent redirect in tests 2011-04-01 22:55:55 -07:00
John Bender
9280fb467f whitespace in listview tests 2011-04-01 22:55:55 -07:00
John Bender
3a85ef61ac removed global pre test setup that used QUnit.start :(, and fixed spurious test failures from changePage being fired by the library after it had been redefined in the tests 2011-04-01 02:11:15 -07:00
John Bender
f63b1bf911 moved page title tests to sequence to stabalize their behavior 2011-03-31 22:47:40 -07:00
John Bender
89775d233a whitespace in navigation core tests and fixtures page 2011-03-31 22:18:54 -07:00