Change variant properties to var properties.
authorJustin McPherson <justin.mcpherson@nokia.com>
Mon, 13 Feb 2012 06:16:42 +0000 (16:16 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 13 Feb 2012 09:27:31 +0000 (10:27 +0100)
Helps with the use of js objects in test data etc.

Change-Id: I95661118a8ded277c0e1d3c951182dee3f550e12
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
src/imports/testlib/SignalSpy.qml
src/imports/testlib/TestCase.qml

index f71f4bf..8b74132 100644 (file)
@@ -52,7 +52,7 @@ Item {
 
     // Public API.
 
-    property variant target: null
+    property var target: null
     property string signalName: ""
     property int count: 0
 
@@ -86,7 +86,7 @@ Item {
         qtest_update()
     }
 
-    property variant qtest_prevTarget: null
+    property var qtest_prevTarget: null
     property string qtest_prevSignalName: ""
     property int qtest_expectedCount: 0
 
index 1f96f28..0433483 100644 (file)
@@ -75,10 +75,10 @@ Item {
     property bool qtest_prevWhen: true
     property int qtest_testId: -1
     property bool qtest_componentCompleted : false
-    property variant qtest_testCaseResult
-    property variant qtest_results: qtest_results_normal
+    property var qtest_testCaseResult
+    property var qtest_results: qtest_results_normal
     TestResult { id: qtest_results_normal }
-    property variant qtest_events: qtest_events_normal
+    property var qtest_events: qtest_events_normal
     TestEvent { id: qtest_events_normal }
 
     function fail(msg) {