Commit graph

158 commits

Author SHA1 Message Date
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