windowShown is a property of qtest, not util.
authorCharles Yin <charles.yin@nokia.com>
Thu, 23 Jun 2011 02:42:45 +0000 (12:42 +1000)
committerCharles Yin <charles.yin@nokia.com>
Thu, 23 Jun 2011 02:42:45 +0000 (12:42 +1000)
Change-Id: I3d96b6bd43fc8fdfdf9a916032efd9a7360aafba

src/imports/testlib/TestCase.qml

index 0ba6c3b..2e4df2c 100644 (file)
@@ -69,7 +69,7 @@ Item {
     // Property that is set to true when the main window is shown.
     // We need to set the property value in an odd way to handle
     // both qmlviewer and the QtQuickTest module test wrapper.
-    property bool windowShown: util.wrapper ? util.windowShown : false
+    property bool windowShown: util.wrapper ? qtest.windowShown : false
 
     // Internal private state.  Identifiers prefixed with qtest are reserved.
     property bool qtest_prevWhen: true