Commit Graph

510 Commits

Author SHA1 Message Date
Scott González
aaa21ddb0c Accordion tests: Fixed indentation. 2011-03-23 09:51:42 -04:00
Scott González
f77224055a Widget: Maintain stack when a method returns a jQuery object. Fixes #5732 - Widget: Make the widget method maintain the stack. 2011-03-22 14:35:18 -04:00
Scott González
e7991e33f3 Autocomplete: Added response event. Fixes #6777 - Autocomplete callback when search is complete. 2011-03-22 14:07:49 -04:00
Scott González
de5a98e7bc Position: Split out tests for deprecated offset option. 2011-03-22 13:25:28 -04:00
Scott González
221dcd7027 Position: Coding standards. 2011-03-22 13:12:03 -04:00
Scott González
6f051d5d6a Position: Merged offset option into my and at options and added support for percentage-based offsets. Fixes #6981 - Position: Merge offset option into my and at options. Fixes #7028 - Position: Allow percent-based offsets. 2011-03-22 12:25:25 -04:00
Scott González
923b5b67b9 Merge branch 'tabs_4386' of https://github.com/petersendidit/jquery-ui 2011-03-21 11:30:11 -04:00
David Petersen
710d7620e7 Tabs: Fix disable and enable methods to correctly handle when index is undefined. Use boolean when fully enabled/disabled. Allow selected tab to be disabled.Fixes #4386 2011-03-21 09:18:19 -04:00
jzaefferer
93fd447493 Use QUnit.push instead of assertion method for custom assertions to get
correct filename and line number output
2011-03-20 15:56:48 +01:00
Richard Worth
9b3badea6c Autocomplete unit test: corrected name and argument order of equal() call in autoFocus test function 2011-03-15 12:55:16 -04:00
Richard Worth
c1a0f2bf6c Autocomplete: refactored unit tests for autoFocus option 2011-03-15 09:36:36 -04:00
Richard Worth
56b7ec134d Autocomplete: added unit tests for autoFocus. Fixed #7032 - Autocomplete: Add option to automatically highlight the first result 2011-03-15 08:42:28 -04:00
Richard Worth
2f5eadeb8f Autocomplete: changed autoFocus default to true for 1.9. Fixed #7042 - Autocomplete: Default autoFocus to true 2011-03-15 05:48:31 -04:00
Richard Worth
09215ef2cd Autocomplete: new option autoFocus, default false. Fixed #7032 - Autocomplete: Add option to automatically highlight the first result 2011-03-15 05:39:56 -04:00
Richard Worth
056cab82d8 Accordion: set aria-selected to true on selected header, false on others. Fixed #7078 - Accordion: Set aria-selected 2011-03-15 04:30:36 -04:00
ddstreet
0b30a1d450 Button: find associated label even without common ancestor. Fixes #7092 - button creation that requires a matching label does not find label in all cases 2011-03-11 10:52:13 -05:00
Richard Worth
58480d81d3 Unit tests: removed no longer utilized tickets.js files for Menu and Tooltip 2011-03-08 14:22:48 -05:00
Jay Merrifield
f9996682b5 Dialog: Before handling escape key presses, check if the default action has been prevented. Fixes #6966 - Pressing ESC on dialog when 2 dialogs are open closes both dialogs. 2011-03-08 09:42:10 -05:00
Douglas Neiner
15c97e0b76 Dialog: Added a class to dialog wrapper when it is currently displaying buttons, includes unit tests for changes. Fixed #7057 - An extra class is needed on the dialog wrapper to specify when a buttonset is showing 2011-03-03 09:37:16 -05:00
Richard Worth
593799d6e3 Switched to latest stable jQuery 1.5.1 2011-03-02 20:49:20 -05:00
Scott González
ffb96bc972 Widget tests: Work around a bug in jQuery core in IE 9rc. 2011-02-26 13:31:45 +01:00
jzaefferer
48f060ac25 Spinner: Ignore delta of 0 from triggered mousewheel event. Verified
that mousewheel scrolling actually works fine in IE6.
2011-02-26 12:10:52 +01:00
jzaefferer
9ac6bde8a9 Accordion: Improve unit test to get consistent results on mobile devices 2011-02-26 11:48:56 +01:00
jzaefferer
3d3b5dd1e7 Position: Test for window scrollTop support and run scrolled window test
only when support is there. Should exclude mobile devices, getting the
position testsuite to produce more useful results.
2011-02-26 11:25:41 +01:00
jzaefferer
baf28d2c9d Menu: Cleanup contextmenu demo and fix aria unit test to ignore empty
string values
2011-02-25 18:58:44 +01:00
jzaefferer
540b78d920 Adding a domEqual assertion to our testsuite for more sane DOM
comparisons. Comparing innerHTML is too dependent on random browser
quirks like IE only sometimes rendering closing tags.
2011-02-25 11:33:48 +01:00
jzaefferer
b65583a029 Menu: Cleanup unit test page 2011-02-25 11:16:16 +01:00
Scott González
bed6def5c0 Autocomplete tests: Fixed various bugs in various versions of IE. 2011-02-24 22:55:24 +01:00
jzaefferer
b8f3e5b1c0 Menu: Fix testsuite, new option 2011-02-24 21:29:48 +01:00
jzaefferer
38cfcfffe9 Menu: Update autocomplete to use deactivate and check for focus class 2011-02-24 12:05:20 +01:00
Scott González
50958718c2 Autocomplete: Added support for contenteditable elements. Fixes #6914 - Autocomplete: Support contenteditable. 2011-02-24 10:24:32 +01:00
jzaefferer
3f353cc8fb Menu: Update unit test to use focus instead of activate method 2011-02-24 10:07:24 +01:00
jzaefferer
c37637ee99 Use #qunit-fixture instead of deprecated #main. Fixes #7031 - Tests use 2011-02-23 12:46:13 +01:00
jzaefferer
6597d3eafb Drop unused tests/unit/defaults.html. If any, we need to composite suite
that runs everything, not just defaults.
2011-02-23 12:39:25 +01:00
jzaefferer
1c7ab042fa Disable dialog tests on TestSwarm until we can get some running in IE6
without freezing the browser.
2011-02-21 22:26:38 +01:00
jzaefferer
a1ebed70e3 Unit tests: Add QUnit toolbar for hiding passed tests 2011-02-21 20:39:35 +01:00
Scott González
f70f01af9e Accordion: Handle changing the event option. Fixes #6740 - Dynamically changing accordion's event handler doesn't actually change the behaviour. 2011-02-21 16:07:59 +01:00
jzaefferer
84a4a4442d Merge branch 'master' of github.com:jquery/jquery-ui 2011-02-21 14:45:54 +01:00
jzaefferer
b107181bbb Fix datepicker tests to pass in Chrome and run faster by letting QUnit
handle the staggered proessing (renders at least once per second, faster
then rendering after each test). Disabled broken manual-entry tests
after confirming its only an issue in the test, not the impl.
2011-02-18 16:08:17 +01:00
William Kevin Manire
c94ec23b26 Widget: modified widget to throw exception on attempt to call private methods. Fixed #6947 - Attempt to access private member of widget returns jQuery object 2011-02-16 00:28:32 -08:00
Dan Heberden
5c3dc7d48a Datepicker: prevent datepicker initialization on empty jquery collection and add unit test. Fixed #6976 - datepicker creates extra dom element with empty object 2011-02-15 10:15:46 -08:00
David Petersen
8ef8d2d877 Tabs: Pass original event for show and select events. Fixes #5043 - Tabs: pass original event. 2011-02-15 08:56:19 -05:00
jzaefferer
c4a7f45dbc Tooltip: Added missing items test 2011-02-11 16:01:23 +01:00
jzaefferer
cfa4833fe9 Merge branch 'master' of github.com:jquery/jquery-ui 2011-02-11 15:44:56 +01:00
jzaefferer
e69839ae6a Menu: Fix unit tests and set the right menu1-activedescendant attribute 2011-02-11 15:42:44 +01:00
Richard Worth
c8063f9252 Added swarminject.js for menu, spinner, and tooltip test pages. Fixes unit tests to run correctly on swarm.jquery.org 2011-02-11 09:40:10 -05:00
Scott González
6096aed0a3 Widget: Fixed super methods with deep inheritance chains. 2011-02-10 21:25:50 -05:00
Scott González
ee88a56243 Widget: Added ability to use $.widget() to create extensions. Fixes #6937 - Widget: Allow redefining a widget to create extensions. 2011-02-03 16:37:17 -05:00
Scott González
678ff6326a Added version property to plugins that were missing them. 2011-02-03 12:01:26 -05:00
Scott González
a4da197a91 Accordion: Added tests for custom header option. 2011-02-03 10:11:00 -05:00
Scott González
2e17770e54 Accordion: Update active option when programmatically collapsing the accordion. 2011-02-03 10:04:40 -05:00
Scott González
d099e3a3b2 Accordion: Handle negative values for active option on init. 2011-02-03 09:59:05 -05:00
Scott González
714a77f202 Accordion: Properly handle collapsible: false and active: false by changing active to 0. 2011-02-03 09:54:11 -05:00
Michael DellaNoce
b3fcf17471 Widget: Modified _trigger to invoke callbacks with apply so that handlers are invoked the same way .trigger() invokes them. Fixes #6795 - Widget: _trigger passes array arguments to handlers inconsistently. 2011-02-01 06:57:48 -05:00
Scott González
cb8f5b7f26 Merge branch 'master' into widget-events
Conflicts:
	ui/jquery.ui.widget.js
