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
Ghislain Seguin
bd068616c6
Fix for #1470
...
Corner styling issue with listview refresh on growing lists
2011-05-18 16:07:18 -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
John Bender
ac736c6053
moved previous strip query tests to tests for cleanHash
2011-04-12 01:16:20 -07:00
John Bender
aee4c631da
removed stripQuery helper to reduce confusion and complexity as striping the query param from a url is much more complex than a hash as it was originally intended for
2011-04-12 01:14:05 -07:00
John Bender
cdc0f139ce
tests for nested pages/query params
2011-04-12 01:05:36 -07:00
John Bender
8d3dc2cbc2
query param href/actions require absolute path prefixes when no relative path information is contained in the hash
2011-04-12 00:22:42 -07:00
John Bender
193762da19
tests for handling query params in makeAbsolute path helper, moved path helper tests to helper test file
2011-04-11 23:42:01 -07:00
Ray Ling
31d45a76e2
append 'click' event listener for no-touch support device test.
2011-04-07 09:38:52 +08:00
John Bender
5158c6f7cb
comment correction in test
2011-04-06 13:33:32 -07:00
John Bender
ceed56fb2a
test added for checkbox check and uncheck firing change
2011-04-06 13:31:06 -07:00
John Bender
b1da5f0d06
added tests to make sure links that reference the pages they are defined within don't transition Fixes #1360
2011-04-04 23:47:16 -07:00
John Bender
280394757b
fixed titles in the checkbox radio tests
2011-04-01 23:43:59 -07:00
John Bender
4bea7c41b8
fixed broken open page call to prevent redirect in tests
2011-04-01 22:55:55 -07:00
John Bender
9280fb467f
whitespace in listview tests
2011-04-01 22:55:55 -07:00
John Bender
3a85ef61ac
removed global pre test setup that used QUnit.start :(, and fixed spurious test failures from changePage being fired by the library after it had been redefined in the tests
2011-04-01 02:11:15 -07:00
John Bender
f63b1bf911
moved page title tests to sequence to stabalize their behavior
2011-03-31 22:47:40 -07:00
John Bender
89775d233a
whitespace in navigation core tests and fixtures page
2011-03-31 22:18:54 -07:00
scottjehl
96897b0285
listview tests now passing.
2011-03-31 18:07:08 -04:00
scottjehl
9826bf7b4b
removed and edited some tests that no longer apply to listviews
2011-03-31 17:51:07 -04:00
scottjehl
776e23ee95
simplified test, but in general, the nav test suite feels brittle. Maybe because of our usage of async tests. Anyway, I was able to get all tests to pass once.
2011-03-31 13:38:49 -04:00
scottjehl
b18756eceb
fixed the last breaking pages unit test
2011-03-31 13:19:51 -04:00
scottjehl
d8aac11a4f
merging unit test addtions for page titles
2011-03-31 12:56:30 -04:00
John Bender
6d37ad6bbb
added addtional test to cover issue 1305
2011-03-30 01:08:15 -07:00
John Bender
215aded824
fixed path detection for when linking from embedded pages to file paths Fixes #1305
2011-03-30 01:08:15 -07:00
John Bender
32f1264491
corrected poor async start order
2011-03-30 01:08:15 -07:00
Kin Blas
f80d286ecb
Fixing tap/taphold tests that broke when fastclick/vmouse changes landed.
2011-03-29 12:01:58 -07:00
Kin Blas
9e40d14b28
Fixing unit test bustage. The fastclick branch landed so these tests need to be updated to fire off "click" versus "touchend" or "mouesup".
2011-03-29 09:32:10 -07:00
John Bender
7b4842eabc
test for dialogs within dialogs
2011-03-28 00:41:33 -07:00
scottjehl
d66cd439f0
removed a console log
2011-03-27 12:46:51 -04:00
scottjehl
450099213b
fixed up the unit test for fieldcontain with namespacing and similar JS links in head.
2011-03-27 12:01:36 -04:00
BradBroulik
1f5259a7ee
Added code coverage for fieldcontain module.
2011-03-27 23:54:24 +08:00
John Bender
73a39ab7ec
fixed poorly chosen selector in test and moved generated anchor markup into hidden page
2011-03-27 02:07:31 -04:00
scottjehl
fd5b3210e4
used :hidden selector instead
2011-03-27 00:48:30 -04:00
scottjehl
0780e40a69
straightened out some failing tests so they match the new markup conventions
2011-03-26 23:47:14 -04:00
scottjehl
a496bc3bb7
used data-rel to find back buttons
2011-03-26 22:34:36 -04:00
scottjehl
bed18f1bc9
updated to latest, adjusted first test to click the anchor
2011-03-26 22:33:33 -04:00
scottjehl
de21e9e628
trigger click on the link instead
2011-03-26 21:31:14 -04:00
John Bender
6965d4d24c
removed console from test helper
2011-03-26 17:29:58 -07:00
John Bender
c3854fe8ca
added simple helper to rerun qunit tests
2011-03-26 17:27:33 -07:00
scottjehl
b950f1c319
changed to just call dialog close method
2011-03-26 15:01:25 -04:00
scottjehl
e8cee23744
major simplification of jqmData method, while adding new methods for jqmRemoveData, and also their $-namepaced utility methods, including $.jqmHasData. Commit includes 20 new unit tests included to test compatibility with jQuery core's data methods, and docs are updated as well.
2011-03-26 14:14:02 -04:00
scottjehl
963840a3b0
moved some selectors over to :jqmData()
2011-03-26 10:18:32 -04:00
John Bender
caedd81cfd
give swipe event triggers a 100ms buffer to allow for async sequences
2011-03-26 00:48:41 -07:00
John Bender
c7ed33cfeb
increase swipe check timout to allow for test browser speed
2011-03-25 23:59:57 -07:00
John Bender
62a8a4039a
stabilized event tests a bit more
2011-03-25 23:45:22 -07:00
John Bender
bf5d09cf9c
small fixs for linux chrome tests
2011-03-25 22:55:25 -07:00
John Bender
14f43ace9b
fix for select tests after default to native
2011-03-25 21:37:45 -07:00
John Bender
0ed68525ed
fixed array comparison tests to test single element
2011-03-25 18:40:55 -07:00
John Bender
143fd264d2
fixed mobile init bind firing in another test
2011-03-25 18:27:35 -07:00
scottjehl
497344c618
used mobile.ns in the test
2011-03-25 18:21:10 -04:00
scottjehl
7503f62a10
changed our two new custom data helper names to jqmData() and :jqmData()
2011-03-25 17:50:40 -04:00
John Bender
7d3642f3ab
fixed init tests for ie
2011-03-24 09:46:13 -07:00
John Bender
018609fa32
removed mass of duplication from core of functionality that was moved to init, fixed init tests
2011-03-22 00:26:24 -07:00
John Bender
7df9e245f4
test namespace additions and type fix for core
2011-03-21 23:36:32 -07:00
John Bender
e236484559
fixed checkbox radio refresh selector
2011-03-21 23:17:46 -07:00
John Bender
2d56e5c2fb
whitespace in event_core tests
2011-03-21 01:40:31 -07:00
John Bender
5d75e3dfa7
fixed event tests
2011-03-21 01:27:50 -07:00
John Bender
e1098e06de
fixed widget tests by including the library as a whole
2011-03-19 23:14:46 -07:00
John Bender
ff23f63881
moved the widget tests back under an immediate function
2011-03-19 23:12:55 -07:00
John Bender
3316e559b3
fixed order dependent tests in listview
2011-03-19 22:44:35 -07:00
John Bender
45183c186c
fixed listview tests, refactor still necessary for the last test selectors
2011-03-19 22:29:53 -07:00
John Bender
4fca8e6d21
removed console
2011-03-17 00:15:29 -07:00
John Bender
2202b0d76c
fixed some listview tests, still some that are hanging on complex selectors
2011-03-17 00:14:32 -07:00
John Bender
fe754ed298
fixed first three tests to be independent of order
2011-03-16 23:00:02 -07:00
John Bender
4959548698
fixed init core tests to represent init functionality
2011-03-16 22:31:22 -07:00
John Bender
5349e5876b
fixed some failing listview tests
2011-03-16 00:07:26 -07:00
John Bender
4126fbd29b
fixed last failing tests after merge in init tests
2011-03-15 23:58:22 -07:00
John Bender
63e8f6bfcb
resolved merge conflicts and fixed 2 tests
2011-03-15 23:57:17 -07:00
John Bender
b56626fba1
added type attribute regex tests for the different ways that browsers serialize html
2011-03-14 23:50:20 -07:00
John Bender
cd654a4eae
moved page unit tests back under anon function
2011-03-14 23:50:20 -07:00
ray58750034
a4dc5888d0
add gridlayout test
2011-03-15 07:27:11 +08:00
John Bender
8943287c75
Revert "fixed failing slider tests in firefox by adding data-type to type=range inputs"
...
This reverts commit 6ca79aceb4 .
2011-03-14 08:22:44 -07:00
John Bender
6ca79aceb4
fixed failing slider tests in firefox by adding data-type to type=range inputs
2011-03-13 23:40:03 -07:00
John Bender
c629e34e74
fix for broken init test and some whitespace
2011-03-13 23:09:32 -07:00
scottjehl
fc0cd38c4e
improved test for meta injects
2011-03-14 00:20:26 -04:00
scottjehl
f69c98caf0
gradeA adjusted to IE7 and up rather than 6 and up ( this still includes Windows Phone 7). Unit test adjusted to match
2011-03-14 00:20:26 -04:00
scottjehl
d08ff23765
fixed up path.clean test so it passes
2011-03-14 00:20:26 -04:00
scottjehl
4c199a5ce6
added unit test for IE version check in Mobile ( doesn't use UA detection like jQuery Core's)
2011-03-14 00:20:26 -04:00
scottjehl
b2ea5e99e5
added comment about missing meta tag
2011-03-14 00:20:26 -04:00
scottjehl
f6a2bd46ec
added a unit test for checking if meta viewport tag is not appended if one already exists.
2011-03-14 00:20:26 -04:00
scottjehl
b2222388d7
updated to latest
2011-03-14 00:20:26 -04:00
scottjehl
0d9627d54e
Added viewport meta elements to the markup of every template and removed the metaViewportContent option from code and docs. IE does not support generated viewport tags.
2011-03-14 00:20:23 -04:00
John Bender
648be47a07
reset location hash in select menu tests
2011-03-12 22:55:48 -08:00
John Bender
e3000e2dec
added failing test for on screen custom select menu rendering
2011-03-12 22:52:44 -08:00
John Bender
129b586666
tests for url root in params / path.clean Fixes #1039
2011-03-12 14:37:45 -08:00
John Bender
ccea5be445
removed console log
2011-03-12 00:29:26 -08:00
John Bender
94ade0f86e
fixed failing data-url regex, bizarri difference in behaviour with Regex objects and literals
2011-03-12 00:10:40 -08:00
John Bender
a33f777952
fixed core unit tests for ns
2011-03-11 22:50:26 -08:00
John Bender
0aaab77e2b
test for forward button dialog skipping
2011-03-10 00:13:53 -08:00
scottjehl
0bf5ce8a37
set unit test pages namespace to "nstest-"
2011-03-09 23:16:48 -05:00
scottjehl
e46da87031
namespaced the selectors
2011-03-09 22:41:59 -05:00
scottjehl
50655de35c
test description change
2011-03-09 22:41:03 -05:00
scottjehl
6418772901
just test description changes
2011-03-09 22:40:49 -05:00
scottjehl
3cae8f8bf0
caught a few more
2011-03-09 21:03:40 -05:00
scottjehl
77ac0f009a
a few more non-namespaced attrs to bring over
2011-03-09 21:03:40 -05:00
scottjehl
9e91fa6752
updated docs with jq namespace, found some more stragglers
2011-03-09 21:03:40 -05:00
John Bender
5fd1e70218
test for data-rel back and dialog fix
2011-03-04 23:34:54 -08:00
John Bender
3b21481cee
small simplification of core scrolling tests
2011-03-04 22:25:33 -08:00
John Bender
433384e150
altered tests to represent init change and added two for the load message customization Fixes #1178
2011-03-03 18:08:47 -08:00
Martin Kou
df21c701b5
Fixed animationComplete return value bug.
2011-02-27 22:07:34 -08:00
John Bender
09f5719865
moved checkbox tests under immediate function and simplified fixture html
2011-02-27 00:00:14 -08:00
Martin Kou
2bb94172cf
Fixed checkboxradio disable issue.
2011-02-26 23:55:37 -08:00
John Bender
2abdbf3416
white space in the init core test
2011-02-26 23:29:14 -08:00
John Bender
b246fb48fa
tests for data url init default
2011-02-26 23:27:41 -08:00
John Bender
598668a2a1
removed spurious file
2011-02-26 01:15:04 -08:00
John Bender
86eceb03fc
added two helpers and tests for proper url stack history traversal
2011-02-25 23:24:03 -08:00
Ernesto Jiménez
eb53dd8f93
Extra testcase to avoid breaking the search filter with dividers expected behaviour in future refactorings
2011-02-24 12:20:21 +00:00
John Bender
1b32fdde63
fixed failing tests and removed test interdependency
2011-02-24 00:02:00 -08:00
Ernesto Jiménez
dae3e2fa74
Proper support for lists with search filter and dividers
2011-02-23 17:42:47 +00:00
John Bender
421dc352c0
corrected js test includes and simplified to prevent further breakages
2011-02-20 18:07:17 -08:00
John Bender
2704975095
re arranged tests for mobile init
2011-02-20 18:07:17 -08:00
John Bender
709d12e4d6
resolved conflict for default dialog transition to pop
2011-02-16 22:52:14 -08:00
John Bender
47a98f09c8
test for thumb styling with listview('refresh')
2011-02-16 22:35:48 -08:00
John Bender
8ea018147c
removed old test pages for navigation and one unneeded test
2011-02-15 23:01:22 -08:00
John Bender
bec975ad3a
added tests for data url regexs
2011-02-15 22:59:54 -08:00
John Bender
b1c8621309
small tweak to wait for page load in navigation tests
2011-02-14 23:34:48 -08:00
John Bender
05e7bbac45
fixed broken listview test in chrome and dialog test redirect
2011-02-14 23:19:56 -08:00
John Bender
f301018c1c
added an extra parameter to data url element to match reported issue in pull request
2011-02-14 17:33:06 -08:00
John Bender
47d4a1fb0a
refactor/simplification of fix for broken regex matching data url in ajax loaded pages
2011-02-14 17:25:23 -08:00
John Bender
265f6d9ca8
switch instances of ok to same for test failure clarity
2011-02-10 23:24:49 -08:00
John Bender
743c6c9d9c
fixed broken listview test and added a bunch of semicolons
2011-02-10 23:01:30 -08:00
John Bender
3ca20f8362
resolved small conflict in test fixtures
2011-02-07 22:33:49 -08:00
John Bender
089f2b9753
rewrapped the media core tests in an immediate function
2011-02-06 23:25:03 -08:00
John Bender
65513add72
fixed media core failing tests
2011-02-06 23:24:09 -08:00
John Bender
5d7938cb4e
minor indentation issue and mocking to fix test failures
2011-02-06 23:06:33 -08:00
John Bender
d4fd6d06dc
rewrapped event core tests in immediate function
2011-02-06 22:58:25 -08:00
John Bender
487e04af02
removed useless test in for dialogs added simple replacement
2011-02-06 22:55:29 -08:00
John Bender
a025c0bffc
backed out autoInitialize moving to feature request backlog
2011-02-06 21:18:51 -08:00
John Bender
cbd1eb7ac9
moved page and dialog styling to qunit css to remove repition and make sure that its consistent across pages
2011-02-05 21:22:50 -08:00
Alex Kovar
910c4d43f0
fixed small display glitch on navigation tests
2011-02-05 14:39:11 -06:00
John Bender
a79799e3b3
added step tests for keypress, removed data-step attribute check in favor of html5 range step attribute
2011-02-02 23:46:20 -08:00
John Bender
3a24aa4de6
Merge branch 'external-clear' of https://github.com/ajkovar/jquery-mobile into ajkovar-external-clear
2011-02-02 23:15:58 -08:00
John Bender
8bfb687d2c
whitespace in core tests
2011-02-02 22:39:55 -08:00
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