Commit graph

402 commits

Author SHA1 Message Date
John Bender
f7d5d918ae fixes for select tests and tests to cover basic functionality for new cached pages and select dialogs 2011-08-01 18:08:28 -07:00
scottjehl
aeaa0f7845 added unit test verifying that the domCache page option can be set globally via $.mobile.page.prototype.options.domCache = true; 2011-07-29 16:03:20 -04:00
John Bender
7a6b28d398 added to to verify that the nested pages are preserved when the parent page is cached 2011-07-29 10:10:26 -07:00
John Bender
3dc9f975e6 fixed second test for page caching 2011-07-29 10:10:26 -07:00
John Bender
3f20eaa038 fixed nav test for new namespace and made the test order independent 2011-07-29 10:10:26 -07:00
John Bender
ded500f3b4 testing additions for listview core 2011-07-29 10:10:26 -07:00
John Bender
3035387446 first test for nested page removal/caching 2011-07-29 10:10:25 -07:00
John Bender
0cd7bb8370 whitespace fix for listview fixtures 2011-07-29 10:10:25 -07:00
John Bender
f79a1afd17 whitespace and semi's in listview core tests 2011-07-29 10:10:25 -07:00
John Bender
bda88be82e whitespace and semi's in listview core tests 2011-07-29 10:10:25 -07:00
John Bender
1a95670012 added test for explicit page caching via data attribute 2011-07-29 10:10:25 -07:00
John Bender
151d55f351 moved dom cache test to page sequence, negative case incoming 2011-07-29 10:10:25 -07:00
John Bender
191815440f whitespace and missing semi 2011-07-29 10:10:25 -07:00
scottjehl
2b1baeb078 fixed up unit test so that it's now properly testing the ajax dom caching page option 2011-07-29 10:10:25 -07:00
scottjehl
dc054a10e7 implemented ajax dom caching option of the page plugin, which can be overridden by page options or data attribute. Includes unit test to support feature. 2011-07-29 10:10:25 -07:00
scottjehl
d670feae08 removed test for page-div-not-required, as it has its own test page.. Added tests for auto initialize option. 2011-07-24 22:13:26 -04:00
scottjehl
fdb77bfa52 changed new (undocumented) "enhance" event to "create" to better match our existing event name conventions 2011-07-22 09:05:55 -04:00
scottjehl
3afef99719 forgot to add a file to the unit test markup 2011-07-20 14:37:02 -04:00
scottjehl
6f701add58 updated unit tests to ensure the enhance event is working properly on self-initializing widgets 2011-07-20 09:35:48 -04:00
scottjehl
64e6ef0e72 bound widgets to the "enhance" event, in addition to the pagecreate event. The enhance event allows developers to enhance the contents of an html fragment by triggering "enhance". 2011-07-19 22:44:03 -04:00
scottjehl
2a6c7fc1b9 This commit decouples all widgets from the page plugin so that they can be used ad-hoc.
- Internally, each plugin self-initializes by binding to the pagecreate event.

- Unit tests have been added and adjusted to support some internal changes involved in this commit.

- In the process, the portions of the page plugin that were used to enhance the header,content,and footer sections of a native-app style page layout are now located in jquery.mobile.page.sections.js.

