Alex Kovar
9970d76a02
remove extra timeout
2011-02-02 12:59:01 -06:00
Alex Kovar
2754087fc7
externalize $.mobile.urlHistory.clear function
2011-02-02 12:58:27 -06:00
unknown
9caaa9cfde
Added ability to control if $.mobile will automatically load first page/pages on dom ready using $.mobile.autoInitialize.
2011-02-01 22:04:05 -08:00
scottjehl
675deb1282
Merge remote branch 'origin/master'
2011-02-02 00:59:59 -05:00
scottjehl
c3b6e86e61
added a test to make sure the select element is inside the div-based button when native option is true
2011-02-02 00:59:54 -05:00
scottjehl
12b4506a0b
removed a test for a case that didn't seem to be desirable, and was not currently true
2011-02-02 00:59:18 -05:00
scottjehl
2ff400bc98
fixed a test for div buttons in native select menus
2011-02-02 00:57:34 -05:00
scottjehl
746420de40
removed test as it was looking for markup that are no longer exists when the native select menu option is true
2011-02-02 00:41:25 -05:00
Alex Kovar
5b4dc3ab4a
fixes for jquery.mobile.navigation.js to accommodate asynchronous changePage
2011-02-01 14:08:20 -06:00
Alex Kovar
eed66df3da
testDone instead of testStart
2011-02-01 14:08:19 -06:00
Alex Kovar
d4c8c3cee2
fix for $.mobile.urlHistory test
2011-02-01 14:08:19 -06:00
Alex Kovar
aea4bfabfc
fix for path.get test
2011-02-01 14:08:19 -06:00
Alex Kovar
1eed03cf0c
Fixed issue with simultaneous page transitions. Closes gh-856
...
Conflicts:
js/jquery.mobile.navigation.js
tests/unit/navigation/navigation_transitions.js
2011-02-01 14:07:17 -06:00
scottjehl
aad8ac174a
Removed the extra ways to set nativeMenu option in select plugin. Now like other plugins, the option is both available through the plugin's options (nativeMenu) or through a data-attribute (data-native-menu), which is automated through the camelcase option name. Unit tests updated
2011-02-01 13:27:35 -05:00
John Bender
992fba1e7c
fix for core tests. Note: pages can only be one level below the mobile viewport or bad things happen
2011-01-31 23:09:36 -08:00
scottjehl
a5c8f86d10
links with no href attribute will not throw an error when clicked. Fixes #932
2011-02-01 01:01:41 -05:00
scottjehl
e00f007792
missed a name change in the unit test
2011-02-01 00:52:31 -05:00
scottjehl
6eefb23406
changed the name of urlHistory.listeningEnabled to urlHistory.ignoreNextHashChange. The name more accurately reflects the purpose of this internal toggle. Unit tests included. Also Fixes #930
2011-01-31 23:56:56 -05:00
scottjehl
92f863d062
typo in test description
2011-01-31 23:49:30 -05:00
scottjehl
4c4ccbd971
removed the position plugin script references
2011-01-31 23:48:13 -05:00
scottjehl
35b1df81e7
changePage was firing more than once because hash listening was not disabled long enough to prevent listening of the resulting async hashchange event after setting location.hash. This change makes urlHistory.listeningEnabled act as an internal toggle (as it used to), so it is only meant for ignoring a single hashchange event. A future change might be appropriate to change its name to something more like "ignoreNextHashChange".
...
Unit test included.
Fixes #930
2011-01-31 23:47:01 -05:00
scottjehl
3162428558
added hashListeningEnabled global flag. This is meant as a global config option for end users to disable hashchange listening (as opposed to urlHistory.listeningEnabled, which is an internal toggle). Unit test included. Fixes #748
2011-01-31 23:25:36 -05:00
scottjehl
b3a8230638
This commit includes simplifications to the hashchange event handling & changePage logic, which results in a few bug fixes and removal of some previous limitations. Details:
...
- jquery.mobile.core.js no longer creates pages from every page and dialog in the DOM automatically at domready. Instead, pages are created as they are referenced via changePage, which can speed up pageload in multi-page documents, and means local "dialogs" referenced via data-rel="dialog" no longer need a data-role="dialog" attribute when served.
- in changePage, "from" is now allowed to be undefined. This simplifies the logic involved in showing the first page, which never had a "from" page, and previously needed a custom pageChange workaround to accommodate that.
- The pageshow event is no longer used as a callback for returning false and preventing the $.mobile.activePage from being set to the newly shown page. In other words, a page always becomes $.mobile.activePage once its shown now (the only reason this was optional before was because of a dialog restriction that's no longer true)
- the hashchange event logic for showing a particular page is now greatly simplified. It either shows the page referenced in location.hash, or if there's no hash it changes to the first page in the dom. This means every pageshow (including the first one) now uses pageChange internally.
- the hashchange event listener is no longer disabled when ajaxEnabled == false. Doing this before prevented local non-ajax page navigation from working properly. To disable hashchange listening, use $.mobile.urlHistory.listeningEnabled. We might consider defining (or moving) this on the $.mobile hash later as well for easier access.
- The internal var $.mobile.startPage is now $.mobile.firstPage, because it's not necessarily the page you started on, but merely a reference to the first "page" in the dom.
- Back buttons are auto-added to every page after the first one you first visit (this includes generated pages, such as those in a multipage document or nested listviews). Keep in mind that a "back" button does not take the place of a standard "home" link, and when building an app with jQuery Mobile, it's good to make use of both (particularly on deep-linked pages). Fixes #908
2011-01-31 17:05:57 -05:00
John Bender
202ed5ff2c
corrected failing tests in navigation
2011-01-29 22:50:48 -08:00
John Bender
e5fd56985c
added global native select configuration, docs to follow. Also corrected selector error when reloading a lib in tests
2011-01-27 23:20:57 -08:00
John Bender
d1ab6bb027
fixed broken select menu test
2011-01-27 22:44:23 -08:00
John Bender
b1d356bfd7
Merge branch 'nativeselectmenu'
2011-01-27 09:50:40 -08:00
John Bender
b81248f238
fixed android select menu failure with a delay. I'm doubtful that this is the best solution to the problem but the cause was the click being passed through to the screen or the select menu itself a split second after opening. Open to alternatives. Fixes #873
2011-01-26 21:20:40 -08:00
scottjehl
32a0d2fa4c
unit test - initial page should have no back button
2011-01-26 18:57:34 -05:00
scottjehl
423e6fb276
added complete test coverage for $.mobile.urlHistory methods and properties
2011-01-26 18:51:22 -05:00
scottjehl
6a1cbc0953
added unit tests for path.isRelative. Test coverage for $.mobile.path is now complete!
2011-01-26 18:07:21 -05:00
scottjehl
3484c401c2
added unit test for path.hasProtocol
2011-01-26 18:02:15 -05:00
scottjehl
20c86f655e
combined path.isExternal tests
2011-01-26 17:58:16 -05:00
scottjehl
c3ed538542
unit test for path.isExternal
2011-01-26 08:41:35 -05:00
scottjehl
1156045e0c
unit test for path.stripHash
2011-01-26 08:39:35 -05:00
scottjehl
ca036b1b5e
added unit test for path.clean
2011-01-26 08:35:01 -05:00
scottjehl
c3a8630605
unit test for path.makeAbsolute
2011-01-26 08:25:20 -05:00
scottjehl
70d4187f5f
added unit test for path.set
2011-01-26 00:11:16 -05:00
scottjehl
078e307a4d
fixed a typo in unit test
2011-01-26 00:09:47 -05:00
scottjehl
fe994b7c0c
added unit test for path.getFilePath
2011-01-26 00:02:34 -05:00
scottjehl
85a6d878eb
removed unit test - seemed incorrect
2011-01-25 23:57:18 -05:00
John Bender
442e4b19b0
updated slider refresh function with an extra param for preventing validation on its input Fixes #468
2011-01-24 23:38:50 -08:00
John Bender
c63d570b60
comment correction in core mobile init test
2011-01-22 22:51:11 -08:00
John Bender
538151491c
added async test calls to guarantee the correct assertion is being fired
2011-01-22 22:41:59 -08:00
John Bender
e30ece11ac
added immediate function to prevent scoping issues in core unit tests
2011-01-22 22:39:32 -08:00
John Bender
b671753039
moved page above core in the makefile, build xml, and manifest under js. Fixes #619
2011-01-22 22:31:16 -08:00
scottjehl
9e4b0a484c
Overhauled path object and exposed it and the base object via $.mobile. Form and Link handlers now use the path methods internally. Unit tests adjusted, but more are needed to fully cover the path and base propeties and methods. Fixes #566 .
2011-01-22 17:42:07 -05:00
John Bender
e5d2bf1b66
added target check to $.mobile.isExternalLink
2011-01-20 23:05:37 -08:00
John Bender
b2817375f4
altered innacurate test result message
2011-01-20 22:22:47 -08:00
John Bender
ffafa78e62
added tests for external links in dialogs, small refactor for dialogClickHandler function
2011-01-20 22:20:16 -08:00
scottjehl
52f86f2f9a
make sure first textnode of li is used in listview title, regardless of newline chars. Test included. Fixes #715
2011-01-20 17:48:44 -05:00
Kin Blas
161f5e6ae3
Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually.
...
This makes our include model match the include model on the CDN, and allows devs to make use of mobileinit for debugging some of the samples since that must be set up after jquery.js, but before jquery-mobile.
2011-01-20 11:26:12 -08:00
John Bender
fedb0a7366
added tests for external link function
2011-01-19 23:57:51 -08:00
John Bender
cc307ec902
tests for large select dialog issue
2011-01-15 23:15:17 -08:00
John Bender
96d941ebe9
added the ability to disable ajax forms with data-ajax=false, attribute up for debate, Fixes #519
2011-01-08 23:47:07 -08:00
John Bender
2065a1916b
moved jstrebs integration tests under the unit folder, made it look a bit like the others, and changed the styling to move pages off the screen
2011-01-06 23:34:05 -08:00
Kin Blas
38f09ee66f
Sweep through all files to add a trailing slash to <link> tags that include thems/default. This should fix Opera Mobile Issue 763.
2011-01-05 16:19:24 -08:00
John Bender
3a9652c9cc
slider switch keyboard access tests Fixes #632
2010-12-26 23:09:11 -08:00
John Bender
fa760da3bd
docs updated with information about the slider keys
2010-12-22 23:53:44 -08:00
John Bender
39f4749257
added tests for home and end keys
2010-12-22 23:31:53 -08:00
John Bender
b2d58c1f30
slider keypress tests, comments, and style addition to navigation test page
2010-12-22 23:18:14 -08:00
John Bender
5a7377d6d1
spurious character removed from navigation markup
2010-12-16 19:20:34 -08:00
John Bender
b8babd1003
removed console log and added test for default transition
2010-12-16 19:12:58 -08:00
John Bender
8e30a3dc8a
corrected tests message output
2010-12-16 18:27:49 -08:00
John Bender
1497e605d3
test fixes and addition for proper back transitions
2010-12-16 18:26:35 -08:00
John Bender
7ffec259c5
added tests for explicit transition on back
2010-12-16 18:21:46 -08:00
John Bender
9e21bb9924
small test corrections
2010-12-16 18:20:17 -08:00
jzaefferer
458a56839b
Updated unit tests: Drop document-ready block, use #qunit-fixture instead of #main and drop extra styles now provided by QUnit.
2010-12-16 10:34:23 +01:00
John Bender
39e5e75ca1
fixed test descriptions
2010-12-14 00:11:02 -08:00
John Bender
5114995865
notes on test fixture oddities
2010-12-14 00:05:29 -08:00
John Bender
54ea95a3d8
added negative test case for perspective transition and simple case for transitioning class
2010-12-14 00:05:29 -08:00
John Bender
56cb1bce38
test replaced with TODO issues with page transition
2010-12-13 10:41:16 -08:00
John Bender
95ef08b269
perspective class only added on flip page transition or any transition added to the perspectiveTransitions local var in the transitionPages function Fixes #568
2010-12-13 02:21:40 -08:00
John Bender
7e0cdbef5e
small whitespace correction
2010-12-11 00:56:56 -08:00
John Bender
6f8aada084
orientation support tests for native vs resize
2010-12-11 00:39:27 -08:00
John Bender
7f51d4fcf5
added test for scroll prevention on swipe and move swipe movehandler prevention
2010-12-10 23:59:18 -08:00
John Bender
553b58567f
added protection for nested links to ui-bar selector with tests
2010-12-09 00:16:48 -08:00
John Bender
fc2a405d21
added swipe distance threshold tests and fixed the taphold async test
2010-12-09 00:05:41 -08:00
John Bender
970f46c5e0
header and footer links will now remain unstyled, Fixes #524
2010-12-08 22:16:45 -08:00
John Bender
25c5d2697a
basic swipe timing tests
2010-12-07 23:30:02 -08:00
John Bender
0574cd78ef
test for tap event not fired when movement is recorded
2010-12-07 20:22:06 -08:00
John Bender
639eaf897e
added test for pushing back taphold with touchmove
2010-12-05 22:59:53 -08:00
John Bender
16ed9dc661
added tap hold test
2010-12-05 22:38:49 -08:00
John Bender
bb5d247786
removed console log
2010-11-30 23:10:41 -08:00
John Bender
5a89066e98
setup function fully tested
2010-11-30 23:08:06 -08:00
John Bender
b2905ee08c
started event.special.scrollstart.setup tests
2010-11-30 22:57:49 -08:00
John Bender
c27122040a
removed page div from event index html
2010-11-30 19:48:38 -08:00
John Bender
c20b589686
added test for trigger inside new event closure
2010-11-29 23:47:38 -08:00
John Bender
524008f5f3
started mobile.event unit tests
2010-11-29 23:41:29 -08:00
John Bender
891c09b32a
added to todo for silent scroll on window load test
2010-11-29 22:32:26 +08:00
John Bender
3df0060827
document ready tests are finished
2010-11-29 22:32:26 +08:00
John Bender
2913104d4f
added tests for silent scoll y position parameter
2010-11-29 22:32:25 +08:00
John Bender
7314fff15f
added silentScroll tests for mobile.core
2010-11-29 22:32:25 +08:00
John Bender
726166a5ee
removed unfinished page tests stubs
2010-11-25 17:10:02 +08:00
John Bender
b55e9c6eec
removed core hash tag testing (still evaluating), fixed coretests based on new refactor
2010-11-25 17:10:00 +08:00
John Bender
6816d2a793
added getPathDir tests
2010-11-25 17:10:00 +08:00
John Bender
bfb0f4e403
small refactor for mobile view port tests
2010-11-25 17:09:59 +08:00
John Bender
a569bff05a
meta view port selector testing
2010-11-25 17:09:59 +08:00
John Bender
923c262bb5
fixed test description
2010-11-25 17:09:59 +08:00
John Bender
31e6d6879b
added loading dialog testing
2010-11-23 21:08:13 +08:00
John Bender
eb19f53c26
added test for grade a check
2010-11-23 21:08:13 +08:00
John Bender
caf84f6663
moved module declaration to actual module files to be consistent with reload based tests
2010-11-23 21:08:12 +08:00
John Bender
0a023fa46a
started core testing
2010-11-23 21:08:12 +08:00
John Bender
521777dcb7
added reload lib helper, moved support core over
2010-11-23 21:08:11 +08:00
John Bender
4bec9b1ae2
added file protocol helper
2010-11-23 21:08:11 +08:00
John Bender
8725b2dcc5
added todos for refactoring hanging functions into mockable methods
2010-11-23 05:04:35 +08:00
John Bender
0fe922b748
removed unnecessary query wrap
2010-11-23 05:04:35 +08:00
John Bender
370d745bf3
added tests for mobile.support, still working on mocking for property check on body styles
2010-11-23 05:04:34 +08:00
John Bender
d94b2c536b
added tests for basic support attributes
2010-11-23 05:04:33 +08:00
scottjehl
110b095eb5
fixed typo
2010-11-19 22:11:41 -05:00
John Bender
d0cca83be8
tests for default resolution break points, some missing semicolons, and element reference in each loop
2010-11-19 01:20:55 -08:00
John Bender
19cf97465c
add tests for orientation change
2010-11-19 01:13:00 -08:00
John Bender
d9f94ea4cd
started testing on document ready for media and removed unnecessary expects
2010-11-19 00:51:05 -08:00
John Bender
232926fb85
test for many class additions with many resolution breakpoints
2010-11-19 00:41:14 -08:00
John Bender
622eba46e6
alternate html tag class case for breakpoints
2010-11-19 00:38:41 -08:00
John Bender
e5f9028ea7
first media query break point class addition test
2010-11-19 00:34:44 -08:00
John Bender
8724132d16
small tweak to teardown and setup
2010-11-19 00:01:36 -08:00
John Bender
96d0973b6f
added setup and teardown for stubbed methods, added module definition to widget core tests
2010-11-18 23:47:40 -08:00
John Bender
5f59a3908b
added negative case for basic absolute position test
2010-11-18 23:38:54 -08:00
John Bender
319e3054cd
added media core tests
2010-11-18 23:35:44 -08:00
John Bender
330dc18dbb
removed unnecessary script tag from widget unit test page
2010-11-18 22:54:52 -08:00
John Bender
4d510e4b31
small whitespace correction
2010-11-18 22:05:10 -08:00
John Bender
a314d904c2
test description corrections
2010-11-18 22:05:10 -08:00
John Bender
f170be2a03
minor white space issue
2010-11-18 22:05:10 -08:00
John Bender
3834f56d35
added two more negative case tests
2010-11-18 22:05:10 -08:00
John Bender
04a29ba83b
first tests for widget core added
2010-11-18 22:05:10 -08:00