Commit graph

148 commits

Author SHA1 Message Date
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
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
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
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
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
b7d5df786f whitespace and comment merge conflict resolved 2011-08-17 11:09:05 -07:00
John Bender
81737dba6a small whitespace fix 2011-08-17 10:51:18 -07:00
John Bender
74300195b3 moved pushstate library disable and load into testhelper 2011-08-17 10:49:38 -07:00
John Bender
886cdcf927 setup pushstate tests 2011-08-17 10:25:51 -07:00
John Bender
5775dd19a4 whitespace in nav core tests 2011-08-17 10:05:24 -07:00
John Bender
1a4dd41293 alterted base path tests as an example of how to preserve content testing while accomodating both possible url formats 2011-08-16 12:56:10 -07:00
John Bender
907cf655b3 fixed navigation base tests to handle the relative internal page issue by using the click hack, per @jblas 2011-08-15 12:46:09 -07:00
John Bender
b0c20e9d2a whitespace 2011-08-15 12:45:31 -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
3f20eaa038 fixed nav test for new namespace and made the test order independent 2011-07-29 10:10:26 -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
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
22b0cae65c added unit tests for the data-prefetch attr 2011-07-15 15:55:27 -04:00
John Bender
af3877be43 tests updated to accomodate relative hash references 2011-07-13 16:04:24 -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
Kin Blas
53d375cd0a Unit test for issue #1913 - unnecessary ajax call and duplicate DOM nodes when refreshing a page with a dialog visible. 2011-06-23 16:41:26 -07:00
John Bender
68a354ed07 make sure the stack is clear before the run continues 2011-06-21 13:12:27 -07:00
John Bender
4dac49359f fix for back button page index check by reseting history stack 2011-06-20 13:09:29 -07:00
John Bender
7b00335dcc small whitespace fix in navigation core tests 2011-06-20 13:09:29 -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
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
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
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
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