aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/selectmenu
Commit message (Collapse)AuthorAgeFilesLines
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-074-0/+4
| | | | | Fixes #15393 Closes gh-1958
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-164-8/+13
| | | | | | | | | | | | | This helps fix issues that make tooltip tests sometimes fail when run against jQuery 3.2 or newer due to timing differences. Details: * Add the `moduleAfterEach` function ensuring no timers are running. * Attach this function via `common.testWidget`. * Attach this function to most test suites. * Add a tooltip test helper cleaning up leftover timers. * Rename legacy `setup`/`teardown` hooks to `beforeEach`/`afterEach`. Closes gh-1920
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-082-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of the changes: * Build: Add jQuery 3.2.0-3.4.1 to versions UI can be tested against * Build: Load jQuery & Migrate via HTTPS * Build: Add package-lock.json to .gitignore * Build: Update jQuery Migrate from 3.0.0 to 3.1.0 * Build: Allow to run tests against jQuery 3.x-git * Build: Fix formatting according to JSCS rules * Build: Disable JSCS for the inlined jQuery Color * All: Switch from $.isArray to Array.isArray (jQuery.isArray will be removed in jQuery 4.0) * All: Switch from `$.isFunction( x )` to `typeof x === "function"` (jQuery.isFunction will be removed in jQuery 4.0) * All: Inline jQuery.isWindow as it'll be removed in jQuery 4.0 * Effects: Fix a timing issue in a variable declaration. Previously, a jQuery object was created, chained & assigned to a variable that was then accessed in a callback used inside of this chained definition. Due to a timing difference in when the callback fired for the first time in latest jQuery master, it was being called before the variable was defined. * Tests: Make dialog & draggable unit tests less strict (newest jQuery returns fractional results in some cases, making comparisons fail when there's a tiny difference) * All: Migrate from $.trim to bare String.prototype.trim (jQuery.trim will be deprecated in jQuery 3.5) Closes gh-1901
* Menu: Ignore mouse events triggered due to page scrollingScott González2017-05-022-4/+4
| | | | | Fixes #9356 Closes gh-1806
* Selectmenu: Don't render options with the `hidden` attributeScott González2016-11-161-0/+26
| | | | Fixes #15098
* Menu: Support number pad keyboard inputFelix Nagel2016-08-241-15/+31
| | | | | Fixes #15031 Closes gh-1732
* Selectmenu: Shift to use no globalsAmanpreet Singh2016-04-144-184/+200
|
* Selectmenu: Prepend icon and move overflow to text spanAlexander Schmitz2016-03-301-1/+1
| | | | | Fixes #14938 Closes gh-1685
* Selectmenu: Fixed selectmenu icon float rightAlexander Schmitz2016-02-241-1/+5
| | | | | | | Also removes the icon space as its not needed with a floated icon Fixes #14914 Closes gh-1671
* Selectmenu: Handle form resetsJörn Zaefferer2015-10-272-2/+20
| | | | | Fixes #12236 Ref gh-1550
* Tests: Fix button space assertions on IE8Jörn Zaefferer2015-10-252-11/+11
| | | | | IE8 still doesn't keep the space in the text (or HTML) representation. We don't really care, so adding more trims in these tests as well.
* Selectmenu: Address review commentsAlexander Schmitz2015-10-082-4/+2
|
* Selectmenu: update to use button cssAlexander Schmitz2015-10-073-14/+15
| | | | This ensures consistency between different form elements
* Selectmenu: Style updatesAlexander Schmitz2015-09-115-88/+88
| | | | Ref #14246
* Selectmenu: Style updatesAlexander Schmitz2015-08-211-1/+1
| | | | | Ref #14246 Ref gh-1588
* Selectmenu: Move selectmenu into widgets folderAlexander Schmitz2015-08-085-5/+5
| | | | Ref #13885
* Tests: Fix AMD loading in IE8Scott González2015-04-171-0/+1
| | | | | It appears that we must load require.js via a standard script tag in order for it to work properly in IE8.
* Tests: Rename filesScott González2015-04-095-0/+0
| | | | Ref gh-1528
* Selectmenu: Convert tests to new infrastructureScott González2015-04-096-37/+32
| | | | | Ref #10119 Ref gh-1528
* Tests: Switch to the new qunit-composite moduleScott González2015-04-071-2/+2
| | | | | | This module was created from our existing implementation. Closes gh-1532
* Selectmenu: Use new has/lacksClasses assertions for all class checksAlexander Schmitz2015-03-113-21/+19
|
* Selectmenu: Add classes optionAlexander Schmitz2015-03-113-1/+20
| | | | | Ref #7053 Ref gh-1411
* Widget: Add classes option and _add/_remove/_toggleClass methodsAlexander Schmitz2015-03-111-0/+1
| | | | | Fixes #7053 Closes gh-1411
* Selectmenu: Support `width: false` and default to 14emScott González2015-03-052-4/+7
| | | | | | | | | | `width: null` still matches the width of the original element. `width: false` prevents an inline style from being set for the width. This makes it easy to set the width via a stylesheet and allows the use of any unit for setting the width, such as the new default of `14em`. Fixes #11198 Closes gh-1467
* Tests: Fix style issues with missing or multiple line breaksJörn Zaefferer2015-01-242-3/+0
| | | | | As pointed out by jscs, after a esformatter run. The latter doesn't address these, so fixing them manually.
* Menu: Use ui-state-active consistentlyJörn Zaefferer2015-01-211-1/+1
| | | | | | | | So far we were using ui-state-active on active parent items, ui-state-focus on active child items. The theme update highlighted the visual inconsistency. With this change, only ui-state-active is used. Fixes #10692
* Selectmenu: Better handling when there are no optionsScott González2015-01-121-0/+14
| | | | | | Fixes #10662 Closes gh-1370 Closes gh-1423
* Selectmenu: Copy title attributesFelix Nagel2014-11-041-8/+16
| | | | | Fixes #10435 Closes gh-1298
* Selectmenu: Introduce _renderButtonItem() methodFelix Nagel2014-11-041-0/+34
| | | | | Fixes #10142 Closes gh-1299
* Selectmenu: Re-add wrappers to menu itemsTJ VanToll2014-10-251-43/+44
|
* Build: Pull in jquery.simulate.js from BowerMike Sherov2014-08-221-1/+1
| | | | Fixes #10563
* Tests: Fix composite testsScott González2014-08-011-1/+1
|
* Selectmenu: Remove unused var in testScott González2014-07-291-1/+1
|
* Selectmenu: Don't check menu width in width option testsScott González2014-07-291-13/+1
|
* Selectmenu: Properly set width for buttonScott González2014-07-291-2/+10
| | | | | Fixes #10145 Closes gh-1296
* Tests: Use closeEnough() to account for rounding differencesTJ VanToll2014-06-251-1/+1
| | | | | | | | | Selectmenu's test suite broke with b0e8380, which changed the padding used by the menu widget. Selectmenu conditionally adds pixels to the menu's width, and using closeEnough() accounts for that and the rounding differences across browsers. Closes gh-1275
* Build: Reorganize external directoryScott González2014-06-242-4/+4
| | | | | | | Put each external library into its own directory. Move jquery.js to external. Ref gh-1266
* Selectmenu: Work around test bug in IEScott González2014-04-241-1/+1
|
* Selectmenu: Test cleanupScott González2014-04-221-19/+33
|
* Selectmenu: Test cleanupScott González2014-04-222-49/+47
|
* Selectmenu: Test cleanupScott González2014-04-221-45/+47
|
* Selectmenu: Test cleanupScott González2014-04-211-50/+61
|
* Selectmenu: Default disabled option to nullScott González2014-04-211-2/+2
|
* Selectmenu: Fix reference to jQuery in testsScott González2014-04-211-1/+1
|
* Selectmenu: Remove unused varScott González2014-04-181-1/+1
|
* Selectmenu: Don't use active items at allScott González2014-04-181-15/+11
| | | | | | | Menus only use active items for nested menus which selectmenu doesn't support. Selectmenu should only be working with focused items. Ref gh-1224
* Selectmenu: Refactor appendTo option testsJörn Zaefferer2014-02-211-16/+27
|
* Selectmenu: Fall back to .ui-front searching for empty jQuery objectsJörn Zaefferer2014-02-211-1/+6
| | | | Fixes #9757
* Tests: Update to sane QUnit markupJörn Zaefferer2014-02-202-10/+2
|
* All: Rename all files, removing the "jquery.ui." prefix;Rafael Xavier de Souza2014-01-241-6/+6
| | | | | | | - By executing https://gist.github.com/jzaefferer/893fcf70b7eebc1dc271; Fixes #9464 Closes gh-1029