summaryrefslogtreecommitdiffstats
path: root/tests/auto/xmlpatternsxqts/lib/TestBaseLine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/xmlpatternsxqts/lib/TestBaseLine.cpp')
-rw-r--r--tests/auto/xmlpatternsxqts/lib/TestBaseLine.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/xmlpatternsxqts/lib/TestBaseLine.cpp b/tests/auto/xmlpatternsxqts/lib/TestBaseLine.cpp
index b699ead..841266c 100644
--- a/tests/auto/xmlpatternsxqts/lib/TestBaseLine.cpp
+++ b/tests/auto/xmlpatternsxqts/lib/TestBaseLine.cpp
@@ -178,6 +178,7 @@ void TestBaseLine::toXML(XMLWriter &receiver) const
{
case XML: /* Fallthrough. */
case Fragment: /* Fallthrough. */
+ case SchemaIsValid: /* Fallthrough. */
case Text:
{
QXmlAttributes inspectAtts;
@@ -343,6 +344,8 @@ TestResult::Status TestBaseLine::verify(const QString &serializedInput) const
{
switch(m_type)
{
+ case SchemaIsValid:
+ /* Fall through. */
case Text:
{
if(serializedInput == details())
@@ -491,6 +494,8 @@ QString TestBaseLine::displayName(const Type id)
return QLatin1String("Inspect");
case ExpectedError:
return QLatin1String("ExpectedError");
+ case SchemaIsValid:
+ return QLatin1String("SchemaIsValid");
}
Q_ASSERT(false);
@@ -503,6 +508,8 @@ QString TestBaseLine::details() const
return QString();
if(m_type == ExpectedError) /* We're an error code. */
return m_details;
+ if(m_type == SchemaIsValid) /* We're a schema validation information . */
+ return m_details;
if(m_details.isEmpty())
return m_details;