From 2eb1aba797f9380b4622575a3ef9c409e3b35036 Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Wed, 19 Aug 2009 15:57:47 +1000 Subject: More installed version test --- .../qmlparser/lib/com/nokia/installedtest/InstalledTest2.qml | 2 ++ tests/auto/declarative/qmlparser/lib/com/nokia/installedtest/qmldir | 3 ++- tests/auto/declarative/qmlparser/tst_qmlparser.cpp | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tests/auto/declarative/qmlparser/lib/com/nokia/installedtest/InstalledTest2.qml diff --git a/tests/auto/declarative/qmlparser/lib/com/nokia/installedtest/InstalledTest2.qml b/tests/auto/declarative/qmlparser/lib/com/nokia/installedtest/InstalledTest2.qml new file mode 100644 index 0000000..a0706ad --- /dev/null +++ b/tests/auto/declarative/qmlparser/lib/com/nokia/installedtest/InstalledTest2.qml @@ -0,0 +1,2 @@ +import Qt 4.6 +Text {} diff --git a/tests/auto/declarative/qmlparser/lib/com/nokia/installedtest/qmldir b/tests/auto/declarative/qmlparser/lib/com/nokia/installedtest/qmldir index 41e2f2c..f22e179 100644 --- a/tests/auto/declarative/qmlparser/lib/com/nokia/installedtest/qmldir +++ b/tests/auto/declarative/qmlparser/lib/com/nokia/installedtest/qmldir @@ -1 +1,2 @@ -InstalledTest 1.0 InstalledTest.qml +InstalledTest 1.0-3 InstalledTest.qml +InstalledTest 1.4 InstalledTest2.qml diff --git a/tests/auto/declarative/qmlparser/tst_qmlparser.cpp b/tests/auto/declarative/qmlparser/tst_qmlparser.cpp index 5ed41ef..9974ef8 100644 --- a/tests/auto/declarative/qmlparser/tst_qmlparser.cpp +++ b/tests/auto/declarative/qmlparser/tst_qmlparser.cpp @@ -628,6 +628,10 @@ void tst_qmlparser::imports_data() << "import com.nokia.installedtest 1.0\n" "InstalledTest {}" << "QFxRect"; + QTest::newRow("installed import") + << "import com.nokia.installedtest 1.4\n" + "InstalledTest {}" + << "QFxText"; } void tst_qmlparser::imports() -- cgit v0.12