Updated config message test for new STXTTranslator behavior
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6861 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1748ad5db7
commit
28cac36c73
@ -406,8 +406,22 @@ STXTTranslatorTest::ConfigMessageTest()
|
||||
// GetConfigurationMessage
|
||||
NextSubTest();
|
||||
BMessage msg;
|
||||
CPPUNIT_ASSERT(proster->GetConfigurationMessage(tid, &msg) == B_ERROR);
|
||||
CPPUNIT_ASSERT(msg.IsEmpty());
|
||||
CPPUNIT_ASSERT(proster->GetConfigurationMessage(tid, &msg) == B_OK);
|
||||
CPPUNIT_ASSERT(!msg.IsEmpty());
|
||||
|
||||
// B_TRANSLATOR_EXT_HEADER_ONLY
|
||||
NextSubTest();
|
||||
bool bheaderonly = true;
|
||||
CPPUNIT_ASSERT(
|
||||
msg.FindBool(B_TRANSLATOR_EXT_HEADER_ONLY, &bheaderonly) == B_OK);
|
||||
CPPUNIT_ASSERT(bheaderonly == false);
|
||||
|
||||
// B_TRANSLATOR_EXT_DATA_ONLY
|
||||
NextSubTest();
|
||||
bool bdataonly = true;
|
||||
CPPUNIT_ASSERT(
|
||||
msg.FindBool(B_TRANSLATOR_EXT_DATA_ONLY, &bdataonly) == B_OK);
|
||||
CPPUNIT_ASSERT(bdataonly == false);
|
||||
}
|
||||
|
||||
#if !TEST_R5
|
||||
|
Loading…
Reference in New Issue
Block a user