aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/sortable/options.js
Commit message (Collapse)AuthorAgeFilesLines
* Sortable: Fix positioning when moving a Draggable item into a SortableMichał Gołębiowski-Owczarek2021-11-151-0/+57
| | | | | | | | | PR gh-1793 removed setting `this.offset.parent` in the Draggable `refreshPositions` method which broke position calculations when moving a Draggable item into a connected Sortable. restore that assignment. Ref gh-1793 Fixes gh-2001 Closes gh-2009
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-071-0/+1
| | | | | Fixes #15393 Closes gh-1958
* Tests: Make some number comparisons less strictMichał Gołębiowski-Owczarek2021-03-091-3/+13
| | | | | | | | | | Some of the APIs return fractional values in newer jQueries, making comparisons sometimes not being 100% accurate. Allow some delta. This is similar to what was already done in 98b539171b6e805fa79346a5e9896865e5213b9c but a few cases affecting IE and/or Edge Legacy were missed. Closes gh-1947
* Tests: Ensure no timers are running at the end of each test (#1920)Michał Gołębiowski-Owczarek2020-05-161-2/+7
| | | | | | | | | | | | | 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
* Tests: Solve a frequent race condition in tests in Chrome/SafariMichał Gołębiowski-Owczarek2020-05-161-4/+10
| | | Closes gh-1916
* All: Remove usage of jQuery positional selectorsMichał Gołębiowski-Owczarek2020-01-221-2/+2
| | | | | | | | | | | | | | | | | 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
* Sortable: Setting table row placeholder height to be same as sorted rowKevin Cupp2016-10-041-6/+46
| | | | | Fixes #13662 Closes gh-1578
* Sortable: Shift to use no globalsAmanpreet Singh2016-04-141-50/+52
|
* Tests: Fix improper async sortable testLeonardo Balter2015-10-271-1/+1
| | | | | | | Caught when testing jQuery UI against the new QUnit version, where start throws an error if called with a non-numeric error. Closes gh-1630
* Sortable: Style updatesAlexander Schmitz2015-09-111-55/+55
| | | | Ref #14246
* Sortable: Style updatesAlexander Schmitz2015-08-211-2/+2
| | | | | Ref #14246 Ref gh-1588
* Sortable: Move sortable into widgets folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Tests: Rename filesScott González2015-04-091-0/+496
Ref gh-1528