2011-01-31 22:04:09 -05:00
Scott González
17004b9cac Widget: Use focusin/focusout for ._focusable(). 2011-01-31 21:55:22 -05:00
jzaefferer
effbb2c0ec Update wigdet test for previous change. No stored intance via data for
element == instance.
2011-01-31 16:37:50 +01:00
Scott González
7a6dd71f8c Accordion: Allow canceling the beforeActivate event. Fixes #6896 - Accordion: Allow canceling the beforeActivate event. 2011-01-25 00:52:42 -05:00
Scott González
088ef05142 Accordion: Renamed changestart and change events to beforeActivate and activate, respectively. Fixes #6840 - Accordion: Rename changestart event to beforeActivate. Fixes #6842 - Accordion: Rename change event to activate. 2011-01-25 00:05:55 -05:00
Scott González
06d61f5f23 Accordion: More tests. 2011-01-24 22:40:03 -05:00
Scott González
63c72aba0d Tests: Fixed erroneous refernece to accordion. 2011-01-24 22:37:57 -05:00
Scott González
0ef4b4f28a Widget: Added tests for ._hoverable() and ._focusable(). 2011-01-24 21:54:50 -05:00
Scott González
4a384c63ff Widget tests: Remove workaround for old QUnit bug. 2011-01-24 21:31:12 -05:00
Scott González
8034cc3803 Widget tests: Cleanup. 2011-01-24 21:22:40 -05:00
Scott González
2e214f984d Accordion test: Fixed an icon test. 2011-01-24 21:00:39 -05:00
Scott González
25f420eb9a Accordion tests: Cleaned up deprecated tests. 2011-01-24 20:35:58 -05:00
Scott González
5ed1046a4a Accordion tests: Cleanup. 2011-01-24 19:20:09 -05:00
Scott González
ecc0ef53de Accordion tests: Getting really ghetto in an attempt to get deprecated tests to run in TestSwarm. 2011-01-24 16:00:34 -05:00
Scott González
140d90a9a4 Accordion: Test cleanup. 2011-01-24 15:45:29 -05:00
Scott González
c96c249780 Accordion: First pass at splitting out tests for deprecated functionality. 2011-01-24 14:38:23 -05:00
Scott González
cc90b44060 Widget: Allow this.element to be the widget instance instead of a DOM element. Fixes #6895 - Widget: Allow non-DOM based widget. 2011-01-24 13:33:24 -05:00
Scott González
bc71499a50 Widget: Added tests for defaultElement and element normalization between jQuery objects, elements and selectors. 2011-01-23 19:58:31 -05:00
Scott González
6072703cd1 Widget: Added "dynamic" bindings via ._bind() to allow for proxying. 2011-01-18 01:53:20 -05:00
Scott González
659db70caa Widget: Added ._bind() for easily binding events with correct context and disabled checking. Pretty much a direct copy from the previous bind branch. 2011-01-18 01:46:26 -05:00
Ivan Peters
67b070f97a Datepicker: Update parseDate to properly handle a string value in shortYearCutoff. Fixed #6872: parseDate does not default shortYearCutoff correctly. 2011-01-18 16:25:58 +13:00
jzaefferer
90a5906af5 Renamed glob.js to jquery.global.js to match actual plugin filenames. 2011-01-17 19:25:14 +01:00
Scott González
1dc4d64dd4 Spinner: Moved ARIA to input and fixed tests. 2011-01-15 08:28:13 -05:00
Scott González
68d905dd45 Autocompete tests: Added missing menu dependency. 2011-01-14 16:51:31 -05:00
Scott González
25dae411bc Widget: Added _super() and _superApply() methods. Fixes #6861 - Widget: Add _super() and _superApply() for easy access to parent methods. 2011-01-14 15:52:03 -05:00
Scott González
1b2f6ce095 Accordion: Renamed resize method to refresh. Fixes #6838 - Accordion: Rename resize method to refresh. 2011-01-14 12:18:33 -05:00
Scott González
468c35877a Accordion: Moved handling for programmatically collapsing the accordion out of the event handler. Modified event handler to not change the active option until after it determines that the event is valid. 2011-01-13 14:42:35 -05:00
Scott González
8b23483c0b Accordion: First pass at deprecating the activate method. Renamed _clickHandler to _eventHandler and removed extraneous parameter. Updated all tests to use the option methods instead of the activate method. 2011-01-11 20:53:31 -05:00
Alex Dovenmuehle
b6ed9328ef Accordion: Deprecated icons.headerSelected in favor of icons.activeHeader. Fixes #6834 - Accordion: Change icons.headerSelected to icons.activeHeader. 2011-01-11 15:38:47 -05:00
Scott González
16692ed5f0 Fixed references to jQuery. 2011-01-10 21:38:58 -05:00
jzaefferer
e724f585bf Fixed bad references to jQuery-1.4.4.js 2010-12-22 18:59:29 +01:00
jzaefferer
0479ab6af6 Merge remote branch 'origin/tooltip'
Conflicts:
	demos/autocomplete/combobox.html
	demos/index.html
	tests/unit/index.html
