Commit graph

352 commits

Author SHA1 Message Date
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
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
John Bender
37f533f12b fixed double equals lint warning 2011-06-26 23:17:49 -07:00
John Bender
97feeaffc0 moved check to interval, made the directories an ajax call instead of a templated js array, and reorged some bits to clean things up 2011-06-26 23:16:50 -07:00
John Bender
a7045d3bb4 prevent js error by adding a default page for the widget tests 2011-06-26 23:16:03 -07:00
John Bender
ce09bebe20 quick todo for the test runner 2011-06-26 21:20:05 -07:00
John Bender
13c0b1bdd8 whitespace correction for the test runner 2011-06-26 21:18:07 -07:00
John Bender
4409782b00 moved directories to a seperate php file the emits json 2011-06-26 21:17:32 -07:00
John Bender
b016b028f6 corrections in suite timeout code with a clearTimer addition 2011-06-26 19:58:29 -07:00
John Bender
32f5b226d7 fixed relative path issues for the jquery mobile website, and made a small tweak to the qunit css 2011-06-26 15:35:33 -07:00
John Bender
7575f35fa1 remove console log from unit test runner 2011-06-26 12:47:35 -07:00
John Bender
75a4a0795c added a page to run all the tests in a single place, depends on subdirectories representing their tested mobile files 2011-06-26 12:10:11 -07:00
John Bender
345c9e4dbb moved 20ms scroll test to test that it the scrolling is async. 20ms isn't enough time to be reliable 2011-06-26 12:10:11 -07:00
Ghislain Seguin
3b96fa8cd1 Removed param "refresh" sent to .controlgroup since it's not a $.widget 2011-06-24 21:15:56 -07:00
Ghislain Seguin
52a0c10ef4 Readded tests for issue #1929 2011-06-24 21:14:09 -07:00
Ghislain Seguin
6b1343d946 Added test to catch previous breakage caused by buttons having class 'ui-btn-corner-all' 2011-06-24 20:49:16 -07:00
Ghislain Seguin
66aed02180 Disabled tests for issue #1929 until I find a better fix for it 2011-06-24 20:13:12 -07:00
Ghislain Seguin
e0042cf58d Added unit tests for controlgroup 2011-06-24 16:13:41 -07:00
Ghislain Seguin
9cf884eabb Coding standards 2011-06-24 12:40:01 -04:00
Ghislain Seguin
7a14f2ef15 Fixed checkbox/radio unit tests to match new active classes 2011-06-24 12:40:01 -04:00
Scott Jehl
e8a973f46a Merge pull request #1710 from gseguin/issue-1338
Issue 1338
2011-06-24 09:16:01 -07:00
scottjehl
5b147580e6 Merge branch 'issue-1338' of https://github.com/gseguin/jquery-mobile into gseguin-issue-1338 2011-06-24 12:12:33 -04: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
scottjehl
a94f62a6e7 Merge remote branch 'origin/master' 2011-06-21 11:34:10 -04:00
scottjehl
ffdfa4e7c2 moved page load event bindings to a post-mobileinit callback so that the useFastClick option can be set before it is used. Unit test included. Fixes #1869 2011-06-21 11:33:38 -04:00
John Bender
7451a4b30e event test fixes with one test removal. still _very_ time sensitive 2011-06-20 22:26:24 -07:00
John Bender
66fc726321 whitespace fix for event core tests 2011-06-20 22:26:24 -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
scottjehl
8c6164dbf0 Added new throttledresize special event, including unit tests. This event prevents browsers from running continuous callbacks on resize, which we use internally for orientationchange in browsers like IE. It still ensures that a held event will execute after the timeout, so logic that depends on the final conditions after a resize is complete will still execute properly. This improves performance noticeably, and... Fixes #1496. Fixes #1848. Fixes #1422.
The included tests pass most of the time, but they need improvements as they will occasionally fail due to faulty timing in the tests themselves, as far as I can tell (the code tests out fine in our functional demos).
2011-06-18 11:41:47 -04:00
scottjehl
c4491d279f fixed unit tests to use new orientationchange logic, which no longer binds to resize event. 2011-06-18 10:45:36 -04:00
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
Ghislain Seguin
ed7eb38bdc Issue #1338
Added unit test
2011-05-25 13:10:50 -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