summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-02-09 02:32:22 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-02-09 02:32:22 (GMT)
commit2f653cc06b97b443b9832d0121dbf92b35dd32c2 (patch)
tree5929efcc1e746414cac18e3a02e3d1bff59edd0e /tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
parent64d94b747dfa2448d9ba0157fc2a44c13cf4b1d5 (diff)
downloadQt-2f653cc06b97b443b9832d0121dbf92b35dd32c2.zip
Qt-2f653cc06b97b443b9832d0121dbf92b35dd32c2.tar.gz
Qt-2f653cc06b97b443b9832d0121dbf92b35dd32c2.tar.bz2
Remove old implicit module support.
Previously, it was allowed to use type qualification to refer to types defined in subdirectories - indeed, this was the only form of modularity. This is no longer desirable since we have good import features. Task-number: QTBUG-7721
Diffstat (limited to 'tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp')
-rw-r--r--tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
index 606d4c6..357fc5f 100644
--- a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
+++ b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
@@ -1187,6 +1187,17 @@ void tst_qmllanguage::importsLocal_data()
<< "import Qt 4.6\nimport \"subdir\"\n"
"Test {}"
<< "QmlGraphicsRectangle";
+ QTest::newRow("local import subsubdir")
+ << "import Qt 4.6\nimport \"subdir/subsubdir\"\n"
+ "SubTest {}"
+ << "QmlGraphicsRectangle";
+ QTest::newRow("local import QTBUG-7721 A")
+ << "subdir.Test {}" // no longer allowed (QTBUG-7721)
+ << "";
+ QTest::newRow("local import QTBUG-7721 B")
+ << "import \"subdir\" as X\n"
+ "X.subsubdir.SubTest {}" // no longer allowed (QTBUG-7721)
+ << "";
QTest::newRow("local import as")
<< "import \"subdir\" as T\n"
"T.Test {}"