From b749d75a0dbf84a92a85a71b262c4152c35704f1 Mon Sep 17 00:00:00 2001 From: Gabriel de Dietrich Date: Fri, 21 Aug 2015 16:24:38 +0200 Subject: Stabilize pressAndHold auto-tests for TextField, TextArea We just extend the wait interval. This is to make sure the control's press-and-hold timer will timeout before the wait. Since we're probably not using the most accurate timers, adding 20% to something that's around one second remains acceptable. Change-Id: I1d10c88a168e882c9069f9345e896c1aab2f2bda Reviewed-by: Mitch Curtis --- tests/auto/controls/data/tst_textarea.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto/controls/data/tst_textarea.qml') diff --git a/tests/auto/controls/data/tst_textarea.qml b/tests/auto/controls/data/tst_textarea.qml index adf3ff9f..bed1292c 100644 --- a/tests/auto/controls/data/tst_textarea.qml +++ b/tests/auto/controls/data/tst_textarea.qml @@ -83,9 +83,9 @@ TestCase { // Long enough press duration => signal emitted mousePress(control, 10, 10) - // Add 10% extra time to allow the control to + // Add 20% extra time to allow the control to // receive the timer event before we come back here - wait(interval * 1.1) + wait(interval * 1.2) compare(pressAndHoldSpy.count, 1) mouseRelease(control) compare(pressAndHoldSpy.count, 1) -- cgit v1.2.3