New test cases.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-11-12 13:06:14 +02:00
parent b28cc36188
commit 428175944e
6 changed files with 17 additions and 2 deletions

View file

@ -225,12 +225,15 @@ TAPE_TEST_FILES += \
tst_tape/broken1.vit \
tst_tape/broken2.vit \
tst_tape/broken3.vit \
tst_tape/broken4.vit
tst_tape/broken4.vit \
tst_tape/text.vit \
tst_tape/text.vst
VALENTINA_TEST_FILES += \
tst_valentina/empty.val \
tst_valentina/issue_372.val \
tst_valentina/wrong_obj_type.val
tst_valentina/wrong_obj_type.val \
tst_valentina/text.val
# Compilation will fail without this files after we added them to this section.
OTHER_FILES += \

View file

View file

View file

@ -114,6 +114,14 @@ void TST_TapeCommandLine::OpenMeasurements_data() const
QTest::newRow("Broken file. Invalid measurement name.") << "broken4.vit"
<< false
<< V_EX_NOINPUT;
QTest::newRow("Empty text VIT file.") << "text.vit"
<< false
<< V_EX_NOINPUT;
QTest::newRow("Empty text VST file.") << "text.vst"
<< false
<< V_EX_NOINPUT;
}
//---------------------------------------------------------------------------------------------------------------------

View file

@ -75,6 +75,10 @@ void TST_ValentinaCommandLine::OpenPatterns_data() const
QTest::newRow("File with invalid object type") << "wrong_obj_type.val"
<< false
<< V_EX_NOINPUT;
QTest::newRow("Empty text VAL file") << "txt.val"
<< false
<< V_EX_NOINPUT;
}
//---------------------------------------------------------------------------------------------------------------------