aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete
Commit message (Collapse)AuthorAgeFilesLines
* All: Drop support for IE & some other browsers (but mostly IE)Michał Gołębiowski-Owczarek2024-05-151-5/+1
| | | | Closes gh-2249
* Build: Fork vendors to remove QUnit deprecated API usageMichał Gołębiowski-Owczarek2023-05-101-2/+2
| | | | | | | | | | | | Changes: * add `tests/lib/vendor/**/*` to `.eslintignore` * move `qunit-composite` to `tests/lib` so that we can modify it * move `qunit-assert-classes` to `tests/lib` so that we can modify it * move `qunit-assert-close` to `tests/lib` so that we can modify it * replace `assert.push` with `assert.pushResult` * remove usage of `QUnit.extend` Closes gh-2157
* 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-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/+12
| | | | | | | | | | | | | 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-144-258/+278
|
* 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-215-197/+200
| | | | | Ref #14246 Ref gh-1588
* Autocomplete: Move autocomplete into widgets folderAlexander Schmitz2015-08-085-5/+5
| | | | Ref #13885
* Autocomplete: Remove core event/alias and deprecated module dependenciesAlexander Schmitz2015-05-203-10/+10
|
* 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
* Autocomplete: 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
* Autocomplete: Use new has/lacksClasses assertions for all class checksAlexander Schmitz2015-03-112-5/+5
|
* Autocomplete: Add classes optionAlexander Schmitz2015-03-112-0/+10
| | | | | 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-16/+16
|
* Tests: Fix style issues with missing or multiple line breaksJörn Zaefferer2015-01-241-2/+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-212-2/+2
| | | | | | | | 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
* Autocomplete: Re-add wrappers to menu itemsTJ VanToll2014-10-252-2/+3
|
* Build: Pull in jquery.simulate.js from BowerMike Sherov2014-08-221-1/+1
| | | | Fixes #10563
* Tests: WhitespaceScott González2014-08-011-23/+23
|
* Tests: Fix composite testsScott González2014-08-011-1/+1
|
* Autocomplete: ESCAPE should not change content of a MultiLineYermo Lamers2014-07-241-0/+28
| | | | | Fixes #9790 Closes gh-1190
* 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
* Autocomplete: Search if the user retypes the same valueTJ VanToll2014-05-121-0/+21
| | | | | Fixes #7434 Closes gh-1238
* All: Rename jquery.js to exclude version in filenameJörn Zaefferer2014-03-051-1/+1
|
* Autocomplete: Fix assertion message in appendTo option testJörn Zaefferer2014-02-211-1/+1
|
* Tests: Update to sane QUnit markupJörn Zaefferer2014-02-202-10/+2
|
* Tests: Use .bind() instead of .on()Scott González2014-02-111-1/+1
|
* Autocomplete: Do not set value on multi-line inputYermo2014-01-281-0/+26
| | | | | | | | This fixes an issue where contenteditable text was getting overwritten when wrapping past the bottom or top of the autocomplete menu. Fixes #9771 Closes gh-1184
* 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
* Autocomplete: Normalize falsy values, not just missing valuesScott González2014-01-224-23/+50
| | | | Fixes #9762
* Autocomplete: Fall back to .ui-front searching for empty jQuery objectsScott González2014-01-201-11/+26
| | | | Fixes #9755
* Autocomplete: Announce autocomplete correctly in all ATs.Dylan Barrell2014-01-141-11/+47
| | | | | Fixes #9631 Closes gh-1153
* Autocomplete: Append liveRegion to body to support detached init. Fixes ↵Jörn Zaefferer2013-10-191-0/+9
| | | | #9590 - Dynamically adding input field breaks auto-complete's accessibility for screen readers
* Autocomplete tests: Update tests now that generated menu doesn't have ↵Kris Borchers2013-10-052-3/+2
| | | | anchors in elements
* Updating jQuery to 1.10.2.Bruno M. Custódio2013-07-051-1/+1
| | | | | Adding jQuery 1.10.0, 1.10.1, 1.10.2, 2.0.0, 2.0.1, 2.0.2 and 2.0.3 to the tests directory.
* Autocomplete: Scope race condition handling to the instance. Fixes #9334 - ↵Scott González2013-05-281-0/+28
| | | | Autocomplete: Multiple instances should be able to start asynchronous requests simultaneously.
* Autocomplete tests: Cleanup.Scott González2013-04-302-18/+32
|
* Whitespace.Scott González2013-04-301-2/+2
|
* Autocomplete: Don't prevent keypress for multiline. Fixed #8911 - ↵Jason Moon2013-04-251-0/+41
| | | | Autocomplete: Unable to use up/down arrow keys in a textarea (Firefox).
* Autocomplete Tests: Fix oldIE test failures by accounting for casing ↵Mike Sherov2013-03-311-1/+1
| | | | differences in .html() return values.
* Autocomplete: Insert the live region before the input. Fixes #9172 - ↵Scott González2013-03-211-0/+10
| | | | Autocomplete: .replaceWith() fails to replace.
* Widget tests: Use instance method. Also replace a few instances of $.data in ↵Jörn Zaefferer2013-03-191-3/+3
| | | | widget implementations.
* Widget: Stop setting ui-state-disabled and aria by default on setting ↵Scott González2013-03-141-4/+7
| | | | | | | | | | disabled option. Fixes #5973 - Resizable: disabled should not have the ui-state-disabled class or aria attribute aria-disabled Fixes #5974 - Draggable: disabled should not have the ui-state-disabled class or aria attribute aria-disabled Fixes #6039 - Droppable: disabled should not have ui-state-disabled This reverts commit 23771d38ba9d2663f6db0243c8e992dc7ff6844a.
* Revert "Widget: Stop setting ui-state-disabled and aria by default on ↵Scott González2013-03-141-7/+4
| | | | | | setting disabled option." This needs to wait for a major release. This reverts commit 4d67f4f34908a50ef88f95df4103ee001b777e45.