Commit graph

316 commits

Author SHA1 Message Date
Ghislain Seguin
a6533e3676 Fixed test for "Programmatic removal of list items"
(cherry picked from commit 5d4bf2d5412c900fbcd093f1a3549a34dbab8e6c)
2011-06-17 11:59:05 -07:00
Ghislain Seguin
ff8517c915 Merge remote-tracking branch 'upstream/master' into issue-1654
Conflicts:
	tests/unit/listview/listview_core.js
2011-06-17 09:37:36 -07:00
Kin Blas
c011f51f14 Removed unused path.isRelative() function. Replaced unit tests for isRelative() with tests for path.isRelativeUrl. 2011-06-13 16:45:10 -07:00
Kin Blas
41349de54f Add some tests for the use case where the document URL is different from the document base. 2011-06-13 15:26:19 -07:00
Kin Blas
a337e6d9a2 Fixed a test case that had a bad baseline result. 2011-06-10 10:17:54 -07:00
Kin Blas
b7bcf93620 - We were missing a changepage notification in the case where we were transitioning to the same page.
- Added changepagefailed notification for the case where the load fails. Note we still need beforeloadpage/loadpage notifications.

- Misc fixes to stop the navigation unit tests from seemingly random failures. It seems that the hash resets in setup/teardown of the test modules sometimes interferes with the changePage() requests in the tests. Added code to the setup/teardown functions to wait for the reset to complete before moving on to the tests.
2011-06-10 10:00:25 -07:00
Kin Blas
f605e100e4 More fixes to get the navigation tests green again.
- Switched lots of tests over to using pageSequence.
2011-06-09 20:44:10 -07:00
Kin Blas
3d6bd402a2 - Changes to get the navigation_helpers.js unit tests green.
- Modified isExternal so that it returns true/false to help with unit tests.
2011-06-08 17:20:01 -07:00
Ghislain Seguin
6af27f9a7e Beefed up nested lists test 2011-06-03 11:06:44 -07:00
Ghislain Seguin
888a3d4faf Fixed nested lists tests following id generation change (8373105) 2011-06-03 10:55:04 -07:00
Ghislain Seguin
14492002e2 Fixed test case for issue #1617 2011-06-03 10:55:04 -07:00
Kin Blas
489fc19fb1 Unit test to catch issues like 1767.
- Test passing string as data option to changePage().
- Test passing object as data option to changePage().
2011-06-02 16:52:36 -07:00
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
Ghislain Seguin
59a04d5a90 Fixed unit tests 2011-05-19 00:00:05 -07:00
Ghislain Seguin
4255f5752f Fix for issue #1654 2011-05-18 23:46:46 -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