aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktextinput
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-03-04 14:12:19 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-04 16:20:43 +0100
commit1b68b22640650b32e38e8cb5c100ad72765bdd8d (patch)
tree11a703e52217b88facebe84ea37fc0c5ec5e80cc /tests/auto/quick/qquicktextinput
parent1853d1ad33644bdbfe933a01c6df0c4840fdb9d9 (diff)
Stabilize tst_qquicktextinput::remoteCursorDelegate()
In some cases QCOMPARE(component.status(), QQmlComponent::Loading); (line 2800) is failing -- it appears to be Ready immediately. Add a delay to ensure it always hits Loading before Ready. This is a backport of change: I975f3b3ea6004f178a7b0fb21193dcbdaf483157 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> Backported since the test keeps on failing for the stable branch. Change-Id: Ic90f1fc3de3e0a0ee75026cbebf8d99304a67b98 Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'tests/auto/quick/qquicktextinput')
-rw-r--r--tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp b/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp
index 86a05c3d3b..8789c43b55 100644
--- a/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp
+++ b/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp
@@ -2774,7 +2774,7 @@ void tst_qquicktextinput::cursorDelegate()
void tst_qquicktextinput::remoteCursorDelegate()
{
TestHTTPServer server(SERVER_PORT);
- server.serveDirectory(dataDirectory());
+ server.serveDirectory(dataDirectory(), TestHTTPServer::Delay);
QQuickView view;