graphicsapitest/graphicssvs/fntstore/scripts/GRAPHICS-FNTSTORE-FntStore-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-FNTSTORE-FntStore-PublicApi
       
    18 //! @SYMScriptTestEnvironment	
       
    19 
       
    20 /////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-FNTSTORE-FntStore-PublicApi.script
       
    22 //
       
    23 // Tests all public elements of the CFontStore
       
    24 // classes 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 CFontStore
       
    27 // The tests are fully automated.
       
    28 /////////////////////////////////////////////////////////////////////
       
    29 
       
    30 LOAD_SUITE      T_GraphicsFntstoreApi
       
    31 DELAY           1000
       
    32 
       
    33 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0001
       
    34 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0001
       
    35 //! @SYMAPI     			CFontStore::NewL(RHeap{ptr})
       
    36 //! @SYMAuthor              Felix Rao
       
    37 //! @SYMCreationDate        25/03/2009
       
    38 //! @SYMTestCaseDesc        Creates a new CFontStore object with heap size 65536.
       
    39 //! @SYMTestActions         1. Create a CFontStore object.
       
    40 //!                         2. Destroy the CFontStore object.
       
    41 //! @SYMTestStatus          Implemented
       
    42 //! @SYMTestPriority        High
       
    43 //! @SYMTestExpectedResults CFontStore::NewL() returns a CFontStore object.
       
    44 //! @SYMTestType            CIT
       
    45     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
    46         CREATE_OBJECT       CFontStore      fntStore
       
    47         COMMAND             fntStore        NewL            GRAPHICS-FNTSTORE-FntStore-PublicApi-0001-NewL_command01
       
    48         COMMAND             fntStore        ~
       
    49     END_TEST_BLOCK
       
    50 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0001
       
    51 
       
    52 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0002
       
    53 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0002
       
    54 //! @SYMAPI     			CFontStore::NewL(RHeap{ptr})
       
    55 //! @SYMAuthor              Felix Rao
       
    56 //! @SYMCreationDate        26/03/2009
       
    57 //! @SYMTestCaseDesc        Creates a new CFontStore object using heap of current thread.
       
    58 //! @SYMTestActions         1. Create a CFontStore object.
       
    59 //!                         2. Destroy the CFontStore object.
       
    60 //! @SYMTestStatus          Implemented
       
    61 //! @SYMTestPriority        High
       
    62 //! @SYMTestExpectedResults CFontStore::NewL() returns a CFontStore object.
       
    63 //! @SYMTestType            CIT
       
    64     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
    65         CREATE_OBJECT       CFontStore      fntStore
       
    66         COMMAND             fntStore        NewL
       
    67         COMMAND             fntStore        ~
       
    68     END_TEST_BLOCK
       
    69 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0002
       
    70 
       
    71 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0003
       
    72 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0003
       
    73 //! @SYMAPI     			CFontStore::NewL(RHeap{ptr})
       
    74 //! @SYMAuthor              Felix Rao
       
    75 //! @SYMCreationDate        26/03/2009
       
    76 //! @SYMTestCaseDesc        Negative case. Creates a new CFontStore object with heap size 0, which means NULL heap.
       
    77 //! @SYMTestActions         1. Create a CFontStore object.
       
    78 //!                         2. Destroy the CFontStore object.
       
    79 //! @SYMTestStatus          Implemented
       
    80 //! @SYMTestPriority        High
       
    81 //! @SYMTestExpectedResults Get error -4 (KErrNoMemory).
       
    82 //! @SYMTestType            CIT
       
    83     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
    84         CREATE_OBJECT       CFontStore      fntStore
       
    85         COMMAND  !Error=-4  fntStore        NewL            GRAPHICS-FNTSTORE-FntStore-PublicApi-0003-NewL_command01
       
    86         COMMAND             fntStore        ~
       
    87     END_TEST_BLOCK
       
    88 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0003
       
    89 
       
    90 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0004
       
    91 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0004
       
    92 //! @SYMAPI     			CFontStore::AddFileL(const TDesC{ref})
       
    93 //! @SYMAuthor              Felix Rao
       
    94 //! @SYMCreationDate        27/03/2009
       
    95 //! @SYMTestCaseDesc        Finds or creates a font file object to support a font file.
       
    96 //! @SYMTestActions         1. Create a CFontStore object.
       
    97 //!                         2. Get the number of typefaces.
       
    98 //!                         3. Add a font file specified in test data.
       
    99 //!                         4. Get the number of typefaces.
       
   100 //!                         5. Remove the file.
       
   101 //!                         6. Destroy the CFontStore object.
       
   102 //! @SYMTestStatus          Implemented
       
   103 //! @SYMTestPriority        High
       
   104 //! @SYMTestExpectedResults 1. CFontStore::AddFileL() is called successfully.
       
   105 //!                         2. Before and after add file, number of typefaces is expected as specified in test data respectively.
       
   106 //! @SYMTestType            CIT
       
   107     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   108         CREATE_OBJECT       CFontStore      fntStore
       
   109         COMMAND             fntStore        NewL
       
   110         COMMAND             fntStore        NumTypefaces    GRAPHICS-FNTSTORE-FntStore-PublicApi-0004-NumTypefaces_command02
       
   111         COMMAND             fntStore        AddFileL        GRAPHICS-FNTSTORE-FntStore-PublicApi-0004-AddFileL_command03
       
   112         COMMAND             fntStore        NumTypefaces    GRAPHICS-FNTSTORE-FntStore-PublicApi-0004-NumTypefaces_command04
       
   113         COMMAND             fntStore        RemoveFile      GRAPHICS-FNTSTORE-FntStore-PublicApi-0004-RemoveFile_command05
       
   114         COMMAND             fntStore        ~
       
   115     END_TEST_BLOCK
       
   116 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0004
       
   117 
       
   118 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0005
       
   119 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0005
       
   120 //! @SYMAPI     			CFontStore::AddFileL(const TDesC{ref})
       
   121 //! @SYMAuthor              Felix Rao
       
   122 //! @SYMCreationDate        27/03/2009
       
   123 //! @SYMTestCaseDesc        Negative case. Add a not supported font file.
       
   124 //! @SYMTestActions         1. Create a CFontStore object.
       
   125 //!                         2. Add a font file specified in test data.
       
   126 //!                         3. Destroy the CFontStore object.
       
   127 //! @SYMTestStatus          Implemented
       
   128 //! @SYMTestPriority        High
       
   129 //! @SYMTestExpectedResults Get error -5 (KErrNotSupported)
       
   130 //! @SYMTestType            CIT
       
   131     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   132         CREATE_OBJECT       CFontStore      fntStore
       
   133         COMMAND             fntStore        NewL
       
   134         COMMAND  !Error=-5  fntStore        AddFileL        GRAPHICS-FNTSTORE-FntStore-PublicApi-0005-AddFileL_command02
       
   135         COMMAND             fntStore        ~
       
   136     END_TEST_BLOCK
       
   137 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0005
       
   138 
       
   139 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0006
       
   140 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0006
       
   141 //! @SYMAPI     			CFontStore::AddFileL(const TDesC{ref})
       
   142 //! @SYMAuthor              Felix Rao
       
   143 //! @SYMCreationDate        27/03/2009
       
   144 //! @SYMTestCaseDesc        Add 2 font files. One is gdr file, another is test open font file.
       
   145 //! @SYMTestActions         1. Create a CFontStore object.
       
   146 //!                         2. Get the number of typefaces.
       
   147 //!                         3. Add a font file specified in test data.
       
   148 //!                         4. Get the number of typefaces.
       
   149 //!                         5. Install a test rasterizer.
       
   150 //!                         6. Add open font file specified in test data.
       
   151 //!                         7. Get the number of typefaces.
       
   152 //!                         8. Remove all font files.
       
   153 //!                         9. Destroy the CFontStore object.
       
   154 //! @SYMTestStatus          Implemented
       
   155 //! @SYMTestPriority        High
       
   156 //! @SYMTestExpectedResults 1. CFontStore::AddFileL() is called successfully.
       
   157 //!                         2. Before and after add font files, the number of typefaces is expected as specified respectively.
       
   158 //! @SYMTestType            CIT
       
   159     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   160         CREATE_OBJECT       CFontStore      fntStore
       
   161         COMMAND             fntStore        NewL
       
   162         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-NumTypefaces_command02
       
   163         COMMAND             fntStore        AddFileL                GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-AddFileL_command03
       
   164         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-NumTypefaces_command04
       
   165         COMMAND             fntStore        InstallRasterizerL      GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-InstallRasterizerL_command05
       
   166         COMMAND             fntStore        AddFileL                GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-AddFileL_command06
       
   167         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-NumTypefaces_command07
       
   168         COMMAND             fntStore        RemoveFile
       
   169         COMMAND             fntStore        ~
       
   170     END_TEST_BLOCK
       
   171 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0006
       
   172 
       
   173 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0007
       
   174 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0007
       
   175 //! @SYMAPI     			CFontStore::AddFileL(const TDesC{ref})
       
   176 //! @SYMAuthor              Felix Rao
       
   177 //! @SYMCreationDate        27/03/2009
       
   178 //! @SYMTestCaseDesc        Add a font file twice.
       
   179 //! @SYMTestActions         1. Create a CFontStore object.
       
   180 //!                         2. Add a font file specified in test data and get the number of typefaces.
       
   181 //!                         3. Add the font file again and get the number of typefaces.
       
   182 //!                         4. Remove all files.
       
   183 //!                         5. Destroy the CFontStore object.
       
   184 //! @SYMTestStatus          Implemented
       
   185 //! @SYMTestPriority        High
       
   186 //! @SYMTestExpectedResults 1. CFontStore::AddFileL() is called successfully.
       
   187 //!                         2. Before and after 1st AddFileL(), number of typefaces is expected as specified in test data respectively.
       
   188 //!                         3. Before and after 2nd AddFileL(), number of typefaces keeps unchanged.
       
   189 //! @SYMTestType            CIT
       
   190     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   191         CREATE_OBJECT       CFontStore      fntStore
       
   192         COMMAND             fntStore        NewL
       
   193         COMMAND             fntStore        AddFileL        GRAPHICS-FNTSTORE-FntStore-PublicApi-0007-AddFileL_command02
       
   194         COMMAND             fntStore        NumTypefaces    GRAPHICS-FNTSTORE-FntStore-PublicApi-0007-NumTypefaces_command03
       
   195         COMMAND             fntStore        AddFileL        GRAPHICS-FNTSTORE-FntStore-PublicApi-0007-AddFileL_command04
       
   196         COMMAND             fntStore        NumTypefaces    GRAPHICS-FNTSTORE-FntStore-PublicApi-0007-NumTypefaces_command05
       
   197         COMMAND             fntStore        RemoveFile
       
   198         COMMAND             fntStore        ~
       
   199     END_TEST_BLOCK
       
   200 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0007
       
   201 
       
   202 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0011
       
   203 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0011
       
   204 //! @SYMAPI     			CFontStore::RemoveFile(TUid)
       
   205 //! @SYMAuthor              Felix Rao
       
   206 //! @SYMCreationDate        27/03/2009
       
   207 //! @SYMTestCaseDesc        Remove font file.
       
   208 //! @SYMTestActions         1. Create a CFontStore object.
       
   209 //!                         2. Install a test rasterizer.
       
   210 //!                         3. Add a font file specified in test data and get the number of typefaces.
       
   211 //!                         4. Remove the file and get the number of typefaces.
       
   212 //!                         5. Add 2 font files and get the number of typefaces.
       
   213 //!                         6. Remove all files.
       
   214 //!                         7. Destroy the CFontStore object.
       
   215 //! @SYMTestStatus          Implemented
       
   216 //! @SYMTestPriority        High
       
   217 //! @SYMTestExpectedResults 1. CFontStore::RemoveFile() is called successfully.
       
   218 //!                         2. After both RemoveFile(), the number of typefaces is 0.
       
   219 //! @SYMTestType            CIT
       
   220     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   221         CREATE_OBJECT       CFontStore      fntStore
       
   222         COMMAND             fntStore        NewL
       
   223         COMMAND             fntStore        InstallRasterizerL      GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-InstallRasterizerL_command02
       
   224         COMMAND             fntStore        AddFileL                GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-AddFileL_command03
       
   225         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-NumTypefaces_command04
       
   226         COMMAND             fntStore        RemoveFile              GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-RemoveFile_command05
       
   227         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-NumTypefaces_command06
       
   228         COMMAND             fntStore        AddFileL                GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-AddFileL_command07
       
   229         COMMAND             fntStore        AddFileL                GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-AddFileL_command08
       
   230         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-NumTypefaces_command09
       
   231         COMMAND             fntStore        RemoveFile
       
   232         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-NumTypefaces_command11
       
   233         COMMAND             fntStore        ~
       
   234     END_TEST_BLOCK
       
   235 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0011
       
   236 
       
   237 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0012
       
   238 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0012
       
   239 //! @SYMAPI     			CFontStore::RemoveFile(TUid)
       
   240 //! @SYMAuthor              Felix Rao
       
   241 //! @SYMCreationDate        27/03/2009
       
   242 //! @SYMTestCaseDesc        Negative case. Remove all files whilst no file is added.
       
   243 //! @SYMTestActions         1. Create a CFontStore object.
       
   244 //!                         2. Get the number of typefaces.
       
   245 //!                         3. Remove all files and get the number of typefaces.
       
   246 //!                         4. Destroy the CFontStore object.
       
   247 //! @SYMTestStatus          Implemented
       
   248 //! @SYMTestPriority        High
       
   249 //! @SYMTestExpectedResults 1. CFontStore::RemoveFile() is called successfully.
       
   250 //!                         2. Before and after RemoveFile(), the number of typefaces is 0.
       
   251 //! @SYMTestType            CIT
       
   252     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   253         CREATE_OBJECT       CFontStore      fntStore
       
   254         COMMAND             fntStore        NewL
       
   255         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0012-NumTypefaces_command02
       
   256         COMMAND             fntStore        RemoveFile
       
   257         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0012-NumTypefaces_command04
       
   258         COMMAND             fntStore        ~
       
   259     END_TEST_BLOCK
       
   260 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0012
       
   261 
       
   262 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0013
       
   263 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0013
       
   264 //! @SYMAPI     			CFontStore::RemoveFile(TUid)
       
   265 //! @SYMAuthor              Felix Rao
       
   266 //! @SYMCreationDate        27/03/2009
       
   267 //! @SYMTestCaseDesc        Remove font file.
       
   268 //! @SYMTestActions         1. Create a CFontStore object.
       
   269 //!                         2. Install a test rasterizer.
       
   270 //!                         3. Add 2 font files specified in test data and get the number of typefaces.
       
   271 //!                         4. Remove 1st file and get the number of typefaces.
       
   272 //!                         5. Add 1st font file and get the number of typefaces.
       
   273 //!                         6. Remove all files and get the number of typefaces.
       
   274 //!                         7. Add 1st file twice and get the number of typefaces.
       
   275 //!                         8. Remove the file once and get the number of typefaces.
       
   276 //!                         9. Remove all files and get the number of typefaces.
       
   277 //!                         10. Destroy the CFontStore object.
       
   278 //! @SYMTestStatus          Implemented
       
   279 //! @SYMTestPriority        High
       
   280 //! @SYMTestExpectedResults 1. CFontStore::RemoveFile() is called successfully.
       
   281 //!                         2. After 1st RemoveFile(), the number of typefaces is that contained in 2nd file.
       
   282 //!                         3. After 2nd RemoveFile(), the number of typefaces is 0.
       
   283 //!                         4. After 3rd RemoveFile(), the number of typefaces is that contained in 1st file.
       
   284 //!                         5. After 4th RemoveFile(), the number of typefaces is 0.
       
   285 //! @SYMTestType            CIT
       
   286     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   287         CREATE_OBJECT       CFontStore      fntStore
       
   288         COMMAND             fntStore        NewL
       
   289         COMMAND             fntStore        InstallRasterizerL      GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-InstallRasterizerL_command02
       
   290         COMMAND             fntStore        AddFileL                GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command03
       
   291         COMMAND             fntStore        AddFileL                GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command04
       
   292         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command05
       
   293         COMMAND             fntStore        RemoveFile              GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-RemoveFile_command06
       
   294         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command07
       
   295         COMMAND             fntStore        AddFileL                GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command08
       
   296         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command09
       
   297         COMMAND             fntStore        RemoveFile
       
   298         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command11
       
   299         COMMAND             fntStore        AddFileL                GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command12
       
   300         COMMAND             fntStore        AddFileL                GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command13
       
   301         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command14
       
   302         COMMAND             fntStore        RemoveFile              GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-RemoveFile_command15
       
   303         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command16
       
   304         COMMAND             fntStore        RemoveFile
       
   305         COMMAND             fntStore        NumTypefaces            GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command17
       
   306         COMMAND             fntStore        ~
       
   307     END_TEST_BLOCK
       
   308 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0013
       
   309 
       
   310 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0014
       
   311 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0014
       
   312 //! @SYMAPI     			CFontStore::RemoveFile(TUid)
       
   313 //! @SYMAuthor              Felix Rao
       
   314 //! @SYMCreationDate        27/03/2009
       
   315 //! @SYMTestCaseDesc        Negative case. Remove file using invalid uid.
       
   316 //! @SYMTestActions         1. Create a CFontStore object.
       
   317 //!                         2. Remove file using invalid uid.
       
   318 //!                         3. Destroy the CFontStore object.
       
   319 //! @SYMTestStatus          Implemented
       
   320 //! @SYMTestPriority        High
       
   321 //! @SYMTestExpectedResults CFontStore::RemoveFile() is called successfully.
       
   322 //! @SYMTestType            CIT
       
   323     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   324         CREATE_OBJECT       CFontStore      fntStore
       
   325         COMMAND             fntStore        NewL
       
   326         COMMAND             fntStore        RemoveFile          GRAPHICS-FNTSTORE-FntStore-PublicApi-0014-RemoveFile_command2
       
   327         COMMAND             fntStore        ~
       
   328     END_TEST_BLOCK
       
   329 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0014
       
   330 
       
   331 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0015
       
   332 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0015
       
   333 //! @SYMAPI     			CFontStore::RemoveFile(TUid)
       
   334 //! @SYMAuthor              Felix Rao
       
   335 //! @SYMCreationDate        27/03/2009
       
   336 //! @SYMTestCaseDesc        Negative case. Remove file without releaseing gotten font.
       
   337 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   338 //!                         2. Add a font file.
       
   339 //!                         3. Get font by uid and don't release it.
       
   340 //!                         4. Remove the font file just added.
       
   341 //!                         5. Install a rasterizer.
       
   342 //!                         6. Add a open font file.
       
   343 //!                         7. Get a font per TFontSpec and don't release it.
       
   344 //!                         8. Remove the font file just added.
       
   345 //!                         9. Destroy all objects.
       
   346 //! @SYMTestStatus          Implemented
       
   347 //! @SYMTestPriority        High
       
   348 //! @SYMTestExpectedResults CFontStore::RemoveFile() is called successfully.
       
   349 //! @SYMTestType            CIT
       
   350     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   351         CREATE_OBJECT       CFontStore      fntStore
       
   352         CREATE_OBJECT       TAlgStyle       algStyle
       
   353         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   354         COMMAND             fntStore        NewL
       
   355         COMMAND             algStyle        new
       
   356         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-AddFileL_command03
       
   357         COMMAND             fntStore        GetFontById                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-GetFontById_command04
       
   358         COMMAND             fntStore        RemoveFile                              GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-RemoveFile_command05
       
   359         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-InstallRasterizerL_command06
       
   360         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-AddFileL_command07
       
   361         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels    GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-GetNearestFontToDesignHeightInPixels_command07
       
   362         COMMAND             fntStore        RemoveFile                              GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-RemoveFile_command08
       
   363         COMMAND             fntStore        ~
       
   364         COMMAND             algStyle        ~
       
   365     END_TEST_BLOCK
       
   366 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0015
       
   367 
       
   368 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0021
       
   369 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0021
       
   370 //! @SYMAPI     			CFontStore::GetNearestFontToDesignHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref})
       
   371 //! @SYMAuthor              Felix Rao
       
   372 //! @SYMCreationDate        27/03/2009
       
   373 //! @SYMTestCaseDesc        Gets the font which is the nearest to the given font specification.
       
   374 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   375 //!                         2. Install a test rasterizer.
       
   376 //!                         3. Add a font file specified in test data.
       
   377 //!                         4. Get the font specified in test data.
       
   378 //!                         5. Check the font is expected.
       
   379 //!                         6. Release the font.
       
   380 //!                         7. Remove all files.
       
   381 //!                         8. Destroy the CFontStore object.
       
   382 //! @SYMTestStatus          Implemented
       
   383 //! @SYMTestPriority        High
       
   384 //! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToDesignHeightInPixels() is called successfully.
       
   385 //!                         2. The font returned is as expected.
       
   386 //! @SYMTestType            CIT
       
   387     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   388         CREATE_OBJECT       CFontStore      fntStore
       
   389         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   390         COMMAND             fntStore        NewL
       
   391         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-InstallRasterizerL_command02
       
   392         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-AddFileL_command03
       
   393         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels    GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-GetNearestFontToDesignHeightInPixels_command04
       
   394         COMMAND             bitmapFont      HeightInPixels                          GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-HeightInPixels_command05
       
   395         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-ReleaseFont_command06
       
   396         COMMAND             fntStore        RemoveFile                              GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-RemoveFile_command07
       
   397         COMMAND             fntStore        ~
       
   398     END_TEST_BLOCK
       
   399 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0021
       
   400 
       
   401 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0022
       
   402 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0022
       
   403 //! @SYMAPI     			CFontStore::GetNearestFontToDesignHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref})
       
   404 //! @SYMAuthor              Felix Rao
       
   405 //! @SYMCreationDate        30/03/2009
       
   406 //! @SYMTestCaseDesc        Gets the font which is the nearest to the given font specification, which is not contained in font file.
       
   407 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   408 //!                         2. Install a test rasterizer.
       
   409 //!                         3. Add a font file specified in test data.
       
   410 //!                         4. Get the font specified in test data.
       
   411 //!                         5. Check the font is expected.
       
   412 //!                         6. Release the font.
       
   413 //!                         7. Remove all files.
       
   414 //!                         8. Destroy the CFontStore object.
       
   415 //! @SYMTestStatus          Implemented
       
   416 //! @SYMTestPriority        High
       
   417 //! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToDesignHeightInPixels() is called successfully.
       
   418 //!                         2. The font returned is as expected.
       
   419 //! @SYMTestType            CIT
       
   420     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   421         CREATE_OBJECT       CFontStore      fntStore
       
   422         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   423         COMMAND             fntStore        NewL
       
   424         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-InstallRasterizerL_command02
       
   425         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-AddFileL_command03
       
   426         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels    GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-GetNearestFontToDesignHeightInPixels_command04
       
   427         COMMAND             bitmapFont      FontSpecInTwips                         GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-FontSpecInTwips_command05
       
   428         COMMAND             bitmapFont      HeightInPixels                          GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-HeightInPixels_command06
       
   429         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-ReleaseFont_command07
       
   430         COMMAND             fntStore        RemoveFile
       
   431         COMMAND             fntStore        ~
       
   432     END_TEST_BLOCK
       
   433 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0022
       
   434 
       
   435 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0023
       
   436 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0023
       
   437 //! @SYMAPI     			CFontStore::GetNearestFontToDesignHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref})
       
   438 //! @SYMAuthor              Felix Rao
       
   439 //! @SYMCreationDate        30/03/2009
       
   440 //! @SYMTestCaseDesc        Negative case. Gets the font which is the nearest to the given font specification without font file added.
       
   441 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   442 //!                         2. Get the font specified in test data.
       
   443 //! @SYMTestStatus          Implemented
       
   444 //! @SYMTestPriority        High
       
   445 //! @SYMTestExpectedResults Get error code -2 (KErrGeneral).
       
   446 //! @SYMTestType            CIT
       
   447     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   448         CREATE_OBJECT       CFontStore      fntStore
       
   449         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   450         COMMAND             fntStore        NewL
       
   451         COMMAND  !Error=-2  fntStore        GetNearestFontToDesignHeightInPixels    GRAPHICS-FNTSTORE-FntStore-PublicApi-0023-GetNearestFontToDesignHeightInPixels_command02
       
   452         COMMAND             fntStore        ~
       
   453     END_TEST_BLOCK
       
   454 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0023
       
   455 
       
   456 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0031
       
   457 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0031
       
   458 //! @SYMAPI     			CFontStore::GetNearestFontToMaxHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref}, TInt)
       
   459 //! @SYMAuthor              Felix Rao
       
   460 //! @SYMCreationDate        30/03/2009
       
   461 //! @SYMTestCaseDesc        Gets the font which is the nearest to the given font specification.
       
   462 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   463 //!                         2. Install a test rasterizer.
       
   464 //!                         3. Add a font file specified in test data.
       
   465 //!                         4. Get the font specified in test data.
       
   466 //!                         5. Check the font is expected.
       
   467 //!                         6. Release the font.
       
   468 //!                         7. Remove all files.
       
   469 //!                         8. Destroy the CFontStore object.
       
   470 //! @SYMTestStatus          Implemented
       
   471 //! @SYMTestPriority        High
       
   472 //! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToMaxHeightInPixels() is called successfully.
       
   473 //!                         2. The font returned is as expected.
       
   474 //! @SYMTestType            CIT
       
   475     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   476         CREATE_OBJECT       CFontStore      fntStore
       
   477         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   478         COMMAND             fntStore        NewL
       
   479         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-InstallRasterizerL_command02
       
   480         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-AddFileL_command03
       
   481         COMMAND             fntStore        GetNearestFontToMaxHeightInPixels       GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-GetNearestFontToMaxHeightInPixels_command04
       
   482         COMMAND             bitmapFont      HeightInPixels                          GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-HeightInPixels_command05
       
   483         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-ReleaseFont_command06
       
   484         COMMAND             fntStore        RemoveFile
       
   485         COMMAND             fntStore        ~
       
   486     END_TEST_BLOCK
       
   487 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0031
       
   488 
       
   489 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0032
       
   490 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0032
       
   491 //! @SYMAPI     			CFontStore::GetNearestFontToMaxHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref}, TInt)
       
   492 //! @SYMAuthor              Felix Rao
       
   493 //! @SYMCreationDate        30/03/2009
       
   494 //! @SYMTestCaseDesc        Gets the font which is the nearest to the given font specification, which is not contained in font file.
       
   495 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   496 //!                         2. Install a test rasterizer.
       
   497 //!                         3. Add a font file specified in test data.
       
   498 //!                         4. Get the font specified in test data.
       
   499 //!                         5. Check the font is expected.
       
   500 //!                         6. Release the font.
       
   501 //!                         7. Remove all files.
       
   502 //!                         8. Destroy the CFontStore object.
       
   503 //! @SYMTestStatus          Implemented
       
   504 //! @SYMTestPriority        High
       
   505 //! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToMaxHeightInPixels() is called successfully.
       
   506 //!                         2. The font returned is as expected.
       
   507 //! @SYMTestType            CIT
       
   508     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   509         CREATE_OBJECT       CFontStore      fntStore
       
   510         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   511         COMMAND             fntStore        NewL
       
   512         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-InstallRasterizerL_command02
       
   513         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-AddFileL_command03
       
   514         COMMAND             fntStore        GetNearestFontToMaxHeightInPixels       GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-GetNearestFontToMaxHeightInPixels_command04
       
   515         COMMAND             bitmapFont      FontSpecInTwips                         GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-FontSpecInTwips_command05
       
   516         COMMAND             bitmapFont      HeightInPixels                          GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-HeightInPixels_command06
       
   517         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-ReleaseFont_command07
       
   518         COMMAND             fntStore        RemoveFile
       
   519         COMMAND             fntStore        ~
       
   520     END_TEST_BLOCK
       
   521 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0032
       
   522 
       
   523 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0033
       
   524 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0033
       
   525 //! @SYMAPI     			CFontStore::GetNearestFontToMaxHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref}, TInt)
       
   526 //! @SYMAuthor              Felix Rao
       
   527 //! @SYMCreationDate        30/03/2009
       
   528 //! @SYMTestCaseDesc        Negative case. Gets the font which is the nearest to the given font specification without font file added.
       
   529 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   530 //!                         2. Get the font specified in test data.
       
   531 //! @SYMTestStatus          Implemented
       
   532 //! @SYMTestPriority        High
       
   533 //! @SYMTestExpectedResults Get error code -2 (KErrGeneral).
       
   534 //! @SYMTestType            CIT
       
   535     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   536         CREATE_OBJECT       CFontStore      fntStore
       
   537         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   538         COMMAND             fntStore        NewL
       
   539         COMMAND  !Error=-2  fntStore        GetNearestFontToMaxHeightInPixels    GRAPHICS-FNTSTORE-FntStore-PublicApi-0033-GetNearestFontToMaxHeightInPixels_command02
       
   540         COMMAND             fntStore        ~
       
   541     END_TEST_BLOCK
       
   542 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0033
       
   543 
       
   544 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0034
       
   545 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0034
       
   546 //! @SYMAPI     			CFontStore::GetNearestFontToMaxHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref}, TInt)
       
   547 //! @SYMAuthor              Felix Rao
       
   548 //! @SYMCreationDate        03/04/2009
       
   549 //! @SYMTestCaseDesc        Negative case. Gets the font with max height set to 9999, 1, and negative number respectively.
       
   550 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   551 //!                         2. Get the font specified with max height 9999.
       
   552 //!                         3. Get the font specified with max height 1.
       
   553 //!                         4. Get the font specified with max height set to negative number.
       
   554 //!                         5. Destroy the CFontStore object.
       
   555 //! @SYMTestStatus          Implemented
       
   556 //! @SYMTestPriority        High
       
   557 //! @SYMTestExpectedResults 1. 1st call to CFontStore::GetNearestFontToMaxHeightInPixels() returns -40 (KErrTooBig)
       
   558 //!                         2. 2nd call to CFontStore::GetNearestFontToMaxHeightInPixels() returns -6 (KErrArgument)
       
   559 //!                         3. 3rd call to CFontStore::GetNearestFontToMaxHeightInPixels() returns -2 (KErrGeneral)
       
   560 //! @SYMTestType            CIT
       
   561     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   562         CREATE_OBJECT       CFontStore      fntStore
       
   563         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   564         COMMAND             fntStore        NewL
       
   565         COMMAND  !Error=-40 fntStore        GetNearestFontToMaxHeightInPixels       GRAPHICS-FNTSTORE-FntStore-PublicApi-0034-GetNearestFontToMaxHeightInPixels_command02
       
   566         COMMAND  !Error=-6  fntStore        GetNearestFontToMaxHeightInPixels       GRAPHICS-FNTSTORE-FntStore-PublicApi-0034-GetNearestFontToMaxHeightInPixels_command03
       
   567         COMMAND  !Error=-2  fntStore        GetNearestFontToMaxHeightInPixels       GRAPHICS-FNTSTORE-FntStore-PublicApi-0034-GetNearestFontToMaxHeightInPixels_command04
       
   568         COMMAND             fntStore        ~
       
   569     END_TEST_BLOCK
       
   570 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0034
       
   571 
       
   572 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0041
       
   573 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0041
       
   574 //! @SYMAPI     			CFontStore::GetNearestFontToDesignHeightInTwips(CFont{ptr}{ref},const TOpenFontSpec{ref})
       
   575 //! @SYMAuthor              Felix Rao
       
   576 //! @SYMCreationDate        30/03/2009
       
   577 //! @SYMTestCaseDesc        Gets the font which is the nearest to the given font specification.
       
   578 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   579 //!                         2. Install a test rasterizer.
       
   580 //!                         3. Add a font file specified in test data.
       
   581 //!                         4. Get the font specified in test data.
       
   582 //!                         5. Check the font is expected.
       
   583 //!                         6. Release the font.
       
   584 //!                         7. Remove all files.
       
   585 //!                         8. Destroy the CFontStore object.
       
   586 //! @SYMTestStatus          Implemented
       
   587 //! @SYMTestPriority        High
       
   588 //! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToDesignHeightInTwips() is called successfully.
       
   589 //!                         2. The font returned is as expected.
       
   590 //! @SYMTestType            CIT
       
   591     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   592         CREATE_OBJECT       CFontStore      fntStore
       
   593         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   594         COMMAND             fntStore        NewL
       
   595         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-InstallRasterizerL_command02
       
   596         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-AddFileL_command03
       
   597         COMMAND             fntStore        GetNearestFontToDesignHeightInTwips     GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-GetNearestFontToDesignHeightInTwips_command04
       
   598         COMMAND             bitmapFont      FontSpecInTwips                         GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-FontSpecInTwips_command05
       
   599         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-ReleaseFont_command06
       
   600         COMMAND             fntStore        RemoveFile
       
   601         COMMAND             fntStore        ~
       
   602     END_TEST_BLOCK
       
   603 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0041
       
   604 
       
   605 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0042
       
   606 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0042
       
   607 //! @SYMAPI     			CFontStore::GetNearestFontToDesignHeightInTwips(CFont{ptr}{ref},const TOpenFontSpec{ref})
       
   608 //! @SYMAuthor              Felix Rao
       
   609 //! @SYMCreationDate        30/03/2009
       
   610 //! @SYMTestCaseDesc        Gets the font which is the nearest to the given font specification, which is not contained in font file.
       
   611 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   612 //!                         2. Install a test rasterizer.
       
   613 //!                         3. Add a font file specified in test data.
       
   614 //!                         4. Get the font specified in test data.
       
   615 //!                         5. Check the font is expected.
       
   616 //!                         6. Release the font.
       
   617 //!                         7. Remove all files.
       
   618 //!                         8. Destroy the CFontStore object.
       
   619 //! @SYMTestStatus          Implemented
       
   620 //! @SYMTestPriority        High
       
   621 //! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToDesignHeightInTwips() is called successfully.
       
   622 //!                         2. The font returned is as expected.
       
   623 //! @SYMTestType            CIT
       
   624     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   625         CREATE_OBJECT       CFontStore      fntStore
       
   626         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   627         COMMAND             fntStore        NewL
       
   628         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-InstallRasterizerL_command02
       
   629         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-AddFileL_command03
       
   630         COMMAND             fntStore        GetNearestFontToDesignHeightInTwips     GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-GetNearestFontToDesignHeightInTwips_command04
       
   631         COMMAND             bitmapFont      FontSpecInTwips                         GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-FontSpecInTwips_command05
       
   632         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-ReleaseFont_command06
       
   633         COMMAND             fntStore        RemoveFile
       
   634         COMMAND             fntStore        ~
       
   635     END_TEST_BLOCK
       
   636 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0042
       
   637 
       
   638 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0043
       
   639 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0043
       
   640 //! @SYMAPI     			CFontStore::GetNearestFontToDesignHeightInTwips(CFont{ptr}{ref},const TOpenFontSpec{ref})
       
   641 //! @SYMAuthor              Felix Rao
       
   642 //! @SYMCreationDate        30/03/2009
       
   643 //! @SYMTestCaseDesc        Negative case. Gets the font which is the nearest to the given font specification without font file added.
       
   644 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   645 //!                         2. Get the font specified in test data.
       
   646 //! @SYMTestStatus          Implemented
       
   647 //! @SYMTestPriority        High
       
   648 //! @SYMTestExpectedResults Get error code -2 (KErrGeneral).
       
   649 //! @SYMTestType            CIT
       
   650     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   651         CREATE_OBJECT       CFontStore      fntStore
       
   652         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   653         COMMAND             fntStore        NewL
       
   654         COMMAND  !Error=-2  fntStore        GetNearestFontToDesignHeightInTwips    GRAPHICS-FNTSTORE-FntStore-PublicApi-0043-GetNearestFontToDesignHeightInTwips_command02
       
   655         COMMAND             fntStore        ~
       
   656     END_TEST_BLOCK
       
   657 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0043
       
   658 
       
   659 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0051
       
   660 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0051
       
   661 //! @SYMAPI     			CFontStore::GetNearestFontToDesignHeightInPixels(CFont{ptr}{ref},const TOpenFontSpec{ref})
       
   662 //! @SYMAuthor              Felix Rao
       
   663 //! @SYMCreationDate        30/03/2009
       
   664 //! @SYMTestCaseDesc        Gets the font which is the nearest to the given font specification.
       
   665 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   666 //!                         2. Install a test rasterizer.
       
   667 //!                         3. Add a font file specified in test data.
       
   668 //!                         4. Get the font specified in test data.
       
   669 //!                         5. Check the font is expected.
       
   670 //!                         6. Release the font.
       
   671 //!                         7. Remove all files.
       
   672 //!                         8. Destroy the CFontStore object.
       
   673 //! @SYMTestStatus          Implemented
       
   674 //! @SYMTestPriority        High
       
   675 //! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToDesignHeightInPixels() is called successfully.
       
   676 //!                         2. The font returned is as expected.
       
   677 //! @SYMTestType            CIT
       
   678     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   679         CREATE_OBJECT       CFontStore      fntStore
       
   680         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   681         COMMAND             fntStore        NewL
       
   682         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-InstallRasterizerL_command02
       
   683         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-AddFileL_command03
       
   684         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels    GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-GetNearestFontToDesignHeightInPixels_command04
       
   685         COMMAND             bitmapFont      HeightInPixels                          GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-HeightInPixels_command05
       
   686         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-ReleaseFont_command06
       
   687         COMMAND             fntStore        RemoveFile
       
   688         COMMAND             fntStore        ~
       
   689     END_TEST_BLOCK
       
   690 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0051
       
   691 
       
   692 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0052
       
   693 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0052
       
   694 //! @SYMAPI     			CFontStore::GetNearestFontToDesignHeightInPixels(CFont{ptr}{ref},const TOpenFontSpec{ref})
       
   695 //! @SYMAuthor              Felix Rao
       
   696 //! @SYMCreationDate        30/03/2009
       
   697 //! @SYMTestCaseDesc        Gets the font which is the nearest to the given font specification, which is not contained in font file.
       
   698 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   699 //!                         2. Install a test rasterizer.
       
   700 //!                         3. Add a font file specified in test data.
       
   701 //!                         4. Get the font specified in test data.
       
   702 //!                         5. Check the font is expected.
       
   703 //!                         6. Release the font.
       
   704 //!                         7. Remove all files.
       
   705 //!                         8. Destroy the CFontStore object.
       
   706 //! @SYMTestStatus          Implemented
       
   707 //! @SYMTestPriority        High
       
   708 //! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToDesignHeightInPixels() is called successfully.
       
   709 //!                         2. The font returned is as expected.
       
   710 //! @SYMTestType            CIT
       
   711     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   712         CREATE_OBJECT       CFontStore      fntStore
       
   713         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   714         COMMAND             fntStore        NewL
       
   715         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-InstallRasterizerL_command02
       
   716         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-AddFileL_command03
       
   717         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels    GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-GetNearestFontToDesignHeightInPixels_command04
       
   718         COMMAND             bitmapFont      FontSpecInTwips                         GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-FontSpecInTwips_command05
       
   719         COMMAND             bitmapFont      HeightInPixels                          GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-HeightInPixels_command06
       
   720         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-ReleaseFont_command07
       
   721         COMMAND             fntStore        RemoveFile
       
   722         COMMAND             fntStore        ~
       
   723     END_TEST_BLOCK
       
   724 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0052
       
   725 
       
   726 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0053
       
   727 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0053
       
   728 //! @SYMAPI     			CFontStore::GetNearestFontToDesignHeightInPixels(CFont{ptr}{ref},const TOpenFontSpec{ref})
       
   729 //! @SYMAuthor              Felix Rao
       
   730 //! @SYMCreationDate        30/03/2009
       
   731 //! @SYMTestCaseDesc        Negative case. Gets the font which is the nearest to the given font specification without font file added.
       
   732 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   733 //!                         2. Get the font specified in test data.
       
   734 //! @SYMTestStatus          Implemented
       
   735 //! @SYMTestPriority        High
       
   736 //! @SYMTestExpectedResults Get error code -2 (KErrGeneral).
       
   737 //! @SYMTestType            CIT
       
   738     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   739         CREATE_OBJECT       CFontStore      fntStore
       
   740         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   741         COMMAND             fntStore        NewL
       
   742         COMMAND  !Error=-2  fntStore        GetNearestFontToDesignHeightInPixels    GRAPHICS-FNTSTORE-FntStore-PublicApi-0053-GetNearestFontToDesignHeightInPixels_command02
       
   743         COMMAND             fntStore        ~
       
   744     END_TEST_BLOCK
       
   745 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0053
       
   746 
       
   747 
       
   748 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0061
       
   749 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0061
       
   750 //! @SYMAPI     			CFontStore::GetNearestFontToMaxHeightInTwips(CFont{ptr}{ref},const TOpenFontSpec{ref}, TInt)
       
   751 //! @SYMAuthor              Felix Rao
       
   752 //! @SYMCreationDate        30/03/2009
       
   753 //! @SYMTestCaseDesc        Gets the font which is the nearest to the given font specification.
       
   754 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   755 //!                         2. Install a test rasterizer.
       
   756 //!                         3. Add a font file specified in test data.
       
   757 //!                         4. Get the font specified in test data.
       
   758 //!                         5. Check the font is expected.
       
   759 //!                         6. Release the font.
       
   760 //!                         7. Remove all files.
       
   761 //!                         8. Destroy the CFontStore object.
       
   762 //! @SYMTestStatus          Implemented
       
   763 //! @SYMTestPriority        High
       
   764 //! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToMaxHeightInTwips() is called successfully.
       
   765 //!                         2. The font returned is as expected.
       
   766 //! @SYMTestType            CIT
       
   767     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   768         CREATE_OBJECT       CFontStore      fntStore
       
   769         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   770         COMMAND             fntStore        NewL
       
   771         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-InstallRasterizerL_command02
       
   772         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-AddFileL_command03
       
   773         COMMAND             fntStore        GetNearestFontToMaxHeightInTwips        GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-GetNearestFontToMaxHeightInTwips_command04
       
   774         COMMAND             bitmapFont      FontSpecInTwips                         GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-FontSpecInTwips_command05
       
   775         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-ReleaseFont_command06
       
   776         COMMAND             fntStore        RemoveFile
       
   777         COMMAND             fntStore        ~
       
   778     END_TEST_BLOCK
       
   779 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0061
       
   780 
       
   781 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0062
       
   782 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0062
       
   783 //! @SYMAPI     			CFontStore::GetNearestFontToMaxHeightInTwips(CFont{ptr}{ref},const TOpenFontSpec{ref}, TInt)
       
   784 //! @SYMAuthor              Felix Rao
       
   785 //! @SYMCreationDate        30/03/2009
       
   786 //! @SYMTestCaseDesc        Gets the font which is the nearest to the given font specification, which is not contained in font file.
       
   787 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   788 //!                         2. Install a test rasterizer.
       
   789 //!                         3. Add a font file specified in test data.
       
   790 //!                         4. Get the font specified in test data.
       
   791 //!                         5. Check the font is expected.
       
   792 //!                         6. Release the font.
       
   793 //!                         7. Remove all files.
       
   794 //!                         8. Destroy the CFontStore object.
       
   795 //! @SYMTestStatus          Implemented
       
   796 //! @SYMTestPriority        High
       
   797 //! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToMaxHeightInTwips() is called successfully.
       
   798 //!                         2. The font returned is as expected.
       
   799 //! @SYMTestType            CIT
       
   800     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   801         CREATE_OBJECT       CFontStore      fntStore
       
   802         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   803         COMMAND             fntStore        NewL
       
   804         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-InstallRasterizerL_command02
       
   805         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-AddFileL_command03
       
   806         COMMAND             fntStore        GetNearestFontToMaxHeightInTwips        GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-GetNearestFontToMaxHeightInTwips_command04
       
   807         COMMAND             bitmapFont      FontSpecInTwips                         GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-FontSpecInTwips_command05
       
   808         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-ReleaseFont_command06
       
   809         COMMAND             fntStore        RemoveFile
       
   810         COMMAND             fntStore        ~
       
   811     END_TEST_BLOCK
       
   812 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0062
       
   813 
       
   814 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0063
       
   815 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0063
       
   816 //! @SYMAPI     			CFontStore::GetNearestFontToMaxHeightInTwips(CFont{ptr}{ref},const TOpenFontSpec{ref}, TInt)
       
   817 //! @SYMAuthor              Felix Rao
       
   818 //! @SYMCreationDate        30/03/2009
       
   819 //! @SYMTestCaseDesc        Negative case. Gets the font which is the nearest to the given font specification without font file added.
       
   820 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   821 //!                         2. Get the font specified in test data.
       
   822 //! @SYMTestStatus          Implemented
       
   823 //! @SYMTestPriority        High
       
   824 //! @SYMTestExpectedResults Get error code -2 (KErrGeneral).
       
   825 //! @SYMTestType            CIT
       
   826     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   827         CREATE_OBJECT       CFontStore      fntStore
       
   828         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   829         COMMAND             fntStore        NewL
       
   830         COMMAND  !Error=-2  fntStore        GetNearestFontToMaxHeightInTwips        GRAPHICS-FNTSTORE-FntStore-PublicApi-0063-GetNearestFontToMaxHeightInTwips_command02
       
   831         COMMAND             fntStore        ~
       
   832     END_TEST_BLOCK
       
   833 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0063
       
   834 
       
   835 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0071
       
   836 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0071
       
   837 //! @SYMAPI     			CFontStore::GetNearestFontToMaxHeightInPixels(CFont{ptr}{ref},const TOpenFontSpec{ref}, TInt)
       
   838 //! @SYMAuthor              Felix Rao
       
   839 //! @SYMCreationDate        30/03/2009
       
   840 //! @SYMTestCaseDesc        Gets the font which is the nearest to the given font specification.
       
   841 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   842 //!                         2. Install a test rasterizer.
       
   843 //!                         3. Add a font file specified in test data.
       
   844 //!                         4. Get the font specified in test data.
       
   845 //!                         5. Check the font is expected.
       
   846 //!                         6. Release the font.
       
   847 //!                         7. Remove all files.
       
   848 //!                         8. Destroy the CFontStore object.
       
   849 //! @SYMTestStatus          Implemented
       
   850 //! @SYMTestPriority        High
       
   851 //! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToMaxHeightInPixels() is called successfully.
       
   852 //!                         2. The font returned is as expected.
       
   853 //! @SYMTestType            CIT
       
   854     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   855         CREATE_OBJECT       CFontStore      fntStore
       
   856         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   857         COMMAND             fntStore        NewL
       
   858         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-InstallRasterizerL_command02
       
   859         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-AddFileL_command03
       
   860         COMMAND             fntStore        GetNearestFontToMaxHeightInPixels       GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-GetNearestFontToMaxHeightInPixels_command04
       
   861         COMMAND             bitmapFont      HeightInPixels                          GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-HeightInPixels_command05
       
   862         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-ReleaseFont_command06
       
   863         COMMAND             fntStore        RemoveFile
       
   864         COMMAND             fntStore        ~
       
   865     END_TEST_BLOCK
       
   866 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0071
       
   867 
       
   868 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0072
       
   869 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0072
       
   870 //! @SYMAPI     			CFontStore::GetNearestFontToMaxHeightInPixels(CFont{ptr}{ref},const TOpenFontSpec{ref}, TInt)
       
   871 //! @SYMAuthor              Felix Rao
       
   872 //! @SYMCreationDate        30/03/2009
       
   873 //! @SYMTestCaseDesc        Gets the font which is the nearest to the given font specification, which is not contained in font file.
       
   874 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   875 //!                         2. Install a test rasterizer.
       
   876 //!                         3. Add a font file specified in test data.
       
   877 //!                         4. Get the font specified in test data.
       
   878 //!                         5. Check the font is expected.
       
   879 //!                         6. Release the font.
       
   880 //!                         7. Remove all files.
       
   881 //!                         8. Destroy the CFontStore object.
       
   882 //! @SYMTestStatus          Implemented
       
   883 //! @SYMTestPriority        High
       
   884 //! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToMaxHeightInPixels() is called successfully.
       
   885 //!                         2. The font returned is as expected.
       
   886 //! @SYMTestType            CIT
       
   887     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   888         CREATE_OBJECT       CFontStore      fntStore
       
   889         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   890         COMMAND             fntStore        NewL
       
   891         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-InstallRasterizerL_command02
       
   892         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-AddFileL_command03
       
   893         COMMAND             fntStore        GetNearestFontToMaxHeightInPixels       GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-GetNearestFontToMaxHeightInPixels_command04
       
   894         COMMAND             bitmapFont      FontSpecInTwips                         GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-FontSpecInTwips_command05
       
   895         COMMAND             bitmapFont      HeightInPixels                          GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-HeightInPixels_command06
       
   896         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-ReleaseFont_command07
       
   897         COMMAND             fntStore        RemoveFile
       
   898         COMMAND             fntStore        ~
       
   899     END_TEST_BLOCK
       
   900 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0072
       
   901 
       
   902 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0081
       
   903 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0081
       
   904 //! @SYMAPI     			CFontStore::GetFontById(CFont{ptr}{ref},TUid{ref}, const TAlgStyle{ref})
       
   905 //! @SYMAuthor              Felix Rao
       
   906 //! @SYMCreationDate        30/03/2009
       
   907 //! @SYMTestCaseDesc        Gets a bitmap font using the given font UID and algorithmic style.
       
   908 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   909 //!                         2. Install a test rasterizer.
       
   910 //!                         3. Add a font file specified in test data.
       
   911 //!                         4. Get the font specified in test data.
       
   912 //!                         5. Check the font is expected.
       
   913 //!                         6. Release the font.
       
   914 //!                         7. Remove all files.
       
   915 //!                         8. Destroy all objects.
       
   916 //! @SYMTestStatus          Implemented
       
   917 //! @SYMTestPriority        High
       
   918 //! @SYMTestExpectedResults 1. CFontStore::GetFontById() is called successfully.
       
   919 //!                         2. The font returned is as expected.
       
   920 //! @SYMTestType            CIT
       
   921     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   922         CREATE_OBJECT       CFontStore      fntStore
       
   923         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   924         CREATE_OBJECT       TAlgStyle       algStyle
       
   925         COMMAND             fntStore        NewL
       
   926         COMMAND             algStyle        new
       
   927         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0081-AddFileL_command03
       
   928         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-FntStore-PublicApi-0081-GetFontById_command04
       
   929         COMMAND             bitmapFont      FontSpecInTwips             GRAPHICS-FNTSTORE-FntStore-PublicApi-0081-FontSpecInTwips_command05
       
   930         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-FntStore-PublicApi-0081-ReleaseFont_command06
       
   931         COMMAND             fntStore        RemoveFile
       
   932         COMMAND             algStyle        ~
       
   933         COMMAND             fntStore        ~
       
   934     END_TEST_BLOCK
       
   935 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0081
       
   936 
       
   937 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0082
       
   938 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0082
       
   939 //! @SYMAPI     			CFontStore::GetFontById(CFont{ptr}{ref},TUid{ref}, const TAlgStyle{ref})
       
   940 //! @SYMAuthor              Felix Rao
       
   941 //! @SYMCreationDate        30/03/2009
       
   942 //! @SYMTestCaseDesc        Negative case. Gets a bitmap font using invalid font UID.
       
   943 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   944 //!                         2. Install a test rasterizer.
       
   945 //!                         3. Add a font file specified in test data.
       
   946 //!                         4. Get the font specified in test data.
       
   947 //!                         5. Remove all files.
       
   948 //!                         6. Destroy all objects.
       
   949 //! @SYMTestStatus          Implemented
       
   950 //! @SYMTestPriority        High
       
   951 //! @SYMTestExpectedResults Get error code -1 KErrNotFound.
       
   952 //! @SYMTestType            CIT
       
   953     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   954         CREATE_OBJECT       CFontStore      fntStore
       
   955         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   956         CREATE_OBJECT       TAlgStyle       algStyle
       
   957         COMMAND             fntStore        NewL
       
   958         COMMAND             algStyle        new
       
   959         COMMAND             fntStore        InstallRasterizerL          GRAPHICS-FNTSTORE-FntStore-PublicApi-0082-InstallRasterizerL_command03
       
   960         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0082-AddFileL_command04
       
   961         COMMAND   !Error=-1 fntStore        GetFontById                 GRAPHICS-FNTSTORE-FntStore-PublicApi-0082-GetFontById_command05
       
   962         COMMAND             fntStore        RemoveFile
       
   963         COMMAND             algStyle        ~
       
   964         COMMAND             fntStore        ~
       
   965     END_TEST_BLOCK
       
   966 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0082
       
   967 
       
   968 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0091
       
   969 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0091
       
   970 //! @SYMAPI     			CFontStore::ReleaseFont(CFont{ptr})
       
   971 //! @SYMAuthor              Felix Rao
       
   972 //! @SYMCreationDate        30/03/2009
       
   973 //! @SYMTestCaseDesc        Releases the hold of a typeface store client on a specified font.
       
   974 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   975 //!                         2. Install a test rasterizer.
       
   976 //!                         3. Add a font file specified in test data.
       
   977 //!                         4. Get the font specified in test data.
       
   978 //!                         5. Release the font.
       
   979 //!                         6. Remove all files.
       
   980 //!                         7. Destroy the CFontStore object.
       
   981 //! @SYMTestStatus          Implemented
       
   982 //! @SYMTestPriority        High
       
   983 //! @SYMTestExpectedResults CFontStore::ReleaseFont() is called successfully.
       
   984 //! @SYMTestType            CIT
       
   985     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
   986         CREATE_OBJECT       CFontStore      fntStore
       
   987         CREATE_OBJECT       CBitmapFont     bitmapFont
       
   988         COMMAND             fntStore        NewL
       
   989         COMMAND             fntStore        InstallRasterizerL                      GRAPHICS-FNTSTORE-FntStore-PublicApi-0091-InstallRasterizerL_command02
       
   990         COMMAND             fntStore        AddFileL                                GRAPHICS-FNTSTORE-FntStore-PublicApi-0091-AddFileL_command03
       
   991         COMMAND             fntStore        GetNearestFontToMaxHeightInPixels       GRAPHICS-FNTSTORE-FntStore-PublicApi-0091-GetNearestFontToMaxHeightInPixels_command04
       
   992         COMMAND             fntStore        ReleaseFont                             GRAPHICS-FNTSTORE-FntStore-PublicApi-0091-ReleaseFont_command05
       
   993         COMMAND             fntStore        RemoveFile
       
   994         COMMAND             fntStore        ~
       
   995     END_TEST_BLOCK
       
   996 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0091
       
   997 
       
   998 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0101
       
   999 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0101
       
  1000 //! @SYMAPI     			CFontStore::NumTypefaces()
       
  1001 //! @SYMAuthor              Felix Rao
       
  1002 //! @SYMCreationDate        30/03/2009
       
  1003 //! @SYMTestCaseDesc        Gets the number of typefaces held in the font store.
       
  1004 //! @SYMTestActions         1. Create a CFontStore object.
       
  1005 //!                         2. Get the number of typefaces.
       
  1006 //!                         3. Add a font file specified in test data.
       
  1007 //!                         4. Get the number of typefaces.
       
  1008 //!                         5. Remove the file.
       
  1009 //!                         6. Destroy the CFontStore object.
       
  1010 //! @SYMTestStatus          Implemented
       
  1011 //! @SYMTestPriority        High
       
  1012 //! @SYMTestExpectedResults 1. CFontStore::NumTypefaces() is called successfully.
       
  1013 //!                         2. Before and after add file, number of typefaces is expected as specified in test data respectively.
       
  1014 //! @SYMTestType            CIT
       
  1015     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1016         CREATE_OBJECT       CFontStore      fntStore
       
  1017         COMMAND             fntStore        NewL
       
  1018         COMMAND             fntStore        NumTypefaces    GRAPHICS-FNTSTORE-FntStore-PublicApi-0101-NumTypefaces_command02
       
  1019         COMMAND             fntStore        AddFileL        GRAPHICS-FNTSTORE-FntStore-PublicApi-0101-AddFileL_command03
       
  1020         COMMAND             fntStore        NumTypefaces    GRAPHICS-FNTSTORE-FntStore-PublicApi-0101-NumTypefaces_command04
       
  1021         COMMAND             fntStore        RemoveFile      GRAPHICS-FNTSTORE-FntStore-PublicApi-0101-RemoveFile_command05
       
  1022         COMMAND             fntStore        ~
       
  1023     END_TEST_BLOCK
       
  1024 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0101
       
  1025 
       
  1026 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0111
       
  1027 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0111
       
  1028 //! @SYMAPI     			CFontStore::TypefaceSupport(TTypefaceSupport{ref},TInt)
       
  1029 //! @SYMAuthor              Felix Rao
       
  1030 //! @SYMCreationDate        31/03/2009
       
  1031 //! @SYMTestCaseDesc        Gets a typeface support object for the typeface in the font store represented by the given index.
       
  1032 //! @SYMTestActions         1. Create a CFontStore object.
       
  1033 //!                         2. Add a font file specified in test data.
       
  1034 //!                         3. Enumerate all typefaces in the font file.
       
  1035 //!                         4. Remove all files.
       
  1036 //!                         5. Destroy the CFontStore object.
       
  1037 //! @SYMTestStatus          Implemented
       
  1038 //! @SYMTestPriority        High
       
  1039 //! @SYMTestExpectedResults 1. CFontStore::TypefaceSupport() is called successfully.
       
  1040 //!                         2. All typefaces in the font store are enumerated.
       
  1041 //! @SYMTestType            CIT
       
  1042     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1043         CREATE_OBJECT       CFontStore      fntStore
       
  1044         COMMAND             fntStore        NewL
       
  1045         COMMAND             fntStore        AddFileL            GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-AddFileL_command02
       
  1046         COMMAND             fntStore        TypefaceSupport     GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command03
       
  1047         COMMAND             fntStore        TypefaceSupport     GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command04
       
  1048         COMMAND             fntStore        TypefaceSupport     GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command05
       
  1049         COMMAND             fntStore        TypefaceSupport     GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command06
       
  1050         COMMAND             fntStore        TypefaceSupport     GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command07
       
  1051         COMMAND             fntStore        TypefaceSupport     GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command08
       
  1052         COMMAND             fntStore        TypefaceSupport     GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command09
       
  1053         COMMAND             fntStore        TypefaceSupport     GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command10
       
  1054         COMMAND             fntStore        RemoveFile
       
  1055         COMMAND             fntStore        ~
       
  1056     END_TEST_BLOCK
       
  1057 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0111
       
  1058 
       
  1059 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0112
       
  1060 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0112
       
  1061 //! @SYMAPI     			CFontStore::TypefaceSupport(TTypefaceSupport{ref},TInt)
       
  1062 //! @SYMAuthor              Felix Rao
       
  1063 //! @SYMCreationDate        31/03/2009
       
  1064 //! @SYMTestCaseDesc        Negative case. Gets a typeface support object for the typeface in the font store with negative index.
       
  1065 //! @SYMTestActions         1. Create a CFontStore object.
       
  1066 //!                         2. Add a font file specified in test data.
       
  1067 //!                         3. Get a typeface support with index -1.
       
  1068 //! @SYMTestStatus          Implemented
       
  1069 //! @SYMTestPriority        High
       
  1070 //! @SYMTestExpectedResults Get panic code 0 and panic string FntStore.
       
  1071 //! @SYMTestType            CIT
       
  1072     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1073         CREATE_OBJECT       CFontStore      fntStore
       
  1074         COMMAND             fntStore        NewL
       
  1075         COMMAND             fntStore        AddFileL            GRAPHICS-FNTSTORE-FntStore-PublicApi-0112-AddFileL_command02
       
  1076         COMMAND             fntStore        TypefaceSupport     GRAPHICS-FNTSTORE-FntStore-PublicApi-0112-TypefaceSupport_command03
       
  1077     END_TEST_BLOCK     !PanicString=FntStore     !PanicCode=0
       
  1078     RUN_TEST_STEP	100	T_GraphicsFntstoreApi	utilityClearPanicDlg
       
  1079 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0112
       
  1080 
       
  1081 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0113
       
  1082 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0113
       
  1083 //! @SYMAPI     			CFontStore::TypefaceSupport(TTypefaceSupport{ref},TInt)
       
  1084 //! @SYMAuthor              Felix Rao
       
  1085 //! @SYMCreationDate        31/03/2009
       
  1086 //! @SYMTestCaseDesc        Negative case. Gets typeface support object for the typeface in the font store with index > NumTypefaces().
       
  1087 //! @SYMTestActions         1. Create a CFontStore object.
       
  1088 //!                         2. Add a font file specified in test data.
       
  1089 //!                         3. Get a typeface support with index 99.
       
  1090 //! @SYMTestStatus          Implemented
       
  1091 //! @SYMTestPriority        High
       
  1092 //! @SYMTestExpectedResults Can not get typeface. Uninitialized value is returned.
       
  1093 //! @SYMTestType            CIT
       
  1094     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1095         CREATE_OBJECT       CFontStore      fntStore
       
  1096         COMMAND             fntStore        NewL
       
  1097         COMMAND             fntStore        AddFileL            GRAPHICS-FNTSTORE-FntStore-PublicApi-0113-AddFileL_command02
       
  1098         COMMAND             fntStore        TypefaceSupport     GRAPHICS-FNTSTORE-FntStore-PublicApi-0113-TypefaceSupport_command03
       
  1099         COMMAND             fntStore        RemoveFile
       
  1100         COMMAND             fntStore        ~
       
  1101     END_TEST_BLOCK
       
  1102 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0113
       
  1103 
       
  1104 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0114
       
  1105 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0114
       
  1106 //! @SYMAPI     			CFontStore::TypefaceSupport(TTypefaceSupport{ref},TInt)
       
  1107 //! @SYMAuthor              Felix Rao
       
  1108 //! @SYMCreationDate        03/04/2009
       
  1109 //! @SYMTestCaseDesc        Negative case. Gets typeface support object for the typeface in the font store with index > NumTypefaces().
       
  1110 //! @SYMTestActions         1. Create a CFontStore object.
       
  1111 //!                         2. Install a rasterizer and add 2 font files.
       
  1112 //!                         3. Get a typeface support with index of the 1st typeface in 2nd file.
       
  1113 //! @SYMTestStatus          Implemented
       
  1114 //! @SYMTestPriority        High
       
  1115 //! @SYMTestExpectedResults CFontStore::TypefaceSupport() is called successfully.
       
  1116 //! @SYMTestType            CIT
       
  1117     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1118         CREATE_OBJECT       CFontStore      fntStore
       
  1119         COMMAND             fntStore        NewL
       
  1120         COMMAND             fntStore        InstallRasterizerL          GRAPHICS-FNTSTORE-FntStore-PublicApi-0114-InstallRasterizerL_command02
       
  1121         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0114-AddFileL_command03
       
  1122         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0114-AddFileL_command04
       
  1123         COMMAND             fntStore        TypefaceSupport             GRAPHICS-FNTSTORE-FntStore-PublicApi-0114-TypefaceSupport_command05
       
  1124         COMMAND             fntStore        RemoveFile
       
  1125         COMMAND             fntStore        ~
       
  1126     END_TEST_BLOCK
       
  1127 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0114
       
  1128 
       
  1129 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0121
       
  1130 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0121
       
  1131 //! @SYMAPI     			CFontStore::FontHeightInTwips(TInt, TInt)
       
  1132 //! @SYMAuthor              Felix Rao
       
  1133 //! @SYMCreationDate        30/03/2009
       
  1134 //! @SYMTestCaseDesc        Gets the height of a font in twips.
       
  1135 //! @SYMTestActions         1. Create a CFontStore object.
       
  1136 //!                         2. Install a test rasterizer.
       
  1137 //!                         3. Add a font file specified in test data.
       
  1138 //!                         4. Gets the height of a font specified in test data in twips.
       
  1139 //!                         5. Remove all files.
       
  1140 //!                         6. Destroy the CFontStore object.
       
  1141 //! @SYMTestStatus          Implemented
       
  1142 //! @SYMTestPriority        High
       
  1143 //! @SYMTestExpectedResults 1. CFontStore::FontHeightInTwips() is called successfully.
       
  1144 //! @SYMTestType            CIT
       
  1145     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1146         CREATE_OBJECT       CFontStore      fntStore
       
  1147         COMMAND             fntStore        NewL
       
  1148         COMMAND             fntStore        InstallRasterizerL          GRAPHICS-FNTSTORE-FntStore-PublicApi-0121-InstallRasterizerL_command02
       
  1149         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0121-AddFileL_command03
       
  1150         COMMAND             fntStore        FontHeightInTwips           GRAPHICS-FNTSTORE-FntStore-PublicApi-0121-FontHeightInTwips_command04
       
  1151         COMMAND             fntStore        RemoveFile
       
  1152         COMMAND             fntStore        ~
       
  1153     END_TEST_BLOCK
       
  1154 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0121
       
  1155 
       
  1156 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0122
       
  1157 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0122
       
  1158 //! @SYMAPI     			CFontStore::FontHeightInTwips(TInt, TInt)
       
  1159 //! @SYMAuthor              Felix Rao
       
  1160 //! @SYMCreationDate        30/03/2009
       
  1161 //! @SYMTestCaseDesc        Negative case. Gets the height of a font with combination of typeface index > NumTypefaces(), typeface index in range, height index > numheights, height index < 0.
       
  1162 //! @SYMTestActions         1. Create a CFontStore object.
       
  1163 //!                         2. Install a test rasterizer.
       
  1164 //!                         3. Add a font file specified in test data.
       
  1165 //!                         4. Gets the height of a font with typeface index > NumTypefaces().
       
  1166 //!                         5. Gets the height of a font with typeface index in range and height index > numheights.
       
  1167 //!                         6. Gets the height of a font with typeface index in range and height index < 0.
       
  1168 //!                         7. Remove all files.
       
  1169 //!                         8. Destroy the CFontStore object.
       
  1170 //! @SYMTestStatus          Implemented
       
  1171 //! @SYMTestPriority        High
       
  1172 //! @SYMTestExpectedResults 1. CFontStore::FontHeightInTwips() is called successfully.
       
  1173 //!                         2. The 1st and 3rd call of CFontStore::FontHeightInTwips() returns 0.
       
  1174 //!                         3. The 2nd call of CFontStore::FontHeightInTwips() returns positive number.
       
  1175 //! @SYMTestType            CIT
       
  1176     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1177         CREATE_OBJECT       CFontStore      fntStore
       
  1178         COMMAND             fntStore        NewL
       
  1179         COMMAND             fntStore        InstallRasterizerL          GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-InstallRasterizerL_command02
       
  1180         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-AddFileL_command03
       
  1181         COMMAND             fntStore        FontHeightInTwips           GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-FontHeightInTwips_command04
       
  1182         COMMAND             fntStore        FontHeightInTwips           GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-FontHeightInTwips_command05
       
  1183         COMMAND             fntStore        FontHeightInTwips           GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-FontHeightInTwips_command06
       
  1184         COMMAND             fntStore        RemoveFile
       
  1185         COMMAND             fntStore        ~
       
  1186     END_TEST_BLOCK
       
  1187 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0122
       
  1188 
       
  1189 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0123
       
  1190 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0123
       
  1191 //! @SYMAPI     			CFontStore::FontHeightInTwips(TInt, TInt)
       
  1192 //! @SYMAuthor              Felix Rao
       
  1193 //! @SYMCreationDate        30/03/2009
       
  1194 //! @SYMTestCaseDesc        Negative case. Gets the height of a font with negative typeface index.
       
  1195 //! @SYMTestActions         1. Create a CFontStore object.
       
  1196 //!                         2. Install a test rasterizer.
       
  1197 //!                         3. Add a font file specified in test data.
       
  1198 //!                         4. Gets the height of a font with negative typeface index.
       
  1199 //! @SYMTestStatus          Implemented
       
  1200 //! @SYMTestPriority        High
       
  1201 //! @SYMTestExpectedResults Get panic code 0 and panic string FntStore.
       
  1202 //! @SYMTestType            CIT
       
  1203     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1204         CREATE_OBJECT       CFontStore      fntStore
       
  1205         COMMAND             fntStore        NewL
       
  1206         COMMAND             fntStore        InstallRasterizerL          GRAPHICS-FNTSTORE-FntStore-PublicApi-0123-InstallRasterizerL_command02
       
  1207         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0123-AddFileL_command03
       
  1208         COMMAND             fntStore        FontHeightInTwips           GRAPHICS-FNTSTORE-FntStore-PublicApi-0123-FontHeightInTwips_command04
       
  1209     END_TEST_BLOCK     !PanicString=FntStore     !PanicCode=0
       
  1210     RUN_TEST_STEP	100	T_GraphicsFntstoreApi	utilityClearPanicDlg
       
  1211 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0123
       
  1212 
       
  1213 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0131
       
  1214 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0131
       
  1215 //! @SYMAPI     			CFontStore::FontHeightInPixels(TInt, TInt)
       
  1216 //! @SYMAuthor              Felix Rao
       
  1217 //! @SYMCreationDate        31/03/2009
       
  1218 //! @SYMTestCaseDesc        Gets the height of a font in twips.
       
  1219 //! @SYMTestActions         1. Create a CFontStore object.
       
  1220 //!                         2. Install a test rasterizer.
       
  1221 //!                         3. Add a open font file specified in test data.
       
  1222 //!                         4. Gets the height of a font specified in test data in twips.
       
  1223 //!                         5. Remove all files.
       
  1224 //!                         6. Destroy the CFontStore object.
       
  1225 //! @SYMTestStatus          Implemented
       
  1226 //! @SYMTestPriority        High
       
  1227 //! @SYMTestExpectedResults 1. CFontStore::FontHeightInPixels() is called successfully.
       
  1228 //! @SYMTestType            CIT
       
  1229     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1230         CREATE_OBJECT       CFontStore      fntStore
       
  1231         COMMAND             fntStore        NewL
       
  1232         COMMAND             fntStore        InstallRasterizerL          GRAPHICS-FNTSTORE-FntStore-PublicApi-0131-InstallRasterizerL_command02
       
  1233         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0131-AddFileL_command03
       
  1234         COMMAND             fntStore        FontHeightInPixels          GRAPHICS-FNTSTORE-FntStore-PublicApi-0131-FontHeightInPixels_command04
       
  1235         COMMAND             fntStore        RemoveFile
       
  1236         COMMAND             fntStore        ~
       
  1237     END_TEST_BLOCK
       
  1238 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0131
       
  1239 
       
  1240 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0132
       
  1241 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0132
       
  1242 //! @SYMAPI     			CFontStore::FontHeightInPixels(TInt, TInt)
       
  1243 //! @SYMAuthor              Felix Rao
       
  1244 //! @SYMCreationDate        31/03/2009
       
  1245 //! @SYMTestCaseDesc        Negative case. Gets the height of a font with combination of typeface index > NumTypefaces(), typeface index in range, height index > numheights, height index < 0.
       
  1246 //! @SYMTestActions         1. Create a CFontStore object.
       
  1247 //!                         2. Install a test rasterizer.
       
  1248 //!                         3. Add a font file specified in test data.
       
  1249 //!                         4. Gets the height of a font with typeface index > NumTypefaces().
       
  1250 //!                         5. Gets the height of a font with typeface index in range and height index > numheights.
       
  1251 //!                         6. Gets the height of a font with typeface index in range and height index < 0.
       
  1252 //!                         7. Remove all files.
       
  1253 //!                         8. Destroy the CFontStore object.
       
  1254 //! @SYMTestStatus          Implemented
       
  1255 //! @SYMTestPriority        High
       
  1256 //! @SYMTestExpectedResults 1. CFontStore::FontHeightInPixels() is called successfully.
       
  1257 //!                         2. The 1st and 3rd call of CFontStore::FontHeightInPixels() returns 0.
       
  1258 //!                         3. The 2nd call of CFontStore::FontHeightInPixels() returns the biggest height.
       
  1259 //! @SYMTestType            CIT
       
  1260     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1261         CREATE_OBJECT       CFontStore      fntStore
       
  1262         COMMAND             fntStore        NewL
       
  1263         COMMAND             fntStore        InstallRasterizerL          GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-InstallRasterizerL_command02
       
  1264         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-AddFileL_command03
       
  1265         COMMAND             fntStore        FontHeightInPixels          GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-FontHeightInPixels_command04
       
  1266         COMMAND             fntStore        FontHeightInPixels          GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-FontHeightInPixels_command05
       
  1267         COMMAND             fntStore        FontHeightInPixels          GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-FontHeightInPixels_command06
       
  1268         COMMAND             fntStore        RemoveFile
       
  1269         COMMAND             fntStore        ~
       
  1270     END_TEST_BLOCK
       
  1271 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0132
       
  1272 
       
  1273 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0133
       
  1274 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0133
       
  1275 //! @SYMAPI     			CFontStore::FontHeightInPixels(TInt, TInt)
       
  1276 //! @SYMAuthor              Felix Rao
       
  1277 //! @SYMCreationDate        31/03/2009
       
  1278 //! @SYMTestCaseDesc        Negative case. Gets the height of a font with negative typeface index.
       
  1279 //! @SYMTestActions         1. Create a CFontStore object.
       
  1280 //!                         2. Install a test rasterizer.
       
  1281 //!                         3. Add a font file specified in test data.
       
  1282 //!                         4. Gets the height of a font with negative typeface index.
       
  1283 //! @SYMTestStatus          Implemented
       
  1284 //! @SYMTestPriority        High
       
  1285 //! @SYMTestExpectedResults Get panic code 0 and panic string FntStore.
       
  1286 //! @SYMTestType            CIT
       
  1287     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1288         CREATE_OBJECT       CFontStore      fntStore
       
  1289         COMMAND             fntStore        NewL
       
  1290         COMMAND             fntStore        InstallRasterizerL          GRAPHICS-FNTSTORE-FntStore-PublicApi-0133-InstallRasterizerL_command02
       
  1291         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0133-AddFileL_command03
       
  1292         COMMAND             fntStore        FontHeightInPixels          GRAPHICS-FNTSTORE-FntStore-PublicApi-0133-FontHeightInPixels_command04
       
  1293     END_TEST_BLOCK     !PanicString=FntStore     !PanicCode=0
       
  1294     RUN_TEST_STEP	100	T_GraphicsFntstoreApi	utilityClearPanicDlg
       
  1295 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0133
       
  1296 
       
  1297 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0134
       
  1298 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0134
       
  1299 //! @SYMAPI     			CFontStore::FontHeightInPixels(TInt, TInt)
       
  1300 //! @SYMAuthor              Felix Rao
       
  1301 //! @SYMCreationDate        03/04/2009
       
  1302 //! @SYMTestCaseDesc        Gets the height of a font in twips.
       
  1303 //! @SYMTestActions         1. Create a CFontStore object.
       
  1304 //!                         2. Add a font file specified in test data.
       
  1305 //!                         3. Gets the height of a font specified in test data in twips.
       
  1306 //!                         4. Remove all files.
       
  1307 //!                         5. Destroy the CFontStore object.
       
  1308 //! @SYMTestStatus          Implemented
       
  1309 //! @SYMTestPriority        High
       
  1310 //! @SYMTestExpectedResults 1. CFontStore::FontHeightInPixels() is called successfully.
       
  1311 //! @SYMTestType            CIT
       
  1312     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1313         CREATE_OBJECT       CFontStore      fntStore
       
  1314         COMMAND             fntStore        NewL
       
  1315         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0134-AddFileL_command02
       
  1316         COMMAND             fntStore        FontHeightInPixels          GRAPHICS-FNTSTORE-FntStore-PublicApi-0134-FontHeightInPixels_command03
       
  1317         COMMAND             fntStore        RemoveFile
       
  1318         COMMAND             fntStore        ~
       
  1319     END_TEST_BLOCK
       
  1320 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0134
       
  1321 
       
  1322 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0141
       
  1323 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0141
       
  1324 //! @SYMAPI     			CFontStore::InstallRasterizerL(COpenFontRasterizer{ptr})
       
  1325 //! @SYMAuthor              Felix Rao
       
  1326 //! @SYMCreationDate        31/03/2009
       
  1327 //! @SYMTestCaseDesc        Installs and takes ownership of an Open Font rasterizer.
       
  1328 //! @SYMTestActions         1. Create a CFontStore object.
       
  1329 //!                         2. Add a font file specified in test data.
       
  1330 //!                         3. Install a test rasterizer.
       
  1331 //!                         4. Add a font file specified in test data.
       
  1332 //!                         5. Remove all files.
       
  1333 //!                         6. Destroy CFontStore object.
       
  1334 //! @SYMTestStatus          Implemented
       
  1335 //! @SYMTestPriority        High
       
  1336 //! @SYMTestExpectedResults 1. CFontStore::InstallRasterizerL() is called successfully.
       
  1337 //!                         2. Before install rasterizer, CFontStore::AddFileL() returns error -25 (KErrEof).
       
  1338 //!                         3. After install rasterizer, CFontStore::AddFileL() returns 0 (KErrNone).
       
  1339 //! @SYMTestType            CIT
       
  1340     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1341         CREATE_OBJECT       CFontStore      fntStore
       
  1342         COMMAND             fntStore        NewL
       
  1343         COMMAND  !Error=-25 fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0141-AddFileL_command02
       
  1344         COMMAND             fntStore        InstallRasterizerL          GRAPHICS-FNTSTORE-FntStore-PublicApi-0141-InstallRasterizerL_command03
       
  1345         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-FntStore-PublicApi-0141-AddFileL_command04
       
  1346         COMMAND             fntStore        RemoveFile
       
  1347         COMMAND             fntStore        ~
       
  1348     END_TEST_BLOCK
       
  1349 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0141
       
  1350 
       
  1351 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0142
       
  1352 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0142
       
  1353 //! @SYMAPI     			CFontStore::InstallRasterizerL(COpenFontRasterizer{ptr})
       
  1354 //! @SYMAuthor              Felix Rao
       
  1355 //! @SYMCreationDate        31/03/2009
       
  1356 //! @SYMTestCaseDesc        Negative case. Installs a null rasterizer.
       
  1357 //! @SYMTestActions         1. Create a CFontStore object.
       
  1358 //!                         2. Install a null rasterizer.
       
  1359 //!                         3. Destroy CFontStore object.
       
  1360 //! @SYMTestStatus          Implemented
       
  1361 //! @SYMTestPriority        High
       
  1362 //! @SYMTestExpectedResults CFontStore::InstallRasterizerL() is called successfully.
       
  1363 //! @SYMTestType            CIT
       
  1364     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1365         CREATE_OBJECT       CFontStore      fntStore
       
  1366         COMMAND             fntStore        NewL
       
  1367         COMMAND             fntStore        InstallRasterizerL          GRAPHICS-FNTSTORE-FntStore-PublicApi-0142-InstallRasterizerL_command02
       
  1368         COMMAND             fntStore        ~
       
  1369     END_TEST_BLOCK
       
  1370 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0142
       
  1371 
       
  1372 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0151
       
  1373 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0151
       
  1374 //! @SYMAPI     			CFontStore::DeleteSessionCache(TInt)
       
  1375 //! @SYMAuthor              Felix Rao
       
  1376 //! @SYMCreationDate        31/03/2009
       
  1377 //! @SYMTestCaseDesc        Deletes the glyph cache belonging to a particular client.
       
  1378 //! @SYMTestActions         1. Create a CFontStore object.
       
  1379 //!                         2. Delete a session cache specified by session handle.
       
  1380 //!                         3. Destroy CFontStore object.
       
  1381 //! @SYMTestStatus          Implemented
       
  1382 //! @SYMTestPriority        High
       
  1383 //! @SYMTestExpectedResults CFontStore::DeleteSessionCache() is called successfully.
       
  1384 //! @SYMTestType            CIT
       
  1385     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1386         CREATE_OBJECT       CFontStore      fntStore
       
  1387         COMMAND             fntStore        NewL
       
  1388         COMMAND             fntStore        DeleteSessionCache          GRAPHICS-FNTSTORE-FntStore-PublicApi-0151-DeleteSessionCache_command02
       
  1389         COMMAND             fntStore        ~
       
  1390     END_TEST_BLOCK
       
  1391 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0151
       
  1392 
       
  1393 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0161
       
  1394 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0161
       
  1395 //! @SYMAPI     			CFontStore::DefaultBitmapType()
       
  1396 //! @SYMAuthor              Felix Rao
       
  1397 //! @SYMCreationDate        31/03/2009
       
  1398 //! @SYMTestCaseDesc        Get the default bitmap type.
       
  1399 //! @SYMTestActions         1. Create a CFontStore object.
       
  1400 //!                         2. Get the default bitmap type.
       
  1401 //!                         3. Destroy CFontStore object.
       
  1402 //! @SYMTestStatus          Implemented
       
  1403 //! @SYMTestPriority        High
       
  1404 //! @SYMTestExpectedResults CFontStore::DefaultBitmapType() is called successfully.
       
  1405 //! @SYMTestType            CIT
       
  1406     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1407         CREATE_OBJECT       CFontStore      fntStore
       
  1408         COMMAND             fntStore        NewL
       
  1409         COMMAND             fntStore        DefaultBitmapType           GRAPHICS-FNTSTORE-FntStore-PublicApi-0161-DefaultBitmapType_command02
       
  1410         COMMAND             fntStore        ~
       
  1411     END_TEST_BLOCK
       
  1412 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0161
       
  1413 
       
  1414 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0171
       
  1415 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0171
       
  1416 //! @SYMAPI     			CFontStore::SetDefaultBitmapType(TGlyphBitmapType)
       
  1417 //! @SYMAuthor              Felix Rao
       
  1418 //! @SYMCreationDate        31/03/2009
       
  1419 //! @SYMTestCaseDesc        Sets a default bitmap type.
       
  1420 //! @SYMTestActions         1. Create a CFontStore object.
       
  1421 //!                         2. Set the default bitmap type.
       
  1422 //!                         3. Check the bitmap type set using DefaultBitmapType.
       
  1423 //!                         4. Set the default bitmap type.
       
  1424 //!                         5. Check the bitmap type set using DefaultBitmapType.
       
  1425 //!                         6. Set the default bitmap type.
       
  1426 //!                         7. Check the bitmap type set using DefaultBitmapType.
       
  1427 //!                         8. Set the default bitmap type.
       
  1428 //!                         9. Check the bitmap type set using DefaultBitmapType.
       
  1429 //!                         10. Set the default bitmap type.
       
  1430 //!                         11. Check the bitmap type set using DefaultBitmapType.
       
  1431 //!                         12. Destroy CFontStore object.
       
  1432 //! @SYMTestStatus          Implemented
       
  1433 //! @SYMTestPriority        High
       
  1434 //! @SYMTestExpectedResults CFontStore::SetDefaultBitmapType() is called successfully.
       
  1435 //! @SYMTestType            CIT
       
  1436     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1437         CREATE_OBJECT       CFontStore      fntStore
       
  1438         COMMAND             fntStore        NewL
       
  1439         COMMAND             fntStore        SetDefaultBitmapType        GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command02
       
  1440         COMMAND             fntStore        DefaultBitmapType           GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command03
       
  1441         COMMAND             fntStore        SetDefaultBitmapType        GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command04
       
  1442         COMMAND             fntStore        DefaultBitmapType           GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command05
       
  1443         COMMAND             fntStore        SetDefaultBitmapType        GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command06
       
  1444         COMMAND             fntStore        DefaultBitmapType           GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command07
       
  1445         COMMAND             fntStore        SetDefaultBitmapType        GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command08
       
  1446         COMMAND             fntStore        DefaultBitmapType           GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command09
       
  1447         COMMAND             fntStore        SetDefaultBitmapType        GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command10
       
  1448         COMMAND             fntStore        DefaultBitmapType           GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command11
       
  1449         COMMAND             fntStore        ~
       
  1450     END_TEST_BLOCK
       
  1451 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0171
       
  1452 
       
  1453 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0172
       
  1454 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0172
       
  1455 //! @SYMAPI     			CFontStore::SetDefaultBitmapType(TGlyphBitmapType)
       
  1456 //! @SYMAuthor              Felix Rao
       
  1457 //! @SYMCreationDate        31/03/2009
       
  1458 //! @SYMTestCaseDesc        Negative case. Sets a default bitmap type with invalid number.
       
  1459 //! @SYMTestActions         1. Create a CFontStore object.
       
  1460 //!                         2. Set the default bitmap type.
       
  1461 //!                         3. Check the bitmap type set using DefaultBitmapType.
       
  1462 //!                         4. Destroy CFontStore object.
       
  1463 //! @SYMTestStatus          Implemented
       
  1464 //! @SYMTestPriority        High
       
  1465 //! @SYMTestExpectedResults CFontStore::SetDefaultBitmapType() is called successfully.
       
  1466 //! @SYMTestType            CIT
       
  1467     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1468         CREATE_OBJECT       CFontStore      fntStore
       
  1469         COMMAND             fntStore        NewL
       
  1470         COMMAND             fntStore        SetDefaultBitmapType        GRAPHICS-FNTSTORE-FntStore-PublicApi-0172-SetDefaultBitmapType_command02
       
  1471         COMMAND             fntStore        DefaultBitmapType           GRAPHICS-FNTSTORE-FntStore-PublicApi-0172-DefaultBitmapType_command03
       
  1472         COMMAND             fntStore        ~
       
  1473     END_TEST_BLOCK
       
  1474 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0172
       
  1475 
       
  1476 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0181
       
  1477 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0181
       
  1478 //! @SYMAPI     			CFontStore::InstallShaperFactoryL(CShaperFactory{ptr})
       
  1479 //! @SYMAuthor              Felix Rao
       
  1480 //! @SYMCreationDate        31/03/2009
       
  1481 //! @SYMTestCaseDesc        Installs and takes ownership of a shaper.
       
  1482 //! @SYMTestActions         1. Create a CFontStore object.
       
  1483 //!                         3. Install a test shaper.
       
  1484 //!                         3. Destroy CFontStore object.
       
  1485 //! @SYMTestStatus          Implemented
       
  1486 //! @SYMTestPriority        High
       
  1487 //! @SYMTestExpectedResults CFontStore::InstallShaperFactoryL() is called successfully.
       
  1488 //! @SYMTestType            CIT
       
  1489     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1490         CREATE_OBJECT       CFontStore      fntStore
       
  1491         COMMAND             fntStore        NewL
       
  1492         COMMAND             fntStore        InstallShaperFactoryL       GRAPHICS-FNTSTORE-FntStore-PublicApi-0181-InstallShaperFactoryL_command02
       
  1493         COMMAND             fntStore        ~
       
  1494     END_TEST_BLOCK
       
  1495 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0181
       
  1496 
       
  1497 START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0182
       
  1498 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-FntStore-PublicApi-0182
       
  1499 //! @SYMAPI     			CFontStore::InstallShaperFactoryL(CShaperFactory{ptr})
       
  1500 //! @SYMAuthor              Felix Rao
       
  1501 //! @SYMCreationDate        31/03/2009
       
  1502 //! @SYMTestCaseDesc        Negative case. Installs and takes ownership of a null shaper.
       
  1503 //! @SYMTestActions         1. Create a CFontStore object.
       
  1504 //!                         3. Install a null shaper.
       
  1505 //!                         3. Destroy CFontStore object.
       
  1506 //! @SYMTestStatus          Implemented
       
  1507 //! @SYMTestPriority        High
       
  1508 //! @SYMTestExpectedResults CFontStore::InstallShaperFactoryL() is called successfully.
       
  1509 //! @SYMTestType            CIT
       
  1510     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini
       
  1511         CREATE_OBJECT       CFontStore      fntStore
       
  1512         COMMAND             fntStore        NewL
       
  1513         COMMAND             fntStore        InstallShaperFactoryL       GRAPHICS-FNTSTORE-FntStore-PublicApi-0182-InstallShaperFactoryL_command02
       
  1514         COMMAND             fntStore        ~
       
  1515     END_TEST_BLOCK
       
  1516 END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0182
       
  1517