From f5421d20279e68c44618faacb50b7c89ff5dda26 Mon Sep 17 00:00:00 2001 From: Teodor Nacu Date: Thu, 29 Jan 2015 13:37:45 +0200 Subject: [PATCH] Added FEX_dragWithDelayToX:y:duration: method to be able to specify drag duration in tests. This should fix view swiping if drag delay is bigger. --- src/UIView+PublicAutomation.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/UIView+PublicAutomation.m b/src/UIView+PublicAutomation.m index 6328713..04c5d6b 100644 --- a/src/UIView+PublicAutomation.m +++ b/src/UIView+PublicAutomation.m @@ -285,4 +285,9 @@ - (BOOL)FEX_dragWithInitialDelayToX:(CGFloat)x y:(CGFloat)y { return YES; } +- (BOOL)FEX_dragWithInitialDelayToX:(CGFloat)x y:(CGFloat)y duration:(NSTimeInterval)duration { + [UIAutomationBridge dragViewWithInitialDelay:self toPoint:CGPointMake(x,y) duration:duration]; + return YES; +} + @end \ No newline at end of file