aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/draggable/core.js
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Draggable: Fix spurious blur in dialogs on mousedownRyan Oriecuia2016-09-131-0/+30
| | | | | | | | | | | | | | | | | | I was running into a problem with a popup menu control in a dialog; clicks weren't working (but keyboard was working fine). It turned out that the menu was getting destroyed before the click event could fire. Tracked down the issue to the way draggable blurs focused controls; it was doing the blur before it ran through the logic to figure out if the drag was actually on the handle. I've moved the blur below these checks, so it'll only blur things if it actually needs to handle the drag. Otherwise, it asserts no opinion on what should and shouldn't be focused, which seems like the way things ought to be. Also, added a unit test to check for the expected behavior. Fixes #15046 Closes gh-1730
* Draggable: Shift to use no globalsAmanpreet Singh2016-04-141-63/+66
|
* Draggable: Improve detection for when to blur the active elementScott González2016-02-091-1/+21
| | | | | | Fixes #12472 Fixes #14905 Closes gh-1548
* Draggable: Skip window bubbling test in IE 8Scott González2015-10-271-14/+20
| | | | | | | | | IE 8 implements DOM Level 2 Events which only has events propagate up to the document, not the window. Ref #10818 Ref gh-1621 Closes gh-1627
* Mouse: Don't stop propagation of mouseupHannah Methvin2015-10-181-0/+17
| | | | Fixes #10818
* Draggable: Style updatesAlexander Schmitz2015-09-111-56/+58
| | | | Ref #14246
* Draggable: Style updatesAlexander Schmitz2015-08-211-6/+6
| | | | | Ref #14246 Ref gh-1588
* Resizable: Move resizable into widgets folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Droppable: Move droppable into widgets folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Draggable: Move draggable into widgets folderAlexander Schmitz2015-08-081-1/+1
| | | | Ref #13885
* Draggable: Remove core event/alias and deprecated module dependenciesAlexander Schmitz2015-05-201-1/+1
|
* Tests: Rename filesScott González2015-04-091-0/+346
Ref gh-1528