aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_textarea.qml
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-08-21 16:24:38 +0200
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-08-21 14:32:06 +0000
commitb749d75a0dbf84a92a85a71b262c4152c35704f1 (patch)
treea0944380a2d0b25924fe06c0bdd0aa80bfda7d90 /tests/auto/controls/data/tst_textarea.qml
parent494b6cbb94e057176e5524f3ce55a20f5b960413 (diff)
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 <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/controls/data/tst_textarea.qml')
-rw-r--r--tests/auto/controls/data/tst_textarea.qml4
1 files changed, 2 insertions, 2 deletions
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)