aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/draggable/draggable_options.js
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Rename filesScott González2015-04-091-1493/+0
| | | | Ref gh-1528
* Tests: Widget test helpers extend the main helperScott González2015-04-091-117/+117
| | | | | Ref #10119 Ref gh-1528
* Draggable: Convert tests to new infrastructureScott González2015-04-091-120/+124
| | | | | Ref #10119 Ref gh-1528
* Tests: Convert closeEnough() to a proper QUnit assertionScott González2015-04-091-14/+14
| | | | | | | Should eventually replace with qunit-assert-close. Ref #10119 Ref gh-1528
* Draggable: Ensure parent is correct after dragging through sortableMike Sherov2014-11-081-0/+23
| | | | Fixes #10669
* Draggable: Add battery of tests to cover connectToSortableMike Sherov2014-08-261-16/+103
| | | | | | Refs #9481 Refs #9675 Closes gh-1323
* Sortable: cancelHelperRemoval only considers helper, not placeholderMike Sherov2014-08-261-1/+1
| | | | Refs #9675
* Draggable: append divs to iframe parent for iframefixMike Sherov2014-08-241-0/+42
| | | | | | | This allows the blocking div to move with the iframe in most situations, whereas appending to the body wouldn't. Fixes #9671
* Draggable: No cloning in connectToSortable and ensure correct positionMike Sherov2014-08-231-0/+66
| | | | | | | | | | | Draggables now forcefully recalculate their position when dragged out of a sortable. Sortables now override draggable position when a draggable is dragged into it. Lastly, no longer remove sortable helper when dragging a draggable out, which allows us to not use a clone. Fixes #7734 Fixes #8809 Closes gh-1322
* Draggable Tests: Ensure scrolling and dragging tests assert correctlyDave Stein2014-08-221-6/+6
|
* Draggable: Ensure helper is positioned even if its the element itselfMike Sherov2014-08-191-0/+19
| | | | Fixes #9446
* Draggable: Ensure overflow:visible containments are correctly measuredMike Sherov2014-08-171-0/+30
| | | | Fixes #7016
* Draggable Tests: Clarify position helper test generationMike Sherov2014-08-141-43/+44
|
* Draggable: Account for margins when snappingMike Sherov2014-08-141-0/+4
| | | | Fixes #9724
* Draggable Tests: Fix IE8 test when native scroll happensMike Sherov2014-08-131-3/+22
|
* Draggable: ignore overflow:hidden containers with scroll optionMike Sherov2014-08-121-0/+14
| | | | | | While it is true that overflow:hidden elements can be scrolled programatically, this breaks user expectation. Therefore, do not scroll inside an overflow:hidden container.
* Draggable: consider offsets from overflow:hidden parentsMike Sherov2014-08-121-1/+1
| | | | | | | | Developers can programmatically set scrollTop/Left on draggable containers that are overflow:hidden. They must be considered for positioning. Fixes #10147
* Draggable Tests: Fix inconsistent operator spacing.Mike Sherov2014-08-061-4/+4
|
* Draggable Tests: fix IE scroll tests affected by focus issues.Mike Sherov2014-02-181-5/+12
| | | | | Calling element.focus() causes scroll in IE. In order to correctly test scroll behavior, we must calculate scrollTop on the drag event, before .focus is called.
* Draggable: fix current JSCS violations.Mike Sherov2014-02-181-20/+20
|
* Draggable: fix changing containmentBen Higgins2014-01-201-2/+7
| | | | | | | | | | | | | If containment was set such that relative_container is set by _setContainment, and then containment changes to e.g. "document", "window", or an array, relative_container would not be unset, causing incorrect containment of the draggable. Add a unittest to check that containment with an array works after previously being set to "parent". Fixes #9733 Closes gh-1176
* Tests: Fix draggable_options expected test count to be dynamicBrian J. Dowling2014-01-161-1/+2
| | | | | | | | The test count was previously incremented to 8 when normally 6 tests are run. After figuring out the dynamic test code, I just made the expect depend on the same array length Also re-enabled the test in the Gruntfile since it now passes.
* Draggable: Test fix regarding static scrollingDave Stein2013-12-151-1/+2
| | | | | | | No longer checking scroll positions of static scrolls since the fixture is in an absolute container. Closes gh-1145
* Draggable: normalize lookups for rootNodes when to bust scroll cache. Fixes ↵Mike Sherov2013-12-031-2/+6
| | | | | #9379 - Draggable: position bug in scrollable div Core: update scrollParent() to support all current supported browsers.
* Draggable Tests: don't test auto scroll while testing helpers.Mike Sherov2013-10-311-4/+5
|
* Draggable Tests: Ensure all combinations of helper / draggable positions / ↵Mike Sherov2013-10-291-274/+49
| | | | scrollParents / parent positions are tested accurately.
* Draggable Tests: Ensure Draggable tests are correctly testing offset under ↵Mike Sherov2013-10-231-108/+62
| | | | scroll conditions.
* Draggable Tests: Test both position and offset of draggable element in all ↵Mike Sherov2013-10-211-39/+28
| | | | applicable tests.
* Draggable: apply axis options to position instead of style. Fixes #7251 - ↵Mike Sherov2013-10-201-4/+18
| | | | Draggable: constrained axis option returns incorrect position.
* Draggable Tests: Add position asserts to drag testsMike Sherov2013-10-201-45/+45
| | | | They're currently disabled however due to bugs both in the tests and in the actual widget.
* Draggable Tests: consolidate drag tests and provide error messages for all ↵Mike Sherov2013-10-201-58/+55
| | | | assertions.
* Draggable Tests: clarify scroll helpers.Mike Sherov2013-10-201-56/+56
|
* Draggable Tests: make sure offset tests are actually testing offsetsMike Sherov2013-10-191-4/+4
|
* Test Suite: Remove Flaky Datepicker test, and correct more old jQuery test ↵Mike Sherov2013-04-141-4/+9
| | | | cases for old Opera and old Safari.
* Draggable: allow draggable to defer destroying itself upon DOM removal until ↵Mike Sherov2013-04-121-0/+27
| | | | after stop is fired. Fixes #6889 - Draggable: Cursor doesn't revert to pre-dragging state after revert action when original element is removed.
* Draggable Tests: fix old Safari and old Opera tests with jQuery < 1.8 tests ↵Mike Sherov2013-04-071-3/+9
| | | | by accounting for a bug in $.contains on disconnected Elements.
* Draggable Tests: Fix IE8 test failures by accounting for the IE8 testswarm ↵Mike Sherov2013-03-311-5/+10
| | | | IFRAME positioning bug.
* Draggable Tests: Minor style fixes and removing unnecessary setup and ↵Mike Sherov2013-03-261-2/+2
| | | | teardown for core tests.
* Draggable: Handle containment set to false after init, and style ↵Mike Sherov2013-03-231-4/+3
| | | | improvements. Fixes #8962 - Containment doesn't properly update
* Draggable: make sure snap elements are in the document before snapping. ↵Mike Sherov2013-03-161-0/+33
| | | | Fixes #8459 - Draggable: element can snap to an element that was removed during drag.
* Draggable: modified snapping algorithm to use edges and corners. Fixed #8165 ↵Zbigniew Motyka2013-03-161-0/+37
| | | | - Draggable: Snapping doesn't take top/left into account properly
* Draggable: Fix double offset bug when scrolling. Fixes #6817 - Draggable: ↵Woody Gilk2013-03-151-0/+34
| | | | auto scroll goes double distance when dragging
* Draggable: Account for descendants in handle.Scott González2013-03-081-26/+2
|
* Draggable: Fix border containment. Fixed #5569 - Draggable: Containment ↵TJ VanToll2013-03-071-0/+31
| | | | incorrectly calculates padding and border
* Draggable Tests: Fix containment testsMike Sherov2013-03-041-1/+1
|
* Draggable Tests: Fix snap test failures in IE8Mike Sherov2013-03-041-2/+2
|
* Draggable Tests: Style SweepMike Sherov2013-03-041-536/+494
|
* Draggable Tests: Add test coverage for supported optionsMike Sherov2013-03-041-83/+647
|
* Draggable: Account for z-index set in CSS for the stack option. Fixed #9077 ↵TJ VanToll2013-02-111-0/+35
| | | | - Draggable: stack option resets the z-index
* Draggable Tests: Cover all cursorAt option formats.Mike Sherov2013-01-011-12/+9
|