Stabilize tst_qqmlxmlhttprequest::stateChangeCallingContext() on Mac.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Tue, 15 Apr 2014 07:22:24 +0000 (09:22 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 15 Apr 2014 12:28:59 +0000 (14:28 +0200)
Fix fails:
tst_qqmlxmlhttprequest::stateChangeCallingContext() '(object->property("success").toBool() == true)' returned FALSE. ()

Debugging reveals that in most cases the function loadComponent()
is only called with parameter which=1; the call with parameter
which=0 never triggers.

Change-Id: I3c9c2f618d52c2bc8dd584a5fc3ab2f115715381
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
tests/auto/qml/qqmlxmlhttprequest/data/stateChangeCallingContext.qml

index f44f4f926c54114d1e3cc76f6b17a0522be00da5..b35c31d5133821412fcfbe6aad4444d7d33d2562 100644 (file)
@@ -8,7 +8,7 @@ Item {
 
     SequentialAnimation {
         id: anim
-        PauseAnimation { duration: 525 } // delay mode is 500 msec.
+        PauseAnimation { duration: 1000 } // delay mode is 500 msec.
         ScriptAction { script: loadcomponent(0) }
         PauseAnimation { duration: 525 } // delay mode is 500 msec.
         ScriptAction { script: loadcomponent(1) }