summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativexmllistmodel
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-05-21 01:12:23 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-05-21 01:17:52 (GMT)
commit58e154ec33ec1b1aea70fa35a1c5c692fe035df2 (patch)
tree91afa6e0615e1b80861968f68d8701eaa0caeb22 /tests/auto/declarative/qdeclarativexmllistmodel
parent7e1f42ea22e34e5c846f518265c1ea864746587e (diff)
downloadQt-58e154ec33ec1b1aea70fa35a1c5c692fe035df2.zip
Qt-58e154ec33ec1b1aea70fa35a1c5c692fe035df2.tar.gz
Qt-58e154ec33ec1b1aea70fa35a1c5c692fe035df2.tar.bz2
Print warnings for xml query syntax errors
Task-number: QTBUG-10797
Diffstat (limited to 'tests/auto/declarative/qdeclarativexmllistmodel')
-rw-r--r--tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp b/tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
index e1dd6f4..464f9e0 100644
--- a/tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
+++ b/tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
@@ -224,6 +224,8 @@ void tst_qdeclarativexmllistmodel::roleErrors()
{
QDeclarativeComponent component(&engine, QUrl::fromLocalFile(SRCDIR "/data/roleErrors.qml"));
QTest::ignoreMessage(QtWarningMsg, (QUrl::fromLocalFile(SRCDIR "/data/roleErrors.qml").toString() + ":6:5: QML XmlRole: An XmlRole query must not start with '/'").toUtf8().constData());
+ QTest::ignoreMessage(QtWarningMsg, "XmlListModel: invalid query: \"age/\"");
+
//### make sure we receive all expected warning messages.
QDeclarativeXmlListModel *model = qobject_cast<QDeclarativeXmlListModel*>(component.create());
QVERIFY(model != 0);