diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2019-10-18 16:09:30 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2019-10-21 08:58:00 +0200 |
commit | c494e07f6d7293b685325575f8ea9bd5c1d3e91c (patch) | |
tree | 3adec8a65cb459d591e9cdea524ff2b16919ff37 /tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp | |
parent | 195977f6e9e21e23a9ae3a13c9bbcea38eb5387b (diff) |
qqmllanguage: check for expected duplicate alias error
Change-Id: Ib0e7d34dbede2da185f0a0cd695af8ddac7078b8
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp')
-rw-r--r-- | tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp index 4e6ed63d06..a19a82cf55 100644 --- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp +++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp @@ -2053,6 +2053,11 @@ void tst_qqmllanguage::aliasProperties() auto text = myText->property("text").toString(); QCOMPARE(text, "alias:\n20"); } + + { + QQmlComponent component(&engine, testFileUrl("alias.18.qml")); + VERIFY_ERRORS("alias.18.errors.txt"); + } } // QTBUG-13374 Test that alias properties and signals can coexist |