Stabilize tst_qquicktextinput::remoteCursorDelegate()
authorMichael Brasser <michael.brasser@live.com>
Fri, 1 Feb 2013 13:33:15 +0000 (07:33 -0600)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 1 Feb 2013 17:19:31 +0000 (18:19 +0100)
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.

Change-Id: I975f3b3ea6004f178a7b0fb21193dcbdaf483157
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp

index 3debfbe..2714ce4 100644 (file)
@@ -2775,7 +2775,7 @@ void tst_qquicktextinput::cursorDelegate()
 void tst_qquicktextinput::remoteCursorDelegate()
 {
     TestHTTPServer server(SERVER_PORT);
-    server.serveDirectory(dataDirectory());
+    server.serveDirectory(dataDirectory(), TestHTTPServer::Delay);
 
     QQuickView view;