From afaaffd52f7d281cb8e08beee8c3f2b7fdf74938 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 14 Dec 2015 18:05:09 +0200 Subject: [PATCH] Updated test TST_TSTranslation. --HG-- branch : develop --- src/test/ValentinaTest/tst_tstranslation.cpp | 7 ++++--- src/test/ValentinaTest/tst_tstranslation.h | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/test/ValentinaTest/tst_tstranslation.cpp b/src/test/ValentinaTest/tst_tstranslation.cpp index 8de6f2d88..30f36d08b 100644 --- a/src/test/ValentinaTest/tst_tstranslation.cpp +++ b/src/test/ValentinaTest/tst_tstranslation.cpp @@ -41,6 +41,7 @@ const QString TST_TSTranslation::TagTranslation = QStringLiteral("translation const QString TST_TSTranslation::AttrType = QStringLiteral("type"); const QString TST_TSTranslation::AttrValVanished = QStringLiteral("vanished"); const QString TST_TSTranslation::AttrValUnfinished = QStringLiteral("unfinished"); +const QString TST_TSTranslation::AttrValObsolete = QStringLiteral("obsolete"); //--------------------------------------------------------------------------------------------------------------------- TST_TSTranslation::TST_TSTranslation(QObject *parent) : @@ -74,7 +75,7 @@ void TST_TSTranslation::CheckEnglishLocalization() if (translationTag.hasAttribute(AttrType)) { const QString attrVal = translationTag.attribute(AttrType); - if (attrVal == AttrValVanished || attrVal == AttrValUnfinished) + if (attrVal == AttrValVanished || attrVal == AttrValUnfinished || attrVal == AttrValObsolete) { continue; } @@ -121,7 +122,7 @@ void TST_TSTranslation::CheckEmptyToolButton() if (translationTag.hasAttribute(AttrType)) { const QString attrVal = translationTag.attribute(AttrType); - if (attrVal == AttrValVanished) + if (attrVal == AttrValVanished || attrVal == AttrValObsolete) { continue; } @@ -193,7 +194,7 @@ void TST_TSTranslation::CheckPlaceMarkerExist() if (translationTag.hasAttribute(AttrType)) { const QString attrVal = translationTag.attribute(AttrType); - if (attrVal == AttrValVanished || attrVal == AttrValUnfinished) + if (attrVal == AttrValVanished || attrVal == AttrValUnfinished || attrVal == AttrValObsolete) { continue; } diff --git a/src/test/ValentinaTest/tst_tstranslation.h b/src/test/ValentinaTest/tst_tstranslation.h index 982c61dfc..3bac4e1e3 100644 --- a/src/test/ValentinaTest/tst_tstranslation.h +++ b/src/test/ValentinaTest/tst_tstranslation.h @@ -59,6 +59,7 @@ private: static const QString AttrType; static const QString AttrValVanished; static const QString AttrValUnfinished; + static const QString AttrValObsolete; QDomNodeList LoadTSFile(const QString &filename); };