summaryrefslogtreecommitdiffstats
path: root/tests/auto/qabstractxmlnodemodel/tst_qabstractxmlnodemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qabstractxmlnodemodel/tst_qabstractxmlnodemodel.cpp')
-rw-r--r--tests/auto/qabstractxmlnodemodel/tst_qabstractxmlnodemodel.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qabstractxmlnodemodel/tst_qabstractxmlnodemodel.cpp b/tests/auto/qabstractxmlnodemodel/tst_qabstractxmlnodemodel.cpp
index 7679bd8..634f692 100644
--- a/tests/auto/qabstractxmlnodemodel/tst_qabstractxmlnodemodel.cpp
+++ b/tests/auto/qabstractxmlnodemodel/tst_qabstractxmlnodemodel.cpp
@@ -45,6 +45,7 @@
#ifdef QTEST_XMLPATTERNS
+#include <QSourceLocation>
#include <QXmlFormatter>
#include <QXmlNamePool>
#include <QXmlQuery>
@@ -80,6 +81,7 @@ private Q_SLOTS:
void id() const;
void idref() const;
void typedValue() const;
+ void sourceLocation() const;
private:
QAbstractXmlNodeModel::Ptr m_nodeModel;
@@ -389,6 +391,12 @@ void tst_QAbstractXmlNodeModel::typedValue() const
QVERIFY(output.isEmpty());
}
+void tst_QAbstractXmlNodeModel::sourceLocation() const
+{
+ const QAbstractXmlNodeModel* const constModel = m_nodeModel.data();
+ const QSourceLocation location = constModel->sourceLocation(m_rootNode);
+}
+
QTEST_MAIN(tst_QAbstractXmlNodeModel)
#include "tst_qabstractxmlnodemodel.moc"