aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete/core.js
Commit message (Collapse)AuthorAgeFilesLines
* Widget: Optimize attachment of the _untrackClassesElement listenerMichał Gołębiowski-Owczarek2022-01-151-0/+23
| | | | | | | | | | | | | | | jQuery UI 1.13.0 changed the logic attaching the `_untrackClassesElement` listener in the `_classes` widget method; one of the side effects was calling `this._on` for each node that needed the listener. That caused a severe performance degradation for large comboboxes as each `_on` jQuery UI call causes a jQuery `add` call that calls Sizzle's `uniqueSort` underneath. Instead, collect the nodes that need the listener and then, outside of the loop, create a jQuery object out of them and attach the listener once. That's still slower than the jQuery 1.12 version but only slightly: 936 ms to 1.03s on a very large list on a recent MacBook Pro, compared to ~30 seconds before this patch. Fixes gh-2014 Closes gh-2037
* Autocomplete: Rewrite with a delay instead of appending the live regionBen Mullins2022-01-051-34/+46
| | | | | | | | | This fixes the issue caused by https://bugs.jqueryui.com/ticket/9357. We now empty the live region instead of appending to it, and we do so after a brief timeout so the live region isn't updated on every mousemove event or when quickly traversing through options. Fixes gh-2002 Closes gh-2031
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-071-0/+1
| | | | | Fixes #15393 Closes gh-1958
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-161-2/+3
| | | | | | | | | | | | | 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
* Autocomplete: Shift to use no globalsAmanpreet Singh2016-04-141-112/+119
|
* Autocomplete: WhitespaceScott González2015-10-161-2/+2
|
* Autocomplete: Close the menu on any outside interactionsScott González2015-10-161-0/+24
| | | | | | | | | This ensures that the menu will close if the user interacts with a draggable, resizable, etc. element since those interactions don't change focus. Ref #6642 Closes gh-1614
* Autocomplete: Style updatesAlexander Schmitz2015-08-211-82/+82
| | | | | Ref #14246 Ref gh-1588
* Autocomplete: Move autocomplete into widgets folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Autocomplete: Remove core event/alias and deprecated module dependenciesAlexander Schmitz2015-05-201-1/+1
|
* Tests: Rename filesScott González2015-04-091-0/+401
Ref gh-1528