graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsSprite-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-WsSprite-PublicApi
       
    18 //! @SYMScriptTestEnvironment	This test script requires a basic ROM.
       
    19 
       
    20 ///////////////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-WSERV-WsSprite-PublicApi.script
       
    22 //
       
    23 // Tests all public elements of the RWsSprite 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 // RWsSprite 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 // RWsSprite
       
    38 // ****************************************************************************
       
    39 
       
    40 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0001
       
    41 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0001
       
    42 //! @SYMAPI                 RWsSprite::RWsSprite()
       
    43 //! @SYMAuthor              Jeffery Zhao
       
    44 //! @SYMCreationDate        28/11/2007
       
    45 //! @SYMTestCaseDesc        Create a RWsSprite object with default construct.
       
    46 //! @SYMTestActions         1.Create RWsSprite with default constructor.
       
    47 //! @SYMTestStatus          Implemented
       
    48 //! @SYMTestPriority        High
       
    49 //! @SYMTestExpectedResults RWsSprite object was created without causing panic
       
    50 //! @SYMTestType            CIT
       
    51    START_TEST_BLOCK     10         T_GraphicsWservAPI     \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
    52         CREATE_OBJECT   RWsSprite  sprite
       
    53         COMMAND         sprite     new
       
    54         COMMAND         sprite     Close
       
    55    END_TEST_BLOCK
       
    56 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0001
       
    57 
       
    58 
       
    59 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0002
       
    60 //! @SYMTestCaseID              GRAPHICS-WSERV-WsSprite-PublicApi-0002
       
    61 //! @SYMAPI                     RWsSprite::RWsSprite(RWsSession{ref})
       
    62 //! @SYMAuthor                  Jeffery Zhao
       
    63 //! @SYMCreationDate            28/11/2007
       
    64 //! @SYMTestCaseDesc            Create a RWsSprite object.          
       
    65 //! @SYMTestActions             1. Create and connect a RWsSession
       
    66 //!                             2. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
    67 //!                             3. Close RWsSession.
       
    68 //! @SYMTestStatus              Implemented
       
    69 //! @SYMTestPriority            High
       
    70 //! @SYMTestExpectedResults     RWsSprite object was created without causing panic
       
    71 //! @SYMTestType                CIT
       
    72     START_TEST_BLOCK        10              T_GraphicsWservAPI     \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
    73         CREATE_OBJECT   RWsSession      ws
       
    74         CREATE_OBJECT   RWsSprite       sprite
       
    75         COMMAND         ws              new
       
    76         COMMAND         ws              Connect
       
    77         COMMAND         sprite          new                    GRAPHICS-WSERV-WsSprite-PublicApi-0002-0001-new_command004
       
    78         COMMAND         sprite          Close
       
    79         COMMAND         ws              Close
       
    80     END_TEST_BLOCK
       
    81 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0002
       
    82 
       
    83 
       
    84 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0003
       
    85 //! @SYMTestCaseID              GRAPHICS-WSERV-WsSprite-PublicApi-0003
       
    86 //! @SYMAPI                     RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt)
       
    87 //! @SYMAuthor                  Jeffery Zhao
       
    88 //! @SYMCreationDate            28/11/2007
       
    89 //! @SYMTestCaseDesc            Create a RWsSprite object with RWsSprite(RWsSession &aWs) and construct.
       
    90 //! @SYMTestActions             1. Create and connect a RWsSession
       
    91 //!                             2. Create and construct RWindowGroup and RWindow.
       
    92 //!                             3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
    93 //!                             4. Construct RWsSprite.
       
    94 //!                             5. Close RWsSprite,RWsSession and RWindow.
       
    95 //! @SYMTestStatus              Implemented
       
    96 //! @SYMTestPriority            High
       
    97 //! @SYMTestExpectedResults     RWsSprite object was constructed without causing panic
       
    98 //! @SYMTestType                CIT
       
    99     START_TEST_BLOCK       10                T_GraphicsWservAPI  \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   100         CREATE_OBJECT   RWsSession        ws
       
   101         CREATE_OBJECT   RWindowGroup      wingrp
       
   102         CREATE_OBJECT   RWindow           win
       
   103         CREATE_OBJECT   RWsSprite         sprite
       
   104         COMMAND         ws                new
       
   105         COMMAND         ws                Connect
       
   106         COMMAND         wingrp            new                  GRAPHICS-WSERV-WsSprite-Setup-0003-0001-new_command001
       
   107         COMMAND         wingrp            Construct            GRAPHICS-WSERV-WsSprite-Setup-0003-0001-Construct_command003
       
   108         COMMAND         win               new                  GRAPHICS-WSERV-WsSprite-PublicApi-0003-0001-new_command004
       
   109         COMMAND         win               Construct            GRAPHICS-WSERV-WsSprite-Setup-0003-0001-Construct_command002
       
   110         COMMAND         sprite            new                  GRAPHICS-WSERV-WsSprite-PublicApi-0003-0001-new_command006
       
   111         COMMAND         sprite            Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0003-0001-Construct_command007
       
   112         
       
   113         COMMAND         sprite            Close
       
   114         COMMAND         win               Close
       
   115         COMMAND         wingrp            Close
       
   116         COMMAND         ws                Close
       
   117     END_TEST_BLOCK
       
   118 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0003
       
   119 
       
   120 
       
   121 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0004
       
   122 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0004
       
   123 //! @SYMAPI                 RWsSpriteBase::AppendMember(const TSpriteMember{ref})
       
   124 //! @SYMAuthor              Jeffery Zhao
       
   125 //! @SYMCreationDate        28/11/2007
       
   126 //! @SYMTestCaseDesc        Create and construct a RWsSprite object with RWsSession and append sprite member.
       
   127 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
   128 //! @SYMTestActions         1.  Create and connect a RWsSession, create 4 CFbsBitmap objects.
       
   129 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   130 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
   131 //!                         4.  Construct RWsSprite.
       
   132 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
   133 //!                         6.  Append three different bitmaps to the sprite, each with the same mask.
       
   134 //!                         7.  Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
   135 //! @SYMTestStatus          Implemented
       
   136 //! @SYMTestPriority        High
       
   137 //! @SYMTestExpectedResults Adds sprite member to a sprite successfully and returns KErrNone.
       
   138 //! @SYMTestType            CIT
       
   139     START_TEST_BLOCK    10         T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   140         CREATE_OBJECT   RWsSession        ws
       
   141         CREATE_OBJECT   RWindowGroup    wingrp
       
   142         CREATE_OBJECT   CFbsBitmap      mask1
       
   143         CREATE_OBJECT   CFbsBitmap      bitmap1
       
   144         CREATE_OBJECT   CFbsBitmap      bitmap2
       
   145         CREATE_OBJECT   CFbsBitmap      bitmap3
       
   146         CREATE_OBJECT   RWindow         win
       
   147         CREATE_OBJECT   RWsSprite       sprite
       
   148         COMMAND     ws        new
       
   149         COMMAND     ws        Connect
       
   150         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-Setup-0004-0001-new_command001
       
   151         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-Setup-0004-0001-Construct_command003
       
   152         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-new_command004
       
   153         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-Setup-0004-0001-Construct_command002
       
   154         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-new_command006
       
   155         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Construct_command007
       
   156         COMMAND     mask1     new           
       
   157         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Load_command009
       
   158 
       
   159         COMMAND     bitmap1   new           
       
   160         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Load_command011
       
   161         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-AppendMember_command012
       
   162 
       
   163         COMMAND     bitmap2   new           
       
   164         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Load_command014
       
   165         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-AppendMember_command015
       
   166         
       
   167         COMMAND     bitmap3   new           
       
   168         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Load_command017
       
   169         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-AppendMember_command018
       
   170         
       
   171         COMMAND     sprite    Close
       
   172         COMMAND     mask1     ~
       
   173         COMMAND     bitmap1   ~
       
   174         COMMAND     bitmap2   ~
       
   175         COMMAND     bitmap3   ~
       
   176         COMMAND     win       Close
       
   177         COMMAND     wingrp    Close
       
   178         COMMAND     ws        Close
       
   179     END_TEST_BLOCK
       
   180 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0004
       
   181 
       
   182 
       
   183 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0005
       
   184 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0005
       
   185 //! @SYMAPI                 RWsSpriteBase::Activate()
       
   186 //! @SYMAuthor              Jeffery Zhao
       
   187 //! @SYMCreationDate        28/11/2007
       
   188 //! @SYMTestCaseDesc        Create spirte and append three member then activate it.
       
   189 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
   190 //! @SYMTestActions         1.  Create and connect a RWsSession, create 4 CFbsBitmap objects.
       
   191 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   192 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
   193 //!                         4.  Construct RWsSprite.
       
   194 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
   195 //!                         6.  Append three different bitmaps to the sprite, each with the same mask.
       
   196 //!                         7.  Activate RWsSprite.
       
   197 //!                         8.  Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
   198 //! @SYMTestStatus          Implemented
       
   199 //! @SYMTestPriority        High
       
   200 //! @SYMTestExpectedResults Activates sprites successfully and returns KErrNone.
       
   201 //! @SYMTestType            CIT
       
   202     START_TEST_BLOCK    10          T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   203         CREATE_OBJECT   RWsSession    ws
       
   204         CREATE_OBJECT   RWindowGroup  wingrp
       
   205         CREATE_OBJECT   CFbsBitmap    mask1
       
   206         CREATE_OBJECT   CFbsBitmap    bitmap1
       
   207         CREATE_OBJECT   CFbsBitmap    bitmap2
       
   208         CREATE_OBJECT   CFbsBitmap    bitmap3
       
   209         CREATE_OBJECT   RWindow       win
       
   210         CREATE_OBJECT   RWsSprite     sprite
       
   211         COMMAND     ws        new
       
   212         COMMAND     ws        Connect
       
   213         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-Setup-0005-0001-new_command001
       
   214         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-Setup-0005-0001-Construct_command003
       
   215         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-new_command004
       
   216         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-Setup-0005-0001-Construct_command002
       
   217         COMMAND     win       Activate
       
   218         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-new_command006
       
   219         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Construct_command007
       
   220         COMMAND     mask1     new           
       
   221         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Load_command009
       
   222         
       
   223         COMMAND     bitmap1   new           
       
   224         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Load_command011
       
   225         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-AppendMember_command012
       
   226         
       
   227         COMMAND     bitmap2   new           
       
   228         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Load_command014
       
   229         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-AppendMember_command015
       
   230 
       
   231         COMMAND     bitmap3   new           
       
   232         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Load_command017
       
   233         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-AppendMember_command018
       
   234 
       
   235         COMMAND     sprite    Activate
       
   236         
       
   237         COMMAND     sprite    Close
       
   238         COMMAND     mask1     ~
       
   239         COMMAND     bitmap1   ~
       
   240         COMMAND     bitmap2   ~
       
   241         COMMAND     bitmap3   ~
       
   242         COMMAND     win       Close
       
   243         COMMAND     wingrp    Close
       
   244         COMMAND     ws        Close
       
   245     END_TEST_BLOCK
       
   246 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0005
       
   247 
       
   248 
       
   249 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0006
       
   250 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0006
       
   251 //! @SYMAPI                 RWsSpriteBase::UpdateMember(TInt)
       
   252 //! @SYMAuthor              Jeffery Zhao
       
   253 //! @SYMCreationDate        22/01/2008
       
   254 //! @SYMTestCaseDesc        Create 2 sprite object with same 2 sprite member and update the first object's TSpriteMember bitmap size,then verify.
       
   255 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
   256 //!                         The bitmap size is (50,50), after activate sprite, we change the first sprite member bitmap size to (40,40) of first sprit object.
       
   257 //! @SYMTestActions         1.  Create and connect a RWsSession, create 5 CFbsBitmap objects.
       
   258 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   259 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
   260 //!                         4.  Construct RWsSprite at position(10,10).
       
   261 //!                         5.  Create and construct the second sprite at position(10,70).
       
   262 //!                         6.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
   263 //!                         7.  Append three different bitmaps to the two sprites, each with the same mask.
       
   264 //!                         8.  Activate the two RWsSprite.
       
   265 //!                         9.  Compare the rectangle(10,10,60,60) with (10,70,60,120) which the sprite objects located,they should be same.
       
   266 //!                         10. Change bitmap size of bitmap1 object which is the first TSpriteMember of first sprite object to (40,40).
       
   267 //!                         11. Update first sprite object's sprite member(index=0).
       
   268 //!                         12. Compare the two rectangles again, they should be NOT same.
       
   269 //!                         13. Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
   270 //! @SYMTestStatus          Implemented
       
   271 //! @SYMTestPriority        High
       
   272 //! @SYMTestExpectedResults Call UpdateMember function without causing panic
       
   273 //! @SYMTestType            CIT
       
   274     START_TEST_BLOCK        10          T_GraphicsWservAPI  \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   275         CREATE_OBJECT   RWsSession  ws
       
   276         CREATE_OBJECT   CWsScreenDevice scrdev
       
   277         CREATE_OBJECT   CFbsBitmap   mask1
       
   278         CREATE_OBJECT   CFbsBitmap   bitmap1
       
   279         CREATE_OBJECT   CFbsBitmap   bitmap2
       
   280         CREATE_OBJECT   CFbsBitmap   bitmap3
       
   281         CREATE_OBJECT   CFbsBitmap   bitmap4
       
   282         CREATE_OBJECT   RWindowGroup wingrp
       
   283         CREATE_OBJECT   RWindow      win
       
   284         CREATE_OBJECT   RWsSprite    sprite
       
   285         CREATE_OBJECT   RWsSprite    sprite2
       
   286         COMMAND     ws        new
       
   287         COMMAND     ws        Connect
       
   288         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command003
       
   289         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Construct_command004
       
   290         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command005
       
   291         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Construct_command006
       
   292         COMMAND     win       Activate
       
   293         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command008
       
   294         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Construct_command009
       
   295         COMMAND     sprite2   new           GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command010
       
   296         COMMAND     sprite2   Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Construct_command011
       
   297         
       
   298         COMMAND     mask1     new           
       
   299         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command013
       
   300         
       
   301         COMMAND     bitmap1   new           
       
   302         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command015
       
   303         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-AppendMember_command016
       
   304         
       
   305         COMMAND     bitmap2   new           
       
   306         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command018
       
   307         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-AppendMember_command019
       
   308 
       
   309         COMMAND     bitmap3   new           
       
   310         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command021
       
   311         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-AppendMember_command022
       
   312 
       
   313         COMMAND     bitmap4   new           
       
   314         COMMAND     bitmap4   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command024
       
   315         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-AppendMember_command025
       
   316         
       
   317         COMMAND     sprite    Activate
       
   318         COMMAND     sprite2   Activate
       
   319         
       
   320         COMMAND     scrdev    new           GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command028       
       
   321         COMMAND     scrdev    Construct
       
   322         COMMAND     win       BeginRedraw
       
   323         COMMAND     win       EndRedraw
       
   324         //!COMMAND     scrdev    RectCompare   GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-RectCompare_command032
       
   325         
       
   326         COMMAND     bitmap1   Resize        GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Resize_command033
       
   327         COMMAND     sprite    UpdateMember  GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-UpdateMember_command034
       
   328         //!COMMAND     scrdev    RectCompare   GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-RectCompare_command035
       
   329         
       
   330         COMMAND     sprite    Close
       
   331         COMMAND     sprite2   Close
       
   332         COMMAND     mask1     ~
       
   333         COMMAND     bitmap1   ~
       
   334         COMMAND     bitmap2   ~
       
   335         COMMAND     bitmap3   ~
       
   336         COMMAND     bitmap4   ~
       
   337         COMMAND     scrdev    ~
       
   338         COMMAND     win       Close
       
   339         COMMAND     wingrp    Close
       
   340         COMMAND     ws        Close
       
   341     END_TEST_BLOCK
       
   342 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0006
       
   343 
       
   344 
       
   345 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0007
       
   346 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0007
       
   347 //! @SYMAPI                 RWsSpriteBase::UpdateMember(TInt, const TSpriteMember{ref})
       
   348 //! @SYMAuthor              Jeffery Zhao
       
   349 //! @SYMCreationDate        28/11/2007
       
   350 //! @SYMTestCaseDesc        Update the sprite by changed bitmap of member data and verify.
       
   351 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
   352 //! @SYMTestActions         1.  Create and connect a RWsSession, create 4 CFbsBitmap objects.
       
   353 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   354 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
   355 //!                         4.  Construct RWsSprite at position(10,10).
       
   356 //!                         5.  Create and construct the second sprite at position(10,70).
       
   357 //!                         6.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
   358 //!                         7.  Append 2 RWsSprite member with the same member data to the created 2 sprites.
       
   359 //!                         8.  Activate the two RWsSprite.
       
   360 //!                         9.  Compare the rectangle(10,10,60,60) with (10,70,60,120) which the sprite objects located,they should be same.
       
   361 //!                         10. Load a new bitmap to the first sprite then update.
       
   362 //!                         11. Compare the two rectangles again, they should be NOT same.
       
   363 //!                         12. Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
   364 //! @SYMTestStatus          Implemented
       
   365 //! @SYMTestPriority        High
       
   366 //! @SYMTestExpectedResults UpdateMember function successfully without causing panic and runs as expected.
       
   367 //! @SYMTestType            CIT
       
   368     START_TEST_BLOCK        10           T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   369         CREATE_OBJECT   RWsSession   ws
       
   370         CREATE_OBJECT   CWsScreenDevice scrdev
       
   371         CREATE_OBJECT   CFbsBitmap   mask1
       
   372         CREATE_OBJECT   CFbsBitmap   bitmap1
       
   373         CREATE_OBJECT   CFbsBitmap   bitmap2
       
   374         CREATE_OBJECT   CFbsBitmap   bitmap3
       
   375         CREATE_OBJECT   RWindowGroup wingrp
       
   376         CREATE_OBJECT   RWindow      win
       
   377         CREATE_OBJECT   RWsSprite    sprite
       
   378         CREATE_OBJECT   RWsSprite    sprite2
       
   379         COMMAND     ws        new
       
   380         COMMAND     ws        Connect
       
   381         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command003
       
   382         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Construct_command004
       
   383         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command005
       
   384         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Construct_command006
       
   385         COMMAND     win       Activate
       
   386         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command008
       
   387         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Construct_command009
       
   388         COMMAND     sprite2   new           GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command010
       
   389         COMMAND     sprite2   Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Construct_command011
       
   390         
       
   391         COMMAND     mask1     new           
       
   392         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Load_command013
       
   393         
       
   394         COMMAND     bitmap1   new           
       
   395         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Load_command015
       
   396         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-AppendMember_command016
       
   397         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-AppendMember_command017
       
   398         
       
   399         COMMAND     bitmap2   new           
       
   400         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Load_command019
       
   401         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-AppendMember_command020
       
   402         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-AppendMember_command021
       
   403         
       
   404         COMMAND     sprite    Activate
       
   405         COMMAND     sprite2   Activate
       
   406         
       
   407         COMMAND     scrdev    new           GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command24       
       
   408         COMMAND     scrdev    Construct
       
   409         COMMAND     win       BeginRedraw
       
   410         COMMAND     win       EndRedraw
       
   411         //!COMMAND     scrdev    RectCompare   GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-RectCompare_command028
       
   412         
       
   413         COMMAND     bitmap3   new           
       
   414         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Load_command030
       
   415         COMMAND     sprite    UpdateMember  GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-UpdateMember_command031
       
   416         
       
   417         //!COMMAND     scrdev    RectCompare   GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-RectCompare_command032
       
   418         
       
   419         COMMAND     sprite    Close
       
   420         COMMAND     sprite2   Close
       
   421         COMMAND     mask1     ~
       
   422         COMMAND     bitmap1   ~
       
   423         COMMAND     bitmap2   ~
       
   424         COMMAND     bitmap3   ~
       
   425         COMMAND     scrdev    ~ 
       
   426         COMMAND     win       Close
       
   427         COMMAND     wingrp    Close
       
   428         COMMAND     ws        Close
       
   429     END_TEST_BLOCK
       
   430 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0007
       
   431 
       
   432 
       
   433 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0008
       
   434 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0008
       
   435 //! @SYMAPI                 RWsSprite::SetPosition(const TPoint{ref})
       
   436 //! @SYMAuthor              Jeffery Zhao
       
   437 //! @SYMCreationDate        28/11/2007
       
   438 //! @SYMTestCaseDesc        Create sprite and set its position.
       
   439 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
   440 //! @SYMTestActions         1.  Create and connect a RWsSession, create 4 CFbsBitmap objects.
       
   441 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   442 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
   443 //!                         4.  Construct RWsSprite.
       
   444 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
   445 //!                         6.  Append three different bitmaps to the sprite, each with the same mask.
       
   446 //!                         7.  SetPosition sprite position.
       
   447 //!                         8.  Activate RWsSprite.
       
   448 //!                         9.  SetPosition sprite again.
       
   449 //!                         10. Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
   450 //! @SYMTestStatus          Implemented
       
   451 //! @SYMTestPriority        High
       
   452 //! @SYMTestExpectedResults Call SetPosition function without causing panic
       
   453 //! @SYMTestType            CIT
       
   454     START_TEST_BLOCK        10           T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   455         CREATE_OBJECT   RWsSession   ws
       
   456         CREATE_OBJECT   CFbsBitmap   mask1
       
   457         CREATE_OBJECT   CFbsBitmap   bitmap1
       
   458         CREATE_OBJECT   CFbsBitmap   bitmap2
       
   459         CREATE_OBJECT   CFbsBitmap   bitmap3
       
   460         CREATE_OBJECT   RWindowGroup wingrp
       
   461         CREATE_OBJECT   RWindow      win
       
   462         CREATE_OBJECT   RWsSprite    sprite
       
   463         COMMAND     ws        new
       
   464         COMMAND     ws        Connect
       
   465         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-Setup-0008-0001-new_command001
       
   466         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-Setup-0008-0001-Construct_command003
       
   467         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-new_command004
       
   468         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-Setup-0008-0001-Construct_command002
       
   469         COMMAND     win       Activate
       
   470         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-new_command006
       
   471         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Construct_command007
       
   472         COMMAND     mask1     new           
       
   473         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Load_command009
       
   474         
       
   475         COMMAND     bitmap1   new           
       
   476         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Load_command011
       
   477         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-AppendMember_command012
       
   478         
       
   479         COMMAND     bitmap2   new           
       
   480         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Load_command014
       
   481         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-AppendMember_command015
       
   482 
       
   483         COMMAND     bitmap3   new           
       
   484         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Load_command017
       
   485         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-AppendMember_command018
       
   486 
       
   487         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-SetPosition_command019
       
   488         COMMAND     sprite    Activate
       
   489         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-SetPosition_command021
       
   490         
       
   491         COMMAND     sprite    Close
       
   492         COMMAND     mask1     ~
       
   493         COMMAND     bitmap1   ~
       
   494         COMMAND     bitmap2   ~
       
   495         COMMAND     bitmap3   ~
       
   496         COMMAND     win       Close
       
   497         COMMAND     wingrp    Close
       
   498         COMMAND     ws        Close
       
   499     END_TEST_BLOCK
       
   500 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0008
       
   501 
       
   502 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0009
       
   503 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0009
       
   504 //! @SYMAPI                 RWsSprite::Activate()
       
   505 //! @SYMAuthor              Jeffery Zhao
       
   506 //! @SYMCreationDate        14/12/2007
       
   507 //! @SYMTestCaseDesc        Create sprite then activate, verify the sprite are displayed after activation.
       
   508 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
   509 //! @SYMTestActions         1.  Create and connect a RWsSession, and create 4 CFbsBitmap objects.
       
   510 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   511 //!                         3.  Create two RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
   512 //!                         4.  Construct the two RWsSprite.
       
   513 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
   514 //!                         6.  Append three different bitmaps to the two sprites, each with the same mask.
       
   515 //!                         7.  Set the two RWsSprite's position.
       
   516 //!                         8.  Activate the first RWsSprite.
       
   517 //!                         9.  Create CWsScreenDevice and compare the two rect before the second RWsSprite activate, they should be not same.
       
   518 //!                         10. Activate the second RWsSprite and compare the two rect again, they should be same.
       
   519 //!                         11. Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
   520 //! @SYMTestStatus          Implemented
       
   521 //! @SYMTestPriority        High
       
   522 //! @SYMTestExpectedResults 1. Compare two rect, one including sprite, the other not, so the two rect should not be same.
       
   523 //!                         2. Compare two rect with two sprite, they should be same.
       
   524 //! @SYMTestType            CIT
       
   525     START_TEST_BLOCK        10           T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   526         CREATE_OBJECT   RWsSession        ws
       
   527         CREATE_OBJECT   CWsScreenDevice   scrdev
       
   528         CREATE_OBJECT   CFbsBitmap        mask1
       
   529         CREATE_OBJECT   CFbsBitmap        bitmap1
       
   530         CREATE_OBJECT   CFbsBitmap        bitmap2
       
   531         CREATE_OBJECT   CFbsBitmap        bitmap3
       
   532         CREATE_OBJECT   RWindowGroup      wingrp
       
   533         CREATE_OBJECT   RWindow           win
       
   534         CREATE_OBJECT   RWsSprite         sprite
       
   535         CREATE_OBJECT   RWsSprite         sprite2
       
   536         COMMAND     ws        new
       
   537         COMMAND     ws        Connect                
       
   538         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-Setup-0009-0001-new_command001
       
   539         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-Setup-0009-0001-Construct_command003
       
   540         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-new_command004
       
   541         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-Setup-0009-0001-Construct_command002
       
   542         COMMAND     win       Activate
       
   543         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-new_command006
       
   544         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Construct_command007
       
   545         COMMAND     sprite2   new           GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-new_command006
       
   546         COMMAND     sprite2   Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Construct_command007
       
   547         
       
   548         COMMAND     mask1     new           
       
   549         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Load_command009
       
   550         
       
   551         COMMAND     bitmap1   new           
       
   552         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Load_command011
       
   553         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command012
       
   554         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command012
       
   555         
       
   556         COMMAND     bitmap2   new           
       
   557         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Load_command014
       
   558         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command015
       
   559         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command015
       
   560 
       
   561         COMMAND     bitmap3   new           
       
   562         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Load_command017
       
   563         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command018
       
   564         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command018
       
   565         
       
   566         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-SetPosition_command019
       
   567         COMMAND     sprite2   SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-SetPosition_command020
       
   568         COMMAND     sprite    Activate
       
   569         
       
   570         COMMAND     scrdev    new           GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-new_command21       
       
   571         COMMAND     scrdev    Construct
       
   572         COMMAND     win       BeginRedraw
       
   573         COMMAND     win       EndRedraw
       
   574         //!COMMAND     scrdev    RectCompare   GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-RectCompare_command23
       
   575 
       
   576         COMMAND     sprite2   Activate
       
   577         //!COMMAND     scrdev    RectCompare   GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-RectCompare_command24
       
   578         
       
   579         COMMAND     sprite    Close
       
   580         COMMAND     sprite2   Close
       
   581         COMMAND     mask1     ~
       
   582         COMMAND     bitmap1   ~
       
   583         COMMAND     bitmap2   ~
       
   584         COMMAND     bitmap3   ~
       
   585         COMMAND     scrdev    ~ 
       
   586         COMMAND     win       Close
       
   587         COMMAND     wingrp    Close
       
   588         COMMAND     ws        Close
       
   589     END_TEST_BLOCK
       
   590 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0009
       
   591 
       
   592 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0010
       
   593 //! @SYMTestCaseID              GRAPHICS-WSERV-WsSprite-PublicApi-0010
       
   594 //! @SYMAPI                     RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt)
       
   595 //! @SYMAuthor                  Jeffery Zhao
       
   596 //! @SYMCreationDate            29/12/2007
       
   597 //! @SYMTestCaseDesc            Create a RWsSprite object with RWsSession and construct with negative position(-20,-20) and flag 0.
       
   598 //! @SYMTestActions             1. Create and connect a RWsSession
       
   599 //!                             2. Create and construct RWindowGroup and RWindow.
       
   600 //!                             3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
   601 //!                             4. Construct RWsSprite with negative position and flag 0.
       
   602 //!                             5. Close RWsSprite,RWsSession and RWindow.
       
   603 //! @SYMTestStatus              Implemented
       
   604 //! @SYMTestPriority            High
       
   605 //! @SYMTestExpectedResults     RWsSprite object was constructed without causing panic
       
   606 //! @SYMTestType                CIT
       
   607     START_TEST_BLOCK       10                T_GraphicsWservAPI  \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   608         CREATE_OBJECT   RWsSession        ws
       
   609         CREATE_OBJECT   RWindowGroup      wingrp
       
   610         CREATE_OBJECT   RWindow           win
       
   611         CREATE_OBJECT   RWsSprite         sprite
       
   612         COMMAND         ws                new
       
   613         COMMAND         ws                Connect
       
   614         COMMAND         wingrp            new                  GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-new_command003
       
   615         COMMAND         wingrp            Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-Construct_command004
       
   616         COMMAND         win               new                  GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-new_command005
       
   617         COMMAND         win               Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-Construct_command006
       
   618         COMMAND         sprite            new                  GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-new_command007
       
   619         COMMAND         sprite            Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-Construct_command008
       
   620         COMMAND         sprite            Close
       
   621         COMMAND         win               Close
       
   622         COMMAND         wingrp            Close
       
   623         COMMAND         ws                Close
       
   624     END_TEST_BLOCK
       
   625 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0010
       
   626 
       
   627 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0011
       
   628 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0011
       
   629 //! @SYMAPI                 RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt)
       
   630 //! @SYMAuthor              Jeffery Zhao
       
   631 //! @SYMCreationDate        29/12/2007
       
   632 //! @SYMTestCaseDesc        Construct sprite with ESpriteFlash flag.
       
   633 //!                         Verify ESpriteFlash flag which be used when construct RWsSprite.
       
   634 //!                         Create two sprite objects using the same bitmap data, but one set ESpriteFlash flag, and the other not.
       
   635 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
   636 //! @SYMTestActions         1.  Create and connect a RWsSession, and create 4 CFbsBitmap objects.
       
   637 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   638 //!                         3.  Create two RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
   639 //!                         4.  Construct the two RWsSprite, one is constructed with ESpriteFlash flag, the other is constructed with flag 0.
       
   640 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
   641 //!                         6.  Append three different bitmaps to the sprite, each with the same mask.
       
   642 //!                         7.  Activate the two RWsSprite.
       
   643 //!                         8.  Create CWsScreenDevice and compare the two rect which the two sprite located, they should differ.
       
   644 //!                         9.  Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
   645 //! @SYMTestStatus          Implemented
       
   646 //! @SYMTestPriority        High
       
   647 //! @SYMTestExpectedResults 1. Constrcut RWsSprite with ESpriteFlash flag without panic.
       
   648 //!                         2. Compare two rect with two sprite, they should differ.
       
   649 //! @SYMTestType            CIT
       
   650     START_TEST_BLOCK        10           T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   651         CREATE_OBJECT   RWsSession        ws
       
   652         CREATE_OBJECT   CWsScreenDevice   scrdev
       
   653         CREATE_OBJECT   CFbsBitmap        mask1
       
   654         CREATE_OBJECT   CFbsBitmap        bitmap1
       
   655         CREATE_OBJECT   CFbsBitmap        bitmap2
       
   656         CREATE_OBJECT   CFbsBitmap        bitmap3
       
   657         CREATE_OBJECT   RWindowGroup      wingrp
       
   658         CREATE_OBJECT   RWindow           win
       
   659         CREATE_OBJECT   RWsSprite         sprite
       
   660         CREATE_OBJECT   RWsSprite         sprite2
       
   661         COMMAND     ws        new
       
   662         COMMAND     ws        Connect                
       
   663         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command003
       
   664         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Construct_command004
       
   665         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command005
       
   666         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Construct_command006
       
   667         COMMAND     win       Activate
       
   668         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command008
       
   669         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Construct_command009
       
   670         COMMAND     sprite2   new           GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command010
       
   671         COMMAND     sprite2   Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Construct_command011
       
   672         
       
   673         COMMAND     mask1     new           
       
   674         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Load_command013
       
   675         
       
   676         COMMAND     bitmap1   new           
       
   677         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Load_command015
       
   678         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command016
       
   679         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command017
       
   680         
       
   681         COMMAND     bitmap2   new           
       
   682         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Load_command019
       
   683         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command020
       
   684         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command021
       
   685 
       
   686         COMMAND     bitmap3   new           
       
   687         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Load_command023
       
   688         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command024
       
   689         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command025
       
   690         
       
   691         COMMAND     sprite    Activate
       
   692         COMMAND     sprite2   Activate
       
   693         
       
   694         COMMAND     scrdev    new           GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command28       
       
   695         COMMAND     scrdev    Construct
       
   696         COMMAND     win       BeginRedraw
       
   697         COMMAND     win       EndRedraw
       
   698         COMMAND     scrdev    RectCompare   GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-RectCompare_command32
       
   699         
       
   700         COMMAND     sprite    Close
       
   701         COMMAND     sprite2   Close
       
   702         COMMAND     mask1     ~
       
   703         COMMAND     bitmap1   ~
       
   704         COMMAND     bitmap2   ~
       
   705         COMMAND     bitmap3   ~
       
   706         COMMAND     scrdev    ~ 
       
   707         COMMAND     win       Close
       
   708         COMMAND     wingrp    Close
       
   709         COMMAND     ws        Close
       
   710     END_TEST_BLOCK
       
   711 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0011
       
   712 
       
   713 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0012
       
   714 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0012
       
   715 //! @SYMAPI                 RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt)
       
   716 //! @SYMAuthor              Jeffery Zhao
       
   717 //! @SYMCreationDate        29/12/2007
       
   718 //! @SYMTestCaseDesc        Create a RWsSprite object with negative position(-20,-20) and ESpriteFlash flag.
       
   719 //! @SYMTestActions         1. Create and connect a RWsSession
       
   720 //!                         2. Create and construct RWindowGroup and RWindow.
       
   721 //!                         3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
   722 //!                         4. Construct RWsSprite with negative position and ESpriteFlash flag.
       
   723 //!                         5. Close RWsSprite,RWsSession and RWindow.
       
   724 //! @SYMTestStatus          Implemented
       
   725 //! @SYMTestPriority        High
       
   726 //! @SYMTestExpectedResults RWsSprite object was constructed without causing panic
       
   727 //! @SYMTestType            CIT
       
   728     START_TEST_BLOCK       10                T_GraphicsWservAPI  \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   729         CREATE_OBJECT   RWsSession        ws
       
   730         CREATE_OBJECT   RWindowGroup      wingrp
       
   731         CREATE_OBJECT   RWindow           win
       
   732         CREATE_OBJECT   RWsSprite         sprite
       
   733         COMMAND         ws                new
       
   734         COMMAND         ws                Connect
       
   735         COMMAND         wingrp            new                  GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-new_command003
       
   736         COMMAND         wingrp            Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-Construct_command004
       
   737         COMMAND         win               new                  GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-new_command005
       
   738         COMMAND         win               Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-Construct_command006
       
   739         COMMAND         sprite            new                  GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-new_command007
       
   740         COMMAND         sprite            Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-Construct_command008
       
   741         COMMAND         sprite            Close
       
   742         COMMAND         win               Close
       
   743         COMMAND         wingrp            Close
       
   744         COMMAND         ws                Close
       
   745     END_TEST_BLOCK
       
   746 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0012
       
   747 
       
   748 
       
   749 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0013
       
   750 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0013
       
   751 //! @SYMAPI                 RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt)
       
   752 //! @SYMAuthor              Jeffery Zhao
       
   753 //! @SYMCreationDate        29/12/2007
       
   754 //! @SYMTestCaseDesc        Construct sprite with ESpriteNoChildClip flag.
       
   755 //!                         Verify ESpriteNoChildClip flag which be used when construct RWsSprite.
       
   756 //!                         Creates a window, and then creates its child window for the window. 
       
   757 //!                         After creating the windows, the first sprite is constructed with the parent window and the flag ESpriteNoChildClip,
       
   758 //!                         and the second sprite is constructed with the parent window without the sprite flag. 
       
   759 //!                         Finally compare the first sprite and the second sprite to verify the behavior of the sprite flag.
       
   760 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
   761 //! @SYMTestActions         1.  Create and connect a RWsSession, and create 4 CFbsBitmap objects.
       
   762 //!                         2.  Create and construct RWindowGroup and RWindow, child window.
       
   763 //!                         3.  Create two RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
   764 //!                         4.  Construct the two RWsSprite,one is constructed with ESpriteNoChildClip flag, then other is constructed with flag 0.
       
   765 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
   766 //!                         6.  Append three different bitmaps to the two sprites, each with the same mask.
       
   767 //!                         7.  Set the two window redraw and set the child window size,position.
       
   768 //!                         8.  Activate the two window.
       
   769 //!                         9.  Activate the two RWsSprite.
       
   770 //!                         10. Create CWsScreenDevice and compare the two rect which the two sprite located, they should be not same.
       
   771 //!                         11. Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
   772 //! @SYMTestStatus          Implemented
       
   773 //! @SYMTestPriority        High
       
   774 //! @SYMTestExpectedResults 1. Constrcut RWsSprite with ESpriteNoChildClip flag without panic.
       
   775 //!                         2. Compare two rect which two sprite(set/unset ESpriteNoChildClip flag) located, they should be not same.
       
   776 //! @SYMTestType            CIT
       
   777     START_TEST_BLOCK        10           T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   778         CREATE_OBJECT   RWsSession        ws
       
   779         CREATE_OBJECT   CWsScreenDevice   scrdev
       
   780         CREATE_OBJECT   CFbsBitmap        mask1
       
   781         CREATE_OBJECT   CFbsBitmap        bitmap1
       
   782         CREATE_OBJECT   CFbsBitmap        bitmap2
       
   783         CREATE_OBJECT   CFbsBitmap        bitmap3
       
   784         CREATE_OBJECT   RWindowGroup      wingrp
       
   785         CREATE_OBJECT   RWindow           win
       
   786         CREATE_OBJECT   RWindow           win2
       
   787         CREATE_OBJECT   RWsSprite         sprite
       
   788         CREATE_OBJECT   RWsSprite         sprite2
       
   789         COMMAND     ws        new
       
   790         COMMAND     ws        Connect                
       
   791         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command003
       
   792         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command004
       
   793         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command005
       
   794         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command006
       
   795         COMMAND     win2      new           GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command007
       
   796         COMMAND     win2      Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command008
       
   797         
       
   798         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command009
       
   799         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command010
       
   800         COMMAND     sprite2   new           GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command011
       
   801         COMMAND     sprite2   Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command012
       
   802         
       
   803         COMMAND     mask1     new           
       
   804         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Load_command014
       
   805         
       
   806         COMMAND     bitmap1   new           
       
   807         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Load_command016
       
   808         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command017
       
   809         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command018
       
   810         
       
   811         COMMAND     bitmap2   new           
       
   812         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Load_command020
       
   813         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command021
       
   814         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command022
       
   815 
       
   816         COMMAND     bitmap3   new           
       
   817         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Load_command024
       
   818         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command025
       
   819         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command026
       
   820         
       
   821         COMMAND     win       BeginRedraw
       
   822         COMMAND     win       EndRedraw
       
   823         COMMAND     win2      BeginRedraw
       
   824         COMMAND     win2      EndRedraw
       
   825         COMMAND     win2      SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-SetPosition_command031
       
   826         COMMAND     win2      SetSize       GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-SetSize_command032
       
   827         COMMAND     win       Activate
       
   828         COMMAND     win2      Activate
       
   829         
       
   830         COMMAND     sprite    Activate
       
   831         COMMAND     sprite2   Activate
       
   832         
       
   833         COMMAND     scrdev    new           GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command037       
       
   834         COMMAND     scrdev    Construct
       
   835                        
       
   836         //!COMMAND     scrdev    RectCompare   GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-RectCompare_command039
       
   837 
       
   838         COMMAND     sprite    Close
       
   839         COMMAND     sprite2   Close
       
   840         COMMAND     mask1     ~
       
   841         COMMAND     bitmap1   ~
       
   842         COMMAND     bitmap2   ~
       
   843         COMMAND     bitmap3   ~
       
   844         COMMAND     scrdev    ~ 
       
   845         COMMAND     win2      Close
       
   846         COMMAND     win       Close
       
   847         COMMAND     wingrp    Close
       
   848         COMMAND     ws        Close
       
   849     END_TEST_BLOCK
       
   850 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0013
       
   851 
       
   852 
       
   853 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0014
       
   854 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0014
       
   855 //! @SYMAPI                 RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt)
       
   856 //! @SYMAuthor              Jeffery Zhao
       
   857 //! @SYMCreationDate        29/12/2007
       
   858 //! @SYMTestCaseDesc        Create a RWsSprite object with negative position(-20,-20) and ESpriteNoChildClip flag.
       
   859 //! @SYMTestActions         1. Create and connect a RWsSession
       
   860 //!                         2. Create and construct RWindowGroup and RWindow.
       
   861 //!                         3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
   862 //!                         4. Construct RWsSprite with negative position and ESpriteNoChildClip flag.
       
   863 //!                         5. Close RWsSprite,RWsSession and RWindow.
       
   864 //! @SYMTestStatus          Implemented
       
   865 //! @SYMTestPriority        High
       
   866 //! @SYMTestExpectedResults RWsSprite object was constructed without causing panic
       
   867 //! @SYMTestType            CIT
       
   868     START_TEST_BLOCK       10                T_GraphicsWservAPI  \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   869         CREATE_OBJECT   RWsSession        ws
       
   870         CREATE_OBJECT   RWindowGroup      wingrp
       
   871         CREATE_OBJECT   RWindow           win
       
   872         CREATE_OBJECT   RWsSprite         sprite
       
   873         COMMAND         ws                new
       
   874         COMMAND         ws                Connect
       
   875         COMMAND         wingrp            new                  GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-new_command003
       
   876         COMMAND         wingrp            Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-Construct_command004
       
   877         COMMAND         win               new                  GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-new_command005
       
   878         COMMAND         win               Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-Construct_command006
       
   879         COMMAND         sprite            new                  GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-new_command007
       
   880         COMMAND         sprite            Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-Construct_command008
       
   881         COMMAND         sprite            Close
       
   882         COMMAND         win               Close
       
   883         COMMAND         wingrp            Close
       
   884         COMMAND         ws                Close
       
   885     END_TEST_BLOCK
       
   886 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0014
       
   887 
       
   888 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0015
       
   889 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0015
       
   890 //! @SYMAPI                 RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt)
       
   891 //! @SYMAuthor              Jeffery Zhao
       
   892 //! @SYMCreationDate        29/12/2007
       
   893 //! @SYMTestCaseDesc        Construct sprite with ESpriteNoShadows flag.
       
   894 //!                         Verify ESpriteNoShadows flag which be used when construct RWsSprite.
       
   895 //!                         Create a window and create two sprite on it,one sprite with ESpriteNoShadows flag set,the other not set the flag;
       
   896 //!                         Create another window over first window, and set its shadow can cover part of the two sprite.
       
   897 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
   898 //! @SYMTestActions         1.  Create and connect a RWsSession, and create 4 CFbsBitmap objects.
       
   899 //!                         2.  Create and construct RWindowGroup and two RWindow objects.
       
   900 //!                         3.  Create two RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
   901 //!                         4.  Construct the two RWsSprite,one is constructed with ESpriteNoShadows flag, then other is constructed with flag 0.
       
   902 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
   903 //!                         6.  Append three different bitmaps to the two sprite, each with the same mask.
       
   904 //!                         7.  Set the two window redraw and set the second window size,position and shadow,make it over the first window.
       
   905 //!                         8.  Activate the two window.
       
   906 //!                         9.  Activate the two RWsSprite.
       
   907 //!                         10. Create CWsScreenDevice and compare the two rect which the two sprite located, they should be not same.
       
   908 //!                         11. Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
   909 //! @SYMTestStatus          Implemented
       
   910 //! @SYMTestPriority        High
       
   911 //! @SYMTestExpectedResults 1. Constrcut RWsSprite with ESpriteNoShadows flag without panic.
       
   912 //!                         2. Compare two rect which two sprite(set/unset ESpriteNoShadows) located, they should be not same.
       
   913 //! @SYMTestType            CIT
       
   914     START_TEST_BLOCK        10           T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
   915         CREATE_OBJECT   RWsSession        ws
       
   916         CREATE_OBJECT   CWsScreenDevice   scrdev
       
   917         CREATE_OBJECT   CFbsBitmap        mask1
       
   918         CREATE_OBJECT   CFbsBitmap        bitmap1
       
   919         CREATE_OBJECT   CFbsBitmap        bitmap2
       
   920         CREATE_OBJECT   CFbsBitmap        bitmap3
       
   921         CREATE_OBJECT   RWindowGroup      wingrp
       
   922         CREATE_OBJECT   RWindow           win
       
   923         CREATE_OBJECT   RWindow           win2
       
   924         CREATE_OBJECT   RWsSprite         sprite
       
   925         CREATE_OBJECT   RWsSprite         sprite2
       
   926         COMMAND     ws        new
       
   927         COMMAND     ws        Connect                
       
   928         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command003
       
   929         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command004
       
   930         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command005
       
   931         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command006
       
   932         COMMAND     win2      new           GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command007
       
   933         COMMAND     win2      Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command008
       
   934         
       
   935         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command009
       
   936         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command010
       
   937         COMMAND     sprite2   new           GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command011
       
   938         COMMAND     sprite2   Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command012
       
   939         
       
   940         COMMAND     mask1     new           
       
   941         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Load_command014
       
   942         
       
   943         COMMAND     bitmap1   new           
       
   944         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Load_command016
       
   945         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command017
       
   946         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command018
       
   947         
       
   948         COMMAND     bitmap2   new           
       
   949         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Load_command020
       
   950         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command021
       
   951         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command022
       
   952 
       
   953         COMMAND     bitmap3   new           
       
   954         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Load_command024
       
   955         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command025
       
   956         COMMAND     sprite2   AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command026
       
   957         
       
   958         COMMAND     win       BeginRedraw
       
   959         COMMAND     win       EndRedraw
       
   960         COMMAND     win2      BeginRedraw
       
   961         COMMAND     win2      EndRedraw
       
   962         COMMAND     win2      SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-SetPosition_command031
       
   963         COMMAND     win2      SetSize       GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-SetSize_command032
       
   964         COMMAND     win2      SetShadowHeight GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-SetShadowHeight_command033
       
   965         COMMAND     win       Activate
       
   966         COMMAND     win2      Activate
       
   967         
       
   968         COMMAND     sprite    Activate
       
   969         COMMAND     sprite2   Activate
       
   970         
       
   971         COMMAND     scrdev    new           GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command038       
       
   972         COMMAND     scrdev    Construct
       
   973                        
       
   974         COMMAND     scrdev    RectCompare   GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-RectCompare_command040
       
   975 
       
   976         COMMAND     sprite    Close
       
   977         COMMAND     sprite2   Close
       
   978         COMMAND     mask1     ~
       
   979         COMMAND     bitmap1   ~
       
   980         COMMAND     bitmap2   ~
       
   981         COMMAND     bitmap3   ~
       
   982         COMMAND     scrdev    ~ 
       
   983         COMMAND     win2      Close
       
   984         COMMAND     win       Close
       
   985         COMMAND     wingrp    Close
       
   986         COMMAND     ws        Close
       
   987     END_TEST_BLOCK
       
   988 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0015
       
   989 
       
   990 
       
   991 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0016
       
   992 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0016
       
   993 //! @SYMAPI                 RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt)
       
   994 //! @SYMAuthor              Jeffery Zhao
       
   995 //! @SYMCreationDate        29/12/2007
       
   996 //! @SYMTestCaseDesc        Create a RWsSprite object with negative position(-20,-20) which out of screen and ESpriteNoShadows flag.
       
   997 //! @SYMTestActions         1. Create and connect a RWsSession
       
   998 //!                         2. Create and construct RWindowGroup and RWindow.
       
   999 //!                         3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
  1000 //!                         4. Construct RWsSprite with negative position and ESpriteNoShadows flag.
       
  1001 //!                         5. Close RWsSprite,RWsSession and RWindow.
       
  1002 //! @SYMTestStatus          Implemented
       
  1003 //! @SYMTestPriority        High
       
  1004 //! @SYMTestExpectedResults RWsSprite object was constructed without causing panic
       
  1005 //! @SYMTestType            CIT
       
  1006     START_TEST_BLOCK       10                T_GraphicsWservAPI  \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
  1007         CREATE_OBJECT   RWsSession        ws
       
  1008         CREATE_OBJECT   RWindowGroup      wingrp
       
  1009         CREATE_OBJECT   RWindow           win
       
  1010         CREATE_OBJECT   RWsSprite         sprite
       
  1011         COMMAND         ws                new
       
  1012         COMMAND         ws                Connect
       
  1013         COMMAND         wingrp            new                  GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-new_command003
       
  1014         COMMAND         wingrp            Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-Construct_command004
       
  1015         COMMAND         win               new                  GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-new_command005
       
  1016         COMMAND         win               Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-Construct_command006
       
  1017         COMMAND         sprite            new                  GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-new_command007
       
  1018         COMMAND         sprite            Construct            GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-Construct_command008
       
  1019         COMMAND         sprite            Close
       
  1020         COMMAND         win               Close
       
  1021         COMMAND         wingrp            Close
       
  1022         COMMAND         ws                Close
       
  1023     END_TEST_BLOCK
       
  1024 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0016
       
  1025 
       
  1026 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0017
       
  1027 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0017
       
  1028 //! @SYMAPI                 RWsSprite::SetPosition(const TPoint{ref})
       
  1029 //! @SYMAuthor              Jeffery Zhao
       
  1030 //! @SYMCreationDate        29/12/2007
       
  1031 //! @SYMTestCaseDesc        Create sprite with ESpriteFlash flag and set its position.
       
  1032 //!                         Construct sprite with ESpriteFlash flag and set its position to(-50,-50), (50,50), (5000,5000).
       
  1033 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
  1034 //! @SYMTestActions         1.  Create and connect a RWsSession, create 4 CFbsBitmap objects.
       
  1035 //!                         2.  Create and construct RWindowGroup and RWindow.
       
  1036 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
  1037 //!                         4.  Construct RWsSprite with ESpriteFlash flag.
       
  1038 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
  1039 //!                         6.  Append three different bitmaps to the sprite, each with the same mask.
       
  1040 //!                         7.  Activate RWsSprite.
       
  1041 //!                         8.  Set sprite position to (-50,-50).
       
  1042 //!                         9.  Set sprite position to (50,50).
       
  1043 //!                         10. Set sprite position to (5000,5000).
       
  1044 //!                         11. Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
  1045 //! @SYMTestStatus          Implemented
       
  1046 //! @SYMTestPriority        High
       
  1047 //! @SYMTestExpectedResults Call SetPosition function without causing panic
       
  1048 //! @SYMTestType            CIT
       
  1049     START_TEST_BLOCK        10           T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
  1050         CREATE_OBJECT   RWsSession   ws
       
  1051         CREATE_OBJECT   CFbsBitmap   mask1
       
  1052         CREATE_OBJECT   CFbsBitmap   bitmap1
       
  1053         CREATE_OBJECT   CFbsBitmap   bitmap2
       
  1054         CREATE_OBJECT   CFbsBitmap   bitmap3
       
  1055         CREATE_OBJECT   RWindowGroup wingrp
       
  1056         CREATE_OBJECT   RWindow      win
       
  1057         CREATE_OBJECT   RWsSprite    sprite
       
  1058         COMMAND     ws        new
       
  1059         COMMAND     ws        Connect
       
  1060         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-new_command003
       
  1061         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Construct_command004
       
  1062         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-new_command005
       
  1063         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Construct_command006
       
  1064         COMMAND     win       Activate
       
  1065         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-new_command008
       
  1066         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Construct_command009
       
  1067         COMMAND     mask1     new           
       
  1068         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Load_command011
       
  1069         
       
  1070         COMMAND     bitmap1   new           
       
  1071         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Load_command013
       
  1072         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-AppendMember_command014
       
  1073         
       
  1074         COMMAND     bitmap2   new           
       
  1075         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Load_command016
       
  1076         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-AppendMember_command017
       
  1077 
       
  1078         COMMAND     bitmap3   new           
       
  1079         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Load_command019
       
  1080         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-AppendMember_command020
       
  1081 
       
  1082         COMMAND     sprite    Activate
       
  1083         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-SetPosition_command022
       
  1084         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-SetPosition_command023
       
  1085         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-SetPosition_command024
       
  1086         
       
  1087         COMMAND     sprite    Close
       
  1088         COMMAND     mask1     ~
       
  1089         COMMAND     bitmap1   ~
       
  1090         COMMAND     bitmap2   ~
       
  1091         COMMAND     bitmap3   ~
       
  1092         COMMAND     win       Close
       
  1093         COMMAND     wingrp    Close
       
  1094         COMMAND     ws        Close
       
  1095     END_TEST_BLOCK
       
  1096 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0017
       
  1097 
       
  1098 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0018
       
  1099 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0018
       
  1100 //! @SYMAPI                 RWsSprite::SetPosition(const TPoint{ref})
       
  1101 //! @SYMAuthor              Jeffery Zhao
       
  1102 //! @SYMCreationDate        29/12/2007
       
  1103 //! @SYMTestCaseDesc        Create sprite with ESpriteNoChildClip flag and set its position.
       
  1104 //!                         Construct sprite with ESpriteNoChildClip flag and set its position to(-50,-50), (50,50), (5000,5000).
       
  1105 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
  1106 //! @SYMTestActions         1.  Create and connect a RWsSession, create 4 CFbsBitmap objects.
       
  1107 //!                         2.  Create and construct RWindowGroup and RWindow.
       
  1108 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
  1109 //!                         4.  Construct RWsSprite with ESpriteNoChildClip flag.
       
  1110 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
  1111 //!                         6.  Append three different bitmaps to the sprite, each with the same mask.
       
  1112 //!                         7.  Activate RWsSprite.
       
  1113 //!                         8.  Set sprite position to (-50,-50).
       
  1114 //!                         9.  Set sprite position to (50,50).
       
  1115 //!                         10. Set sprite position to (5000,5000).
       
  1116 //!                         11. Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
  1117 //! @SYMTestStatus          Implemented
       
  1118 //! @SYMTestPriority        High
       
  1119 //! @SYMTestExpectedResults Call SetPosition function without causing panic
       
  1120 //! @SYMTestType            CIT
       
  1121     START_TEST_BLOCK        10           T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
  1122         CREATE_OBJECT   RWsSession   ws
       
  1123         CREATE_OBJECT   CFbsBitmap   mask1
       
  1124         CREATE_OBJECT   CFbsBitmap   bitmap1
       
  1125         CREATE_OBJECT   CFbsBitmap   bitmap2
       
  1126         CREATE_OBJECT   CFbsBitmap   bitmap3
       
  1127         CREATE_OBJECT   RWindowGroup wingrp
       
  1128         CREATE_OBJECT   RWindow      win
       
  1129         CREATE_OBJECT   RWsSprite    sprite
       
  1130         COMMAND     ws        new
       
  1131         COMMAND     ws        Connect
       
  1132         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-new_command003
       
  1133         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Construct_command004
       
  1134         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-new_command005
       
  1135         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Construct_command006
       
  1136         COMMAND     win       Activate
       
  1137         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-new_command008
       
  1138         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Construct_command009
       
  1139         COMMAND     mask1     new           
       
  1140         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Load_command011
       
  1141         
       
  1142         COMMAND     bitmap1   new           
       
  1143         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Load_command013
       
  1144         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-AppendMember_command014
       
  1145         
       
  1146         COMMAND     bitmap2   new           
       
  1147         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Load_command016
       
  1148         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-AppendMember_command017
       
  1149 
       
  1150         COMMAND     bitmap3   new           
       
  1151         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Load_command019
       
  1152         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-AppendMember_command020
       
  1153 
       
  1154         COMMAND     sprite    Activate
       
  1155         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-SetPosition_command022
       
  1156         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-SetPosition_command023
       
  1157         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-SetPosition_command024
       
  1158         
       
  1159         COMMAND     sprite    Close
       
  1160         COMMAND     mask1     ~
       
  1161         COMMAND     bitmap1   ~
       
  1162         COMMAND     bitmap2   ~
       
  1163         COMMAND     bitmap3   ~
       
  1164         COMMAND     win       Close
       
  1165         COMMAND     wingrp    Close
       
  1166         COMMAND     ws        Close
       
  1167     END_TEST_BLOCK
       
  1168 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0018
       
  1169 
       
  1170 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0019
       
  1171 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0019
       
  1172 //! @SYMAPI                 RWsSprite::SetPosition(const TPoint{ref})
       
  1173 //! @SYMAuthor              Jeffery Zhao
       
  1174 //! @SYMCreationDate        29/12/2007
       
  1175 //! @SYMTestCaseDesc        Create sprite with ESpriteNoShadows flag and set its position.
       
  1176 //!                         Construct sprite with ESpriteNoShadows flag and set its position to(-50,-50), (50,50), (5000,5000).
       
  1177 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
  1178 //! @SYMTestActions         1.  Create and connect a RWsSession, create 4 CFbsBitmap objects.
       
  1179 //!                         2.  Create and construct RWindowGroup and RWindow.
       
  1180 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
  1181 //!                         4.  Construct RWsSprite with ESpriteNoShadows flag.
       
  1182 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
  1183 //!                         6.  Append three different bitmaps to the sprite, each with the same mask.
       
  1184 //!                         7.  Activate RWsSprite.
       
  1185 //!                         8.  Set sprite position to (-50,-50).
       
  1186 //!                         9.  Set sprite position to (50,50).
       
  1187 //!                         10. Set sprite position to (5000,5000).
       
  1188 //!                         11. Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
  1189 //! @SYMTestStatus          Implemented
       
  1190 //! @SYMTestPriority        High
       
  1191 //! @SYMTestExpectedResults Call SetPosition function without causing panic
       
  1192 //! @SYMTestType            CIT
       
  1193     START_TEST_BLOCK        10           T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
  1194         CREATE_OBJECT   RWsSession   ws
       
  1195         CREATE_OBJECT   CFbsBitmap   mask1
       
  1196         CREATE_OBJECT   CFbsBitmap   bitmap1
       
  1197         CREATE_OBJECT   CFbsBitmap   bitmap2
       
  1198         CREATE_OBJECT   CFbsBitmap   bitmap3
       
  1199         CREATE_OBJECT   RWindowGroup wingrp
       
  1200         CREATE_OBJECT   RWindow      win
       
  1201         CREATE_OBJECT   RWsSprite    sprite
       
  1202         COMMAND     ws        new
       
  1203         COMMAND     ws        Connect
       
  1204         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-new_command003
       
  1205         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Construct_command004
       
  1206         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-new_command005
       
  1207         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Construct_command006
       
  1208         COMMAND     win       Activate
       
  1209         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-new_command008
       
  1210         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Construct_command009
       
  1211         COMMAND     mask1     new           
       
  1212         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Load_command011
       
  1213         
       
  1214         COMMAND     bitmap1   new           
       
  1215         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Load_command013
       
  1216         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-AppendMember_command014
       
  1217         
       
  1218         COMMAND     bitmap2   new           
       
  1219         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Load_command016
       
  1220         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-AppendMember_command017
       
  1221 
       
  1222         COMMAND     bitmap3   new           
       
  1223         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Load_command019
       
  1224         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-AppendMember_command020
       
  1225 
       
  1226         COMMAND     sprite    Activate
       
  1227         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-SetPosition_command022
       
  1228         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-SetPosition_command023
       
  1229         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-SetPosition_command024
       
  1230         
       
  1231         COMMAND     sprite    Close
       
  1232         COMMAND     mask1     ~
       
  1233         COMMAND     bitmap1   ~
       
  1234         COMMAND     bitmap2   ~
       
  1235         COMMAND     bitmap3   ~
       
  1236         COMMAND     win       Close
       
  1237         COMMAND     wingrp    Close
       
  1238         COMMAND     ws        Close
       
  1239     END_TEST_BLOCK
       
  1240 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0019
       
  1241 
       
  1242 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0020
       
  1243 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0020
       
  1244 //! @SYMAPI                 RWsSprite::SetPosition(const TPoint{ref})
       
  1245 //! @SYMAuthor              Jeffery Zhao
       
  1246 //! @SYMCreationDate        29/12/2007
       
  1247 //! @SYMTestCaseDesc        Verify sprite position.
       
  1248 //!                         Compare two rect before sprite active,they should same;then move the sprite in one of the rect,compare again,they should be different.
       
  1249 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
  1250 //! @SYMTestActions         1.  Create and connect a RWsSession, create 4 CFbsBitmap objects.
       
  1251 //!                         2.  Create and construct RWindowGroup and RWindow.
       
  1252 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
  1253 //!                         4.  Construct RWsSprite.
       
  1254 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
  1255 //!                         6.  Append three different bitmaps to the sprite, each with the same mask.
       
  1256 //!                         7.  Compare two rect without sprite,they should be same.
       
  1257 //!                         8.  Activate RWsSprite.
       
  1258 //!                         9.  Set sprite position.
       
  1259 //!                         10. Compare two rect with sprite, they should be different.
       
  1260 //!                         11. Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
  1261 //! @SYMTestStatus          Implemented
       
  1262 //! @SYMTestPriority        High
       
  1263 //! @SYMTestExpectedResults 1. Before activing the sprite, the two rect should be same.
       
  1264 //!                         2. After activing and moving the sprite , the two rect should be different.
       
  1265 //! @SYMTestType            CIT
       
  1266     START_TEST_BLOCK        10           T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
  1267         CREATE_OBJECT   RWsSession   ws
       
  1268         CREATE_OBJECT   CWsScreenDevice scrdev
       
  1269         CREATE_OBJECT   CFbsBitmap   mask1
       
  1270         CREATE_OBJECT   CFbsBitmap   bitmap1
       
  1271         CREATE_OBJECT   CFbsBitmap   bitmap2
       
  1272         CREATE_OBJECT   CFbsBitmap   bitmap3
       
  1273         CREATE_OBJECT   RWindowGroup wingrp
       
  1274         CREATE_OBJECT   RWindow      win
       
  1275         CREATE_OBJECT   RWsSprite    sprite
       
  1276         COMMAND     ws        new
       
  1277         COMMAND     ws        Connect
       
  1278         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-new_command003
       
  1279         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Construct_command004
       
  1280         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-new_command005
       
  1281         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Construct_command006
       
  1282         COMMAND     win       Activate
       
  1283         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-new_command008
       
  1284         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Construct_command009
       
  1285         COMMAND     mask1     new           
       
  1286         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Load_command011
       
  1287         
       
  1288         COMMAND     bitmap1   new           
       
  1289         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Load_command013
       
  1290         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-AppendMember_command014
       
  1291         
       
  1292         COMMAND     bitmap2   new           
       
  1293         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Load_command016
       
  1294         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-AppendMember_command017
       
  1295 
       
  1296         COMMAND     bitmap3   new           
       
  1297         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Load_command019
       
  1298         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-AppendMember_command020
       
  1299 
       
  1300         COMMAND     scrdev    new           GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-new_command021
       
  1301         COMMAND     win       BeginRedraw
       
  1302         COMMAND     win       EndRedraw
       
  1303         COMMAND     scrdev    Construct
       
  1304                        
       
  1305         //!COMMAND     scrdev    RectCompare   GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-RectCompare_command025
       
  1306         
       
  1307         COMMAND     sprite    Activate
       
  1308         COMMAND     sprite    SetPosition   GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-SetPosition_command027
       
  1309         
       
  1310         //!COMMAND     scrdev    RectCompare   GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-RectCompare_command028
       
  1311         
       
  1312         COMMAND     sprite    Close
       
  1313         COMMAND     mask1     ~
       
  1314         COMMAND     bitmap1   ~
       
  1315         COMMAND     bitmap2   ~
       
  1316         COMMAND     bitmap3   ~
       
  1317         COMMAND     scrdev    ~
       
  1318         COMMAND     win       Close
       
  1319         COMMAND     wingrp    Close
       
  1320         COMMAND     ws        Close
       
  1321     END_TEST_BLOCK
       
  1322 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0020
       
  1323 
       
  1324 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0022
       
  1325 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0022
       
  1326 //! @SYMAPI                 RWsSpriteBase::Activate()
       
  1327 //! @SYMAuthor              Jeffery Zhao
       
  1328 //! @SYMCreationDate        03/01/2008
       
  1329 //! @SYMTestCaseDesc        Negative test, activate sprite without setting sprite member.
       
  1330 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
  1331 //!                         2.  Create and construct RWindowGroup & RWindow.
       
  1332 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
  1333 //!                         4.  Construct RWsSprite.
       
  1334 //!                         5.  Activate RWsSprite without setting sprite member.
       
  1335 //!                         6.  Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
  1336 //! @SYMTestStatus          Implemented
       
  1337 //! @SYMTestPriority        High
       
  1338 //! @SYMTestExpectedResults WSERV 63 panic when we Activate the sprite.
       
  1339 //! @SYMTestType            CIT
       
  1340     START_TEST_BLOCK    10          T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
  1341         CREATE_OBJECT   RWsSession    ws
       
  1342         CREATE_OBJECT   RWindowGroup  wingrp
       
  1343         CREATE_OBJECT   RWindow       win
       
  1344         CREATE_OBJECT   RWsSprite     sprite
       
  1345         COMMAND     ws        new
       
  1346         COMMAND     ws        Connect
       
  1347         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-new_command003
       
  1348         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-Construct_command004
       
  1349         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-new_command005
       
  1350         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-Construct_command006
       
  1351         COMMAND     win       Activate
       
  1352         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-new_command008
       
  1353         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-Construct_command009
       
  1354         
       
  1355         COMMAND     sprite    Activate
       
  1356 
       
  1357     END_TEST_BLOCK !PanicString=WSERV !PanicCode=63
       
  1358     RUN_TEST_STEP	100	T_GraphicsWservAPI	utilityClearPanicDlg
       
  1359 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0022
       
  1360 
       
  1361 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0023
       
  1362 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0023
       
  1363 //! @SYMAPI                 RWsSpriteBase::UpdateMember(TInt, const TSpriteMember{ref})
       
  1364 //! @SYMAuthor              Jeffery Zhao
       
  1365 //! @SYMCreationDate        03/01/2008
       
  1366 //! @SYMTestCaseDesc        Negative test, update non-exist sprite member index(-1) with UpdateMember.
       
  1367 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
  1368 //! @SYMTestActions         1.  Create and connect a RWsSession, create 4 CFbsBitmap objects.
       
  1369 //!                         2.  Create and construct RWindowGroup and RWindow.
       
  1370 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
  1371 //!                         4.  Construct RWsSprite.
       
  1372 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
  1373 //!                         6.  Append three different bitmaps to the sprite, each with the same mask.
       
  1374 //!                         7.  Activate RWsSprite.
       
  1375 //!                         8.  Update sprite member with UpdateMember(TInt,const TSpriteMember &).
       
  1376 //!                         9.  Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
  1377 //! @SYMTestStatus          Implemented
       
  1378 //! @SYMTestPriority        High
       
  1379 //! @SYMTestExpectedResults Call UpdateMember function with non-exist sprite member index and return KErrArgument(-6).
       
  1380 //! @SYMTestType            CIT
       
  1381     START_TEST_BLOCK        10          T_GraphicsWservAPI  \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
  1382         CREATE_OBJECT   RWsSession  ws
       
  1383         CREATE_OBJECT   CFbsBitmap   mask1
       
  1384         CREATE_OBJECT   CFbsBitmap   bitmap1
       
  1385         CREATE_OBJECT   CFbsBitmap   bitmap2
       
  1386         CREATE_OBJECT   CFbsBitmap   bitmap3
       
  1387         CREATE_OBJECT   RWindowGroup wingrp
       
  1388         CREATE_OBJECT   RWindow      win
       
  1389         CREATE_OBJECT   RWsSprite    sprite
       
  1390         COMMAND     ws        new
       
  1391         COMMAND     ws        Connect
       
  1392         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-new_command003
       
  1393         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Construct_command004
       
  1394         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-new_command005
       
  1395         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Construct_command006
       
  1396         COMMAND     win       Activate
       
  1397         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-new_command008
       
  1398         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Construct_command009
       
  1399         COMMAND     mask1   new           
       
  1400         COMMAND     mask1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Load_command011
       
  1401         
       
  1402         COMMAND     bitmap1   new           
       
  1403         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Load_command013
       
  1404         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-AppendMember_command014
       
  1405         
       
  1406         COMMAND     bitmap2   new           
       
  1407         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Load_command016
       
  1408         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-AppendMember_command017
       
  1409 
       
  1410         COMMAND     bitmap3   new           
       
  1411         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Load_command019
       
  1412         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-AppendMember_command020
       
  1413 
       
  1414         COMMAND     sprite    Activate
       
  1415         COMMAND !Error=-6  sprite    UpdateMember  GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-UpdateMember_command022
       
  1416         
       
  1417         COMMAND     sprite    Close
       
  1418         COMMAND     mask1     ~
       
  1419         COMMAND     bitmap1   ~
       
  1420         COMMAND     bitmap2   ~
       
  1421         COMMAND     bitmap3   ~
       
  1422         COMMAND     win       Close
       
  1423         COMMAND     wingrp    Close
       
  1424         COMMAND     ws        Close
       
  1425     END_TEST_BLOCK
       
  1426 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0023
       
  1427 
       
  1428 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0024
       
  1429 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0024
       
  1430 //! @SYMAPI                 RWsSpriteBase::UpdateMember(TInt)
       
  1431 //! @SYMAuthor              Jeffery Zhao
       
  1432 //! @SYMCreationDate        03/01/2008
       
  1433 //! @SYMTestCaseDesc        Negative test, Update non-exist sprite member index(-1) with UpdateMember.
       
  1434 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember.
       
  1435 //! @SYMTestActions         1.  Create and connect a RWsSession, create 4 CFbsBitmap objects.
       
  1436 //!                         2.  Create and construct RWindowGroup and RWindow.
       
  1437 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
  1438 //!                         4.  Construct RWsSprite.
       
  1439 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
  1440 //!                         6.  Append three different bitmaps to the sprite, each with the same mask.
       
  1441 //!                         7.  Activate RWsSprite.
       
  1442 //!                         8.  Update sprite member with UpdateMember(TInt).
       
  1443 //!                         9.  Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
  1444 //! @SYMTestStatus          Implemented
       
  1445 //! @SYMTestPriority        High
       
  1446 //! @SYMTestExpectedResults Call UpdateMember function with non-exist sprite member index and without panic.
       
  1447 //! @SYMTestType            CIT
       
  1448     START_TEST_BLOCK        10          T_GraphicsWservAPI  \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
  1449         CREATE_OBJECT   RWsSession  ws
       
  1450         CREATE_OBJECT   CFbsBitmap   mask1
       
  1451         CREATE_OBJECT   CFbsBitmap   bitmap1
       
  1452         CREATE_OBJECT   CFbsBitmap   bitmap2
       
  1453         CREATE_OBJECT   CFbsBitmap   bitmap3
       
  1454         CREATE_OBJECT   RWindowGroup wingrp
       
  1455         CREATE_OBJECT   RWindow      win
       
  1456         CREATE_OBJECT   RWsSprite    sprite
       
  1457         COMMAND     ws        new
       
  1458         COMMAND     ws        Connect
       
  1459         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-new_command003
       
  1460         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Construct_command004
       
  1461         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-new_command005
       
  1462         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Construct_command006
       
  1463         COMMAND     win       Activate
       
  1464         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-new_command008
       
  1465         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Construct_command009
       
  1466         COMMAND     mask1     new           
       
  1467         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Load_command011
       
  1468         
       
  1469         COMMAND     bitmap1   new           
       
  1470         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Load_command013
       
  1471         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-AppendMember_command014
       
  1472         
       
  1473         COMMAND     bitmap2   new           
       
  1474         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Load_command016
       
  1475         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-AppendMember_command017
       
  1476 
       
  1477         COMMAND     bitmap3   new           
       
  1478         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Load_command019
       
  1479         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-AppendMember_command020
       
  1480 
       
  1481         COMMAND     sprite    Activate
       
  1482         COMMAND     sprite    UpdateMember  GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-UpdateMember_command022
       
  1483         
       
  1484         COMMAND     sprite    Close
       
  1485         COMMAND     mask1     ~
       
  1486         COMMAND     bitmap1   ~
       
  1487         COMMAND     bitmap2   ~
       
  1488         COMMAND     bitmap3   ~
       
  1489         COMMAND     win       Close
       
  1490         COMMAND     wingrp    Close
       
  1491         COMMAND     ws        Close
       
  1492     END_TEST_BLOCK
       
  1493 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0024
       
  1494 
       
  1495 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0025
       
  1496 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0025
       
  1497 //! @SYMAPI                 RWsSpriteBase::UpdateMember(TInt, const TSpriteMember{ref})
       
  1498 //! @SYMAuthor              Jeffery Zhao
       
  1499 //! @SYMCreationDate        04/01/2008
       
  1500 //! @SYMTestCaseDesc        Negative test, update sprite member TSpriteMember with big size bitmap(200*200 dots per inch for mask).
       
  1501 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other(bitmap1,bitmap2,bitmap3) are iBitmap member of TSpriteMember.
       
  1502 //!                         bitmap4 is big bitmap for iMaskBitmap member of TSpriteMember.
       
  1503 //! @SYMTestActions         1.  Create and connect a RWsSession, create 4 CFbsBitmap objects.
       
  1504 //!                         2.  Create and construct RWindowGroup and RWindow.
       
  1505 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
  1506 //!                         4.  Construct RWsSprite.
       
  1507 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
  1508 //!                         6.  Append three different bitmaps to the sprite, each with the same mask.
       
  1509 //!                         7.  Activate RWsSprite.
       
  1510 //!                         8.  Create and load big bitmap of TSpriteMember for update.
       
  1511 //!                         9.  Update sprite member with UpdateMember(TInt,const TSpriteMember &), this action will panic because the bitmap size bigger than mask bitmap.
       
  1512 //!                         10. Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
  1513 //! @SYMTestStatus          Implemented
       
  1514 //! @SYMTestPriority        High
       
  1515 //! @SYMTestExpectedResults WSERV 40 panic received when we call RWsSpriteBase::UpdateMember.
       
  1516 //! @SYMTestType            CIT
       
  1517     START_TEST_BLOCK        10          T_GraphicsWservAPI  \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
  1518         CREATE_OBJECT   RWsSession  ws
       
  1519         CREATE_OBJECT   CFbsBitmap   mask1
       
  1520         CREATE_OBJECT   CFbsBitmap   bitmap1
       
  1521         CREATE_OBJECT   CFbsBitmap   bitmap2
       
  1522         CREATE_OBJECT   CFbsBitmap   bitmap3
       
  1523         CREATE_OBJECT   CFbsBitmap   bitmap4
       
  1524         CREATE_OBJECT   RWindowGroup wingrp
       
  1525         CREATE_OBJECT   RWindow      win
       
  1526         CREATE_OBJECT   RWsSprite    sprite
       
  1527         COMMAND     ws        new
       
  1528         COMMAND     ws        Connect
       
  1529         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-new_command003
       
  1530         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Construct_command004
       
  1531         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-new_command005
       
  1532         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Construct_command006
       
  1533         COMMAND     win       Activate
       
  1534         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-new_command008
       
  1535         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Construct_command009
       
  1536         COMMAND     mask1     new           
       
  1537         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command011
       
  1538         
       
  1539         COMMAND     bitmap1   new           
       
  1540         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command013
       
  1541         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-AppendMember_command014
       
  1542         
       
  1543         COMMAND     bitmap2   new           
       
  1544         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command016
       
  1545         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-AppendMember_command017
       
  1546 
       
  1547         COMMAND     bitmap3   new           
       
  1548         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command019
       
  1549         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-AppendMember_command020
       
  1550 
       
  1551         COMMAND     sprite    Activate
       
  1552         
       
  1553         COMMAND     bitmap4   new           
       
  1554         COMMAND     bitmap4   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command023
       
  1555         
       
  1556         COMMAND     sprite    UpdateMember  GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-UpdateMember_command024
       
  1557         
       
  1558     END_TEST_BLOCK !PanicString=WSERV !PanicCode=40
       
  1559     RUN_TEST_STEP	100	T_GraphicsWservAPI	utilityClearPanicDlg
       
  1560 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0025
       
  1561 
       
  1562 START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0026
       
  1563 //! @SYMTestCaseID          GRAPHICS-WSERV-WsSprite-PublicApi-0026
       
  1564 //! @SYMAPI                 RWsSpriteBase::AppendMember(const TSpriteMember{ref})
       
  1565 //! @SYMAuthor              Jeffery Zhao
       
  1566 //! @SYMCreationDate        04/01/2008
       
  1567 //! @SYMTestCaseDesc        Negative test, append sprite member TSpriteMember with big size bitmap(200*200 dots per inch for mask).
       
  1568 //!                         mask1 is iMaskBitmap member of TSpriteMember and the other(bitmap1,bitmap2) are iBitmap member of TSpriteMember.
       
  1569 //!                         bitmap3 is big bitmap for iMaskBitmap member of TSpriteMember.
       
  1570 //! @SYMTestActions         1.  Create and connect a RWsSession, create 4 CFbsBitmap objects.
       
  1571 //!                         2.  Create and construct RWindowGroup and RWindow.
       
  1572 //!                         3.  Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs).
       
  1573 //!                         4.  Construct RWsSprite.
       
  1574 //!                         5.  Create CFbsBitmap object and load bitmap to initialize TSpriteMember.
       
  1575 //!                         6.  Append three different bitmaps to the sprite, each with the same mask; and the third one is bigger than mask bitmap.
       
  1576 //!                         7.  Activate RWsSprite, this action will panic because the bitmap size bigger than mask bitmap.
       
  1577 //!                         8.  Destruct all created object and Close RWsSprite,RWsSession and RWindow.
       
  1578 //! @SYMTestStatus          Implemented
       
  1579 //! @SYMTestPriority        High
       
  1580 //! @SYMTestExpectedResults WSERV 40 panic received when we Activate the sprite.
       
  1581 //! @SYMTestType            CIT
       
  1582     START_TEST_BLOCK        10          T_GraphicsWservAPI  \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini
       
  1583         CREATE_OBJECT   RWsSession  ws
       
  1584         CREATE_OBJECT   CFbsBitmap   mask1
       
  1585         CREATE_OBJECT   CFbsBitmap   bitmap1
       
  1586         CREATE_OBJECT   CFbsBitmap   bitmap2
       
  1587         CREATE_OBJECT   CFbsBitmap   bitmap3
       
  1588         CREATE_OBJECT   CFbsBitmap   bitmap4
       
  1589         CREATE_OBJECT   RWindowGroup wingrp
       
  1590         CREATE_OBJECT   RWindow      win
       
  1591         CREATE_OBJECT   RWsSprite    sprite
       
  1592         COMMAND     ws        new
       
  1593         COMMAND     ws        Connect
       
  1594         COMMAND     wingrp    new           GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-new_command003
       
  1595         COMMAND     wingrp    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Construct_command004
       
  1596         COMMAND     win       new           GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-new_command005
       
  1597         COMMAND     win       Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Construct_command006
       
  1598         COMMAND     win       Activate
       
  1599         COMMAND     sprite    new           GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-new_command008
       
  1600         COMMAND     sprite    Construct     GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Construct_command009
       
  1601         COMMAND     mask1     new           
       
  1602         COMMAND     mask1     Load          GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Load_command011
       
  1603         
       
  1604         COMMAND     bitmap1   new           
       
  1605         COMMAND     bitmap1   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Load_command013
       
  1606         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-AppendMember_command014
       
  1607         
       
  1608         COMMAND     bitmap2   new           
       
  1609         COMMAND     bitmap2   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Load_command016
       
  1610         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-AppendMember_command017
       
  1611 
       
  1612         COMMAND     bitmap3   new           
       
  1613         COMMAND     bitmap3   Load          GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Load_command019
       
  1614         COMMAND     sprite    AppendMember  GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-AppendMember_command020
       
  1615 
       
  1616         COMMAND     sprite    Activate
       
  1617                  
       
  1618     END_TEST_BLOCK !PanicString=WSERV !PanicCode=40
       
  1619     RUN_TEST_STEP	100	T_GraphicsWservAPI	utilityClearPanicDlg
       
  1620 END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0026