summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativexmllistmodel
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-05-21 02:48:32 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-05-21 02:49:25 (GMT)
commit54e9fdb0ddf673b3c8ee9a5ffce561114db2329c (patch)
tree0f0f7851cf3f9ed154898dd0f1ba733690bf4039 /tests/auto/declarative/qdeclarativexmllistmodel
parent58e154ec33ec1b1aea70fa35a1c5c692fe035df2 (diff)
downloadQt-54e9fdb0ddf673b3c8ee9a5ffce561114db2329c.zip
Qt-54e9fdb0ddf673b3c8ee9a5ffce561114db2329c.tar.gz
Qt-54e9fdb0ddf673b3c8ee9a5ffce561114db2329c.tar.bz2
Also show file/line numbers on XML query errors.
Task-number: QTBUG-10797 Reviewed-by: Bea Lam
Diffstat (limited to 'tests/auto/declarative/qdeclarativexmllistmodel')
-rw-r--r--tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp b/tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
index 464f9e0..35790e4 100644
--- a/tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
+++ b/tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
@@ -224,7 +224,7 @@ 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/\"");
+ QTest::ignoreMessage(QtWarningMsg, (QUrl::fromLocalFile(SRCDIR "/data/roleErrors.qml").toString() + ":9:5: QML XmlRole: invalid query: \"age/\"").toUtf8().constData());
//### make sure we receive all expected warning messages.
QDeclarativeXmlListModel *model = qobject_cast<QDeclarativeXmlListModel*>(component.create());