mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00:00
test(Slider): update test cases
This commit is contained in:
@@ -52,11 +52,13 @@ export function triggerDrag(
|
||||
el: VueWrapper<ComponentPublicInstance> | HTMLElement,
|
||||
x = 0,
|
||||
y = 0
|
||||
): void {
|
||||
) {
|
||||
trigger(el, 'touchstart', 0, 0);
|
||||
trigger(el, 'touchmove', x / 4, y / 4);
|
||||
trigger(el, 'touchmove', x / 3, y / 3);
|
||||
trigger(el, 'touchmove', x / 2, y / 2);
|
||||
trigger(el, 'touchmove', x, y);
|
||||
trigger(el, 'touchend', x, y);
|
||||
|
||||
return nextTick();
|
||||
}
|
||||
|
Reference in New Issue
Block a user