2010-12-22 18:58:57 +01:00
jzaefferer
3552947c19 Merge remote branch 'origin/menu'
Conflicts:
	demos/autocomplete/categories.html
	demos/autocomplete/combobox.html
	demos/autocomplete/custom-data.html
	demos/autocomplete/default.html
	demos/autocomplete/folding.html
	demos/autocomplete/multiple-remote.html
	demos/autocomplete/multiple.html
	demos/autocomplete/remote-jsonp.html
	demos/autocomplete/remote-with-cache.html
	demos/autocomplete/remote.html
	demos/autocomplete/xml.html
	demos/button/splitbutton.html
	demos/index.html
	tests/visual/menu/nested.html
	themes/base/jquery.ui.autocomplete.css
	ui/jquery.ui.autocomplete.js
2010-12-22 18:31:27 +01:00
jzaefferer
2c89e9587e Merge remote branch 'origin/spinner' 2010-12-22 17:36:41 +01:00
Scott González
d6edba5a89 Accordion: Move code for deprecated height options into an extension at the bottom of the plugin. 2010-12-19 16:38:15 -05:00
Scott González
f908281bc3 Accordion: Added test for heightStyle: fill with absolutely positioned sibling. 2010-12-19 16:26:03 -05:00
Alex Dovenmuehle
94a1786d56 Accordion: API Redesign. Made style changes and changed 'fill' implementation to use $.siblings() 2010-12-17 21:38:29 -05:00
Alex Dovenmuehle
490792be6a Accordion: API Redesign. Merged autoHeight, fillSpace, and clearStyle into a new option called heightStyle 2010-12-16 22:55:59 -05:00
Scott González
162364fae4 Tabs: Removed rotate method. Fixes #5939 - Tabs: Remove rotation. 2010-12-10 15:06:22 -05:00
Alex Dovenmuehle
f54747b302 Accordion: Added .ui-accordion-heading class to header's first child. Fixes #6743 - Accordion: Add .ui-accordion-heading class. 2010-12-10 14:54:50 -05:00
Scott González
b42125af43 Dialog: Removed handling of deprecated beforeclose option. Fixes #5100 - Dialog: remove deprecated dialog option beforeclose. 2010-12-10 14:31:36 -05:00
Scott González
9ad2a4b1cc Widget: Throw errors for invalid method calls. Fixes #5972 - Widget: Throw error for non-existent method calls. 2010-12-10 14:11:20 -05:00
Scott González
0e15f573d6 Revert "Dialog: Moved the default value for the position.of option inside the _position() method to avoid a bug in jQuery 1.3.2. Fixes #6030 - ui.dialog with jQuery 1.3.2 causes RangeError."
This reverts commit 22671ad4f8.
2010-12-10 13:42:29 -05:00
Scott González
22671ad4f8 Dialog: Moved the default value for the position.of option inside the _position() method to avoid a bug in jQuery 1.3.2. Fixes #6030 - ui.dialog with jQuery 1.3.2 causes RangeError.
This should be reverted in jQuery UI 1.9.
2010-12-08 12:36:19 -05:00
saks
63ec1152d8 Tabs: Added context to global selectors. Fixed #6710 - tabs module uses global selectors instead of local to "this.element" element. 2010-12-07 16:27:56 -05:00
Scott González
22cf318e40 Dialog position tests: Use Math.round() instead of Math.floor(). 2010-12-03 09:14:27 -05:00