graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsGraphicBitmapAnimation-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-WSERV-WsGraphicBitmapAnimation-PublicApi
       
    18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
       
    19 
       
    20 ///////////////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.script
       
    22 //
       
    23 // Tests all public elements of the CWsGraphicBitmapAnimation 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
       
    27 // CWsGraphicBitmapAnimation related classes.
       
    28 // Negative testing is performed to confirm that correct errors are returned
       
    29 // when incorrect parameters are given.
       
    30 //
       
    31 // The tests are fully automated.
       
    32 ///////////////////////////////////////////////////////////////////////////////
       
    33 
       
    34 LOAD_SUITE  T_GraphicsWservAPI
       
    35 
       
    36 // ****************************************************************************
       
    37 // CWsGraphicBitmapAnimation
       
    38 // ****************************************************************************
       
    39 
       
    40 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001
       
    41 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001
       
    42 //! @SYMAPI                 CWsGraphicBitmapAnimation::NewL(const TFrames{ref});
       
    43 //!                         CWsGraphicBitmapAnimation::~CWsGraphicBitmapAnimation()
       
    44 //! @SYMAuthor              Jeffery Zhao
       
    45 //! @SYMCreationDate        21-04-2008
       
    46 //! @SYMTestCaseDesc        Create CWsGraphicBitmapAnimation object just with one frame and then destroy it.
       
    47 //! @SYMTestActions         1.Create CFrame objects.
       
    48 //!                         2.Connect RFbsSession.
       
    49 //!                         3.Load two bitmap objects, one for bitmap, then other for mask.
       
    50 //!                         4.Set frame info/bitmap/mask for the CFrame.
       
    51 //!                         5.Create CWsGraphicBitmapAnimation object with the CFrame object.
       
    52 //!                         6.Disown and Destroy created objects.
       
    53 //!                         7.Disconnect RFbsSession.
       
    54 //! @SYMTestStatus          Implemented
       
    55 //! @SYMTestPriority        High
       
    56 //! @SYMTestExpectedResults CWsGraphicBitmapAnimation object was created and destroyed without causing panic.
       
    57 //! @SYMTestType            CIT
       
    58    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
    59         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
    60         CREATE_OBJECT      CFrame                     frame1
       
    61         CREATE_OBJECT      RFbsSession                fbssession
       
    62         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
    63         CREATE_OBJECT      CFbsBitmap                 mask1
       
    64         COMMAND            frame1                     NewL
       
    65         COMMAND            fbssession                 Connect
       
    66         COMMAND            bitmap1                    new
       
    67         COMMAND            mask1                      new
       
    68         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-Load-command005
       
    69         COMMAND            mask1                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-Load-command006
       
    70         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-SetFrameInfo-command007
       
    71         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-SetBitmap-command008
       
    72         COMMAND            frame1                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-SetMask-command009 
       
    73         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-NewL-command010
       
    74         COMMAND            bitmap1                    disown
       
    75         COMMAND            mask1                      disown
       
    76         COMMAND            frame1                     ~
       
    77         COMMAND            bmpanim                    ~
       
    78         COMMAND            fbssession                 Disconnect
       
    79    END_TEST_BLOCK
       
    80 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001
       
    81 
       
    82 
       
    83 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002
       
    84 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002
       
    85 //! @SYMAPI                 CWsGraphicBitmapAnimation::NewL(const TFrames{ref});
       
    86 //!                         CWsGraphicBitmapAnimation::~CWsGraphicBitmapAnimation()
       
    87 //! @SYMAuthor              Jeffery Zhao
       
    88 //! @SYMCreationDate        11-03-2008
       
    89 //! @SYMTestCaseDesc        Create CWsGraphicBitmapAnimation object and then destroy it.
       
    90 //! @SYMTestActions         1.Create two CFrame objects.
       
    91 //!                         2.Connect RFbsSession.
       
    92 //!                         3.Load four bitmap objects(two bitmaps and two masks).
       
    93 //!                         4.Set frame info/bitmap/mask for the two CFrame objects respectively.
       
    94 //!                         5.Create CWsGraphicBitmapAnimation object with the two CFrame objects.
       
    95 //!                         6.Disown and Destroy created objects.
       
    96 //!                         7.Disconnect RFbsSession.
       
    97 //! @SYMTestStatus          Implemented
       
    98 //! @SYMTestPriority        High
       
    99 //! @SYMTestExpectedResults CWsGraphicBitmapAnimation object was created and destroyed without causing panic.
       
   100 //! @SYMTestType            CIT
       
   101    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   102         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   103         CREATE_OBJECT      CFrame                     frame1
       
   104         CREATE_OBJECT      CFrame                     frame2
       
   105         CREATE_OBJECT      RFbsSession                fbssession
       
   106         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   107         CREATE_OBJECT      CFbsBitmap                 bitmap2
       
   108         CREATE_OBJECT      CFbsBitmap                 mask1
       
   109         CREATE_OBJECT      CFbsBitmap                 mask2
       
   110         COMMAND            frame1                     NewL
       
   111         COMMAND            frame2                     NewL
       
   112         COMMAND            fbssession                 Connect
       
   113         COMMAND            bitmap1                    new
       
   114         COMMAND            bitmap2                    new
       
   115         COMMAND            mask1                      new
       
   116         COMMAND            mask2                      new
       
   117         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-Load-command008
       
   118         COMMAND            bitmap2                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-Load-command009
       
   119         COMMAND            mask1                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-Load-command010
       
   120         COMMAND            mask2                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-Load-command011
       
   121         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetFrameInfo-command012
       
   122         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetBitmap-command013
       
   123         COMMAND            frame1                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetMask-command014
       
   124         COMMAND            frame2                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetFrameInfo-command015
       
   125         COMMAND            frame2                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetBitmap-command016
       
   126         COMMAND            frame2                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetMask-command017
       
   127         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-NewL-command018
       
   128         COMMAND            bitmap1                    disown
       
   129         COMMAND            bitmap2                    disown
       
   130         COMMAND            mask1                      disown
       
   131         COMMAND            mask2                      disown
       
   132         COMMAND            frame1                     ~
       
   133         COMMAND            frame2                     ~
       
   134         COMMAND            bmpanim                    ~
       
   135         COMMAND            fbssession                 Disconnect
       
   136    END_TEST_BLOCK
       
   137 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002
       
   138 
       
   139 
       
   140 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003
       
   141 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003
       
   142 //! @SYMAPI                 CWsGraphicBitmapAnimation::NewL(TUid, const TFrames{ref});
       
   143 //!                         CWsGraphicBitmapAnimation::~CWsGraphicBitmapAnimation()
       
   144 //! @SYMAuthor              Jeffery Zhao
       
   145 //! @SYMCreationDate        21-04-2008
       
   146 //! @SYMTestCaseDesc        Create CWsGraphicBitmapAnimation object just with one frame and then destroy it.
       
   147 //! @SYMTestActions         1.Create CFrame objects.
       
   148 //!                         2.Connect RFbsSession.
       
   149 //!                         3.Load two bitmap objects, one for bitmap, then other for mask.
       
   150 //!                         4.Set frame info/bitmap/mask for the CFrame.
       
   151 //!                         5.Create CWsGraphicBitmapAnimation object with the CFrame object.
       
   152 //!                         6.Disown and Destroy created objects.
       
   153 //!                         7.Disconnect RFbsSession.
       
   154 //! @SYMTestStatus          Implemented
       
   155 //! @SYMTestPriority        High
       
   156 //! @SYMTestExpectedResults CWsGraphicBitmapAnimation object was created and destroyed without causing panic.
       
   157 //! @SYMTestType            CIT
       
   158    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   159         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   160         CREATE_OBJECT      CFrame                     frame1
       
   161         CREATE_OBJECT      RFbsSession                fbssession
       
   162         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   163         CREATE_OBJECT      CFbsBitmap                 mask1
       
   164         COMMAND            frame1                     NewL
       
   165         COMMAND            fbssession                 Connect
       
   166         COMMAND            bitmap1                    new
       
   167         COMMAND            mask1                      new
       
   168         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-Load-command005
       
   169         COMMAND            mask1                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-Load-command006
       
   170         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-SetFrameInfo-command007
       
   171         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-SetBitmap-command008
       
   172         COMMAND            frame1                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-SetMask-command009 
       
   173         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-NewL-command010
       
   174         COMMAND            bitmap1                    disown
       
   175         COMMAND            mask1                      disown
       
   176         COMMAND            frame1                     ~
       
   177         COMMAND            bmpanim                    ~
       
   178         COMMAND            fbssession                 Disconnect
       
   179    END_TEST_BLOCK
       
   180 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003
       
   181 
       
   182 
       
   183 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004
       
   184 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004
       
   185 //! @SYMAPI                 CWsGraphicBitmapAnimation::NewL(TUid, const TFrames{ref});
       
   186 //!                         CWsGraphicBitmapAnimation::~CWsGraphicBitmapAnimation()
       
   187 //! @SYMAuthor              Jeffery Zhao
       
   188 //! @SYMCreationDate        11-03-2008
       
   189 //! @SYMTestCaseDesc        Create CWsGraphicBitmapAnimation object with UID and then destroy it.
       
   190 //! @SYMTestActions         1.Create two CFrame objects.
       
   191 //!                         2.Connect RFbsSession.
       
   192 //!                         3.Load four bitmap objects(two bitmaps and two masks).
       
   193 //!                         4.Set frame info/bitmap/mask for the two CFrame objects respectively.
       
   194 //!                         5.Create CWsGraphicBitmapAnimation object with the two CFrame objects and an Uid.
       
   195 //!                         6.Disown and Destroy created objects.
       
   196 //!                         7.Disconnect RFbsSession.
       
   197 //! @SYMTestStatus          Implemented
       
   198 //! @SYMTestPriority        High
       
   199 //! @SYMTestExpectedResults CWsGraphicBitmapAnimation object was created and destroyed without causing panic.
       
   200 //! @SYMTestType            CIT
       
   201    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   202         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   203         CREATE_OBJECT      CFrame                     frame1
       
   204         CREATE_OBJECT      CFrame                     frame2
       
   205         CREATE_OBJECT      RFbsSession                fbssession
       
   206         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   207         CREATE_OBJECT      CFbsBitmap                 bitmap2
       
   208         CREATE_OBJECT      CFbsBitmap                 mask1
       
   209         CREATE_OBJECT      CFbsBitmap                 mask2
       
   210         COMMAND            frame1                     NewL
       
   211         COMMAND            frame2                     NewL
       
   212         COMMAND            fbssession                 Connect
       
   213         COMMAND            bitmap1                    new
       
   214         COMMAND            bitmap2                    new
       
   215         COMMAND            mask1                      new
       
   216         COMMAND            mask2                      new
       
   217         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-Load-command008
       
   218         COMMAND            bitmap2                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-Load-command009
       
   219         COMMAND            mask1                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-Load-command010
       
   220         COMMAND            mask2                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-Load-command011
       
   221         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetFrameInfo-command012
       
   222         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetBitmap-command013
       
   223         COMMAND            frame1                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetMask-command014
       
   224         COMMAND            frame2                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetFrameInfo-command015
       
   225         COMMAND            frame2                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetBitmap-command016
       
   226         COMMAND            frame2                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetMask-command017
       
   227         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-NewL-command018
       
   228         COMMAND            bitmap1                    disown
       
   229         COMMAND            bitmap2                    disown
       
   230         COMMAND            mask1                      disown
       
   231         COMMAND            mask2                      disown
       
   232         COMMAND            frame1                     ~
       
   233         COMMAND            frame2                     ~
       
   234         COMMAND            bmpanim                    ~
       
   235         COMMAND            fbssession                 Disconnect
       
   236    END_TEST_BLOCK
       
   237 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004
       
   238 
       
   239 
       
   240 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005
       
   241 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005
       
   242 //! @SYMAPI                 CWsGraphicBitmapAnimation::NewL(const TWsGraphicId{ref},const TFrames{ref});
       
   243 //!                         CWsGraphicBitmapAnimation::~CWsGraphicBitmapAnimation()
       
   244 //! @SYMAuthor              Jeffery Zhao
       
   245 //! @SYMCreationDate        21-04-2008
       
   246 //! @SYMTestCaseDesc        Create CWsGraphicBitmapAnimation object just with one frame and then destroy it.
       
   247 //! @SYMTestActions         1.Create CFrame objects.
       
   248 //!                         2.Connect RFbsSession.
       
   249 //!                         3.Load two bitmap objects, one for bitmap, then other for mask.
       
   250 //!                         4.Set frame info/bitmap/mask for the CFrame.
       
   251 //!                         5.Create CWsGraphicBitmapAnimation object with the CFrame object.
       
   252 //!                         6.Disown and Destroy created objects.
       
   253 //!                         7.Disconnect RFbsSession.
       
   254 //! @SYMTestStatus          Implemented
       
   255 //! @SYMTestPriority        High
       
   256 //! @SYMTestExpectedResults CWsGraphicBitmapAnimation object was created and destroyed without causing panic.
       
   257 //! @SYMTestType            CIT
       
   258    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   259         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   260         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim2
       
   261         CREATE_OBJECT      CFrame                     frame1
       
   262         CREATE_OBJECT      RFbsSession                fbssession
       
   263         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   264         CREATE_OBJECT      CFbsBitmap                 mask1
       
   265         COMMAND            frame1                     NewL
       
   266         COMMAND            fbssession                 Connect
       
   267         COMMAND            bitmap1                    new
       
   268         COMMAND            mask1                      new
       
   269         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-Load-command005
       
   270         COMMAND            mask1                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-Load-command006
       
   271         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-SetFrameInfo-command007
       
   272         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-SetBitmap-command008
       
   273         COMMAND            frame1                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-SetMask-command009 
       
   274         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-NewL-command010
       
   275         COMMAND            bmpanim2                   NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-NewL-command011
       
   276         COMMAND            bitmap1                    disown
       
   277         COMMAND            mask1                      disown
       
   278         COMMAND            frame1                     ~
       
   279         COMMAND            bmpanim                    ~
       
   280         COMMAND            bmpanim2                   ~
       
   281         COMMAND            fbssession                 Disconnect
       
   282    END_TEST_BLOCK
       
   283 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005
       
   284 
       
   285 
       
   286 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006
       
   287 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006
       
   288 //! @SYMAPI                 CWsGraphicBitmapAnimation::NewL(const TWsGraphicId{ref},const TFrames{ref});
       
   289 //!                         CWsGraphicBitmapAnimation::~CWsGraphicBitmapAnimation()
       
   290 //! @SYMAuthor              Jeffery Zhao
       
   291 //! @SYMCreationDate        11-03-2008
       
   292 //! @SYMTestCaseDesc        Create CWsGraphicBitmapAnimation object and then destroy.
       
   293 //! @SYMTestActions         1.Create two CFrame objects.
       
   294 //!                         2.Connect RFbsSession.
       
   295 //!                         3.Load four bitmap objects(two bitmaps and two masks).
       
   296 //!                         4.Set frame info/bitmap/mask for the two CFrame objects respectively.
       
   297 //!                         5.Create CWsGraphicBitmapAnimation object with the two CFrame objects and a TWsGraphicId.
       
   298 //!                         6.Disown and Destroy created objects.
       
   299 //!                         7.Disconnect RFbsSession.
       
   300 //! @SYMTestStatus          Implemented
       
   301 //! @SYMTestPriority        High
       
   302 //! @SYMTestExpectedResults CWsGraphicBitmapAnimation object was created and destroyed without causing panic.
       
   303 //! @SYMTestType            CIT
       
   304    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   305         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   306         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim2
       
   307         CREATE_OBJECT      CFrame                     frame1
       
   308         CREATE_OBJECT      CFrame                     frame2
       
   309         CREATE_OBJECT      RFbsSession                fbssession
       
   310         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   311         CREATE_OBJECT      CFbsBitmap                 bitmap2
       
   312         CREATE_OBJECT      CFbsBitmap                 mask1
       
   313         CREATE_OBJECT      CFbsBitmap                 mask2
       
   314         COMMAND            frame1                     NewL
       
   315         COMMAND            frame2                     NewL
       
   316         COMMAND            fbssession                 Connect
       
   317         COMMAND            bitmap1                    new
       
   318         COMMAND            bitmap2                    new
       
   319         COMMAND            mask1                      new
       
   320         COMMAND            mask2                      new
       
   321         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-Load-command008
       
   322         COMMAND            bitmap2                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-Load-command009
       
   323         COMMAND            mask1                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-Load-command010
       
   324         COMMAND            mask2                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-Load-command011
       
   325         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetFrameInfo-command012
       
   326         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetBitmap-command013
       
   327         COMMAND            frame1                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetMask-command014
       
   328         COMMAND            frame2                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetFrameInfo-command015
       
   329         COMMAND            frame2                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetBitmap-command016
       
   330         COMMAND            frame2                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetMask-command017
       
   331         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-NewL-command018
       
   332         COMMAND            bmpanim2                   NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-NewL-command019
       
   333         COMMAND            bitmap1                    disown
       
   334         COMMAND            bitmap2                    disown
       
   335         COMMAND            mask1                      disown
       
   336         COMMAND            mask2                      disown
       
   337         COMMAND            frame1                     ~
       
   338         COMMAND            frame2                     ~
       
   339         COMMAND            bmpanim                    ~
       
   340         COMMAND            bmpanim2                   ~
       
   341         COMMAND            fbssession                 Disconnect
       
   342    END_TEST_BLOCK
       
   343 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006
       
   344 
       
   345 
       
   346 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007
       
   347 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007
       
   348 //! @SYMAPI                 CWsGraphicBitmapAnimation::ShareGlobally();
       
   349 //!                         CWsGraphicBitmapAnimation::UnShareGlobally()
       
   350 //! @SYMAuthor              Jeffery Zhao
       
   351 //! @SYMCreationDate        11-03-2008
       
   352 //! @SYMTestCaseDesc        Create CWsGraphicBitmapAnimation object and shares it with all the client sessions, and then unshares it.
       
   353 //! @SYMTestActions         1.Create two CFrame objects.
       
   354 //!                         2.Connect RFbsSession.
       
   355 //!                         3.Load four bitmap objects(two bitmaps and two masks).
       
   356 //!                         4.Set frame info/bitmap/mask for the two CFrame objects respectively.
       
   357 //!                         5.Create CWsGraphicBitmapAnimation object with the two CFrame objects.
       
   358 //!                         6.Share the graphic artwork with all the client sessions.
       
   359 //!                         7.Unshare the graphic artwork with all the client sessions.
       
   360 //!                         8.Disown and Destroy created objects.
       
   361 //!                         9.Disconnect RFbsSession.
       
   362 //! @SYMTestStatus          Implemented
       
   363 //! @SYMTestPriority        High
       
   364 //! @SYMTestExpectedResults Share and unshare CWsGraphicBitmapAnimation object without causing panic.
       
   365 //! @SYMTestType            CIT
       
   366    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   367         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   368         CREATE_OBJECT      CFrame                     frame1
       
   369         CREATE_OBJECT      CFrame                     frame2
       
   370         CREATE_OBJECT      RFbsSession                fbssession
       
   371         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   372         CREATE_OBJECT      CFbsBitmap                 bitmap2
       
   373         CREATE_OBJECT      CFbsBitmap                 mask1
       
   374         CREATE_OBJECT      CFbsBitmap                 mask2
       
   375         COMMAND            frame1                     NewL
       
   376         COMMAND            frame2                     NewL
       
   377         COMMAND            fbssession                 Connect
       
   378         COMMAND            bitmap1                    new
       
   379         COMMAND            bitmap2                    new
       
   380         COMMAND            mask1                      new
       
   381         COMMAND            mask2                      new
       
   382         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-Load-command008
       
   383         COMMAND            bitmap2                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-Load-command009
       
   384         COMMAND            mask1                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-Load-command010
       
   385         COMMAND            mask2                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-Load-command011
       
   386         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetFrameInfo-command012
       
   387         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetBitmap-command013
       
   388         COMMAND            frame1                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetMask-command014
       
   389         COMMAND            frame2                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetFrameInfo-command015
       
   390         COMMAND            frame2                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetBitmap-command016
       
   391         COMMAND            frame2                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetMask-command017
       
   392         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-NewL-command018
       
   393         COMMAND            bmpanim                    ShareGlobally
       
   394         COMMAND            bmpanim                    UnShareGlobally
       
   395         COMMAND            bitmap1                    disown
       
   396         COMMAND            bitmap2                    disown
       
   397         COMMAND            mask1                      disown
       
   398         COMMAND            mask2                      disown
       
   399         COMMAND            frame1                     ~
       
   400         COMMAND            frame2                     ~
       
   401         COMMAND            bmpanim                    ~
       
   402         COMMAND            fbssession                 Disconnect
       
   403    END_TEST_BLOCK
       
   404 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007
       
   405 
       
   406 
       
   407 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008
       
   408 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008
       
   409 //! @SYMAPI                 CWsGraphicBitmapAnimation::Share(TSecureId);
       
   410 //!                         CWsGraphicBitmapAnimation::UnShare(TSecureId)
       
   411 //! @SYMAuthor              Jeffery Zhao
       
   412 //! @SYMCreationDate        11-03-2008
       
   413 //! @SYMTestCaseDesc        Shares created CWsGraphicBitmapAnimation object with client sessions with the specified Secure ID.
       
   414 //! @SYMTestActions         1.Create two CFrame objects.
       
   415 //!                         2.Connect RFbsSession.
       
   416 //!                         3.Load four bitmap objects(two bitmaps and two masks).
       
   417 //!                         4.Set frame info/bitmap/mask for the two CFrame objects respectively.
       
   418 //!                         5.Create CWsGraphicBitmapAnimation object with the two CFrame objects.
       
   419 //!                         6.Share the created CWsGraphicBitmapAnimation object with the specified Secure ID, and then unshare it.
       
   420 //!                         7.Unshare the created CWsGraphicBitmapAnimation object with the specified Secure ID.
       
   421 //!                         8.Disown and Destroy created objects.
       
   422 //!                         9.Disconnect RFbsSession.
       
   423 //! @SYMTestStatus          Implemented
       
   424 //! @SYMTestPriority        High
       
   425 //! @SYMTestExpectedResults Share and unshare CWsGraphicBitmapAnimation object with the specified client without causing panic.
       
   426 //! @SYMTestType            CIT
       
   427    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   428         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   429         CREATE_OBJECT      CFrame                     frame1
       
   430         CREATE_OBJECT      CFrame                     frame2
       
   431         CREATE_OBJECT      RFbsSession                fbssession
       
   432         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   433         CREATE_OBJECT      CFbsBitmap                 bitmap2
       
   434         CREATE_OBJECT      CFbsBitmap                 mask1
       
   435         CREATE_OBJECT      CFbsBitmap                 mask2
       
   436         COMMAND            frame1                     NewL
       
   437         COMMAND            frame2                     NewL
       
   438         COMMAND            fbssession                 Connect
       
   439         COMMAND            bitmap1                    new
       
   440         COMMAND            bitmap2                    new
       
   441         COMMAND            mask1                      new
       
   442         COMMAND            mask2                      new
       
   443         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Load-command008
       
   444         COMMAND            bitmap2                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Load-command009
       
   445         COMMAND            mask1                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Load-command010
       
   446         COMMAND            mask2                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Load-command011
       
   447         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetFrameInfo-command012
       
   448         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetBitmap-command013
       
   449         COMMAND            frame1                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetMask-command014
       
   450         COMMAND            frame2                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetFrameInfo-command015
       
   451         COMMAND            frame2                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetBitmap-command016
       
   452         COMMAND            frame2                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetMask-command017
       
   453         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-NewL-command018
       
   454         COMMAND            bmpanim                    Share                GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Share-command019
       
   455         COMMAND            bmpanim                    UnShare              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-UnShare-command020
       
   456         COMMAND            bitmap1                    disown
       
   457         COMMAND            bitmap2                    disown
       
   458         COMMAND            mask1                      disown
       
   459         COMMAND            mask2                      disown
       
   460         COMMAND            frame1                     ~
       
   461         COMMAND            frame2                     ~
       
   462         COMMAND            bmpanim                    ~
       
   463         COMMAND            fbssession                 Disconnect
       
   464    END_TEST_BLOCK
       
   465 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008
       
   466 
       
   467 
       
   468 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009
       
   469 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009
       
   470 //! @SYMAPI                 CWsGraphicBitmapAnimation::UnShare(TSecureId)
       
   471 //! @SYMAuthor              Jeffery Zhao
       
   472 //! @SYMCreationDate        11-03-2008
       
   473 //! @SYMTestCaseDesc        Unshare the no longer shared CWsGraphicBitmapAnimation object with the specific Secure ID.
       
   474 //! @SYMTestActions         1.Create two CFrame objects.
       
   475 //!                         2.Connect RFbsSession.
       
   476 //!                         3.Load four bitmap objects(two bitmaps and two masks).
       
   477 //!                         4.Set frame info/bitmap/mask for the two CFrame objects respectively.
       
   478 //!                         5.Create CWsGraphicBitmapAnimation object with the two CFrame objects.
       
   479 //!                         6.Stop the created CWsGraphicBitmapAnimation object from being shared, will get an error(KErrNotFound).
       
   480 //!                         7.Disown and Destroy created objects.
       
   481 //!                         8.Disconnect RFbsSession.
       
   482 //! @SYMTestStatus          Implemented
       
   483 //! @SYMTestPriority        High
       
   484 //! @SYMTestExpectedResults KErrNotFound(-1) will be returned when unshare the created CWsGraphicBitmapAnimation object.
       
   485 //! @SYMTestType            CIT
       
   486    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   487         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   488         CREATE_OBJECT      CFrame                     frame1
       
   489         CREATE_OBJECT      CFrame                     frame2
       
   490         CREATE_OBJECT      RFbsSession                fbssession
       
   491         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   492         CREATE_OBJECT      CFbsBitmap                 bitmap2
       
   493         CREATE_OBJECT      CFbsBitmap                 mask1
       
   494         CREATE_OBJECT      CFbsBitmap                 mask2
       
   495         COMMAND            frame1                     NewL
       
   496         COMMAND            frame2                     NewL
       
   497         COMMAND            fbssession                 Connect
       
   498         COMMAND            bitmap1                    new
       
   499         COMMAND            bitmap2                    new
       
   500         COMMAND            mask1                      new
       
   501         COMMAND            mask2                      new
       
   502         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-Load-command008
       
   503         COMMAND            bitmap2                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-Load-command009
       
   504         COMMAND            mask1                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-Load-command010
       
   505         COMMAND            mask2                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-Load-command011
       
   506         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetFrameInfo-command012
       
   507         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetBitmap-command013
       
   508         COMMAND            frame1                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetMask-command014
       
   509         COMMAND            frame2                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetFrameInfo-command015
       
   510         COMMAND            frame2                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetBitmap-command016
       
   511         COMMAND            frame2                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetMask-command017
       
   512         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-NewL-command018
       
   513         COMMAND  !Error=-1 bmpanim                    UnShare              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-UnShare-command019
       
   514         COMMAND            bitmap1                    disown
       
   515         COMMAND            bitmap2                    disown
       
   516         COMMAND            mask1                      disown
       
   517         COMMAND            mask2                      disown
       
   518         COMMAND            frame1                     ~
       
   519         COMMAND            frame2                     ~
       
   520         COMMAND            bmpanim                    ~
       
   521         COMMAND            fbssession                 Disconnect
       
   522    END_TEST_BLOCK
       
   523 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009
       
   524 
       
   525 
       
   526 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010
       
   527 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010
       
   528 //! @SYMAPI                 CWsGraphicBitmapAnimation::UnShareGlobally()
       
   529 //! @SYMAuthor              Jeffery Zhao
       
   530 //! @SYMCreationDate        11-03-2008
       
   531 //! @SYMTestCaseDesc        Unshare globally the not shared CWsGraphicBitmapAnimation object. 
       
   532 //! @SYMTestActions         1.Create two CFrame objects.
       
   533 //!                         2.Connect RFbsSession.
       
   534 //!                         3.Load four bitmap objects(two bitmaps and two masks).
       
   535 //!                         4.Set frame info/bitmap/mask for the two CFrame objects respectively.
       
   536 //!                         5.Create CWsGraphicBitmapAnimation object with the two CFrame objects.
       
   537 //!                         6.Unshare CWsGraphicBitmapAnimation object which not be shared with all the client sessions.
       
   538 //!                         7.Disown and Destroy created objects.
       
   539 //!                         8.Disconnect RFbsSession.
       
   540 //! @SYMTestStatus          Implemented
       
   541 //! @SYMTestPriority        High
       
   542 //! @SYMTestExpectedResults UnShare CWsGraphicBitmapAnimation object without causing panic.
       
   543 //! @SYMTestType            CIT
       
   544    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   545         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   546         CREATE_OBJECT      CFrame                     frame1
       
   547         CREATE_OBJECT      CFrame                     frame2
       
   548         CREATE_OBJECT      RFbsSession                fbssession
       
   549         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   550         CREATE_OBJECT      CFbsBitmap                 bitmap2
       
   551         CREATE_OBJECT      CFbsBitmap                 mask1
       
   552         CREATE_OBJECT      CFbsBitmap                 mask2
       
   553         COMMAND            frame1                     NewL
       
   554         COMMAND            frame2                     NewL
       
   555         COMMAND            fbssession                 Connect
       
   556         COMMAND            bitmap1                    new
       
   557         COMMAND            bitmap2                    new
       
   558         COMMAND            mask1                      new
       
   559         COMMAND            mask2                      new
       
   560         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-Load-command008
       
   561         COMMAND            bitmap2                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-Load-command009
       
   562         COMMAND            mask1                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-Load-command010
       
   563         COMMAND            mask2                      Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-Load-command011
       
   564         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetFrameInfo-command012
       
   565         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetBitmap-command013
       
   566         COMMAND            frame1                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetMask-command014
       
   567         COMMAND            frame2                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetFrameInfo-command015
       
   568         COMMAND            frame2                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetBitmap-command016
       
   569         COMMAND            frame2                     SetMask              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetMask-command017
       
   570         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-NewL-command018
       
   571         COMMAND            bmpanim                    UnShareGlobally
       
   572         COMMAND            bitmap1                    disown
       
   573         COMMAND            bitmap2                    disown
       
   574         COMMAND            mask1                      disown
       
   575         COMMAND            mask2                      disown
       
   576         COMMAND            frame1                     ~
       
   577         COMMAND            frame2                     ~
       
   578         COMMAND            bmpanim                    ~
       
   579         COMMAND            fbssession                 Disconnect
       
   580    END_TEST_BLOCK
       
   581 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010
       
   582 
       
   583 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0011
       
   584 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0011
       
   585 //! @SYMAPI                 CWsGraphicBitmapAnimation::NewL(const TFrames{ref});
       
   586 //! @SYMAuthor              Yue Zhang
       
   587 //! @SYMCreationDate        27-03-2008
       
   588 //! @SYMTestCaseDesc        Negative test, set the FrameInfo to a CFrame object without iDelay parameter.
       
   589 //! @SYMTestActions         1. Create a CFrame object;
       
   590 //!                         2. Connect RFbsSession;
       
   591 //!                         3. Set FrameInfo to the CFrame object without iDelay parameter;
       
   592 //!                         4. Create CWsGraphicBitmapAnimation object with the CFrame object;
       
   593 //!                         5. Destroy related objects.
       
   594 //!                         6. Disconnect RFbsSession.
       
   595 //! @SYMTestStatus          Implemented
       
   596 //! @SYMTestPriority        High
       
   597 //! @SYMTestExpectedResults Error code -20 received at Test Action 4.
       
   598 //! @SYMTestType            CIT
       
   599    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   600         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   601         CREATE_OBJECT      CFrame                     frame1
       
   602         CREATE_OBJECT      RFbsSession                fbssession
       
   603         COMMAND            frame1                     NewL
       
   604         COMMAND            fbssession                 Connect
       
   605         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0011-0001-SetFrameInfo-command003
       
   606         COMMAND !Error=-20 bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0011-0001-NewL-command004
       
   607         COMMAND            frame1                     ~
       
   608         COMMAND            bmpanim                    ~
       
   609         COMMAND            fbssession                 Disconnect
       
   610    END_TEST_BLOCK
       
   611 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0011
       
   612 
       
   613 
       
   614 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012
       
   615 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012
       
   616 //! @SYMAPI                 CWsGraphicBitmapAnimation::NewL(TUid, const TFrames{ref})
       
   617 //! @SYMAuthor              Yue Zhang
       
   618 //! @SYMCreationDate        27-03-2008
       
   619 //! @SYMTestCaseDesc        Create CWsGraphicBitmapAnimation object with specified Uid and then check the Uid properties.
       
   620 //! @SYMTestActions         1. Create CFrame object;
       
   621 //!                         2. Create RFbsSession object and Connect;
       
   622 //!                         3. Create CFbsBitmap object;
       
   623 //!                         4. Load CFbsBitmap;
       
   624 //!                         5. Set FrameInfo and Bitmap to the CFrame object.
       
   625 //!                         6. Create CWsGraphicBitmapAnimation object with the CFrame object and specified Uid.
       
   626 //!                         7. Get the Uid of the CWsGraphicBitmapAnimation object;
       
   627 //!                         8.Disown and destroy the created objects;
       
   628 //!                         9.Disconnect RFbsSession.
       
   629 //! @SYMTestStatus          Implemented
       
   630 //! @SYMTestPriority        High
       
   631 //! @SYMTestExpectedResults The Uid get at the action 7 should have the same value as the specified Uid.
       
   632 //! @SYMTestType            CIT
       
   633    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   634         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   635         CREATE_OBJECT      CFrame                     frame1
       
   636         CREATE_OBJECT      RFbsSession                fbssession
       
   637         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   638         COMMAND            frame1                     NewL
       
   639         COMMAND            fbssession                 Connect
       
   640         COMMAND            bitmap1                    new
       
   641         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-Load-command004
       
   642         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-SetFrameInfo-command005
       
   643         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-SetBitmap-command006
       
   644         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-NewL-command007
       
   645         COMMAND            bmpanim                    Id                   GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-Id-command008
       
   646         COMMAND            bitmap1                    disown
       
   647         COMMAND            frame1                     ~
       
   648         COMMAND            bmpanim                    ~
       
   649         COMMAND            fbssession                 Disconnect
       
   650    END_TEST_BLOCK
       
   651 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012
       
   652 
       
   653 
       
   654 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013
       
   655 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013
       
   656 //! @SYMAPI                 CWsGraphicBitmapAnimation::ShareGlobally();
       
   657 //!                         CWsGraphicBitmapAnimation::UnShareGlobally()
       
   658 //! @SYMAuthor              Yue Zhang
       
   659 //! @SYMCreationDate        28-03-2008
       
   660 //! @SYMTestCaseDesc        Using another process draw the bitmap after the CWsGraphicBitmapAnimation share globally or unshare globally.
       
   661 //! @SYMTestActions         1. Create CFrame object;
       
   662 //!                         2. Create RFbsSession object and connect;
       
   663 //!                         3. Create wsga object;
       
   664 //!                         4. Create RWsSession object and connect;
       
   665 //!                         5. Create CWsScreenDevice object and construct it;
       
   666 //!                         6. Create context of CWsScreenDevice;
       
   667 //!                         7. Create CFbsBitmap object;
       
   668 //!                         8. Load CFbsBitmap;
       
   669 //!                         9. Set FrameInfo and Bitmap to the CFrame object.
       
   670 //!                         10. Create CWsGraphicBitmapAnimation object with the CFrame object.
       
   671 //!                         11. Create RWindowGroup object and construct it.
       
   672 //!                         12. Create RWindow object and construct it.
       
   673 //!                         13. Set required display mode of RWindow object;
       
   674 //!                         14. Set background color of RWindow object.
       
   675 //!                         15. Active the RWindow object.
       
   676 //!                         16. Set auto flush of RWsSession object.
       
   677 //!                         17. Activate the CWindowGc object.
       
   678 //!                         18. Draw window session graphic by the CWindowGc object.
       
   679 //!                         19. Decativate the CWindowGc object.
       
   680 //!                         20. Start a test client in another process;
       
   681 //!                         21. Draw the window session bitmap in the client;
       
   682 //!                         22. Use CWsScreenDevice object to compare the drawn rectangle.
       
   683 //!                         23. Close the test client.
       
   684 //!                         24. Share the graphic artwork with all the client sessions;
       
   685 //!                         25. Start a test client in another process;
       
   686 //!                         26. Draw the window session bitmap in the client;
       
   687 //!                         27. Use CWsScreenDevice object to compare the drawn rectangle.
       
   688 //!                         28. Close the test client.
       
   689 //!                         29. Unshare the graphic artwork with all the client sessions;
       
   690 //!                         30. Start a test client in another process;
       
   691 //!                         31. Draw the window session bitmap in the client;
       
   692 //!                         32. Use CWsScreenDevice object to compare the drawn rectangle.
       
   693 //!                         33. Close the test client.
       
   694 //!                         34. Disown and destroy the created objects;
       
   695 //!                         35. Disconnect RFbsSession.
       
   696 //! @SYMTestStatus          Implemented
       
   697 //! @SYMTestPriority        High
       
   698 //! @SYMTestExpectedResults The bitmap should not be drawn successfully at test action 21;
       
   699 //!                         The bitmap should be drawn successfully at test action 26;
       
   700 //!                         The bitmap should not be drawn successfully at test action 31.
       
   701 //! @SYMTestType            CIT
       
   702    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   703         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   704         CREATE_OBJECT      RWsSession                 ws
       
   705         CREATE_OBJECT      CFrame                     frame1
       
   706         CREATE_OBJECT      RFbsSession                fbssession
       
   707         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   708         CREATE_OBJECT      CWsScreenDevice            scrdev
       
   709         CREATE_OBJECT      CWindowGc                  wgc
       
   710         CREATE_OBJECT      TWsGraphicAnimation        wsga
       
   711         CREATE_OBJECT      RWindowGroup               wingrp
       
   712         CREATE_OBJECT      RWindow                    win
       
   713         COMMAND            frame1                     NewL
       
   714         COMMAND            fbssession                 Connect
       
   715         COMMAND            wsga                       new
       
   716         COMMAND            ws                         new
       
   717         COMMAND            ws                         Connect
       
   718         COMMAND            scrdev                     new                  GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-new-command006
       
   719         COMMAND            scrdev                     Construct
       
   720         COMMAND            scrdev                     CreateContext        GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-CreateContext_command008
       
   721         COMMAND            bitmap1                    new
       
   722         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Load-command010
       
   723         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetFrameInfo-command011
       
   724         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetBitmap-command012
       
   725         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-NewL-command013
       
   726         COMMAND            wingrp                     new                  GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-new_command014
       
   727         COMMAND            wingrp                     Construct            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Construct_command015
       
   728         COMMAND            win                        new                  GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-new_command016
       
   729         COMMAND            win                        Construct            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Construct_command017
       
   730         COMMAND            win                        SetRequiredDisplayMode    GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetRequiredDisplayMode_command018
       
   731         COMMAND            win                        SetBackgroundColor        GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetBackgroundColor_command019
       
   732         COMMAND            win                        Activate
       
   733         COMMAND            ws                         SetAutoFlush         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetAutoFlush_command021
       
   734         COMMAND            wgc                        Activate             GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Activate_command022
       
   735         COMMAND            win                        BeginRedraw
       
   736         COMMAND            wgc                        DrawWsGraphic        GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-DrawWsGraphic_command024
       
   737         COMMAND            win                        EndRedraw
       
   738         COMMAND            wgc                        Deactivate
       
   739         COMMAND            bmpanim         Util_StartAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_StartAnimTesterClientL_command027
       
   740         COMMAND            scrdev                     RectCompare          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-RectCompare_command028
       
   741         COMMAND            bmpanim         Util_CloseAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_CloseAnimTesterClientL_command029
       
   742         COMMAND            bmpanim                    ShareGlobally
       
   743         COMMAND            bmpanim         Util_StartAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_StartAnimTesterClientL_command031
       
   744         COMMAND            scrdev                     RectCompare          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-RectCompare_command032
       
   745         COMMAND            bmpanim         Util_CloseAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_CloseAnimTesterClientL_command033
       
   746         COMMAND            bmpanim                    UnShareGlobally
       
   747         COMMAND            bmpanim         Util_StartAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_StartAnimTesterClientL_command035
       
   748         COMMAND            scrdev                     RectCompare          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-RectCompare_command036
       
   749         COMMAND            bmpanim         Util_CloseAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_CloseAnimTesterClientL_command037
       
   750         COMMAND            bitmap1                    disown
       
   751         COMMAND            frame1                     ~
       
   752         COMMAND            bmpanim                    ~
       
   753         COMMAND            win                        Close
       
   754         COMMAND            wingrp                     Close
       
   755         COMMAND            wgc                        ~
       
   756         COMMAND            scrdev                     ~
       
   757         COMMAND            ws                         Close
       
   758         COMMAND            fbssession                 Disconnect
       
   759    END_TEST_BLOCK
       
   760 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013
       
   761 
       
   762 
       
   763 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014
       
   764 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014
       
   765 //! @SYMAPI                 CWsGraphicBitmapAnimation::Share(TSecureId);
       
   766 //!                         CWsGraphicBitmapAnimation::UnShare(TSecureId)
       
   767 //! @SYMAuthor              Yue Zhang
       
   768 //! @SYMCreationDate        28-03-2008
       
   769 //! @SYMTestCaseDesc        Using another process with given SID draw the bitmap after the CWsGraphicBitmapAnimation share or unshare to the Sid.
       
   770 //! @SYMTestActions         1. Create CFrame object;
       
   771 //!                         2. Create RFbsSession object and connect;
       
   772 //!                         3. Create wsga object;
       
   773 //!                         4. Create RWsSession object and connect;
       
   774 //!                         5. Create CWsScreenDevice object and construct it;
       
   775 //!                         6. Create context of CWsScreenDevice;
       
   776 //!                         7. Create CFbsBitmap object;
       
   777 //!                         8. Load CFbsBitmap;
       
   778 //!                         9. Set FrameInfo and Bitmap to the CFrame object.
       
   779 //!                         10. Create CWsGraphicBitmapAnimation object with the CFrame object.
       
   780 //!                         11. Create RWindowGroup object and construct it.
       
   781 //!                         12. Create RWindow object and construct it.
       
   782 //!                         13. Set required display mode of RWindow object;
       
   783 //!                         14. Set background color of RWindow object.
       
   784 //!                         15. Active the RWindow object.
       
   785 //!                         16. Set auto flush of RWsSession object.
       
   786 //!                         17. Activate the CWindowGc object.
       
   787 //!                         18. Draw window session graphic by the CWindowGc object.
       
   788 //!                         19. Decativate the CWindowGc object.
       
   789 //!                         20. Start a test client in another process;
       
   790 //!                         21. Draw the window session bitmap in the client;
       
   791 //!                         22. Use CWsScreenDevice object to compare the drawn rectangle.
       
   792 //!                         23. Close the test client.
       
   793 //!                         24. Share the graphic artwork with the specified Secure ID;
       
   794 //!                         25. Start a test client in another process;
       
   795 //!                         26. Draw the window session bitmap in the client;
       
   796 //!                         27. Use CWsScreenDevice object to compare the drawn rectangle.
       
   797 //!                         28. Close the test client.
       
   798 //!                         29. Unshare the graphic artwork with the specified Secure ID;
       
   799 //!                         30. Start a test client in another process;
       
   800 //!                         31. Draw the window session bitmap in the client;
       
   801 //!                         32. Use CWsScreenDevice object to compare the drawn rectangle.
       
   802 //!                         33. Close the test client.
       
   803 //!                         34. Disown and destroy the created objects;
       
   804 //!                         35. Disconnect RFbsSession.
       
   805 //! @SYMTestStatus          Implemented
       
   806 //! @SYMTestPriority        High
       
   807 //! @SYMTestExpectedResults The bitmap should not be drawn successfully at test action 21;
       
   808 //!                         The bitmap should be drawn successfully at test action 26;
       
   809 //!                         The bitmap should not be drawn successfully at test action 31.
       
   810 //! @SYMTestType            CIT
       
   811    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   812         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   813         CREATE_OBJECT      RWsSession                 ws
       
   814         CREATE_OBJECT      CFrame                     frame1
       
   815         CREATE_OBJECT      RFbsSession                fbssession
       
   816         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   817         CREATE_OBJECT      CWsScreenDevice            scrdev
       
   818         CREATE_OBJECT      CWindowGc                  wgc
       
   819         CREATE_OBJECT      TWsGraphicAnimation        wsga
       
   820         CREATE_OBJECT      RWindowGroup               wingrp
       
   821         CREATE_OBJECT      RWindow                    win
       
   822         COMMAND            frame1                     NewL
       
   823         COMMAND            fbssession                 Connect
       
   824         COMMAND            wsga                       new
       
   825         COMMAND            ws                         new
       
   826         COMMAND            ws                         Connect
       
   827         COMMAND            scrdev                     new                  GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-new-command006
       
   828         COMMAND            scrdev                     Construct
       
   829         COMMAND            scrdev                     CreateContext        GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-CreateContext_command008
       
   830         COMMAND            bitmap1                    new
       
   831         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Load-command010
       
   832         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetFrameInfo-command011
       
   833         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetBitmap-command012
       
   834         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-NewL-command013
       
   835         COMMAND            wingrp                     new                  GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-new_command014
       
   836         COMMAND            wingrp                     Construct            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Construct_command015
       
   837         COMMAND            win                        new                  GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-new_command016
       
   838         COMMAND            win                        Construct            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Construct_command017
       
   839         COMMAND            win                        SetRequiredDisplayMode    GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetRequiredDisplayMode_command018
       
   840         COMMAND            win                        SetBackgroundColor        GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetBackgroundColor_command019
       
   841         COMMAND            win                        Activate
       
   842         COMMAND            ws                         SetAutoFlush         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetAutoFlush_command021
       
   843         COMMAND            wgc                        Activate             GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Activate_command022
       
   844         COMMAND            win                        BeginRedraw
       
   845         COMMAND            wgc                        DrawWsGraphic        GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-DrawWsGraphic_command024
       
   846         COMMAND            win                        EndRedraw
       
   847         COMMAND            wgc                        Deactivate
       
   848         COMMAND            bmpanim         Util_StartAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_StartAnimTesterClientL_command027
       
   849         COMMAND            scrdev                     RectCompare          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-RectCompare_command028
       
   850         COMMAND            bmpanim         Util_CloseAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_CloseAnimTesterClientL_command029
       
   851         COMMAND            bmpanim                    Share                GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Share-command030
       
   852         COMMAND            bmpanim         Util_StartAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_StartAnimTesterClientL_command031
       
   853         COMMAND            scrdev                     RectCompare          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-RectCompare_command032
       
   854         COMMAND            bmpanim         Util_CloseAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_CloseAnimTesterClientL_command033
       
   855         COMMAND            bmpanim                    UnShare              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-UnShare-command034
       
   856         COMMAND            bmpanim         Util_StartAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_StartAnimTesterClientL_command035
       
   857         COMMAND            scrdev                     RectCompare          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-RectCompare_command036
       
   858         COMMAND            bmpanim         Util_CloseAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_CloseAnimTesterClientL_command037
       
   859         COMMAND            bitmap1                    disown
       
   860         COMMAND            frame1                     ~
       
   861         COMMAND            bmpanim                    ~
       
   862         COMMAND            win                        Close
       
   863         COMMAND            wingrp                     Close
       
   864         COMMAND            wgc                        ~
       
   865         COMMAND            scrdev                     ~
       
   866         COMMAND            ws                         Close
       
   867         COMMAND            fbssession                 Disconnect
       
   868    END_TEST_BLOCK
       
   869 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014
       
   870 
       
   871 
       
   872 START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015
       
   873 //! @SYMTestCaseID          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015
       
   874 //! @SYMAPI                 CWsGraphicBitmapAnimation::Share(TSecureId);
       
   875 //!                         CWsGraphicBitmapAnimation::UnShare(TSecureId)
       
   876 //! @SYMAuthor              Yue Zhang
       
   877 //! @SYMCreationDate        28-03-2008
       
   878 //! @SYMTestCaseDesc        Using another process without the given Sid draw the bitmap after the CWsGraphicBitmapAnimation share or unshare to the Sid.
       
   879 //! @SYMTestActions         1. Create CFrame object;
       
   880 //!                         2. Create RFbsSession object and connect;
       
   881 //!                         3. Create wsga object;
       
   882 //!                         4. Create RWsSession object and connect;
       
   883 //!                         5. Create CWsScreenDevice object and construct it;
       
   884 //!                         6. Create context of CWsScreenDevice;
       
   885 //!                         7. Create CFbsBitmap object;
       
   886 //!                         8. Load CFbsBitmap;
       
   887 //!                         9. Set FrameInfo and Bitmap to the CFrame object.
       
   888 //!                         10. Create CWsGraphicBitmapAnimation object with the CFrame object.
       
   889 //!                         11. Create RWindowGroup object and construct it.
       
   890 //!                         12. Create RWindow object and construct it.
       
   891 //!                         13. Set required display mode of RWindow object;
       
   892 //!                         14. Set background color of RWindow object.
       
   893 //!                         15. Active the RWindow object.
       
   894 //!                         16. Set auto flush of RWsSession object.
       
   895 //!                         17. Activate the CWindowGc object.
       
   896 //!                         18. Draw window session graphic by the CWindowGc object.
       
   897 //!                         19. Decativate the CWindowGc object.
       
   898 //!                         20. Start a test client in another process;
       
   899 //!                         21. Draw the window session bitmap in the client;
       
   900 //!                         22. Use CWsScreenDevice object to compare the drawn rectangle.
       
   901 //!                         23. Close the test client.
       
   902 //!                         24. Share the graphic artwork with the specified Secure ID;
       
   903 //!                         25. Start a test client in another process;
       
   904 //!                         26. Draw the window session bitmap in the client;
       
   905 //!                         27. Use CWsScreenDevice object to compare the drawn rectangle.
       
   906 //!                         28. Close the test client.
       
   907 //!                         29. Unshare the graphic artwork with the specified Secure ID;
       
   908 //!                         30. Start a test client in another process;
       
   909 //!                         31. Draw the window session bitmap in the client;
       
   910 //!                         32. Use CWsScreenDevice object to compare the drawn rectangle.
       
   911 //!                         33. Close the test client.
       
   912 //!                         34. Disown and destroy the created objects;
       
   913 //!                         35. Disconnect RFbsSession.
       
   914 //! @SYMTestStatus          Implemented
       
   915 //! @SYMTestPriority        High
       
   916 //! @SYMTestExpectedResults The bitmap should not be drawn successfully at test action 21;
       
   917 //!                         The bitmap should not be drawn successfully at test action 26;
       
   918 //!                         The bitmap should not be drawn successfully at test action 31.
       
   919 //! @SYMTestType            CIT
       
   920    START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini
       
   921         CREATE_OBJECT      CWsGraphicBitmapAnimation  bmpanim
       
   922         CREATE_OBJECT      RWsSession                 ws
       
   923         CREATE_OBJECT      CFrame                     frame1
       
   924         CREATE_OBJECT      RFbsSession                fbssession
       
   925         CREATE_OBJECT      CFbsBitmap                 bitmap1
       
   926         CREATE_OBJECT      CWsScreenDevice            scrdev
       
   927         CREATE_OBJECT      CWindowGc                  wgc
       
   928         CREATE_OBJECT      TWsGraphicAnimation        wsga
       
   929         CREATE_OBJECT      RWindowGroup               wingrp
       
   930         CREATE_OBJECT      RWindow                    win
       
   931         COMMAND            frame1                     NewL
       
   932         COMMAND            fbssession                 Connect
       
   933         COMMAND            wsga                       new
       
   934         COMMAND            ws                         new
       
   935         COMMAND            ws                         Connect
       
   936         COMMAND            scrdev                     new                  GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-new-command006
       
   937         COMMAND            scrdev                     Construct
       
   938         COMMAND            scrdev                     CreateContext        GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-CreateContext_command008
       
   939         COMMAND            bitmap1                    new
       
   940         COMMAND            bitmap1                    Load                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Load-command010
       
   941         COMMAND            frame1                     SetFrameInfo         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetFrameInfo-command011
       
   942         COMMAND            frame1                     SetBitmap            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetBitmap-command012
       
   943         COMMAND            bmpanim                    NewL                 GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-NewL-command013
       
   944         COMMAND            wingrp                     new                  GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-new_command014
       
   945         COMMAND            wingrp                     Construct            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Construct_command015
       
   946         COMMAND            win                        new                  GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-new_command016
       
   947         COMMAND            win                        Construct            GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Construct_command017
       
   948         COMMAND            win                        SetRequiredDisplayMode    GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetRequiredDisplayMode_command018
       
   949         COMMAND            win                        SetBackgroundColor        GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetBackgroundColor_command019
       
   950         COMMAND            win                        Activate
       
   951         COMMAND            ws                         SetAutoFlush         GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetAutoFlush_command021
       
   952         COMMAND            wgc                        Activate             GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Activate_command022
       
   953         COMMAND            win                        BeginRedraw
       
   954         COMMAND            wgc                        DrawWsGraphic        GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-DrawWsGraphic_command024
       
   955         COMMAND            win                        EndRedraw
       
   956         COMMAND            wgc                        Deactivate
       
   957         COMMAND            bmpanim         Util_StartAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_StartAnimTesterClientL_command027
       
   958         COMMAND            scrdev                     RectCompare          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-RectCompare_command028
       
   959         COMMAND            bmpanim         Util_CloseAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_CloseAnimTesterClientL_command029
       
   960         COMMAND            bmpanim                    Share                GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Share-command030
       
   961         COMMAND            bmpanim         Util_StartAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_StartAnimTesterClientL_command031
       
   962         COMMAND            scrdev                     RectCompare          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-RectCompare_command032
       
   963         COMMAND            bmpanim         Util_CloseAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_CloseAnimTesterClientL_command033
       
   964         COMMAND            bmpanim                    UnShare              GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-UnShare-command034
       
   965         COMMAND            bmpanim         Util_StartAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_StartAnimTesterClientL_command035
       
   966         COMMAND            scrdev                     RectCompare          GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-RectCompare_command036
       
   967         COMMAND            bmpanim         Util_CloseAnimTesterClientL     GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_CloseAnimTesterClientL_command037
       
   968         COMMAND            bitmap1                    disown
       
   969         COMMAND            frame1                     ~
       
   970         COMMAND            bmpanim                    ~
       
   971         COMMAND            win                        Close
       
   972         COMMAND            wingrp                     Close
       
   973         COMMAND            wgc                        ~
       
   974         COMMAND            scrdev                     ~
       
   975         COMMAND            ws                         Close
       
   976         COMMAND            fbssession                 Disconnect
       
   977    END_TEST_BLOCK
       
   978 END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015
       
   979