diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-01-13 01:11:07 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-01-13 01:11:07 (GMT) |
commit | f285a9ec384d880e57f1ea26ccc547043e244bbd (patch) | |
tree | a2b8f0a9597f629ed5f325f16447190d25c99e7a /tests/auto/declarative/qmllanguage | |
parent | ef37460d0814879f5022cbb9692f3eaa49d9c8c3 (diff) | |
download | Qt-f285a9ec384d880e57f1ea26ccc547043e244bbd.zip Qt-f285a9ec384d880e57f1ea26ccc547043e244bbd.tar.gz Qt-f285a9ec384d880e57f1ea26ccc547043e244bbd.tar.bz2 |
Fix and test version 0.0 installed imports.
Diffstat (limited to 'tests/auto/declarative/qmllanguage')
-rw-r--r-- | tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/qmldir | 1 | ||||
-rw-r--r-- | tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/qmldir b/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/qmldir index 30c2d4e..eeb9a05 100644 --- a/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/qmldir +++ b/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/qmldir @@ -1,3 +1,4 @@ Rectangle 1.5 InstalledTest2.qml InstalledTest 1.4 InstalledTest2.qml InstalledTest 1.0 InstalledTest.qml +InstalledTestTP 0.0 InstalledTest.qml diff --git a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp index fcf5d0b..3b7c298 100644 --- a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp +++ b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp @@ -1187,6 +1187,14 @@ void tst_qmllanguage::importsInstalled_data() QTest::addColumn<QString>("type"); // import installed + QTest::newRow("installed import 0") + << "import com.nokia.installedtest 0.0\n" + "InstalledTestTP {}" + << "QmlGraphicsRectangle"; + QTest::newRow("installed import 0 as TP") + << "import com.nokia.installedtest 0.0 as TP\n" + "TP.InstalledTestTP {}" + << "QmlGraphicsRectangle"; QTest::newRow("installed import 1") << "import com.nokia.installedtest 1.0\n" "InstalledTest {}" |