graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.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-BITGDI-FbsBitGc-PublicApi-manual
       
    18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
       
    19 
       
    20 ///////////////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.script
       
    22 //
       
    23 // Tests all public elements of the CFbsBitGc class
       
    24 // as a means of confidence that the API works as expected.
       
    25 //
       
    26 // The purpose is to provide a regression test suite of PublishedAll APIs for CFbsBitGc.
       
    27 //
       
    28 // The tests are fully manual.
       
    29 ///////////////////////////////////////////////////////////////////////////////
       
    30 
       
    31 
       
    32 LOAD_SUITE      T_GraphicsBitgdiApi
       
    33 DELAY           1000
       
    34 
       
    35 
       
    36 START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001
       
    37 //! @SYMTestCaseID          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001
       
    38 //! @SYMAPI                 CFbsBitGc::Plot(const TPoint{ref})
       
    39 //! @SYMAuthor              Forbes Fu
       
    40 //! @SYMCreationDate        02/04/2009
       
    41 //! @SYMTestCaseDesc        Draw a single point.
       
    42 //! @SYMTestActions         1. Create and connect a RFbsSession object.
       
    43 //!                         2. Create a CFbsScreenDevice object.
       
    44 //!                         3. Create a CFbsBitGc object and activate it.
       
    45 //!                         4. Clear the device.
       
    46 //!                         5. Set pen size TSize(2, 2).
       
    47 //!                         6. Set pen color TRgb(255, 0, 0).
       
    48 //!                         7. Draw a single point at TPoint(100, 100).
       
    49 //!                         8. Check the point.
       
    50 //!                         9. Check manually.
       
    51 //!                         10.Destruct CFbsBitGc object, CFbsScreenDevice object and disconnect RFbsSession object.
       
    52 //! @SYMTestStatus          Implemented
       
    53 //! @SYMTestPriority        High
       
    54 //! @SYMTestExpectedResults A red point is drawn as expected.
       
    55 //! @SYMTestType            CIT
       
    56 
       
    57     START_TEST_BLOCK        100   T_GraphicsBitgdiApi         \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini
       
    58         CREATE_OBJECT       RFbsSession          fbsSession
       
    59         CREATE_OBJECT       CFbsScreenDevice     fbsScrDev
       
    60         CREATE_OBJECT       CFbsBitGc            fbsBitGc
       
    61         COMMAND             fbsSession           Connect
       
    62         COMMAND             fbsScrDev            NewL                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-NewL_command02
       
    63         COMMAND             fbsBitGc             NewL
       
    64         COMMAND             fbsBitGc             Activate                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-Activate_command04
       
    65         COMMAND             fbsBitGc             Clear
       
    66         COMMAND             fbsBitGc             SetPenSize                             GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-SetPenSize_command06
       
    67         COMMAND             fbsBitGc             SetPenColor                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-SetPenColor_command07
       
    68         COMMAND             fbsBitGc             Plot                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-Plot_command08
       
    69         COMMAND             fbsScrDev            Update
       
    70         DELAY               6000000
       
    71         COMMAND             fbsScrDev            checkPixels                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-checkPixels_command11
       
    72         COMMAND             fbsBitGc             PromptMessage                          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-PromptMessage_command12   
       
    73         COMMAND             fbsBitGc             ~
       
    74         COMMAND             fbsScrDev            ~
       
    75         COMMAND             fbsSession           Disconnect
       
    76      END_TEST_BLOCK
       
    77 END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001
       
    78 
       
    79 
       
    80 START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002
       
    81 //! @SYMTestCaseID          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002
       
    82 //! @SYMAPI                 CFbsBitGc::Plot(const TPoint{ref})
       
    83 //! @SYMAuthor              Forbes Fu
       
    84 //! @SYMCreationDate        02/04/2009
       
    85 //! @SYMTestCaseDesc        Draw five points.
       
    86 //! @SYMTestActions         1. Create and connect a RFbsSession object.
       
    87 //!                         2. Create a CFbsScreenDevice object.
       
    88 //!                         3. Create a CFbsBitGc object and activate it.
       
    89 //!                         4. Clear the device.
       
    90 //!                         5. Set pen size TSize(2, 2).
       
    91 //!                         6. Set pen color TRgb(255, 0, 0).
       
    92 //!                         7. Draw a point at TPoint(100, 30).
       
    93 //!                         8. Set pen color TRgb(0, 255, 0).
       
    94 //!                         9. Draw a point at TPoint(50, 70).
       
    95 //!                         10.Draw a point at TPoint(150, 70).
       
    96 //!                         11.Set pen color TRgb(0, 0, 255).
       
    97 //!                         12.Draw a point at TPoint(75, 120).
       
    98 //!                         13.Draw a point at TPoint(125, 120).
       
    99 //!                         14.Check the five points.
       
   100 //!                         15.Check manually.
       
   101 //!                         16.Destruct CFbsBitGc object, CFbsScreenDevice object and disconnect RFbsSession object.
       
   102 //! @SYMTestStatus          Implemented
       
   103 //! @SYMTestPriority        High
       
   104 //! @SYMTestExpectedResults Five points are drawn as expected.
       
   105 //! @SYMTestType            CIT
       
   106 
       
   107     START_TEST_BLOCK        100   T_GraphicsBitgdiApi         \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini
       
   108         CREATE_OBJECT       RFbsSession          fbsSession
       
   109         CREATE_OBJECT       CFbsScreenDevice     fbsScrDev
       
   110         CREATE_OBJECT       CFbsBitGc            fbsBitGc
       
   111         COMMAND             fbsSession           Connect
       
   112         COMMAND             fbsScrDev            NewL                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-NewL_command02
       
   113         COMMAND             fbsBitGc             NewL
       
   114         COMMAND             fbsBitGc             Activate                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Activate_command04
       
   115         COMMAND             fbsBitGc             Clear
       
   116         COMMAND             fbsBitGc             SetPenSize                             GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-SetPenSize_command06
       
   117         COMMAND             fbsBitGc             SetPenColor                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-SetPenColor_command07
       
   118         COMMAND             fbsBitGc             Plot                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command08
       
   119         COMMAND             fbsBitGc             SetPenColor                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-SetPenColor_command09
       
   120         COMMAND             fbsBitGc             Plot                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command10
       
   121         COMMAND             fbsBitGc             Plot                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command11
       
   122         COMMAND             fbsBitGc             SetPenColor                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-SetPenColor_command12
       
   123         COMMAND             fbsBitGc             Plot                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command13
       
   124         COMMAND             fbsBitGc             Plot                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command14
       
   125         COMMAND             fbsScrDev            Update
       
   126         DELAY               6000000
       
   127         COMMAND             fbsScrDev            checkPixels                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-checkPixels_command17
       
   128         COMMAND             fbsBitGc             PromptMessage                          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-PromptMessage_command18   
       
   129         COMMAND             fbsBitGc             ~
       
   130         COMMAND             fbsScrDev            ~
       
   131         COMMAND             fbsSession           Disconnect
       
   132      END_TEST_BLOCK
       
   133 END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002
       
   134 
       
   135 
       
   136 START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003
       
   137 //! @SYMTestCaseID          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003
       
   138 //! @SYMAPI                 CFbsBitGc::DrawLine(const TPoint{ref}, const TPoint{ref})
       
   139 //! @SYMAuthor              Forbes Fu
       
   140 //! @SYMCreationDate        02/04/2009
       
   141 //! @SYMTestCaseDesc        Draws a straight line.
       
   142 //! @SYMTestActions         1. Create and connect a RFbsSession object.
       
   143 //!                         2. Create a CFbsScreenDevice object.
       
   144 //!                         3. Create a CFbsBitGc object and activate it.
       
   145 //!                         4. Clear the device.
       
   146 //!                         5. Set pen size TSize(1, 1).
       
   147 //!                         6. Set pen color TRgb(255, 0, 0).
       
   148 //!                         7. Draw a straight line between TPoint(20, 100) and TPoint(120, 100).
       
   149 //!                         8. Check the line.
       
   150 //!                         9. Check manually.
       
   151 //!                         10.Destruct CFbsBitGc object, CFbsScreenDevice object and disconnect RFbsSession object.
       
   152 //! @SYMTestStatus          Implemented
       
   153 //! @SYMTestPriority        High
       
   154 //! @SYMTestExpectedResults A red straight line is drawn as expected.
       
   155 //! @SYMTestType            CIT
       
   156 
       
   157     START_TEST_BLOCK        100   T_GraphicsBitgdiApi         \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini
       
   158         CREATE_OBJECT       RFbsSession          fbsSession
       
   159         CREATE_OBJECT       CFbsScreenDevice     fbsScrDev
       
   160         CREATE_OBJECT       CFbsBitGc            fbsBitGc
       
   161         COMMAND             fbsSession           Connect
       
   162         COMMAND             fbsScrDev            NewL                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-NewL_command02
       
   163         COMMAND             fbsBitGc             NewL
       
   164         COMMAND             fbsBitGc             Activate                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-Activate_command04
       
   165         COMMAND             fbsBitGc             Clear
       
   166         COMMAND             fbsBitGc             SetPenSize                             GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-SetPenSize_command06
       
   167         COMMAND             fbsBitGc             SetPenColor                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-SetPenColor_command07
       
   168         COMMAND             fbsBitGc             DrawLine                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-DrawLine_command08
       
   169         COMMAND             fbsScrDev            Update
       
   170         DELAY               6000000
       
   171         COMMAND             fbsScrDev            checkLineColor                         GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-checkLineColor_command11
       
   172         COMMAND             fbsBitGc             PromptMessage                          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-PromptMessage_command12
       
   173         COMMAND             fbsBitGc             ~
       
   174         COMMAND             fbsScrDev            ~
       
   175         COMMAND             fbsSession           Disconnect
       
   176      END_TEST_BLOCK
       
   177 END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003
       
   178 
       
   179 START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004
       
   180 //! @SYMTestCaseID          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004
       
   181 //! @SYMAPI                 CFbsBitGc::DrawLine(const TPoint{ref}, const TPoint{ref})
       
   182 //! @SYMAuthor              Forbes Fu
       
   183 //! @SYMCreationDate        02/04/2009
       
   184 //! @SYMTestCaseDesc        Draws three lines.
       
   185 //! @SYMTestActions         1. Create and connect a RFbsSession object.
       
   186 //!                         2. Create a CFbsScreenDevice object.
       
   187 //!                         3. Create a CFbsBitGc object and activate it.
       
   188 //!                         4. Clear the device.
       
   189 //!                         5. Set pen size TSize(1, 1).
       
   190 //!                         6. Set pen color TRgb(255, 0, 0).
       
   191 //!                         7. Draw a line between TPoint(80, 20) and TPoint(80, 100).
       
   192 //!                         8. Set pen color TRgb(0, 255, 0).
       
   193 //!                         9. Draw a line between TPoint(20, 20) and TPoint(60, 100).
       
   194 //!                         10.Set pen color TRgb(0, 0, 255).
       
   195 //!                         11.Draw a line between TPoint(120, 100) and TPoint(100, 100).
       
   196 //!                         12.Check three lines.
       
   197 //!                         13.Check manually.
       
   198 //!                         14.Destruct CFbsBitGc object, CFbsScreenDevice object and disconnect RFbsSession object.
       
   199 //! @SYMTestStatus          Implemented
       
   200 //! @SYMTestPriority        High
       
   201 //! @SYMTestExpectedResults Three lines are drawn as expected.
       
   202 //! @SYMTestType            CIT
       
   203 
       
   204     START_TEST_BLOCK        100   T_GraphicsBitgdiApi         \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini
       
   205         CREATE_OBJECT       RFbsSession          fbsSession
       
   206         CREATE_OBJECT       CFbsScreenDevice     fbsScrDev
       
   207         CREATE_OBJECT       CFbsBitGc            fbsBitGc
       
   208         COMMAND             fbsSession           Connect
       
   209         COMMAND             fbsScrDev            NewL                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-NewL_command02
       
   210         COMMAND             fbsBitGc             NewL
       
   211         COMMAND             fbsBitGc             Activate                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-Activate_command04
       
   212         COMMAND             fbsBitGc             Clear
       
   213         COMMAND             fbsBitGc             SetPenSize                             GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-SetPenSize_command06
       
   214         COMMAND             fbsBitGc             SetPenColor                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-SetPenColor_command07
       
   215         COMMAND             fbsBitGc             DrawLine                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-DrawLine_command08
       
   216         COMMAND             fbsBitGc             SetPenColor                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-SetPenColor_command09
       
   217         COMMAND             fbsBitGc             DrawLine                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-DrawLine_command10
       
   218         COMMAND             fbsBitGc             SetPenColor                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-SetPenColor_command11
       
   219         COMMAND             fbsBitGc             DrawLine                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-DrawLine_command12
       
   220         COMMAND             fbsScrDev            Update
       
   221         DELAY               6000000
       
   222         COMMAND             fbsScrDev            checkLineColor                         GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-checkLineColor_command15
       
   223         COMMAND             fbsBitGc             PromptMessage                          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-PromptMessage_command16 
       
   224         COMMAND             fbsBitGc             ~
       
   225         COMMAND             fbsScrDev            ~
       
   226         COMMAND             fbsSession           Disconnect
       
   227      END_TEST_BLOCK
       
   228 END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004
       
   229 
       
   230 
       
   231 START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005
       
   232 //! @SYMTestCaseID          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005
       
   233 //! @SYMAPI                 CFbsBitGc::DrawBitmap(const TPoint{ref}, const CFbsBitmap{ptr})
       
   234 //! @SYMAuthor              Forbes Fu
       
   235 //! @SYMCreationDate        02/04/2009
       
   236 //! @SYMTestCaseDesc        Draw a bitmap at TPoint(20, 20).
       
   237 //! @SYMTestActions         1. Create and connect a RFbsSession object.
       
   238 //!                         2. Create a CFbsScreenDevice object.
       
   239 //!                         3. Create a CFbsBitGc object and activate it.
       
   240 //!                         4. Create a CFbsBitmap object.
       
   241 //!                         5. Load a bitmap and set size in twips of bitmap to TSize(1000, 1000).
       
   242 //!                         6. Clear the device.
       
   243 //!                         7. Draw the bitmap at TPoint(20, 20).
       
   244 //!                         8. Check manually.
       
   245 //!                         9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object.
       
   246 //! @SYMTestStatus          Implemented
       
   247 //! @SYMTestPriority        High
       
   248 //! @SYMTestExpectedResults A bitmap will be drawn.
       
   249 //! @SYMTestType            CIT
       
   250 
       
   251     START_TEST_BLOCK        100   T_GraphicsBitgdiApi         \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini
       
   252         CREATE_OBJECT       RFbsSession          fbsSession
       
   253         CREATE_OBJECT       CFbsScreenDevice     fbsScrDev
       
   254         CREATE_OBJECT       CFbsBitGc            fbsBitGc
       
   255         CREATE_OBJECT       CFbsBitmap           fbsBitmap
       
   256         COMMAND             fbsSession           Connect
       
   257         COMMAND             fbsBitGc             NewL
       
   258         COMMAND             fbsScrDev            NewL                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-NewL_command03
       
   259         COMMAND             fbsBitGc             Activate                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-Activate_command04
       
   260         COMMAND             fbsBitmap            new
       
   261         COMMAND             fbsBitmap            Load                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-Load_command06
       
   262         COMMAND             fbsBitmap            SetSizeInTwips                         GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-SetSizeInTwips_command07
       
   263         COMMAND             fbsBitGc             Clear
       
   264         COMMAND             fbsBitGc             DrawBitmap                             GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-DrawBitmap_command09
       
   265         COMMAND             fbsScrDev            Update
       
   266         DELAY               6000000        
       
   267         COMMAND             fbsBitGc             PromptMessage                          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-PromptMessage_command12
       
   268         COMMAND             fbsBitmap            ~
       
   269         COMMAND             fbsBitGc             ~
       
   270         COMMAND             fbsScrDev            ~
       
   271         COMMAND             fbsSession           Disconnect
       
   272      END_TEST_BLOCK
       
   273 END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005
       
   274 
       
   275 
       
   276 START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006
       
   277 //! @SYMTestCaseID          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006
       
   278 //! @SYMAPI                 CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr})
       
   279 //! @SYMAuthor              Forbes Fu
       
   280 //! @SYMCreationDate        02/04/2009
       
   281 //! @SYMTestCaseDesc        Draw two bitmaps to fit TRect(0, 0, 120, 100) and TRect(110, 50, 130, 70).
       
   282 //! @SYMTestActions         1. Create and connect a RFbsSession object.
       
   283 //!                         2. Create a CFbsScreenDevice object.
       
   284 //!                         3. Create a CFbsBitGc object and activate it.
       
   285 //!                         4. Create a CFbsBitmap object.
       
   286 //!                         6. Clear the device.
       
   287 //!                         7. Draw the bitmap to fit TRect(0, 0, 120, 100).
       
   288 //!                         8. Draw the bitmap to fit TRect(110, 50, 130, 70).
       
   289 //!                         9. Check manually.
       
   290 //!                         10.Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object.
       
   291 //! @SYMTestStatus          Implemented
       
   292 //! @SYMTestPriority        High
       
   293 //! @SYMTestExpectedResults Two bitmaps will be drawn.
       
   294 //! @SYMTestType            CIT
       
   295 
       
   296     START_TEST_BLOCK        100   T_GraphicsBitgdiApi         \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini
       
   297         CREATE_OBJECT       RFbsSession          fbsSession
       
   298         CREATE_OBJECT       CFbsScreenDevice     fbsScrDev
       
   299         CREATE_OBJECT       CFbsBitGc            fbsBitGc
       
   300         CREATE_OBJECT       CFbsBitmap           fbsBitmap
       
   301         COMMAND             fbsSession           Connect
       
   302         COMMAND             fbsBitGc             NewL
       
   303         COMMAND             fbsScrDev            NewL                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-NewL_command03
       
   304         COMMAND             fbsBitGc             Activate                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-Activate_command04
       
   305         COMMAND             fbsBitmap            new
       
   306         COMMAND             fbsBitmap            Load                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-Load_command06        
       
   307         COMMAND             fbsBitGc             Clear
       
   308         COMMAND             fbsBitGc             DrawBitmap                             GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-DrawBitmap_command08
       
   309         COMMAND             fbsBitGc             DrawBitmap                             GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-DrawBitmap_command09
       
   310         COMMAND             fbsScrDev            Update
       
   311         DELAY               6000000        
       
   312         COMMAND             fbsBitGc             PromptMessage                          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-PromptMessage_command12
       
   313         COMMAND             fbsBitmap            ~
       
   314         COMMAND             fbsBitGc             ~
       
   315         COMMAND             fbsScrDev            ~
       
   316         COMMAND             fbsSession           Disconnect
       
   317      END_TEST_BLOCK
       
   318 END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006
       
   319 
       
   320 
       
   321 START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007
       
   322 //! @SYMTestCaseID          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007
       
   323 //! @SYMAPI                 CFbsBitGc::DrawText(const TDesC{ref}, const TPoint(ref)).
       
   324 //! @SYMAuthor              Forbes Fu
       
   325 //! @SYMCreationDate        02/04/2009
       
   326 //! @SYMTestCaseDesc        Draw a line of text at the specific position.
       
   327 //! @SYMTestActions         1. Create and connect a RFbsSession object.
       
   328 //!                         2. Create a CFbsScreenDevice object.
       
   329 //!                         3. Create a CFbsBitGc object and activate it.
       
   330 //!                         4. Clear the device and set pen color TRgb(255, 0, 0).
       
   331 //!                         5. Set the device font.
       
   332 //!                         6. Draw a line of the text at (20,50).
       
   333 //!                         7. Check manually.
       
   334 //!                         8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object.
       
   335 //! @SYMTestStatus          Implemented
       
   336 //! @SYMTestPriority        High
       
   337 //! @SYMTestExpectedResults A line of red text will be drawn as expected.
       
   338 //! @SYMTestType            CIT
       
   339 
       
   340     START_TEST_BLOCK        100   T_GraphicsBitgdiApi         \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini
       
   341         CREATE_OBJECT       RFbsSession          fbsSession
       
   342         CREATE_OBJECT       CFbsScreenDevice     fbsScrDev
       
   343         CREATE_OBJECT       CFbsBitGc            fbsBitGc
       
   344         CREATE_OBJECT       CFbsFont          	 font
       
   345         COMMAND             fbsSession           Connect
       
   346         COMMAND             fbsBitGc             NewL
       
   347         COMMAND             fbsScrDev            NewL                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-NewL_command03
       
   348         COMMAND             fbsBitGc             Activate                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-Activate_command04
       
   349         COMMAND             fbsBitGc             Clear
       
   350         COMMAND             fbsBitGc             SetPenColor                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-SetPenColor_command06
       
   351         COMMAND             fbsScrDev            GetNearestFontToDesignHeightInPixels   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-GetNearestFontToDesignHeightInPixels_command07
       
   352         COMMAND             fbsBitGc             UseFont                                GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-UseFont_command08
       
   353         COMMAND             fbsBitGc             DrawText                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-DrawText_command09
       
   354         COMMAND             fbsScrDev            Update
       
   355         DELAY               6000000
       
   356         COMMAND             fbsBitGc             PromptMessage                          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-PromptMessage_command12
       
   357         COMMAND             fbsBitGc             DiscardFont 
       
   358         COMMAND             fbsScrDev            ReleaseFont                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-ReleaseFont_command14
       
   359         COMMAND             fbsSession           Disconnect
       
   360         COMMAND             fbsBitGc             ~
       
   361         COMMAND             fbsScrDev            ~
       
   362      END_TEST_BLOCK
       
   363 END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007
       
   364 
       
   365 
       
   366 START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008
       
   367 //! @SYMTestCaseID          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008
       
   368 //! @SYMAPI                 CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TPoint(ref), TBool).
       
   369 //! @SYMAuthor              Forbes Fu
       
   370 //! @SYMCreationDate        02/04/2009
       
   371 //! @SYMTestCaseDesc        Draw two lines of text vertically.
       
   372 //! @SYMTestActions         1. Create and connect a RFbsSession object.
       
   373 //!                         2. Create a CFbsScreenDevice object.
       
   374 //!                         3. Create a CFbsBitGc object and activate it.
       
   375 //!                         4. Clear the device and set pen color TRgb(0, 0, 255).
       
   376 //!                         5. Set the device font.
       
   377 //!                         6. Draw a line of text vertically at TPoint(20,20).
       
   378 //!                         7. Draw a line of text vertically at TPoint(100, 200).
       
   379 //!                         8. Check manually.
       
   380 //!                         9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object.
       
   381 //! @SYMTestStatus          Implemented
       
   382 //! @SYMTestPriority        High
       
   383 //! @SYMTestExpectedResults Two lines of blue text will be drawn vertically as expected.
       
   384 //! @SYMTestType            CIT
       
   385 
       
   386     START_TEST_BLOCK        100   T_GraphicsBitgdiApi         \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini
       
   387         CREATE_OBJECT       RFbsSession          fbsSession
       
   388         CREATE_OBJECT       CFbsScreenDevice     fbsScrDev
       
   389         CREATE_OBJECT       CFbsBitGc            fbsBitGc
       
   390         CREATE_OBJECT       CFbsFont             font
       
   391         COMMAND             fbsSession           Connect
       
   392         COMMAND             fbsBitGc             NewL
       
   393         COMMAND             fbsScrDev            NewL                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-NewL_command03
       
   394         COMMAND             fbsBitGc             Activate                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-Activate_command04
       
   395         COMMAND             fbsBitGc             Clear
       
   396         COMMAND             fbsBitGc             SetPenColor                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-SetPenColor_command06
       
   397         COMMAND             fbsScrDev            GetNearestFontToDesignHeightInPixels   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-GetNearestFontToDesignHeightInPixels_command07
       
   398         COMMAND             fbsBitGc             UseFont                                GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-UseFont_command08
       
   399         COMMAND             fbsBitGc             DrawTextVertical                       GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-DrawTextVertical_command09
       
   400         COMMAND             fbsBitGc             DrawTextVertical                       GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-DrawTextVertical_command10
       
   401         COMMAND             fbsScrDev            Update
       
   402         DELAY               6000000
       
   403         COMMAND             fbsBitGc             PromptMessage                          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-PromptMessage_command12
       
   404         COMMAND             fbsBitGc             DiscardFont 
       
   405         COMMAND             fbsScrDev            ReleaseFont                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-ReleaseFont_command14
       
   406         COMMAND             fbsSession           Disconnect
       
   407         COMMAND             fbsBitGc             ~
       
   408         COMMAND             fbsScrDev            ~
       
   409      END_TEST_BLOCK
       
   410 END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008
       
   411 
       
   412 
       
   413 START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009
       
   414 //! @SYMTestCaseID          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009
       
   415 //! @SYMAPI                 CFbsBitGc::DrawEllipse(const TRect{ref})
       
   416 //! @SYMAuthor              Forbes Fu
       
   417 //! @SYMCreationDate        02/04/2009
       
   418 //! @SYMTestCaseDesc        Draw an ellipse.
       
   419 //! @SYMTestActions         1. Create and connect a RFbsSession object.
       
   420 //!                         2. Create a CFbsScreenDevice object.
       
   421 //!                         3. Create a CFbsBitGc object and activate it.
       
   422 //!                         4. Clear the device.
       
   423 //!                         5. Set brush style ESolidStyle.
       
   424 //!                         6. Set brush color TRgb(0, 255, 0).
       
   425 //!                         7. Draw an ellipse at TRect(20, 20, 100, 160).
       
   426 //!                         8. Check manually .
       
   427 //!                         9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object.
       
   428 //! @SYMTestStatus          Implemented
       
   429 //! @SYMTestPriority        High
       
   430 //! @SYMTestExpectedResults A green ellipse is drawn as expected.
       
   431 //! @SYMTestType            CIT
       
   432 
       
   433     START_TEST_BLOCK        100   T_GraphicsBitgdiApi         \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini
       
   434         CREATE_OBJECT       RFbsSession          fbsSession
       
   435         CREATE_OBJECT       CFbsScreenDevice     fbsScrDev
       
   436         CREATE_OBJECT       CFbsBitGc            fbsBitGc
       
   437         COMMAND             fbsSession           Connect
       
   438         COMMAND             fbsBitGc             NewL
       
   439         COMMAND             fbsScrDev            NewL                                   GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-NewL_command03
       
   440         COMMAND             fbsBitGc             Activate                               GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-Activate_command04
       
   441         COMMAND             fbsBitGc             Clear
       
   442         COMMAND             fbsBitGc             SetBrushStyle                          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-SetBrushStyle_command06
       
   443         COMMAND             fbsBitGc             SetBrushColor                          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-SetBrushColor_command07
       
   444         COMMAND             fbsBitGc             DrawEllipse                            GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-DrawEllipse_command08      
       
   445         COMMAND             fbsScrDev            Update
       
   446         DELAY               6000000
       
   447         COMMAND             fbsBitGc             PromptMessage                          GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-PromptMessage_command12
       
   448         COMMAND             fbsSession           Disconnect
       
   449         COMMAND             fbsBitGc             ~
       
   450         COMMAND             fbsScrDev            ~
       
   451      END_TEST_BLOCK
       
   452 END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009
       
   453 
       
   454