aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/menu
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/+15
| | | | | | | | | | | | | 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: Resolve most jQuery Migrate warningsMichał Gołębiowski-Owczarek2020-05-161-1/+1
| | | Closes gh-1919
* All: Remove usage of jQuery positional selectorsMichał Gołębiowski-Owczarek2020-01-224-15/+16
| | | | | | | | | | | | | | | | | jQuery positional selectors () have been deprecated in [jQuery 3.4.0](https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/) and they'll be removed in jQuery 4.0.0. This PR removes their usage. Most of the changes were possible without changing public API. However, dropping `:even` usage required a change to the [`header` option](https://api.jqueryui.com/accordion/#option-header) of the accordion widget. I made it an optional function; this will need to be documented. The polyfill for `.even()` & `.odd()` is added for jQuery <3.5.0. There was no usage of the :odd selector in the code but the `.odd()` method is also polyfilled for completeness. Closes gh-1904
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Don't focus dividers when wrapping via keyboard navigationScott González2017-05-022-0/+32
| | | | | Fixes #15157 Closes gh-1804
* Menu: Close menus immediately on selection or click outsideScott González2017-04-251-1/+3
| | | | | Fixes #15034 Closes gh-1807
* All: Replace non-breaking spaces with regular spacesScott González2016-06-081-1/+1
|
* Menu: Shift to use no globalsAmanpreet Singh2016-04-144-218/+239
|
* Menu: Don't reset active element until after triggering `blur` eventScott González2016-04-131-6/+10
| | | | | | | This ensures that `ui.item` actually exists in the `blur` event. Fixes #14945 Closes gh-1696
* Menu: Remove active class from top-level item when menu is blurredJörn Zaefferer2016-03-111-0/+30
| | | | | | | | | | | This issue was introduced by 0bbd1569182bc03e8dc4f5f8aa203e8edbe15f99, which reduced the use of ui-state-focus and ui-state-active to using only ui-state-focus. This introduced the issue addressed here. The fix is more of a workaround. With test test in place, we can investigate a better solution in the future. Fixes #14919
* Menu: Style updatesAlexander Schmitz2015-09-115-134/+136
| | | | Ref #14246
* Menu: Style updatesAlexander Schmitz2015-08-212-3/+3
| | | | | Ref #14246 Ref gh-1588
* Menu: Move menu into widgets folderAlexander Schmitz2015-08-085-5/+5
| | | | Ref #13885
* Menu: Remove core event/alias and deprecated module dependenciesAlexander Schmitz2015-05-202-7/+7
|
* 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-096-4/+4
| | | | Ref gh-1528
* Tests: Widget test helpers extend the main helperScott González2015-04-095-20/+23
| | | | | Ref #10119 Ref gh-1528
* Menu: Convert tests to new infrastructureScott González2015-04-097-53/+53
| | | | | Ref #10119 Ref gh-1528
* Menu: Ignore bubbled mouseenter events on parent itemsJörn Zaefferer2015-04-081-0/+42
| | | | | | | | Test uses QUnit 2.x API - inconsistent with the other tests, but also a good reference. Fixes #11641 Closes gh-1535
* 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
* Tests: Handle jQuery git returning `null` for empty attributesScott González2015-03-251-2/+2
| | | | | | jQuery now returns `null` for empty attributes instead of `undefined`. Closes gh-1516
* Menu: Use new has/lacksClasses assertions for all class checksAlexander Schmitz2015-03-114-28/+34
|
* Menu: Add classes optionAlexander Schmitz2015-03-112-8/+31
| | | | | Ref #7053 Ref gh-1411
* Widget: Add classes option and _add/_remove/_toggleClass methodsAlexander Schmitz2015-03-111-0/+1
| | | | | Fixes #7053 Closes gh-1411
* Tests: Reduce timeouts to optimize testsuite runtimeJörn Zaefferer2015-03-043-28/+26
|
* Tests: Fix style issues with missing or multiple line breaksJörn Zaefferer2015-01-241-1/+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-9/+9
| | | | | | | | 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
* Theme: Carat should be named caretLisa Seacat DeLuca2014-11-032-2/+2
| | | | | Fixes #10683 Closes gh-1382
* Menu: Wrap menu items in a <div>TJ VanToll2014-10-257-213/+244
| | | | | | | This avoids styling issues where ui-state-focus rules apply to submenus. Fixes #10162 Closes gh-1342
* All: Drop support for IE7Scott González2014-10-211-4/+0
| | | | | Fixes #9838 Closes gh-1365
* Menu: Typeahead now accounts for leading whitespaceTrisha Crowley2014-10-072-2/+4
| | | | | Fixes #10649 Closes gh-1356
* Menu: Maintain focus on already selected item during typeaheadTJ VanToll2014-10-031-0/+22
| | | | | Fixes #10644 Closes gh-1354
* Menu: Filter out non-items when typingSimen Bekkhus2014-09-292-0/+26
| | | | | Fixes #10571 Closes gh-1329
* 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
|
* 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
* All: Rename jquery.js to exclude version in filenameJörn Zaefferer2014-03-051-1/+1
|
* Tests: Update to sane QUnit markupJörn Zaefferer2014-02-201-5/+1
|
* All: Rename all files, removing the "jquery.ui." prefix;Rafael Xavier de Souza2014-01-241-4/+4
| | | | | | | - By executing https://gist.github.com/jzaefferer/893fcf70b7eebc1dc271; Fixes #9464 Closes gh-1029
* Menu: Remove click binding that was supposed to prevent default on anchor ↵Jörn Zaefferer2013-12-031-21/+0
| | | | clicks on a disabled menu. Not relevant anymore since we removed the anchors. Partial fix for #8802 - Dev: Track down uses of .bind() inside widgets
* Menu tests: Fix line height issue in IE7Scott González2013-12-031-0/+4
|
* Menu tests: Force line height to ensure we know how many items will be scrolled.Scott González2013-11-202-6/+10
|
* Menu: Update unit test that regressed from style changes (see ↵Jörn Zaefferer2013-11-153-13/+10
| | | | 9910e938aad1090339a2c7f60693093ee18aba82)
* Menu: More precise removal of ui-state-active class for easier CSS ↵Kris Borchers2013-10-181-0/+13
| | | | overrides. Fixes #9532 - Need a way in Menu to keep ui-state-active class on selected item
* Menu: Add items option for better definition of menu items in non ↵Kris Borchers2013-10-053-0/+75
| | | | parent-child structures
* Menu: Remove the requirement to use anchors in menu itemsKris Borchers2013-10-055-191/+179
|
* Menu: Only focus menu after click if focus is on an element within menu. ↵Kris Borchers2013-09-171-0/+18
| | | | Fixes #9044 - Menu: Autofocus issue with dialog opened from menu widget
* Menu tests: jshint cleanup of unused argumentTJ VanToll2013-08-031-1/+1
|
* Menu: Only set the mouseHandled flag if the event is going to bubble. Fixes ↵TJ VanToll2013-08-031-0/+15
| | | | | | #9469: on( "menuselect" ) not firing every time.