From 6884983aec9afcf71cb34241e453b2edf431a43b Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Wed, 13 Jan 2010 10:17:41 +1000 Subject: Test version 0.0 --- tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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 {}" -- cgit v0.12