diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-01-13 00:17:41 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-01-13 00:17:41 (GMT) |
commit | 6884983aec9afcf71cb34241e453b2edf431a43b (patch) | |
tree | 4d922b93af385ff1cdd3e7678e8cded00ac789b2 /tests/auto/declarative/qmllanguage | |
parent | bc08102443fa484053320196ba3e19b98b9f62b4 (diff) | |
download | Qt-6884983aec9afcf71cb34241e453b2edf431a43b.zip Qt-6884983aec9afcf71cb34241e453b2edf431a43b.tar.gz Qt-6884983aec9afcf71cb34241e453b2edf431a43b.tar.bz2 |
Test version 0.0
Diffstat (limited to 'tests/auto/declarative/qmllanguage')
-rw-r--r-- | tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp index 8fa9576..fcf5d0b 100644 --- a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp +++ b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp @@ -1017,6 +1017,7 @@ void tst_qmllanguage::testType(const QString& qml, const QString& type) QML_DECLARE_TYPE(TestType) QML_DECLARE_TYPE(TestType2) +QML_DEFINE_TYPE(com.nokia.Test, 0, 0, TestTP, TestType) QML_DEFINE_TYPE(com.nokia.Test, 1, 0, Test, TestType) QML_DEFINE_TYPE(com.nokia.Test, 1, 5, Test, TestType) QML_DEFINE_TYPE(com.nokia.Test, 1, 8, Test, TestType2) @@ -1040,6 +1041,14 @@ void tst_qmllanguage::importsBuiltin_data() << "import com.nokia.Test 0.0\n" "Test {}" << ""; + QTest::newRow("in version 0.0") + << "import com.nokia.Test 0.0\n" + "TestTP {}" + << "TestType"; + QTest::newRow("qualified in version 0.0") + << "import com.nokia.Test 0.0 as T\n" + "T.TestTP {}" + << "TestType"; QTest::newRow("in version 1.0") << "import com.nokia.Test 1.0\n" "Test {}" |