aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/core.js
Commit message (Collapse)AuthorAgeFilesLines
* Widget: Optimize attachment of the _untrackClassesElement listenerMichał Gołębiowski-Owczarek2022-01-151-0/+52
| | | | | | | | | | | | | | | 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
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-071-0/+1
| | | | | Fixes #15393 Closes gh-1958
* Tests: Accept delayed focusout in IE with jQuery 1.8Michał Gołębiowski-Owczarek2021-04-161-2/+13
| | | | | | In IE with jQuery 1.8 focusout may not happen immediately so some checks need to be done later. Closes gh-1952
* 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
* Tabs: Remove presentation rolemilk542016-09-291-2/+1
| | | | | Fixes #10122 Closes gh-1748
* Tabs: Remove test for Ajax URLs containing hashesScott González2016-07-061-12/+0
| | | | | | | | | This hasn't been a problem for a long time and jQuery no longer removes the hash in 3.0.0, so the test started to fail even though the actual code is working just fine. Ref #3627 Ref jquery/jquery#1732
* Tabs: Shift to use no globalsAmanpreet Singh2016-04-141-326/+331
|
* Tabs: Style updatesAlexander Schmitz2015-09-111-34/+34
| | | | Ref #14246
* Tabs: Style updatesAlexander Schmitz2015-08-211-12/+12
| | | | | Ref #14246 Ref gh-1588
* Tabs: Move tabs into widgets directoryAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Tabs: Rename ui-tab class to ui-tabs-tab for consistent prefixesJörn Zaefferer2015-04-181-1/+7
| | | | | | | Fixes #12061 Closes gh-1538 Ref #7053 Ref jquery/api.jqueryui.com#256
* Tests: Rename filesScott González2015-04-091-0/+667
Ref gh-1528