Update contrib.
2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * TFormat.cpp tests for TTmCharFormat and CTmParFormat
25 #define UNUSED_VAR(a) a = a
27 namespace LocalToTFormat
29 CTFormatStep* TestStep = NULL;
30 #define TESTPOINT(p) TestStep->testpoint(p,(TText8*)__FILE__,__LINE__)
31 #define TESTPRINT(p) TestStep->print(p,(TText8*)__FILE__,__LINE__)
33 using namespace LocalToTFormat;
39 cf.iFontPresentation.iHighlightStyle
40 = TFontPresentation::EFontHighlightNoMatchesIndicator;
43 TESTPOINT(tmcf.iEffects == TTmCharFormat::ENoMatchesIndicator);
44 cf.iFontPresentation.iHighlightStyle
45 = TFontPresentation::EFontHighlightNone;
46 tmcf.GetTCharFormat(cf);
47 TESTPOINT(cf.iFontPresentation.iHighlightStyle
48 == TFontPresentation::EFontHighlightNoMatchesIndicator);
51 TVerdict CTFormatStep::doTestStepL()
53 SetTestStepResult(EPass);
55 TESTPRINT(_L("TFormat - TTmCharFormat and CTmParFormat"));
59 TESTPRINT(_L(" @SYMTestCaseID:SYSLIB-FORM-LEGACY-TFORMAT-0001 INC041190 - EText's EFontHighlightNoMatchesIndicator isn't mappd to anythng in TTmCharFormat "));
63 return TestStepResult();