aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/sortable
Commit message (Collapse)AuthorAgeFilesLines
* All: Drop support for IE & some other browsers (but mostly IE)Michał Gołębiowski-Owczarek2024-05-151-11/+2
| | | | Closes gh-2249
* Docs: Change a few most common domains from HTTP to HTTPSMichał Gołębiowski-Owczarek2024-04-261-1/+1
| | | | | Also, update a few stale URLs to what they redirect now to. Closes gh-2244
* 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
* 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
* Sortable: Allow 0-height containers to be sortable as in 1.12.1Michał Gołębiowski-Owczarek2021-11-081-0/+53
| | | | | | | | | Note that container specific events will not fire when the dragged element is interacting with zero height containers. Fixes gh-1998 Closes gh-2008 Co-authored-by: A. Wells <borgboyone@users.noreply.github.com>
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-074-2/+8
| | | | | 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-164-8/+16
| | | | | | | | | | | | | 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-223-20/+20
| | | | | | | | | | | | | | | | | 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-042-7/+66
| | | | | Fixes #13662 Closes gh-1578
* Sortable: Shift to use no globalsAmanpreet Singh2016-04-145-199/+204
|
* 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-116-254/+255
| | | | Ref #14246
* Sortable: Style updatesAlexander Schmitz2015-08-213-4/+4
| | | | | Ref #14246 Ref gh-1588
* Sortable: Move sortable into widgets folderAlexander Schmitz2015-08-085-5/+5
| | | | Ref #13885
* Draggable: Move draggable into widgets folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Sortable: Remove core event/alias and deprecated module dependenciesAlexander Schmitz2015-05-201-1/+1
|
* 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-3/+3
| | | | Ref gh-1528
* Tests: Widget test helpers extend the main helperScott González2015-04-094-14/+17
| | | | | Ref #10119 Ref gh-1528
* Sortable: Convert tests to new infrastructureScott González2015-04-097-58/+47
| | | | | 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
* All: Standard spacing inside selector stringsScott González2015-03-261-1/+1
| | | | Closes gh-1521
* Sortable: Use new has/lacksClasses assertions for all class checksAlexander Schmitz2015-03-114-14/+17
|
* Widget: Add classes option and _add/_remove/_toggleClass methodsAlexander Schmitz2015-03-111-0/+1
| | | | | Fixes #7053 Closes gh-1411
* Sortable: Append a tr with td to the placeholder of tbody elementsNils Heuermann2015-02-242-8/+80
| | | | | | | | | | When sorting tbody elements of a table the placeholder needs to have a tr with td elements to be visible. The appended elements are created in the same way as for the placeholder of a tr element; the first row of the sorted tbody is used for that. Fixes #10682 Closes gh-1380
* Tests: Fix style issues with missing or multiple line breaksJörn Zaefferer2015-01-242-3/+1
| | | | | As pointed out by jscs, after a esformatter run. The latter doesn't address these, so fixing them manually.
* Sortable: Redetermine floating flag when recalculating positionsTJ VanToll2014-11-041-0/+35
| | | | | | | | | This addresses a bug where users initialize empty sortable lists are add items dynamically. In this situation refresh() should recognize the position and orientation of the new items. Fixes #7498 Closes gh-1381
* Effects tests: Add clip visual testMike Sherov2014-09-031-4/+4
| | | | Closes gh-1338
* Build: Pull in jquery.simulate.js from BowerMike Sherov2014-08-221-1/+1
| | | | Fixes #10563
* Sortable: fire "over" and "out" even when a connectWith hasn't changedAndrei Picus2014-08-132-1/+105
| | | | Fixes #9335
* 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-202-10/+2
|
* All: Rename all files, removing the "jquery.ui." prefix;Rafael Xavier de Souza2014-01-241-5/+5
| | | | | | | - By executing https://gist.github.com/jzaefferer/893fcf70b7eebc1dc271; Fixes #9464 Closes gh-1029
* Tests: sortable: fix assert message.Andrei Picus2014-01-201-1/+1
| | | | | | Changed 'stop' to 'over'. Closes gh-1174
* Slider & Interactions: Add Windows 8 touch supportTJ VanToll2014-01-151-0/+21
| | | | | | Fixes #9709 Fixes #9710 Closes gh-1152
* Sortable: CleanupAndrei Picus2014-01-151-2/+2
| | | | | Closes gh-1168 Closes gh-1169
* Sortable: Adjust itemWithLeastDistance algorithm in _contactContainers to ↵Kris Borchers2013-11-012-3/+27
| | | | properly handle dragging items to the beginning and ends of lists. Fixes #9314 - Sortable: Items cannot be dragged directly into bottom position. Fixes #9381 - Sortable: Connected list placeholders have an inaccurate initial position
* 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.
* Sortable: Copy the cell structure when sorting a table row. Fixes #9185 - ↵Scott González2013-04-022-13/+28
| | | | Sortable: Placeholder breaks table-layout: fixed.
* Sortable Tests: Fix IE7 Test fails by being more generous with dragging near ↵Mike Sherov2013-03-311-4/+6
| | | | borders.
* Sortable Tests: Fix IE7 test failures due to incorrectly expecting relative ↵Mike Sherov2013-03-311-1/+1
| | | | urls in img srcs.
* Sortable: update placeholder when axis is x or y for connected lists. Fixed ↵Jason Moon2013-03-231-0/+28
| | | | #8301 - Placeholder doesn't move when using connectWith option
* Sortable Tests: Add tests for axis option and recent axis option bugs.Mike Sherov2013-03-141-8/+85
|
* Widget: Stop setting ui-state-disabled and aria by default on setting ↵Scott González2013-03-141-17/+18
| | | | | | | | | | 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-18/+17
| | | | | | setting disabled option." This needs to wait for a major release. This reverts commit 4d67f4f34908a50ef88f95df4103ee001b777e45.
* Widget: Stop setting ui-state-disabled and aria by default on setting ↵Mike Sherov2013-03-111-17/+18
| | | | | | | | 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