diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-05-21 02:48:32 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-05-21 02:49:25 (GMT) |
commit | 54e9fdb0ddf673b3c8ee9a5ffce561114db2329c (patch) | |
tree | 0f0f7851cf3f9ed154898dd0f1ba733690bf4039 /tests/auto/declarative/qdeclarativexmllistmodel | |
parent | 58e154ec33ec1b1aea70fa35a1c5c692fe035df2 (diff) | |
download | Qt-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.cpp | 2 |
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()); |