summaryrefslogtreecommitdiffstats
path: root/tests/auto/qxmlschema
diff options
context:
space:
mode:
authorTobias Koenig <tokoe@kde.org>2009-05-19 16:24:22 (GMT)
committerTobias Koenig <tokoe@kde.org>2009-05-19 16:24:22 (GMT)
commit317ab44d0c99fbc8b0a9f4136a107ad5d17e4539 (patch)
tree9d16eb74b53248c58249e015877e28d0e82c7c23 /tests/auto/qxmlschema
parentadad01b142a0839a9c6e59275844f0c38924c25d (diff)
downloadQt-317ab44d0c99fbc8b0a9f4136a107ad5d17e4539.zip
Qt-317ab44d0c99fbc8b0a9f4136a107ad5d17e4539.tar.gz
Qt-317ab44d0c99fbc8b0a9f4136a107ad5d17e4539.tar.bz2
Extend auto tests for namepool checks
Diffstat (limited to 'tests/auto/qxmlschema')
-rw-r--r--tests/auto/qxmlschema/tst_qxmlschema.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qxmlschema/tst_qxmlschema.cpp b/tests/auto/qxmlschema/tst_qxmlschema.cpp
index 7fc59bb..33978e8 100644
--- a/tests/auto/qxmlschema/tst_qxmlschema.cpp
+++ b/tests/auto/qxmlschema/tst_qxmlschema.cpp
@@ -118,6 +118,10 @@ void tst_QXmlSchema::constructorQXmlNamePool() const
QCOMPARE(name.namespaceUri(np2), QString::fromLatin1("http://example.com/"));
QCOMPARE(name.localName(np2), QString::fromLatin1("localName"));
QCOMPARE(name.prefix(np2), QString::fromLatin1("prefix"));
+
+ // make sure namePool() is const
+ const QXmlSchema constSchema;
+ np = constSchema.namePool();
}
void tst_QXmlSchema::copyMutationTest() const