diff options
author | Caroline Chao <caroline.chao@digia.com> | 2013-08-22 13:13:00 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-28 20:22:18 +0200 |
commit | 75a6f86f685f1a5ce6cb91212641fe446a37be2e (patch) | |
tree | 9a6632bff3edfc687394abbfba1e88778961e002 /src/imports | |
parent | 6e79a590c541c420e7f481bbc876c9c18669ff0b (diff) |
qmltest: Register test object as a singleton
Change-Id: I5f6c404ff2901082f22b953b29aed08d3488f31d
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/testlib/TestCase.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml index 6e2c8e73ab..1544bb2799 100644 --- a/src/imports/testlib/TestCase.qml +++ b/src/imports/testlib/TestCase.qml @@ -42,6 +42,7 @@ import QtQuick 2.0 import QtTest 1.0 import "testlogger.js" as TestLogger +import Qt.test.qtestroot 1.0 Item { id: testCase @@ -66,7 +67,7 @@ Item { // other test failed which this one depends on). property bool optional: false - property bool windowShown: qtest.windowShown + property bool windowShown: QTestRootObject.windowShown // Internal private state. Identifiers prefixed with qtest are reserved. property bool qtest_prevWhen: true @@ -744,7 +745,7 @@ Item { Component.onCompleted: { - qtest.hasTestCase = true; + QTestRootObject.hasTestCase = true; qtest_componentCompleted = true; if (util.printAvailableFunctions) { |