18 Commits

Author SHA1 Message Date
JuFeng Zhang
a85f13400a fix: does not trigger drag:start sensor event when moved during delay 2020-09-18 22:28:07 +08:00
JuFeng Zhang
dc51c22f38 fix a eslint error 2020-07-18 13:34:41 +08:00
Randy Morgan
e46ee07fe1 chore(matchers): enhance toHaveTriggeredSensorEvent with count
This ensures that we can verify that drag:start only happens once when there are both delay and distance conditions configured
2020-06-29 16:50:24 +09:00
Randy Morgan
052744eb51 chore(test_helpers): enable DRAG_DELAY for tests and complete event defaults
- configure DRAG_DELAY for tests to the library default of 100ms in order totest delayed dragging.
- Ensure Date.now is updated on waitForDragDelay so that time comparisons can be used to test for drag delay constraints
2020-06-29 16:50:24 +09:00
bahung1221
d3dce507d9 Add SortAnimation plugin and example 2020-06-18 22:59:08 +07:00
Max Hoffmann
d243192464
Extract mirror logic into mirror plugin 2018-06-14 11:59:07 -04:00
Max Hoffmann
4602757404
ResizeMirror should only apply styles when container or draggable is different 2018-06-14 10:51:04 -04:00
Max Hoffmann
f4a20cf9df
Adds resize mirror plugin 2018-04-28 19:29:58 -04:00
Max Hoffmann
fa9d27bd6d
Changing DroppableEvent for better naming and consistency 2018-04-04 09:26:27 -04:00
Max Hoffmann
6cbf644148
Touch sensor scrolling bug 2018-04-04 09:26:27 -04:00
Max Hoffmann
a543bc88c2
Change webpack build 2018-04-04 09:26:26 -04:00
Max Hoffmann
bdb6f29de3
Focusable plugin 2018-04-04 09:26:25 -04:00
beefchimi
34d1bc3cbf setup prettier and fix all files 2018-03-22 21:25:48 -04:00
Max Hoffmann
91b2488ed2
Rework of testing setup 2018-03-02 16:51:31 -05:00
Max Hoffmann
3c375ed46e
Add AutoScroll plugin for draggable 2018-01-11 11:10:03 -05:00
Tim Rourke
05c77b1a48 Move stub to helper file
Define containers once

Create new instance for each test

Linting

Linting

Add assertion, update stub

Use expecteds

Move expecteds up in scope

Use triggerEvent helper
2018-01-08 20:26:24 -06:00
Tim Rourke
8519349f0d Add tests for DragSensor
Clean up helpers and add docblocks

Add tests for DragSensor

Fix lint errors

Move expected clientX and clientY into vars for better visibility

Move expected clientX and clientY into vars for better visibility

Simplify comment

Remove unnecessary async callback

Remove unnecessary async callback

Remove unnecessary async callback

Don't mock clearTimeout

Rename test labels to match new method names
2017-11-06 21:14:48 -06:00
Max Hoffmann
85b231bc42
Restructure tests 2017-10-06 11:14:39 -04:00