- No public API options have changed, except that the page plugin no longer has options for keepNative, and degradeInputs, as plugins now handle these internally (keepNative was never documented, and degradeInputs only affected slider, so it lives there now. Page options related to the page sections are now located in the page.sections script, but they are still configurable via the page plugin's options api.

- Make, Ant, and index files are updated with a new load order for all JS files.
2011-07-19 22:25:23 -04:00
scottjehl
c7b63920e7 fixed test failures that occured when the jquery-mobile directory is located in a subdirectory of the server root. 2011-07-19 22:25:05 -04:00
scottjehl
a93cdbcea0 changed up the unit test so that it didn't load the page in an iframe, which seemed to mess things up on the test server. 2011-07-17 16:29:05 -04:00
scottjehl
259815d480 Make data-role=page elements optional. This change makes the framework more lenient with markup, and will ease integration with existing sites, as well as mashups with external content. Unit tests included. Fixes #2096 2011-07-17 14:52:49 -04:00
John Bender
53a8023b14 fixed select tests to click the button instead of calling the select menu method 2011-07-15 15:22:56 -07:00
scottjehl
22b0cae65c added unit tests for the data-prefetch attr 2011-07-15 15:55:27 -04:00
scottjehl
6da7e4a1dc Made loading message configurable at runtime. Fixes #2044. Fixes #1974. Fixes #1947. 2011-07-14 22:46:06 -04:00
John Bender
af3877be43 tests updated to accomodate relative hash references 2011-07-13 16:04:24 -07:00
Ghislain Seguin
584e3070ae Unit tests for issue #1526 2011-07-12 23:32:22 -07:00
scottjehl
2de817d24c fixed some logical errors in these tests. they now pass consistently in Firefox. Still inconsistent in Chrome, though they did pass once in Chrome during testing. Getting closer... 2011-07-10 21:51:08 -04:00
scottjehl
4703fe0d24 Merge branch 'master' of https://github.com/wietsevenema/jquery-mobile into wietsevenema-master 2011-07-10 17:46:51 -04:00
scottjehl
fdde24b51f fixed unit test - menu var wasn't defined. 2011-07-10 17:34:38 -04:00
scottjehl
033ce4ab96 Merge branch 'fix_issue_1851' of https://github.com/tigbro/jquery-mobile into tigbro-fix_issue_1851
Conflicts:
	js/jquery.mobile.forms.checkboxradio.js
2011-07-10 17:17:51 -04:00
scottjehl
47cb8cbeeb fixed test so it passes in Firefox 2011-07-10 17:14:55 -04:00
scottjehl
1036a8398a added unit test to verify previous bugfix. 2011-07-10 16:28:40 -04:00
Wietse Venema
dd2bdcd606 added failing test for inset listview issue with top-corner 2011-06-30 11:11:52 +02:00
John Bender
2fda8f7efc sorted directories to create consistent/readable order of execution 2011-06-29 13:46:05 -07:00
John Bender
5a14398c55 throttledresize event tests use eventSequence 2011-06-29 12:48:09 -07:00
John Bender
8b6e617309 set up eventSequence helper, moved pageSequence to eventSequence(changpage, fns) 2011-06-29 12:41:04 -07:00
John Bender
eb772dfcae click the first item link in the dialog and not all the items in the dialog 2011-06-29 10:43:30 -07:00
Ghislain Seguin
d0ec1ec452 Merge pull request #1660 from gseguin/issue-1470
Fix for #1470
2011-06-28 22:26:00 -07:00
John Bender
a9020282b5 moved select test to page sequnce to fix timing issues 2011-06-27 19:03:30 -07:00
John Bender
9729dc9f15 moved finicky hashchange test to sequence helper to prevent overlap with setting the hash 2011-06-27 12:36:17 -07:00
John Bender
d42658882a fixed init hang 2011-06-27 11:19:52 -07:00
John Bender
56c43d398b white space and title change for the suite runner 2011-06-27 11:19:51 -07:00
Kin Blas
008c5d7458 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-06-27 10:25:34 -07:00
Kin Blas
0d65a0d1c5 - Fixed issue #1923 - url of form is miscalculated
- Added code to calculate whether to choose the documentUrl or the page Url in the case where an action is not specified on a form element.

	- Fixed bug in the navigation "submit" handler where an error was being thrown if "type" was not specified.

	- Fixed typo "diabled" id typos in tests/unit/navigation/index.html.

	- Added tests for form submissions with no action in both base and non-base specified cases.
2011-06-27 10:25:13 -07:00
Tobias Bosch
ec06fc1efd unit tests for #1851 added. 2011-06-27 16:40:31 +02:00
John Bender
807536dd2c clear both timeouts when the tests complete or timeout 2011-06-26 23:29:26 -07:00
John Bender
132e6e510f whitespace in test suite runner 2011-06-26 23:19:38 -07:00