graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-FbsFont-PublicApi.script
changeset 103 2717213c588a
parent 98 bf7481649c98
child 116 171fae344dd4
child 121 d72fc2aace31
child 187 9f66f99ee56f
equal deleted inserted replaced
98:bf7481649c98 103:2717213c588a
     1 //
       
     2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     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".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 //! @file
       
    17 //! @SYMTestSuiteName		GRAPHICS-FBSERV-FbsFont-PublicApi
       
    18 //! @SYMScriptTestEnvironment	This test script requires a basic ROM.
       
    19 
       
    20 /////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-FBSERV-FbsFont-PublicAPI.script
       
    22 //
       
    23 // Tests all public elements of the CFbsFont class
       
    24 // as a means of confidence that the APIs work as expected.
       
    25 //
       
    26 // The purpose is to provide a regression test suite of PublishedAll APIs for CFbsFont.
       
    27 // Negative testing is performed to confirm that correct errors are returned when incorrect parameters are given.
       
    28 // The tests are fully automated.
       
    29 /////////////////////////////////////////////////////////////////////
       
    30 
       
    31 LOAD_SUITE	T_FBServAPI
       
    32 
       
    33 
       
    34 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0001
       
    35 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0001
       
    36 //! @SYMAPI			CFbsFont
       
    37 //! @SYMAuthor			Anton Golovko
       
    38 //! @SYMCreationDate		22/03/2006
       
    39 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
    40 //! @SYMTestCaseDesc		Simple CFbsFont test
       
    41 //! @SYMTestActions		1. Create FBS session
       
    42 //!				2. Create FBS typeface store
       
    43 //!				3. Creates a CFbsFont class instance obtaining it from FBS typeface store
       
    44 //! @SYMTestStatus		Implemented
       
    45 //! @SYMTestPriority		Critical
       
    46 //! @SYMTestExpectedResults	Creation of CFbsFont class doesn't cause panic.
       
    47 //! @SYMTestType		CIT
       
    48 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
    49 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
    50 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
    51 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
    52 		COMMAND		RFbsSession1		Connect
       
    53 		COMMAND		CFbsTypefaceStore1	NewL
       
    54 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0001-001-GetNearestFontToDesignHeightInPixels_command004
       
    55 		COMMAND		CFbsTypefaceStore1	~
       
    56 		COMMAND		RFbsSession1		Disconnect
       
    57 	END_TEST_BLOCK
       
    58 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0001
       
    59 
       
    60 
       
    61 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0002
       
    62 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0002
       
    63 //! @SYMAPI			CFbsFont
       
    64 //! @SYMAuthor			Anton Golovko
       
    65 //! @SYMCreationDate		22/03/2006
       
    66 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
    67 //! @SYMTestCaseDesc		CFbsFont::GetFontMetrics() test
       
    68 //!				Uses API elements: GetFontMetrics()
       
    69 //! @SYMTestActions		1. Create FBS session
       
    70 //!				2. Create FBS typeface store
       
    71 //!				3. Creates a CFbsFont class instance obtaining it from Arial, 12px FBS typeface store
       
    72 //!				4. Create a TOpenFontMetrics instance and pass it as a parameter to font's GetFontMetrics
       
    73 //! @SYMTestStatus		Implemented
       
    74 //! @SYMTestPriority		Critical
       
    75 //! @SYMTestExpectedResults	The function GetFontMetrics() returns true and doesn't cause panic.
       
    76 //! @SYMTestType		CIT
       
    77 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
    78 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
    79 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
    80 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
    81 		COMMAND		RFbsSession1		Connect
       
    82 		COMMAND		CFbsTypefaceStore1	NewL
       
    83 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0002-001-GetNearestFontToDesignHeightInPixels_command004
       
    84 		COMMAND		CFbsFont1		GetFontMetrics				GRAPHICS-FBSERV-FbsFont-PublicApi-0002-001-GetFontMetrics_command006
       
    85 		COMMAND		CFbsTypefaceStore1	~
       
    86 		COMMAND		RFbsSession1		Disconnect
       
    87 	END_TEST_BLOCK
       
    88 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0002
       
    89 
       
    90 
       
    91 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0003
       
    92 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0003
       
    93 //! @SYMAPI			CFbsFont
       
    94 //! @SYMAuthor			Anton Golovko
       
    95 //! @SYMCreationDate		22/03/2006
       
    96 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
    97 //! @SYMTestCaseDesc		CFbsFont::TextWidthInPixels() test
       
    98 //!				Uses API elements: TextWidthInPixels()
       
    99 //! @SYMTestActions		1. Create FBS session
       
   100 //!				2. Create FBS typeface store
       
   101 //!				3. Creates a CFbsFont class instance obtaining it from FBS typeface store
       
   102 //!				4. Call TextWidthInPixels(const TDesC\&) method passing descriptor "a"
       
   103 //! @SYMTestStatus		Implemented
       
   104 //! @SYMTestPriority		Critical
       
   105 //! @SYMTestExpectedResults	The TextWidthInPixels() result value is greater than 0 and the method doesn't cause panic.
       
   106 //! @SYMTestType		CIT
       
   107 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   108 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   109 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   110 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   111 		COMMAND		RFbsSession1		Connect
       
   112 		COMMAND		CFbsTypefaceStore1	NewL
       
   113 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0003-001-GetNearestFontToDesignHeightInPixels_command004
       
   114 		COMMAND		CFbsFont1		TextWidthInPixels			GRAPHICS-FBSERV-FbsFont-PublicApi-0003-001-TextWidthInPixels_command006
       
   115 		COMMAND		CFbsTypefaceStore1	~
       
   116 		COMMAND		RFbsSession1		Disconnect
       
   117 	END_TEST_BLOCK
       
   118 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0003
       
   119 
       
   120 
       
   121 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0004
       
   122 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0004
       
   123 //! @SYMAPI			CFbsFont
       
   124 //! @SYMAuthor			Anton Golovko
       
   125 //! @SYMCreationDate		22/03/2006
       
   126 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   127 //! @SYMTestCaseDesc		CFbsFont::TextWidthInPixels() with SCharWidth as a parameter test
       
   128 //!				Uses API elements: TextWidthInPixels()
       
   129 //! @SYMTestActions		1. Create FBS session
       
   130 //!				2. Create FBS typeface store
       
   131 //!				3. Creates a CFbsFont class instance obtaining it from FBS typeface store
       
   132 //!				4. Call TextWidthInPixels(const TDesC\&, SCharWidth\&) method passing descriptor "a"
       
   133 //! @SYMTestStatus		Implemented
       
   134 //! @SYMTestPriority		Critical
       
   135 //! @SYMTestExpectedResults	The TextWidthInPixels() result value is equal to SCharWidth.iMove and iLeftAdjust + iWidth + iRightAdjust
       
   136 //!				of the SCharWidth to equal iMove and the method doesn't cause panic.
       
   137 //! @SYMTestType		CIT
       
   138 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   139 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   140 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   141 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   142 		COMMAND		RFbsSession1		Connect
       
   143 		COMMAND		CFbsTypefaceStore1	NewL
       
   144 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0004-001-GetNearestFontToDesignHeightInPixels_command004
       
   145 		COMMAND		CFbsFont1		TextWidthInPixelsWithCharWidth		GRAPHICS-FBSERV-FbsFont-PublicApi-0004-001-TextWidthInPixelsWithCharWidth_command006
       
   146 		COMMAND		CFbsTypefaceStore1	~
       
   147 		COMMAND		RFbsSession1		Disconnect
       
   148 	END_TEST_BLOCK
       
   149 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0004
       
   150 
       
   151 
       
   152 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0005
       
   153 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0005
       
   154 //! @SYMAPI			CFbsFont
       
   155 //! @SYMAuthor			Anton Golovko
       
   156 //! @SYMCreationDate		22/03/2006
       
   157 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   158 //! @SYMTestCaseDesc		CFbsFont::Handle() test
       
   159 //!				Uses API elements: Handle()
       
   160 //! @SYMTestActions		1. Create FBS session
       
   161 //!				2. Create FBS typeface store
       
   162 //!				3. Creates a CFbsFont class instance obtaining it from FBS typeface store
       
   163 //!				4. Call Handle() method
       
   164 //! @SYMTestStatus		Implemented
       
   165 //! @SYMTestPriority		Critical
       
   166 //! @SYMTestExpectedResults	The result of Handle() is not zero and the method doesn't cause panic.
       
   167 //! @SYMTestType		CIT
       
   168 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   169 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   170 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   171 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   172 		COMMAND		RFbsSession1		Connect
       
   173 		COMMAND		CFbsTypefaceStore1	NewL
       
   174 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0005-001-GetNearestFontToDesignHeightInPixels_command004
       
   175 		COMMAND		CFbsFont1		Handle
       
   176 		COMMAND		CFbsTypefaceStore1	~
       
   177 		COMMAND		RFbsSession1		Disconnect
       
   178 	END_TEST_BLOCK
       
   179 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0005
       
   180 
       
   181 
       
   182 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0007
       
   183 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0007
       
   184 //! @SYMAPI			CFbsFont
       
   185 //! @SYMAuthor			Anton Golovko
       
   186 //! @SYMCreationDate		22/03/2006
       
   187 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   188 //! @SYMTestCaseDesc		Deprecated CFbsFont::RawTextWidthInPixels() test
       
   189 //!				Uses API elements: RawTextWidthInPixels(), MeasureText()
       
   190 //! @SYMTestActions		1. Create FBS session
       
   191 //!				2. Create FBS typeface store
       
   192 //!				3. Creates a CFbsFont class instance obtaining it from FBS typeface store
       
   193 //!				4. Call RawTextWidthInPixels() method passing descriptor "qwerty" to it
       
   194 //!				5. Use MeasureText() methods to check that result is the same
       
   195 //! @SYMTestStatus		Implemented
       
   196 //! @SYMTestPriority		Critical
       
   197 //! @SYMTestExpectedResults	RawTextWidthInPixels() method call will give same result as MeasureText() and the RawTextWidthInPixels() method doesn't cause panic.
       
   198 //! @SYMTestType		CIT
       
   199 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   200 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   201 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   202 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   203 		COMMAND		RFbsSession1		Connect
       
   204 		COMMAND		CFbsTypefaceStore1	NewL
       
   205 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0007-001-GetNearestFontToDesignHeightInPixels_command004
       
   206 		COMMAND		CFbsFont1		RawTextWidthInPixels			GRAPHICS-FBSERV-FbsFont-PublicApi-0007-001-RawTextWidthInPixels_command006
       
   207 		COMMAND		CFbsTypefaceStore1	~
       
   208 		COMMAND		RFbsSession1		Disconnect
       
   209 	END_TEST_BLOCK
       
   210 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0007
       
   211 
       
   212 
       
   213 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0008
       
   214 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0008
       
   215 //! @SYMAPI			CFbsFont
       
   216 //! @SYMAuthor			Anton Golovko
       
   217 //! @SYMCreationDate		22/03/2006
       
   218 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   219 //! @SYMTestCaseDesc		CFbsFont::GetFaceAttrib() test
       
   220 //!				Uses API elements: GetFaceAttrib()
       
   221 //! @SYMTestActions		1. Create FBS session
       
   222 //!				2. Create FBS typeface store
       
   223 //!				3. Creates a CFbsFont class instance (for an Open Font, take Swiss) obtaining it from FBS typeface store
       
   224 //!				4. Call GetFaceAttrib() method passing a blank TOpenFontFaceAttrib instance to it
       
   225 //! @SYMTestStatus		Implemented
       
   226 //! @SYMTestPriority		Critical
       
   227 //! @SYMTestExpectedResults	Font face attributes are correct and the GetFaceAttrib() method doesn't cause panic.
       
   228 //! @SYMTestType		CIT
       
   229 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   230 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   231 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   232 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   233 		COMMAND		RFbsSession1		Connect
       
   234 		COMMAND		CFbsTypefaceStore1	NewL
       
   235 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0008-001-GetNearestFontToDesignHeightInPixels_command004
       
   236 		COMMAND		CFbsFont1		GetFaceAttrib				GRAPHICS-FBSERV-FbsFont-PublicApi-0008-001-GetFaceAttrib_command006
       
   237 		COMMAND		CFbsTypefaceStore1	~
       
   238 		COMMAND		RFbsSession1		Disconnect
       
   239 	END_TEST_BLOCK
       
   240 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0008
       
   241 
       
   242 
       
   243 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0009
       
   244 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0009
       
   245 //! @SYMAPI			CFbsFont
       
   246 //! @SYMAuthor			Anton Golovko
       
   247 //! @SYMCreationDate		22/03/2006
       
   248 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   249 //! @SYMTestCaseDesc		CFbsFont::IsOpenFont() test
       
   250 //!				Uses API elements: IsOpenFont()
       
   251 //! @SYMTestActions		1. Create FBS session
       
   252 //!				2. Create FBS typeface store
       
   253 //!				3. Creates several instances of CFbsFont class for different fonts
       
   254 //!					obtaining them from FBS typeface store
       
   255 //!				4. Call their CFbsFont::IsOpenFont() method
       
   256 //! @SYMTestStatus		Implemented
       
   257 //! @SYMTestPriority		Critical
       
   258 //! @SYMTestExpectedResults	The function IsOpenFont() doesn't cause panic.
       
   259 //! @SYMTestType		CIT
       
   260 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   261 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   262 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   263 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   264 		CREATE_OBJECT	CFbsFont		CFbsFont2
       
   265 		COMMAND		RFbsSession1		Connect
       
   266 		COMMAND		CFbsTypefaceStore1	NewL
       
   267 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0009-001-GetNearestFontToDesignHeightInPixels_command004
       
   268 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0009-001-GetNearestFontToDesignHeightInPixels_command005
       
   269 		COMMAND		CFbsFont1		IsOpenFont
       
   270 		COMMAND		CFbsFont2		IsOpenFont
       
   271 		COMMAND		CFbsTypefaceStore1	~
       
   272 		COMMAND		RFbsSession1		Disconnect
       
   273 	END_TEST_BLOCK
       
   274 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0009
       
   275 
       
   276 
       
   277 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0010
       
   278 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0010
       
   279 //! @SYMAPI			CFbsFont
       
   280 //! @SYMAuthor			Anton Golovko
       
   281 //! @SYMCreationDate		22/03/2006
       
   282 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   283 //! @SYMTestCaseDesc		CFbsFont::HasCharacter() test
       
   284 //!				Uses API elements: HasCharacter()
       
   285 //! @SYMTestActions		1. Create FBS session
       
   286 //!				2. Create FBS typeface store
       
   287 //!				3. Creates a CFbsFont class instance (for an Open Font) obtaining it from FBS typeface store
       
   288 //!				4. Call CFbsFont::HasCharacter() method for character 'a'
       
   289 //! @SYMTestStatus		Implemented
       
   290 //! @SYMTestPriority		Critical
       
   291 //! @SYMTestExpectedResults	Expects that the HasCharacter() method call returns ETrue and doesn't cause panic.
       
   292 //! @SYMTestType		CIT
       
   293 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   294 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   295 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   296 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   297 		COMMAND		RFbsSession1		Connect
       
   298 		COMMAND		CFbsTypefaceStore1	NewL
       
   299 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0010-001-GetNearestFontToDesignHeightInPixels_command004
       
   300 		COMMAND		CFbsFont1		HasCharacter				GRAPHICS-FBSERV-FbsFont-PublicApi-0010-001-HasCharacter_command006
       
   301 		COMMAND		CFbsTypefaceStore1	~
       
   302 		COMMAND		RFbsSession1		Disconnect
       
   303 	END_TEST_BLOCK
       
   304 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0010
       
   305 
       
   306 
       
   307 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0011
       
   308 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0011
       
   309 //! @SYMAPI			CFbsFont
       
   310 //! @SYMAuthor			Anton Golovko
       
   311 //! @SYMCreationDate		27/03/2006
       
   312 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   313 //! @SYMTestCaseDesc		Simple test of font metrics related methods inherited from CFont
       
   314 //!				Uses API elements: FontCapitalAscent(), FontMaxAscent(), FontStandardDescent(), FontMaxDescent(), FontLineGap(),
       
   315 //!					FontMaxHeight(), TypeUid(), HeightInPixels(), AscentInPixels(), DescentInPixels(), CharWidthInPixels(),
       
   316 //!					TextCount(), MaxCharWidthInPixels(), MaxNormalCharWidthInPixels(), FontSpecInTwips(),
       
   317 //!					WidthZeroInPixels(), BaselineOffsetInPixels()
       
   318 //! @SYMTestActions		1. Create FBS session
       
   319 //!				2. Create FBS typeface store
       
   320 //!				3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store
       
   321 //!				4. Call FontCapitalAscent()
       
   322 //!				5. Call FontMaxAscent()
       
   323 //!				6. Call FontStandardDescent()
       
   324 //!				7. Call FontMaxDescent()
       
   325 //!				8. Call FontLineGap()
       
   326 //!				9. Call FontMaxHeight()
       
   327 //!				10. Call TypeUid()
       
   328 //!				11. Call HeightInPixels()
       
   329 //!				12. Call AscentInPixels()
       
   330 //!				13. Call DescentInPixels()
       
   331 //!				14. Call CharWidthInPixels() passing 'a' as an argument
       
   332 //!				15. Call TextCount() with "a" and 100, check that the retuned value is 1
       
   333 //!				16. Call TextCount() with "abcdf", 30 and a excessWidthInPixels variable as arguments, check that returned value
       
   334 //!					 and aExcessWidthInPixels are greater that 0
       
   335 //!				17. Call MaxCharWidthInPixels()
       
   336 //!				18. Call MaxNormalCharWidthInPixels()
       
   337 //!				19. Call FontSpecInTwips()
       
   338 //!				20. Call WidthZeroInPixels()
       
   339 //!				21. Call BaselineOffsetInPixels()
       
   340 //! @SYMTestStatus		Implemented
       
   341 //! @SYMTestPriority		Critical
       
   342 //! @SYMTestExpectedResults	Expects the operations not to cause panic and returned values of the methods to be greater than 0
       
   343 //! @SYMTestType		CIT
       
   344 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   345 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   346 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   347 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   348 		COMMAND		RFbsSession1		Connect
       
   349 		COMMAND		CFbsTypefaceStore1	NewL
       
   350 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0011-001-GetNearestFontToDesignHeightInPixels_command004
       
   351 		COMMAND		CFbsFont1		FontCapitalAscent
       
   352 		COMMAND		CFbsFont1		FontMaxAscent
       
   353 		COMMAND		CFbsFont1		FontStandardDescent
       
   354 		COMMAND		CFbsFont1		FontMaxDescent
       
   355 		COMMAND		CFbsFont1		FontLineGap
       
   356 		COMMAND		CFbsFont1		FontMaxHeight
       
   357 		COMMAND		CFbsFont1		TypeUid
       
   358 		COMMAND		CFbsFont1		HeightInPixels
       
   359 		COMMAND		CFbsFont1		AscentInPixels
       
   360 		COMMAND		CFbsFont1		DescentInPixels
       
   361 		COMMAND		CFbsFont1		CharWidthInPixels			GRAPHICS-FBSERV-FbsFont-PublicApi-0011-001-CharWidthInPixels_command016
       
   362 		COMMAND		CFbsFont1		TextCount				GRAPHICS-FBSERV-FbsFont-PublicApi-0011-001-TextCount_command017
       
   363 		COMMAND		CFbsFont1		TextCount				GRAPHICS-FBSERV-FbsFont-PublicApi-0011-001-TextCount_command018
       
   364 		COMMAND		CFbsFont1		MaxCharWidthInPixels
       
   365 		COMMAND		CFbsFont1		MaxNormalCharWidthInPixels
       
   366 		COMMAND		CFbsFont1		FontSpecInTwips
       
   367 		COMMAND		CFbsFont1		WidthZeroInPixels
       
   368 		COMMAND		CFbsFont1		BaselineOffsetInPixels
       
   369 		COMMAND		CFbsTypefaceStore1	~
       
   370 		COMMAND		RFbsSession1		Disconnect
       
   371 	END_TEST_BLOCK
       
   372 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0011
       
   373 
       
   374 
       
   375 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0012
       
   376 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0012
       
   377 //! @SYMAPI			CFbsFont
       
   378 //! @SYMAuthor			Anton Golovko
       
   379 //! @SYMCreationDate		28/03/2006
       
   380 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   381 //! @SYMTestCaseDesc		CFbsFont::GetCharacterData() test
       
   382 //!				Uses API elements: GetCharacterData()
       
   383 //! @SYMTestActions		1. Create FBS session
       
   384 //!				2. Create FBS typeface store
       
   385 //!				3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store
       
   386 //!				4. Call GetCharacterData() passing code 65 ('a') as an argument
       
   387 //! @SYMTestStatus		Implemented
       
   388 //! @SYMTestPriority		Critical
       
   389 //! @SYMTestExpectedResults	Expects the GetCharacterData() function call not to cause panic and that passed arguments are set to meaningful values
       
   390 //! @SYMTestType		CIT
       
   391 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   392 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   393 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   394 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   395 		COMMAND		RFbsSession1		Connect
       
   396 		COMMAND		CFbsTypefaceStore1	NewL
       
   397 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0012-001-GetNearestFontToDesignHeightInPixels_command004
       
   398 		COMMAND		CFbsFont1		GetCharacterData			GRAPHICS-FBSERV-FbsFont-PublicApi-0012-001-GetCharacterData_command006
       
   399 		COMMAND		CFbsTypefaceStore1	~
       
   400 		COMMAND		RFbsSession1		Disconnect
       
   401 	END_TEST_BLOCK
       
   402 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0012
       
   403 
       
   404 
       
   405 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0013
       
   406 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0013
       
   407 //! @SYMAPI			CFbsFont
       
   408 //! @SYMAuthor			Anton Golovko
       
   409 //! @SYMCreationDate		28/03/2006
       
   410 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   411 //! @SYMTestCaseDesc		CFbsFont::MeasureText() test
       
   412 //!				Uses API elements: MeasureText()
       
   413 //! @SYMTestActions		1. Create FBS session
       
   414 //!				2. Create FBS typeface store
       
   415 //!				3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store
       
   416 //!				4. Call MeasureText() passing only a descriptor "a" as an argument
       
   417 //! @SYMTestStatus		Implemented
       
   418 //! @SYMTestPriority		Critical
       
   419 //! @SYMTestExpectedResults	Expects the MeasureText() function call not to cause panic and returned value to be greater that 0
       
   420 //! @SYMTestType		CIT
       
   421 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   422 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   423 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   424 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   425 		CREATE_OBJECT	TMeasureTextInput	TMeasureTextInput1
       
   426 		CREATE_OBJECT	TMeasureTextOutput	TMeasureTextOutput1
       
   427 		COMMAND		RFbsSession1		Connect
       
   428 		COMMAND		CFbsTypefaceStore1	NewL
       
   429 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0013-001-GetNearestFontToDesignHeightInPixels_command004
       
   430 		COMMAND		TMeasureTextOutput1	new
       
   431 		COMMAND		TMeasureTextInput1	new
       
   432 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0013-001-MeasureText_command010
       
   433 		COMMAND		CFbsTypefaceStore1	~
       
   434 		COMMAND		RFbsSession1		Disconnect
       
   435 		COMMAND		TMeasureTextInput1	~
       
   436 		COMMAND		TMeasureTextOutput1	~
       
   437 	END_TEST_BLOCK
       
   438 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0013
       
   439 
       
   440 
       
   441 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0014
       
   442 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0014
       
   443 //! @SYMAPI			CFbsFont
       
   444 //! @SYMAuthor			Anton Golovko
       
   445 //! @SYMCreationDate		28/03/2006
       
   446 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   447 //! @SYMTestCaseDesc		CFbsFont::ExtendedFunction() test
       
   448 //!				Uses API elements: ExtendedFunction()
       
   449 //! @SYMTestActions		1. Create FBS session
       
   450 //!				2. Create FBS typeface store
       
   451 //!				3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store
       
   452 //!				4. Call font's ExtendedFunction() passing KFontCapitalAscent (0x1020498E defined in GDI.H) as a parameter
       
   453 //! @SYMTestStatus		Implemented
       
   454 //! @SYMTestPriority		Critical
       
   455 //! @SYMTestExpectedResults	Expects the ExtendedFunction() call not to cause panic and returned value to be greater than 0
       
   456 //! @SYMTestType		CIT
       
   457 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   458 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   459 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   460 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   461 		COMMAND		RFbsSession1		Connect
       
   462 		COMMAND		CFbsTypefaceStore1	NewL
       
   463 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0014-001-GetNearestFontToDesignHeightInPixels_command004
       
   464 		COMMAND		CFbsFont1		ExtendedFunction			GRAPHICS-FBSERV-FbsFont-PublicApi-0014-001-ExtendedFunction_command006
       
   465 		COMMAND		CFbsTypefaceStore1	~
       
   466 		COMMAND		RFbsSession1		Disconnect
       
   467 	END_TEST_BLOCK
       
   468 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0014
       
   469 
       
   470 
       
   471 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0017
       
   472 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0017
       
   473 //! @SYMAPI			CFbsFont
       
   474 //! @SYMAuthor			Anton Golovko
       
   475 //! @SYMCreationDate		31/05/2006
       
   476 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   477 //! @SYMTestCaseDesc		CFbsFont::TextWidthInPixels() test with an empty string
       
   478 //!				Uses API elements: TextWidthInPixels()
       
   479 //! @SYMTestActions		1. Create FBS session
       
   480 //!				2. Create FBS typeface store
       
   481 //!				3. Creates a CFbsFont class instance obtaining it from FBS typeface store
       
   482 //!				4. Call TextWidthInPixels(const TDesC&) method passing descriptor ""
       
   483 //! @SYMTestStatus		Implemented
       
   484 //! @SYMTestPriority		Critical
       
   485 //! @SYMTestExpectedResults	The function TextWidthInPixels() doesn't cause panic.
       
   486 //! @SYMTestType		CIT
       
   487 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   488 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   489 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   490 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   491 		COMMAND		RFbsSession1		Connect
       
   492 		COMMAND		CFbsTypefaceStore1	NewL
       
   493 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0017-001-GetNearestFontToDesignHeightInPixels_command004
       
   494 		COMMAND		CFbsFont1		TextWidthInPixels			GRAPHICS-FBSERV-FbsFont-PublicApi-0017-001-TextWidthInPixels_command006
       
   495 		COMMAND		CFbsTypefaceStore1	~
       
   496 		COMMAND		RFbsSession1		Disconnect
       
   497 	END_TEST_BLOCK
       
   498 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0017
       
   499 
       
   500 
       
   501 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0018
       
   502 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0018
       
   503 //! @SYMAPI			CFbsFont
       
   504 //! @SYMAuthor			Anton Golovko
       
   505 //! @SYMCreationDate		31/05/2006
       
   506 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   507 //! @SYMTestCaseDesc		CFbsFont::RawTextWidthInPixels() test with an empty string
       
   508 //!				Uses API elements: RawTextWidthInPixels()
       
   509 //! @SYMTestActions		1. Create FBS session
       
   510 //!				2. Create FBS typeface store
       
   511 //!				3. Creates a CFbsFont class instance obtaining it from FBS typeface store
       
   512 //!				4. Call RawTextWidthInPixels() method passing descriptor ""
       
   513 //! @SYMTestStatus		Implemented
       
   514 //! @SYMTestPriority		Critical
       
   515 //! @SYMTestExpectedResults	The function RawTextWidthInPixels() doesn't cause panic.
       
   516 //! @SYMTestType		CIT
       
   517 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   518 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   519 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   520 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   521 		COMMAND		RFbsSession1		Connect
       
   522 		COMMAND		CFbsTypefaceStore1	NewL
       
   523 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0018-001-GetNearestFontToDesignHeightInPixels_command004
       
   524 		COMMAND		CFbsFont1		RawTextWidthInPixels			GRAPHICS-FBSERV-FbsFont-PublicApi-0018-001-RawTextWidthInPixels_command006
       
   525 		COMMAND		CFbsTypefaceStore1	~
       
   526 		COMMAND		RFbsSession1		Disconnect
       
   527 	END_TEST_BLOCK
       
   528 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0018
       
   529 
       
   530 
       
   531 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0019
       
   532 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0019
       
   533 //! @SYMAPI			CFbsFont
       
   534 //! @SYMAuthor			Anton Golovko
       
   535 //! @SYMCreationDate		31/05/2006
       
   536 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   537 //! @SYMTestCaseDesc		CFbsFont::HasCharacter() test for negative character code
       
   538 //!				Uses API elements: HasCharacter()
       
   539 //! @SYMTestActions		1. Create FBS session
       
   540 //!				2. Create FBS typeface store
       
   541 //!				3. Creates a CFbsFont class instance (for an Open Font) obtaining it from FBS typeface store
       
   542 //!				4. Call CFbsFont::HasCharacter() method passign code -1 as an argument
       
   543 //! @SYMTestStatus		Implemented
       
   544 //! @SYMTestPriority		Critical
       
   545 //! @SYMTestExpectedResults	The function HasCharacter() doesn't cause panic.
       
   546 //! @SYMTestType		CIT
       
   547 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   548 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   549 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   550 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   551 		COMMAND		RFbsSession1		Connect
       
   552 		COMMAND		CFbsTypefaceStore1	NewL
       
   553 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0019-001-GetNearestFontToDesignHeightInPixels_command004
       
   554 		COMMAND		CFbsFont1		HasCharacter				GRAPHICS-FBSERV-FbsFont-PublicApi-0019-001-HasCharacter_command006
       
   555 		COMMAND		CFbsTypefaceStore1	~
       
   556 		COMMAND		RFbsSession1		Disconnect
       
   557 	END_TEST_BLOCK
       
   558 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0019
       
   559 
       
   560 
       
   561 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0020
       
   562 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0020
       
   563 //! @SYMAPI			CFbsFont
       
   564 //! @SYMAuthor			Anton Golovko
       
   565 //! @SYMCreationDate		31/05/2006
       
   566 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   567 //! @SYMTestCaseDesc		CFbsFont::CharWidthInPixels() test with 0 as character code
       
   568 //!				Uses API elements: CharWidthInPixels()
       
   569 //! @SYMTestActions		1. Create FBS session
       
   570 //!				2. Create FBS typeface store
       
   571 //!				3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store
       
   572 //!				4. Call CharWidthInPixels() passing char with code 0 as an argument
       
   573 //! @SYMTestStatus		Implemented
       
   574 //! @SYMTestPriority		Critical
       
   575 //! @SYMTestExpectedResults	The function CharWidthInPixels() doesn't cause panic.
       
   576 //! @SYMTestType		CIT
       
   577 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   578 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   579 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   580 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   581 		COMMAND		RFbsSession1		Connect
       
   582 		COMMAND		CFbsTypefaceStore1	NewL
       
   583 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0020-001-GetNearestFontToDesignHeightInPixels_command004
       
   584 		COMMAND		CFbsFont1		CharWidthInPixels			GRAPHICS-FBSERV-FbsFont-PublicApi-0020-001-CharWidthInPixels_command006
       
   585 		COMMAND		CFbsTypefaceStore1	~
       
   586 		COMMAND		RFbsSession1		Disconnect
       
   587 	END_TEST_BLOCK
       
   588 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0020
       
   589 
       
   590 
       
   591 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0021
       
   592 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0021
       
   593 //! @SYMAPI			CFbsFont
       
   594 //! @SYMAuthor			Anton Golovko
       
   595 //! @SYMCreationDate		31/05/2006
       
   596 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   597 //! @SYMTestCaseDesc		CFbsFont::TextCount() (TextCount(const TDesC &aText, TInt aWidthInPixels) version) test with negative argument in place of width in pexils
       
   598 //!				Uses API elements: TextCount()
       
   599 //! @SYMTestActions		1. Create FBS session
       
   600 //!				2. Create FBS typeface store
       
   601 //!				3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store
       
   602 //!				4. Call TextCount() passing text "qwerty" and width -1
       
   603 //! @SYMTestStatus		Implemented
       
   604 //! @SYMTestPriority		Critical
       
   605 //! @SYMTestExpectedResults	The function TextCount() doesn't cause panic.
       
   606 //! @SYMTestType		CIT
       
   607 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   608 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   609 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   610 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   611 		COMMAND		RFbsSession1		Connect
       
   612 		COMMAND		CFbsTypefaceStore1	NewL
       
   613 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0021-001-GetNearestFontToDesignHeightInPixels_command004
       
   614 		COMMAND		CFbsFont1		TextCount				GRAPHICS-FBSERV-FbsFont-PublicApi-0021-001-TextCount_command006
       
   615 		COMMAND		CFbsTypefaceStore1	~
       
   616 		COMMAND		RFbsSession1		Disconnect
       
   617 	END_TEST_BLOCK
       
   618 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0021
       
   619 
       
   620 
       
   621 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0022
       
   622 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0022
       
   623 //! @SYMAPI			CFbsFont
       
   624 //! @SYMAuthor			Anton Golovko
       
   625 //! @SYMCreationDate		31/05/2006
       
   626 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   627 //! @SYMTestCaseDesc		CFbsFont::TextCount() (TextCount(const TDesC &aText, TInt aWidthInPixels) version) test with 0 argument in place of width in pexils and empty string
       
   628 //!				Uses API elements: TextCount()
       
   629 //! @SYMTestActions		1. Create FBS session
       
   630 //!				2. Create FBS typeface store
       
   631 //!				3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store
       
   632 //!				4. Call TextCount() passing text "" and width 0
       
   633 //! @SYMTestStatus		Implemented
       
   634 //! @SYMTestPriority		Critical
       
   635 //! @SYMTestExpectedResults	The function TextCount() doesn't cause panic.
       
   636 //! @SYMTestType		CIT
       
   637 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   638 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   639 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   640 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   641 		COMMAND		RFbsSession1		Connect
       
   642 		COMMAND		CFbsTypefaceStore1	NewL
       
   643 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0022-001-GetNearestFontToDesignHeightInPixels_command004
       
   644 		COMMAND		CFbsFont1		TextCount				GRAPHICS-FBSERV-FbsFont-PublicApi-0022-001-TextCount_command006
       
   645 		COMMAND		CFbsTypefaceStore1	~
       
   646 		COMMAND		RFbsSession1		Disconnect
       
   647 	END_TEST_BLOCK
       
   648 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0022
       
   649 
       
   650 
       
   651 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0023
       
   652 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0023
       
   653 //! @SYMAPI			CFbsFont
       
   654 //! @SYMAuthor			Anton Golovko
       
   655 //! @SYMCreationDate		31/05/2006
       
   656 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   657 //! @SYMTestCaseDesc		CFbsFont::TextCount() (TextCount(const TDesC &aText, TInt aWidthInPixels, TInt &aExcessWidthInPixels) version) test with negative argument in place of width in pexils
       
   658 //!				Uses API elements: TextCount()
       
   659 //! @SYMTestActions		1. Create FBS session
       
   660 //!				2. Create FBS typeface store
       
   661 //!				3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store
       
   662 //!				4. Call TextCount() passing text "qwerty" and width -1
       
   663 //! @SYMTestStatus		Implemented
       
   664 //! @SYMTestPriority		Critical
       
   665 //! @SYMTestExpectedResults	The function TextCount() doesn't cause panic.
       
   666 //! @SYMTestType		CIT
       
   667 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   668 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   669 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   670 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   671 		COMMAND		RFbsSession1		Connect
       
   672 		COMMAND		CFbsTypefaceStore1	NewL
       
   673 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0023-001-GetNearestFontToDesignHeightInPixels_command004
       
   674 		COMMAND		CFbsFont1		TextCount				GRAPHICS-FBSERV-FbsFont-PublicApi-0023-001-TextCount_command006
       
   675 		COMMAND		CFbsTypefaceStore1	~
       
   676 		COMMAND		RFbsSession1		Disconnect
       
   677 	END_TEST_BLOCK
       
   678 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0023
       
   679 
       
   680 
       
   681 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0024
       
   682 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0024
       
   683 //! @SYMAPI			CFbsFont
       
   684 //! @SYMAuthor			Anton Golovko
       
   685 //! @SYMCreationDate		31/05/2006
       
   686 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   687 //! @SYMTestCaseDesc		CFbsFont::TextCount() (TextCount(const TDesC &aText, TInt aWidthInPixels, TInt &aExcessWidthInPixels) version) test with 0 argument in place of width in pexils and empty string
       
   688 //!				Uses API elements: TextCount()
       
   689 //! @SYMTestActions		1. Create FBS session
       
   690 //!				2. Create FBS typeface store
       
   691 //!				3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store
       
   692 //!				4. Call TextCount() passing text "" and width 0
       
   693 //! @SYMTestStatus		Implemented
       
   694 //! @SYMTestPriority		Critical
       
   695 //! @SYMTestExpectedResults	The function TextCount() doesn't cause panic.
       
   696 //! @SYMTestType		CIT
       
   697 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   698 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   699 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   700 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   701 		COMMAND		RFbsSession1		Connect
       
   702 		COMMAND		CFbsTypefaceStore1	NewL
       
   703 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0024-001-GetNearestFontToDesignHeightInPixels_command004
       
   704 		COMMAND		CFbsFont1		TextCount				GRAPHICS-FBSERV-FbsFont-PublicApi-0024-001-TextCount_command006
       
   705 		COMMAND		CFbsTypefaceStore1	~
       
   706 		COMMAND		RFbsSession1		Disconnect
       
   707 	END_TEST_BLOCK
       
   708 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0024
       
   709 
       
   710 
       
   711 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0025
       
   712 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0025
       
   713 //! @SYMAPI			CFbsFont
       
   714 //! @SYMAuthor			Anton Golovko
       
   715 //! @SYMCreationDate		31/05/2006
       
   716 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   717 //! @SYMTestCaseDesc		CFbsFont::GetCharacterData() test with 0 as a character code
       
   718 //!				Uses API elements: GetCharacterData()
       
   719 //! @SYMTestActions		1. Create FBS session
       
   720 //!				2. Create FBS typeface store
       
   721 //!				3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store
       
   722 //!				4. Call GetCharacterData() passing code 0 as an argument
       
   723 //! @SYMTestStatus		Implemented
       
   724 //! @SYMTestPriority		Critical
       
   725 //! @SYMTestExpectedResults	The function GetCharacterData() doesn't cause panic.
       
   726 //! @SYMTestType		CIT
       
   727 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   728 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   729 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   730 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   731 		COMMAND		RFbsSession1		Connect
       
   732 		COMMAND		CFbsTypefaceStore1	NewL
       
   733 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0025-001-GetNearestFontToDesignHeightInPixels_command004
       
   734 		COMMAND		CFbsFont1		GetCharacterData			GRAPHICS-FBSERV-FbsFont-PublicApi-0025-001-GetCharacterData_command006
       
   735 		COMMAND		CFbsTypefaceStore1	~
       
   736 		COMMAND		RFbsSession1		Disconnect
       
   737 	END_TEST_BLOCK
       
   738 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0025
       
   739 
       
   740 
       
   741 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0026
       
   742 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0026
       
   743 //! @SYMAPI			CFbsFont
       
   744 //! @SYMAuthor			Rnno Sgirka
       
   745 //! @SYMCreationDate		14/06/2006
       
   746 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   747 //! @SYMTestCaseDesc		CFbsFont::MeasureText() test with different variations of arguments
       
   748 //!				Uses API elements: MeasureText()
       
   749 //! @SYMTestActions		1. Create FBS session
       
   750 //!				2. Create FBS typeface store
       
   751 //!				3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store
       
   752 //!				4. Call MeasureText() passing text "qwerty" as an argument, with TMeasureTextOutput and with blank TMeasureTextInput provided.
       
   753 //!				5. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with blank TMeasureTextInput provided.
       
   754 //!				6. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iStartInputChar=0, iEndInputChar=5).
       
   755 //!				7. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iEndInputChar=5).
       
   756 //!				8. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iStartInputChar=0, iEndInputChar=-1).
       
   757 //!				9. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iStartInputChar=0, iEndInputChar=100).
       
   758 //!				10. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iStartInputChar=100, iEndInputChar=5).
       
   759 //!				11. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iStartInputChar=-1, iEndInputChar=-1).
       
   760 //!				12. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iDirection=0).
       
   761 //!				13. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iDirection=1).
       
   762 //!				14. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iDirection=999).
       
   763 //!				15. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iFlags=0).
       
   764 //!				16. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iFlags=1).
       
   765 //!				17. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iFlags=999).
       
   766 //!				18. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxAdvance=-1).
       
   767 //!				19. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxAdvance=0).
       
   768 //!				20. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxAdvance=1).
       
   769 //!				21. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxAdvance=999).
       
   770 //!				22. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxBounds=-1).
       
   771 //!				23. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxBounds=0).
       
   772 //!				24. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxBounds=1).
       
   773 //!				25. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxBounds=999).
       
   774 //!				26. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustNum=-1).
       
   775 //!				27. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustNum=0).
       
   776 //!				28. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustNum=1).
       
   777 //!				29. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustNum=999).
       
   778 //!				30. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustExcess=-1).
       
   779 //!				31. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustExcess=0).
       
   780 //!				32. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustExcess=1).
       
   781 //!				33. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustExcess=999).
       
   782 //!				34. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustNum=-1).
       
   783 //!				35. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustNum=0).
       
   784 //!				36. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustNum=1).
       
   785 //!				37. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustNum=999).
       
   786 //!				38. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustExcess=-1).
       
   787 //!				39. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustExcess=0).
       
   788 //!				40. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustExcess=1).
       
   789 //!				41. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustExcess=999).
       
   790 //! @SYMTestStatus		Implemented
       
   791 //! @SYMTestPriority		Critical
       
   792 //! @SYMTestExpectedResults	The function MeasureText() call doesn't cause panic.
       
   793 //! @SYMTestType		CIT
       
   794 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   795 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   796 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   797 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   798 		CREATE_OBJECT	TMeasureTextInput	TMeasureTextInput1
       
   799 		CREATE_OBJECT	TMeasureTextOutput	TMeasureTextOutput1
       
   800 		COMMAND		RFbsSession1		Connect
       
   801 		COMMAND		CFbsTypefaceStore1	NewL
       
   802 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-GetNearestFontToDesignHeightInPixels_command004
       
   803 		COMMAND		TMeasureTextOutput1	new
       
   804 		COMMAND		TMeasureTextInput1	new
       
   805 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command010
       
   806 		COMMAND		TMeasureTextInput1	new
       
   807 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command014
       
   808 		COMMAND		TMeasureTextInput1	new
       
   809 		COMMAND		TMeasureTextInput1	iStartInputChar				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command017
       
   810 		COMMAND		TMeasureTextInput1	iEndInputChar				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command018
       
   811 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command020
       
   812 		COMMAND		TMeasureTextInput1	new
       
   813 		COMMAND		TMeasureTextInput1	iEndInputChar				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command023
       
   814 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command025
       
   815 		COMMAND		TMeasureTextInput1	new
       
   816 		COMMAND		TMeasureTextInput1	iStartInputChar				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command028
       
   817 		COMMAND		TMeasureTextInput1	iEndInputChar				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command029
       
   818 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command031
       
   819 		COMMAND		TMeasureTextInput1	new
       
   820 		COMMAND		TMeasureTextInput1	iStartInputChar				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command034
       
   821 		COMMAND		TMeasureTextInput1	iEndInputChar				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command035
       
   822 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command037
       
   823 		COMMAND		TMeasureTextInput1	new
       
   824 		COMMAND		TMeasureTextInput1	iStartInputChar				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command040
       
   825 		COMMAND		TMeasureTextInput1	iEndInputChar				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command041
       
   826 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command043
       
   827 		COMMAND		TMeasureTextInput1	new
       
   828 		COMMAND		TMeasureTextInput1	iStartInputChar				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command046
       
   829 		COMMAND		TMeasureTextInput1	iEndInputChar				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command047
       
   830 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command049
       
   831 		COMMAND		TMeasureTextInput1	new
       
   832 		COMMAND		TMeasureTextInput1	iDirection				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iDirection_command052
       
   833 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command054
       
   834 		COMMAND		TMeasureTextInput1	new
       
   835 		COMMAND		TMeasureTextInput1	iDirection				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iDirection_command057
       
   836 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command059
       
   837 		COMMAND		TMeasureTextInput1	new
       
   838 		COMMAND		TMeasureTextInput1	iDirection				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iDirection_command062
       
   839 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command064
       
   840 		COMMAND		TMeasureTextInput1	new
       
   841 		COMMAND		TMeasureTextInput1	iFlags					GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iFlags_command067
       
   842 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command069
       
   843 		COMMAND		TMeasureTextInput1	new
       
   844 		COMMAND		TMeasureTextInput1	iFlags					GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iFlags_command072
       
   845 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command074
       
   846 		COMMAND		TMeasureTextInput1	new
       
   847 		COMMAND		TMeasureTextInput1	iFlags					GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iFlags_command077
       
   848 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command079
       
   849 		COMMAND		TMeasureTextInput1	new
       
   850 		COMMAND		TMeasureTextInput1	iMaxAdvance				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxAdvance_command082
       
   851 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command084
       
   852 		COMMAND		TMeasureTextInput1	new
       
   853 		COMMAND		TMeasureTextInput1	iMaxAdvance				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxAdvance_command087
       
   854 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command089
       
   855 		COMMAND		TMeasureTextInput1	new
       
   856 		COMMAND		TMeasureTextInput1	iMaxAdvance				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxAdvance_command092
       
   857 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command094
       
   858 		COMMAND		TMeasureTextInput1	new
       
   859 		COMMAND		TMeasureTextInput1	iMaxAdvance				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxAdvance_command097
       
   860 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command100
       
   861 		COMMAND		TMeasureTextInput1	new
       
   862 		COMMAND		TMeasureTextInput1	iMaxBounds				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxBounds_command103
       
   863 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command105
       
   864 		COMMAND		TMeasureTextInput1	new
       
   865 		COMMAND		TMeasureTextInput1	iMaxBounds				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxBounds_command108
       
   866 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command110
       
   867 		COMMAND		TMeasureTextInput1	new
       
   868 		COMMAND		TMeasureTextInput1	iMaxBounds				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxBounds_command113
       
   869 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command115
       
   870 		COMMAND		TMeasureTextInput1	new
       
   871 		COMMAND		TMeasureTextInput1	iMaxBounds				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxBounds_command118
       
   872 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command120
       
   873 		COMMAND		TMeasureTextInput1	new
       
   874 		COMMAND		TMeasureTextInput1	iCharJustNum				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustNum_command123
       
   875 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command125
       
   876 		COMMAND		TMeasureTextInput1	new
       
   877 		COMMAND		TMeasureTextInput1	iCharJustNum				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustNum_command128
       
   878 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command130
       
   879 		COMMAND		TMeasureTextInput1	new
       
   880 		COMMAND		TMeasureTextInput1	iCharJustNum				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustNum_command133
       
   881 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command135
       
   882 		COMMAND		TMeasureTextInput1	new
       
   883 		COMMAND		TMeasureTextInput1	iCharJustNum				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustNum_command138
       
   884 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command140
       
   885 		COMMAND		TMeasureTextInput1	new
       
   886 		COMMAND		TMeasureTextInput1	iCharJustExcess				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustExcess_command143
       
   887 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command145
       
   888 		COMMAND		TMeasureTextInput1	new
       
   889 		COMMAND		TMeasureTextInput1	iCharJustExcess				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustExcess_command148
       
   890 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command150
       
   891 		COMMAND		TMeasureTextInput1	new
       
   892 		COMMAND		TMeasureTextInput1	iCharJustExcess				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustExcess_command153
       
   893 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command155
       
   894 		COMMAND		TMeasureTextInput1	new
       
   895 		COMMAND		TMeasureTextInput1	iCharJustExcess				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustExcess_command158
       
   896 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command160
       
   897 		COMMAND		TMeasureTextInput1	new
       
   898 		COMMAND		TMeasureTextInput1	iWordJustNum				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustNum_command163
       
   899 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command165
       
   900 		COMMAND		TMeasureTextInput1	new
       
   901 		COMMAND		TMeasureTextInput1	iWordJustNum				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustNum_command168
       
   902 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command170
       
   903 		COMMAND		TMeasureTextInput1	new
       
   904 		COMMAND		TMeasureTextInput1	iWordJustNum				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustNum_command173
       
   905 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command175
       
   906 		COMMAND		TMeasureTextInput1	new
       
   907 		COMMAND		TMeasureTextInput1	iWordJustNum				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustNum_command178
       
   908 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command180
       
   909 		COMMAND		TMeasureTextInput1	new
       
   910 		COMMAND		TMeasureTextInput1	iWordJustExcess				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustExcess_command183
       
   911 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command185
       
   912 		COMMAND		TMeasureTextInput1	new
       
   913 		COMMAND		TMeasureTextInput1	iWordJustExcess				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustExcess_command188
       
   914 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command190
       
   915 		COMMAND		TMeasureTextInput1	new
       
   916 		COMMAND		TMeasureTextInput1	iWordJustExcess				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustExcess_command193
       
   917 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command195
       
   918 		COMMAND		TMeasureTextInput1	new
       
   919 		COMMAND		TMeasureTextInput1	iWordJustExcess				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustExcess_command198
       
   920 		COMMAND		CFbsFont1		MeasureText				GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command200
       
   921 		COMMAND		CFbsTypefaceStore1	~
       
   922 		COMMAND		RFbsSession1		Disconnect
       
   923 		COMMAND		TMeasureTextInput1	~
       
   924 		COMMAND		TMeasureTextOutput1	~
       
   925 	END_TEST_BLOCK
       
   926 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0026
       
   927 
       
   928 
       
   929 START_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0028
       
   930 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsFont-PublicApi-0028
       
   931 //! @SYMAPI			CFbsFont
       
   932 //! @SYMAuthor			Anton Golovko
       
   933 //! @SYMCreationDate		05/06/2006
       
   934 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script
       
   935 //! @SYMTestCaseDesc		CFbsFont::ExtendedFunction() for inexistant function id test
       
   936 //!				Uses API elements: ExtendedFunction()
       
   937 //! @SYMTestActions		1. Create FBS session
       
   938 //!				2. Create FBS typeface store
       
   939 //!				3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store
       
   940 //!				4. Call font's ExtendedFunction() passing 0 as a parameter. Expect KErrNotFound returned
       
   941 //! @SYMTestStatus		Implemented
       
   942 //! @SYMTestPriority		Critical
       
   943 //! @SYMTestExpectedResults	The function ExtendedFunction() call doesn't panic and returns KErrNotFound (-1)
       
   944 //! @SYMTestType		CIT
       
   945 	START_TEST_BLOCK	100			T_FBServAPI				\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini
       
   946 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   947 		CREATE_OBJECT	CFbsTypefaceStore	CFbsTypefaceStore1
       
   948 		CREATE_OBJECT	CFbsFont		CFbsFont1
       
   949 		COMMAND		RFbsSession1		Connect
       
   950 		COMMAND		CFbsTypefaceStore1	NewL
       
   951 		COMMAND		CFbsTypefaceStore1	GetNearestFontToDesignHeightInPixels	GRAPHICS-FBSERV-FbsFont-PublicApi-0028-001-GetNearestFontToDesignHeightInPixels_command004
       
   952 		COMMAND		CFbsFont1		ExtendedFunction			GRAPHICS-FBSERV-FbsFont-PublicApi-0028-001-ExtendedFunction_command006
       
   953 		COMMAND		CFbsTypefaceStore1	~
       
   954 		COMMAND		RFbsSession1		Disconnect
       
   955 	END_TEST_BLOCK
       
   956 END_TESTCASE 			GRAPHICS-FBSERV-FbsFont-PublicApi-0028