aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/tst_qmllint.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-08-16 16:15:22 +0200
committerUlf Hermann <ulf.hermann@qt.io>2019-08-30 10:35:02 +0200
commitc2535eb7f843d7d6adc6497097e8fa537ce3eba4 (patch)
tree9a1ee70c2fb55ac0b740c766db42fec9b027a036 /tests/auto/qml/qmllint/tst_qmllint.cpp
parentc3fa4a2d39dce9e20c6f0ce93465440d408dac8d (diff)
qmllint: Take prefix into account when inserting names
Change-Id: I2c13e8fc173e5e155d07a1bbf8547df65605ba10 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp')
-rw-r--r--tests/auto/qml/qmllint/tst_qmllint.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp
index cfcc6bf246..2d225aebd3 100644
--- a/tests/auto/qml/qmllint/tst_qmllint.cpp
+++ b/tests/auto/qml/qmllint/tst_qmllint.cpp
@@ -47,6 +47,7 @@ private Q_SLOTS:
void testUnmatchedSignalHandler();
void uiQml();
void methodInScope();
+ void importWithPrefix();
private:
QString runQmllint(const QString &fileToLint, bool shouldSucceed);
@@ -150,6 +151,12 @@ void TestQmllint::methodInScope()
QVERIFY(output.isEmpty());
}
+void TestQmllint::importWithPrefix()
+{
+ const QString output = runQmllint("ImportWithPrefix.qml", true);
+ QVERIFY(output.isEmpty());
+}
+
void TestQmllint::test()
{
QFETCH(QString, filename);