graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.script
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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-AnimWindowFunctions-PublicApi
       
    18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
       
    19 
       
    20 ///////////////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.script
       
    22 //
       
    23 // Tests all public elements of the MAnimWindowFunctions 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 // MAnimWindowFunctions 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 // MAnimWindowFunctions
       
    38 // ****************************************************************************
       
    39 
       
    40 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001
       
    41 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001
       
    42 //! @SYMAPI                 MAnimWindowFunctions::ActivateGc()
       
    43 //! @SYMAuthor              Forbes Fu
       
    44 //! @SYMCreationDate        11-04-2008
       
    45 //! @SYMTestCaseDesc        Create animation client object and send command to plugin to activate graphics context.
       
    46 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
    47 //!                         2.  Create and construct RWindowGroup and RWindow.
       
    48 //!                         3.  Activate the RWindow.
       
    49 //!                         4.  Create a RAnimDll and Load an animation plugin DLL.
       
    50 //!                         5.  Create a RAnim object by using RAnimDll object.
       
    51 //!                         6.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
    52 //!                         7.  Complete construction of the RAnimForMClass based on the created RWindow.
       
    53 //!                         8.  Send ECmdWindowActivateGc to animation DLL by CommandReply to activate graphics context.
       
    54 //!                         9.  Close RAnimForMClass.
       
    55 //!                         10. Close RAnim.
       
    56 //!                         11. Destroy RAnimDll.
       
    57 //!                         12. Close RWsSession, RWindowGroup and RWindow.
       
    58 //! @SYMTestStatus          Implemented
       
    59 //! @SYMTestPriority        High
       
    60 //! @SYMTestExpectedResults ActivateGc calls successfully.
       
    61 //! @SYMTestType            CIT
       
    62 
       
    63     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
    64         CREATE_OBJECT       RWsSession                 ws
       
    65         CREATE_OBJECT       RWindowGroup               wingrp
       
    66         CREATE_OBJECT       RWindow                    win
       
    67         CREATE_OBJECT       RAnimDll                   animdll
       
    68         CREATE_OBJECT       RAnim                      anim
       
    69         CREATE_OBJECT       RAnimForMClass             animformc
       
    70         COMMAND             ws                         new
       
    71         COMMAND             ws                         Connect
       
    72         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command003
       
    73         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-Construct_command004
       
    74         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command005
       
    75         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-Construct_command006
       
    76         COMMAND             win                        Activate
       
    77         COMMAND             win                        BeginRedraw
       
    78         COMMAND             win                        EndRedraw
       
    79         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command008
       
    80         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-Load_command009
       
    81         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command010
       
    82         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command011
       
    83         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-Construct_command012
       
    84         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-CommandReply_command013
       
    85         COMMAND             animformc                  Close
       
    86         COMMAND             anim                       Close
       
    87         COMMAND             animdll                    Destroy
       
    88         COMMAND             win                        Close
       
    89         COMMAND             wingrp                     Close
       
    90         COMMAND             ws                         Close
       
    91     END_TEST_BLOCK
       
    92    
       
    93 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001
       
    94 
       
    95 
       
    96 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002
       
    97 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002
       
    98 //! @SYMAPI                 MAnimWindowFunctions::Parameters(TWindowInfo{ref})
       
    99 //! @SYMAuthor              Forbes Fu
       
   100 //! @SYMCreationDate        11-04-2008
       
   101 //! @SYMTestCaseDesc        Create animation client object and send command to plugin to get window position and display mode.
       
   102 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
   103 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   104 //!                         3.  Activate the RWindow.
       
   105 //!                         4.  Create a RAnimDll and Load an animation plugin DLL.
       
   106 //!                         5.  Create a RAnim object by using RAnimDll object.
       
   107 //!                         6.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   108 //!                         7.  Complete construction of the RAnimForMClass based on the created RWindow.
       
   109 //!                         8.  Send ECmdWindowParameters to animation DLL by CommandReply to get window position and display mode.
       
   110 //!                         8.1 Plugin get window information then return window position by IPC slot 1 and display mode by IPC slot 2.
       
   111 //!                         8.2 Wrapper check window position by RWindow::Size() and display mode by RWindow::DisplayMode().
       
   112 //!                         9.  Close RAnimForMClass.
       
   113 //!                         10. Close RAnim.
       
   114 //!                         11. Destroy RAnimDll.
       
   115 //!                         10. Close RWsSession, RWindowGroup and RWindow.
       
   116 //! @SYMTestStatus          Implemented
       
   117 //! @SYMTestPriority        High
       
   118 //! @SYMTestExpectedResults Get window position and display mode as expected.
       
   119 //! @SYMTestType            CIT
       
   120 
       
   121     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   122         CREATE_OBJECT       RWsSession                 ws
       
   123         CREATE_OBJECT       RWindowGroup               wingrp
       
   124         CREATE_OBJECT       RWindow                    win
       
   125         CREATE_OBJECT       RAnimDll                   animdll
       
   126         CREATE_OBJECT       RAnim                      anim
       
   127         CREATE_OBJECT       RAnimForMClass             animformc
       
   128         COMMAND             ws                         new
       
   129         COMMAND             ws                         Connect
       
   130         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command003
       
   131         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-Construct_command004
       
   132         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command005
       
   133         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-Construct_command006
       
   134         COMMAND             win                        Activate
       
   135         COMMAND             win                        BeginRedraw
       
   136         COMMAND             win                        EndRedraw
       
   137         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command008
       
   138         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-Load_command009
       
   139         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command010
       
   140         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command011
       
   141         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-Construct_command012
       
   142         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-CommandReply_command013
       
   143         COMMAND             animformc                  Close
       
   144         COMMAND             anim                       Close
       
   145         COMMAND             animdll                    Destroy
       
   146         COMMAND             win                        Close
       
   147         COMMAND             wingrp                     Close
       
   148         COMMAND             ws                         Close
       
   149     END_TEST_BLOCK
       
   150    
       
   151 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002
       
   152 
       
   153 
       
   154 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003
       
   155 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003
       
   156 //! @SYMAPI                 MAnimWindowFunctions::WindowSize()
       
   157 //! @SYMAuthor              Forbes Fu
       
   158 //! @SYMCreationDate        11-04-2008
       
   159 //! @SYMTestCaseDesc        Create animation client object and send command to plugin to get window size.
       
   160 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
   161 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   162 //!                         3.  Activate the RWindow.
       
   163 //!                         4.  Create a RAnimDll and Load an animation plugin DLL.
       
   164 //!                         5.  Create a RAnim object by using RAnimDll object.
       
   165 //!                         6.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   166 //!                         7.  Complete construction of the RAnimForMClass based on the created RWindow.
       
   167 //!                         8.  Send ECmdWindowWindowSize to animation DLL by CommandReply to get window size.
       
   168 //!                         8.1 Plugin get window size then return it by IPC slot1.
       
   169 //!                         8.2 Wrapper check window size by RWindow::Size().
       
   170 //!                         9.  Close RAnimForMClass.
       
   171 //!                         10. Close RAnim.
       
   172 //!                         11. Destroy RAnimDll.
       
   173 //!                         12. Close RWsSession, RWindowGroup and RWindow.
       
   174 //! @SYMTestStatus          Implemented
       
   175 //! @SYMTestPriority        High
       
   176 //! @SYMTestExpectedResults CommandReply return window size as expected.
       
   177 //! @SYMTestType            CIT
       
   178 
       
   179     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   180         CREATE_OBJECT       RWsSession                 ws
       
   181         CREATE_OBJECT       RWindowGroup               wingrp
       
   182         CREATE_OBJECT       RWindow                    win
       
   183         CREATE_OBJECT       RAnimDll                   animdll
       
   184         CREATE_OBJECT       RAnim                      anim
       
   185         CREATE_OBJECT       RAnimForMClass             animformc
       
   186         COMMAND             ws                         new
       
   187         COMMAND             ws                         Connect
       
   188         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command003
       
   189         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-Construct_command004
       
   190         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command005
       
   191         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-Construct_command006
       
   192         COMMAND             win                        Activate
       
   193         COMMAND             win                        BeginRedraw
       
   194         COMMAND             win                        EndRedraw
       
   195         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command008
       
   196         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-Load_command009
       
   197         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command010
       
   198         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command011
       
   199         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-Construct_command012
       
   200         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-CommandReply_command013
       
   201         COMMAND             animformc                  Close
       
   202         COMMAND             anim                       Close
       
   203         COMMAND             animdll                    Destroy
       
   204         COMMAND             win                        Close
       
   205         COMMAND             wingrp                     Close
       
   206         COMMAND             ws                         Close
       
   207     END_TEST_BLOCK
       
   208    
       
   209 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003
       
   210 
       
   211 
       
   212 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004
       
   213 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004
       
   214 //! @SYMAPI                 MAnimWindowFunctions::IsHidden()
       
   215 //! @SYMAuthor              Forbes Fu
       
   216 //! @SYMCreationDate        11-04-2008
       
   217 //! @SYMTestCaseDesc        Create animation client object and create a new window to cover the window that animation is to draw to. 
       
   218 //!                         The new window encloses the animation window.
       
   219 //!                         Then send command to plugin to get hidden state and visible region count.
       
   220 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
   221 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   222 //!                         3.  Set window size and position.
       
   223 //!                         4.  Activate RWindow.
       
   224 //!                         5.  Create a RAnimDll and Load an animation plugin DLL.
       
   225 //!                         6.  Create a RAnim object by using RAnimDll object.
       
   226 //!                         7.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   227 //!                         8.  Complete construction of the RAnimForMClass based on the created RWindow.
       
   228 //!                         9.  Create a new window to cover the window that animation is to draw to.
       
   229 //!                         10.  Send ECmdWindowIsHidden to animation DLL by CommandReply to get hidden state.
       
   230 //!                         10.1 Plugin get window hidden state then return it.
       
   231 //!                         10.2 Wrapper check CommandReply return true or not.
       
   232 //!                         11. Close RAnimForMClass.
       
   233 //!                         12. Close RAnim.
       
   234 //!                         13. Destroy RAnimDll.
       
   235 //!                         14. Close RWsSession, RWindowGroup and two RWindow.
       
   236 //! @SYMTestStatus          Implemented
       
   237 //! @SYMTestPriority        High
       
   238 //! @SYMTestExpectedResults IsHidden returns true.
       
   239 //! @SYMTestType            CIT
       
   240 
       
   241     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   242         CREATE_OBJECT       RWsSession                 ws
       
   243         CREATE_OBJECT       RWindowGroup               wingrp
       
   244         CREATE_OBJECT       RWindow                    win
       
   245         CREATE_OBJECT       RWindow                    win1
       
   246         CREATE_OBJECT       RAnimDll                   animdll
       
   247         CREATE_OBJECT       RAnim                      anim
       
   248         CREATE_OBJECT       RAnimForMClass             animformc
       
   249         COMMAND             ws                         new
       
   250         COMMAND             ws                         Connect
       
   251         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command003
       
   252         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Construct_command004
       
   253         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command005
       
   254         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Construct_command006
       
   255         COMMAND             win                        SetExtent            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-SetExtent_command007
       
   256         COMMAND             win                        Activate
       
   257         COMMAND             win                        BeginRedraw
       
   258         COMMAND             win                        EndRedraw
       
   259         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command009
       
   260         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Load_command010
       
   261         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command011
       
   262         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command012
       
   263         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Construct_command013
       
   264         COMMAND             win1                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command014
       
   265         COMMAND             win1                       Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Construct_command015
       
   266         COMMAND             win1                       SetExtent            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-SetExtent_command016
       
   267         COMMAND             win1                       Activate
       
   268         COMMAND             win1                       BeginRedraw
       
   269         COMMAND             win1                       EndRedraw
       
   270         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-CommandReply_command018
       
   271         COMMAND             win1                       Close
       
   272         COMMAND             animformc                  Close
       
   273         COMMAND             anim                       Close
       
   274         COMMAND             animdll                    Destroy
       
   275         COMMAND             win                        Close
       
   276         COMMAND             wingrp                     Close
       
   277         COMMAND             ws                         Close
       
   278     END_TEST_BLOCK
       
   279    
       
   280 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004
       
   281 
       
   282 
       
   283 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005
       
   284 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005
       
   285 //! @SYMAPI                 MAnimWindowFunctions::IsHidden()
       
   286 //! @SYMAuthor              Forbes Fu
       
   287 //! @SYMCreationDate        11-04-2008
       
   288 //! @SYMTestCaseDesc        Create animation client object and create a new window to cover the window that animation is to draw to.
       
   289 //!                         The new window has identical size and position with the animation window.
       
   290 //!                         Then send command to plugin to get hidden state and visible region count.
       
   291 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
   292 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   293 //!                         3.  Set window size and position.
       
   294 //!                         4.  Activate RWindow.
       
   295 //!                         5.  Create a RAnimDll and Load an animation plugin DLL.
       
   296 //!                         6.  Create a RAnim object by using RAnimDll object.
       
   297 //!                         7.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   298 //!                         8.  Complete construction of the RAnimForMClass based on the created RWindow.
       
   299 //!                         9.  Create a new window to cover the window that animation is to draw to.
       
   300 //!                         10.  Send ECmdWindowIsHidden to animation DLL by CommandReply to get hidden state.
       
   301 //!                         10.1 Plugin get window hidden state then return it.
       
   302 //!                         10.2 Wrapper check CommandReply return true or not.
       
   303 //!                         11. Close RAnimForMClass.
       
   304 //!                         12. Close RAnim.
       
   305 //!                         13. Destroy RAnimDll.
       
   306 //!                         14. Close RWsSession, RWindowGroup and two RWindow.
       
   307 //! @SYMTestStatus          Implemented
       
   308 //! @SYMTestPriority        High
       
   309 //! @SYMTestExpectedResults IsHidden returns true.
       
   310 //! @SYMTestType            CIT
       
   311 
       
   312     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   313         CREATE_OBJECT       RWsSession                 ws
       
   314         CREATE_OBJECT       RWindowGroup               wingrp
       
   315         CREATE_OBJECT       RWindow                    win
       
   316         CREATE_OBJECT       RWindow                    win1
       
   317         CREATE_OBJECT       RAnimDll                   animdll
       
   318         CREATE_OBJECT       RAnim                      anim
       
   319         CREATE_OBJECT       RAnimForMClass             animformc
       
   320         COMMAND             ws                         new
       
   321         COMMAND             ws                         Connect
       
   322         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command003
       
   323         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Construct_command004
       
   324         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command005
       
   325         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Construct_command006
       
   326         COMMAND             win                        SetExtent            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-SetExtent_command007
       
   327         COMMAND             win                        Activate
       
   328         COMMAND             win                        BeginRedraw
       
   329         COMMAND             win                        EndRedraw
       
   330         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command009
       
   331         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Load_command010
       
   332         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command011
       
   333         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command012
       
   334         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Construct_command013
       
   335         COMMAND             win1                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command014
       
   336         COMMAND             win1                       Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Construct_command015
       
   337         COMMAND             win1                       SetExtent            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-SetExtent_command016
       
   338         COMMAND             win1                       Activate
       
   339         COMMAND             win1                       BeginRedraw
       
   340         COMMAND             win1                       EndRedraw
       
   341         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-CommandReply_command018
       
   342         COMMAND             win1                       Close
       
   343         COMMAND             animformc                  Close
       
   344         COMMAND             anim                       Close
       
   345         COMMAND             animdll                    Destroy
       
   346         COMMAND             win                        Close
       
   347         COMMAND             wingrp                     Close
       
   348         COMMAND             ws                         Close
       
   349     END_TEST_BLOCK
       
   350    
       
   351 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005
       
   352 
       
   353 
       
   354 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006
       
   355 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006
       
   356 //! @SYMAPI                 MAnimWindowFunctions::IsHidden()
       
   357 //! @SYMAuthor              Forbes Fu
       
   358 //! @SYMCreationDate        11-04-2008
       
   359 //! @SYMTestCaseDesc        Create animation client object and create a new window to cover a rectangle cornor of the window that animation is to draw to.
       
   360 //!                         Then send command to plugin to get hidden state.
       
   361 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
   362 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   363 //!                         3.  Set window size and position.
       
   364 //!                         4.  Activate RWindow.
       
   365 //!                         5.  Create a RAnimDll and Load an animation plugin DLL.
       
   366 //!                         6.  Create a RAnim object by using RAnimDll object.
       
   367 //!                         7.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   368 //!                         8.  Complete construction of the RAnimForMClass based on the created RWindow.
       
   369 //!                         9.  Create a new window to cover a a rectangle cornor of the window that animation is to draw to.
       
   370 //!                         10.  Send ECmdWindowIsHidden to animation DLL by CommandReply to get hidden state.
       
   371 //!                         10.1 Plugin get window hidden state then return it.
       
   372 //!                         10.2 Wrapper check CommandReply return false or not.
       
   373 //!                         11. Close RAnimForMClass.
       
   374 //!                         12. Close RAnim.
       
   375 //!                         13. Destroy RAnimDll.
       
   376 //!                         14. Close RWsSession, RWindowGroup and two RWindow.
       
   377 //! @SYMTestStatus          Implemented
       
   378 //! @SYMTestPriority        High
       
   379 //! @SYMTestExpectedResults IsHidden returns false.
       
   380 //! @SYMTestType            CIT
       
   381 
       
   382     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   383         CREATE_OBJECT       RWsSession                 ws
       
   384         CREATE_OBJECT       RWindowGroup               wingrp
       
   385         CREATE_OBJECT       RWindow                    win
       
   386         CREATE_OBJECT       RWindow                    win1
       
   387         CREATE_OBJECT       RAnimDll                   animdll
       
   388         CREATE_OBJECT       RAnim                      anim
       
   389         CREATE_OBJECT       RAnimForMClass             animformc
       
   390         COMMAND             ws                         new
       
   391         COMMAND             ws                         Connect
       
   392         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command003
       
   393         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Construct_command004
       
   394         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command005
       
   395         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Construct_command006
       
   396         COMMAND             win                        SetExtent            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-SetExtent_command007
       
   397         COMMAND             win                        Activate
       
   398         COMMAND             win                        BeginRedraw
       
   399         COMMAND             win                        EndRedraw
       
   400         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command009
       
   401         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Load_command010
       
   402         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command011
       
   403         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command012
       
   404         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Construct_command013
       
   405         COMMAND             win1                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command014
       
   406         COMMAND             win1                       Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Construct_command015
       
   407         COMMAND             win1                       SetExtent            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-SetExtent_command016
       
   408         COMMAND             win1                       Activate
       
   409         COMMAND             win1                       BeginRedraw
       
   410         COMMAND             win1                       EndRedraw
       
   411         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-CommandReply_command018
       
   412         COMMAND             win1                       Close
       
   413         COMMAND             animformc                  Close
       
   414         COMMAND             anim                       Close
       
   415         COMMAND             animdll                    Destroy
       
   416         COMMAND             win                        Close
       
   417         COMMAND             wingrp                     Close
       
   418         COMMAND             ws                         Close
       
   419     END_TEST_BLOCK
       
   420    
       
   421 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006
       
   422 
       
   423 
       
   424 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007
       
   425 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007
       
   426 //! @SYMAPI                 MAnimWindowFunctions::VisibleRegion(TRegion{ref})
       
   427 //! @SYMAuthor              Forbes Fu
       
   428 //! @SYMCreationDate        11-04-2008
       
   429 //! @SYMTestCaseDesc        Create animation client object and create a new window to cover the window that animation is to draw to. 
       
   430 //!                         The new window encloses the animation window.
       
   431 //!                         Then send command to plugin to get visible region count.
       
   432 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
   433 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   434 //!                         3.  Set window size and position.
       
   435 //!                         4.  Activate RWindow.
       
   436 //!                         5.  Create a RAnimDll and Load an animation plugin DLL.
       
   437 //!                         6.  Create a RAnim object by using RAnimDll object.
       
   438 //!                         7.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   439 //!                         8.  Complete construction of the RAnimForMClass based on the created RWindow.
       
   440 //!                         9.  Create a new window to cover the window that animation is to draw to.
       
   441 //!                         10. Send ECmdWindowVisibleRegion to animation DLL by CommandReply to get visible region count.
       
   442 //!                         10.1 Plugin get window visible region then return visible region count.
       
   443 //!                         10.2 Wrapper check CommandReply return 0 or not.
       
   444 //!                         11. Close RAnimForMClass.
       
   445 //!                         12. Close RAnim.
       
   446 //!                         13. Destroy RAnimDll.
       
   447 //!                         14. Close RWsSession, RWindowGroup and two RWindow.
       
   448 //! @SYMTestStatus          Implemented
       
   449 //! @SYMTestPriority        High
       
   450 //! @SYMTestExpectedResults IsHidden returns true;
       
   451 //!                         Visible region count is 0.
       
   452 //! @SYMTestType            CIT
       
   453 
       
   454     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   455         CREATE_OBJECT       RWsSession                 ws
       
   456         CREATE_OBJECT       RWindowGroup               wingrp
       
   457         CREATE_OBJECT       RWindow                    win
       
   458         CREATE_OBJECT       RWindow                    win1
       
   459         CREATE_OBJECT       RAnimDll                   animdll
       
   460         CREATE_OBJECT       RAnim                      anim
       
   461         CREATE_OBJECT       RAnimForMClass             animformc
       
   462         COMMAND             ws                         new
       
   463         COMMAND             ws                         Connect
       
   464         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command003
       
   465         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Construct_command004
       
   466         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command005
       
   467         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Construct_command006
       
   468         COMMAND             win                        SetExtent            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-SetExtent_command007
       
   469         COMMAND             win                        Activate
       
   470         COMMAND             win                        BeginRedraw
       
   471         COMMAND             win                        EndRedraw
       
   472         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command009
       
   473         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Load_command010
       
   474         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command011
       
   475         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command012
       
   476         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Construct_command013
       
   477         COMMAND             win1                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command014
       
   478         COMMAND             win1                       Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Construct_command015
       
   479         COMMAND             win1                       SetExtent            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-SetExtent_command016
       
   480         COMMAND             win1                       Activate
       
   481         COMMAND             win1                       BeginRedraw
       
   482         COMMAND             win1                       EndRedraw
       
   483         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-CommandReply_command018
       
   484         COMMAND             win1                       Close
       
   485         COMMAND             animformc                  Close
       
   486         COMMAND             anim                       Close
       
   487         COMMAND             animdll                    Destroy
       
   488         COMMAND             win                        Close
       
   489         COMMAND             wingrp                     Close
       
   490         COMMAND             ws                         Close
       
   491     END_TEST_BLOCK
       
   492    
       
   493 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007
       
   494 
       
   495 
       
   496 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008
       
   497 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008
       
   498 //! @SYMAPI                 MAnimWindowFunctions::VisibleRegion(TRegion{ref})
       
   499 //! @SYMAuthor              Forbes Fu
       
   500 //! @SYMCreationDate        11-04-2008
       
   501 //! @SYMTestCaseDesc        Create animation client object and create a new window to cover the window that animation is to draw to.
       
   502 //!                         The new window has identical size and position with the animation window.
       
   503 //!                         Then send command to plugin to get visible region count.
       
   504 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
   505 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   506 //!                         3.  Set window size and position.
       
   507 //!                         4.  Activate RWindow.
       
   508 //!                         5.  Create a RAnimDll and Load an animation plugin DLL.
       
   509 //!                         6.  Create a RAnim object by using RAnimDll object.
       
   510 //!                         7.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   511 //!                         8.  Complete construction of the RAnimForMClass based on the created RWindow.
       
   512 //!                         9.  Create a new window to cover the window that animation is to draw to.
       
   513 //!                         10. Send ECmdWindowVisibleRegion to animation DLL by CommandReply to get visible region count.
       
   514 //!                         10.1 Plugin get window visible region then return visible region count.
       
   515 //!                         10.2 Wrapper check CommandReply return 0 or not.
       
   516 //!                         11. Close RAnimForMClass.
       
   517 //!                         12. Close RAnim.
       
   518 //!                         13. Destroy RAnimDll.
       
   519 //!                         14. Close RWsSession, RWindowGroup and two RWindow.
       
   520 //! @SYMTestStatus          Implemented
       
   521 //! @SYMTestPriority        High
       
   522 //! @SYMTestExpectedResults IsHidden returns true;
       
   523 //!                         Visible region count is 0.
       
   524 //! @SYMTestType            CIT
       
   525 
       
   526     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   527         CREATE_OBJECT       RWsSession                 ws
       
   528         CREATE_OBJECT       RWindowGroup               wingrp
       
   529         CREATE_OBJECT       RWindow                    win
       
   530         CREATE_OBJECT       RWindow                    win1
       
   531         CREATE_OBJECT       RAnimDll                   animdll
       
   532         CREATE_OBJECT       RAnim                      anim
       
   533         CREATE_OBJECT       RAnimForMClass             animformc
       
   534         COMMAND             ws                         new
       
   535         COMMAND             ws                         Connect
       
   536         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command003
       
   537         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Construct_command004
       
   538         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command005
       
   539         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Construct_command006
       
   540         COMMAND             win                        SetExtent            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-SetExtent_command007
       
   541         COMMAND             win                        Activate
       
   542         COMMAND             win                        BeginRedraw
       
   543         COMMAND             win                        EndRedraw
       
   544         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command009
       
   545         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Load_command010
       
   546         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command011
       
   547         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command012
       
   548         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Construct_command013
       
   549         COMMAND             win1                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command014
       
   550         COMMAND             win1                       Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Construct_command015
       
   551         COMMAND             win1                       SetExtent            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-SetExtent_command016
       
   552         COMMAND             win1                       Activate
       
   553         COMMAND             win1                       BeginRedraw
       
   554         COMMAND             win1                       EndRedraw
       
   555         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-CommandReply_command018
       
   556         COMMAND             win1                       Close
       
   557         COMMAND             animformc                  Close
       
   558         COMMAND             anim                       Close
       
   559         COMMAND             animdll                    Destroy
       
   560         COMMAND             win                        Close
       
   561         COMMAND             wingrp                     Close
       
   562         COMMAND             ws                         Close
       
   563     END_TEST_BLOCK
       
   564    
       
   565 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008
       
   566 
       
   567 
       
   568 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009
       
   569 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009
       
   570 //! @SYMAPI                 MAnimWindowFunctions::VisibleRegion(TRegion{ref})
       
   571 //! @SYMAuthor              Forbes Fu
       
   572 //! @SYMCreationDate        11-04-2008
       
   573 //! @SYMTestCaseDesc        Create animation client object and create a new window to cover a rectangle cornor of the window that animation is to draw to.
       
   574 //!                         Then send command to plugin to get visible region count.
       
   575 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
   576 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   577 //!                         3.  Set window size and position.
       
   578 //!                         4.  Activate RWindow.
       
   579 //!                         5.  Create a RAnimDll and Load an animation plugin DLL.
       
   580 //!                         6.  Create a RAnim object by using RAnimDll object.
       
   581 //!                         7.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   582 //!                         8.  Complete construction of the RAnimForMClass based on the created RWindow.
       
   583 //!                         9.  Create a new window to cover a a rectangle cornor of the window that animation is to draw to.
       
   584 //!                         10. Send ECmdWindowVisibleRegion to animation DLL by CommandReply to get visible region count.
       
   585 //!                         10.1 Plugin get window visible region then return visible region count.
       
   586 //!                         10.2 Wrapper check CommandReply return 2 or not.
       
   587 //!                         11. Close RAnimForMClass.
       
   588 //!                         12. Close RAnim.
       
   589 //!                         13. Destroy RAnimDll.
       
   590 //!                         14. Close RWsSession, RWindowGroup and two RWindow.
       
   591 //! @SYMTestStatus          Implemented
       
   592 //! @SYMTestPriority        High
       
   593 //! @SYMTestExpectedResults Visible region count is 2.
       
   594 //! @SYMTestType            CIT
       
   595 
       
   596     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   597         CREATE_OBJECT       RWsSession                 ws
       
   598         CREATE_OBJECT       RWindowGroup               wingrp
       
   599         CREATE_OBJECT       RWindow                    win
       
   600         CREATE_OBJECT       RWindow                    win1
       
   601         CREATE_OBJECT       RAnimDll                   animdll
       
   602         CREATE_OBJECT       RAnim                      anim
       
   603         CREATE_OBJECT       RAnimForMClass             animformc
       
   604         COMMAND             ws                         new
       
   605         COMMAND             ws                         Connect
       
   606         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command003
       
   607         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Construct_command004
       
   608         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command005
       
   609         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Construct_command006
       
   610         COMMAND             win                        SetExtent            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-SetExtent_command007
       
   611         COMMAND             win                        Activate
       
   612         COMMAND             win                        BeginRedraw
       
   613         COMMAND             win                        EndRedraw
       
   614         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command009
       
   615         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Load_command010
       
   616         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command011
       
   617         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command012
       
   618         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Construct_command013
       
   619         COMMAND             win1                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command014
       
   620         COMMAND             win1                       Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Construct_command015
       
   621         COMMAND             win1                       SetExtent            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-SetExtent_command016
       
   622         COMMAND             win1                       Activate
       
   623         COMMAND             win1                       BeginRedraw
       
   624         COMMAND             win1                       EndRedraw
       
   625         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-CommandReply_command018
       
   626         COMMAND             win1                       Close
       
   627         COMMAND             animformc                  Close
       
   628         COMMAND             anim                       Close
       
   629         COMMAND             animdll                    Destroy
       
   630         COMMAND             win                        Close
       
   631         COMMAND             wingrp                     Close
       
   632         COMMAND             ws                         Close
       
   633     END_TEST_BLOCK
       
   634    
       
   635 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009
       
   636 
       
   637 
       
   638 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010
       
   639 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010
       
   640 //! @SYMAPI                 MAnimWindowFunctions::SetVisible(TBool)
       
   641 //! @SYMAuthor              Forbes Fu
       
   642 //! @SYMCreationDate        11-04-2008
       
   643 //! @SYMTestCaseDesc        Create animation client object and send command to plugin to set visibility of the window that animation is drawing to.
       
   644 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
   645 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   646 //!                         3.  Activate the RWindow.
       
   647 //!                         4.  Create a RAnimDll and Load an animation plugin DLL.
       
   648 //!                         5.  Create a RAnim object by using RAnimDll object.
       
   649 //!                         6.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   650 //!                         7.  Complete construction of the RAnimForMClass based on the created RWindow.
       
   651 //!                         8.  Send ECmdWindowSetVisible to animation DLL by CommandReply to set window invisible.
       
   652 //!                         9.  Send ECmdWindowIsHidden to animation DLL by CommandReply to get hidden state.
       
   653 //!                         9.1 Plugin get window hidden state then return it.
       
   654 //!                         9.2 Wrapper check CommandReply return true or not.
       
   655 //!                         10. Send ECmdWindowSetVisible to animation DLL by CommandReply to set window visible.
       
   656 //!                         11. Send ECmdWindowIsHidden to animation DLL by CommandReply to get hidden state.
       
   657 //!                         11.1 Plugin get window hidden state then return it.
       
   658 //!                         11.2 Wrapper check CommandReply return false or not.
       
   659 //!                         12. Close RAnimForMClass.
       
   660 //!                         13. Close RAnim.
       
   661 //!                         14. Destroy RAnimDll.
       
   662 //!                         15. Close RWsSession, RWindowGroup and RWindow.
       
   663 //! @SYMTestStatus          Implemented
       
   664 //! @SYMTestPriority        High
       
   665 //! @SYMTestExpectedResults Set window visibility as expected.
       
   666 //! @SYMTestType            CIT
       
   667 
       
   668     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   669         CREATE_OBJECT       RWsSession                 ws
       
   670         CREATE_OBJECT       RWindowGroup               wingrp
       
   671         CREATE_OBJECT       RWindow                    win
       
   672         CREATE_OBJECT       RAnimDll                   animdll
       
   673         CREATE_OBJECT       RAnim                      anim
       
   674         CREATE_OBJECT       RAnimForMClass             animformc
       
   675         COMMAND             ws                         new
       
   676         COMMAND             ws                         Connect
       
   677         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command003
       
   678         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-Construct_command004
       
   679         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command005
       
   680         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-Construct_command006
       
   681         COMMAND             win                        Activate
       
   682         COMMAND             win                        BeginRedraw
       
   683         COMMAND             win                        EndRedraw
       
   684         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command008
       
   685         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-Load_command009
       
   686         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command010
       
   687         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command011
       
   688         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-Construct_command012
       
   689         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-CommandReply_command013
       
   690         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-CommandReply_command014
       
   691         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-CommandReply_command015
       
   692         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-CommandReply_command016
       
   693         COMMAND             animformc                  Close
       
   694         COMMAND             anim                       Close
       
   695         COMMAND             animdll                    Destroy
       
   696         COMMAND             win                        Close
       
   697         COMMAND             wingrp                     Close
       
   698         COMMAND             ws                         Close
       
   699     END_TEST_BLOCK
       
   700    
       
   701 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010
       
   702 
       
   703 
       
   704 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011
       
   705 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011
       
   706 //! @SYMAPI                 MAnimWindowFunctions::SetRect(TRect{ref})
       
   707 //! @SYMAuthor              Forbes Fu
       
   708 //! @SYMCreationDate        11-04-2008
       
   709 //! @SYMTestCaseDesc        Create animation client object and send command to plugin to set rectangle to be drawn to and check that animation is started.
       
   710 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
   711 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   712 //!                         3.  Activate the RWindow.
       
   713 //!                         4.  Create a RAnimDll and Load an animation plugin DLL.
       
   714 //!                         5.  Create a RAnim object by using RAnimDll object.
       
   715 //!                         6.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   716 //!                         7.  Complete construction of the RAnimForMClass based on the created RWindow.
       
   717 //!                         8.  Send ECmdWindowSetRect to animation DLL by CommandReply to set rectangle.
       
   718 //!                         9.  Send ECmdWindowIsStarted to animation DLL by CommandReply.
       
   719 //!                         10. Delay one second.
       
   720 //!                         11. Send ECmdRetrieveResult to animation DLL by CommandReply to check whether the animation is started.
       
   721 //!                         12. Close RAnimForMClass.
       
   722 //!                         13. Close RAnim.
       
   723 //!                         14. Destroy RAnimDll.
       
   724 //!                         15. Close RWsSession, RWindowGroup and RWindow.
       
   725 //! @SYMTestStatus          Implemented
       
   726 //! @SYMTestPriority        High
       
   727 //! @SYMTestExpectedResults Retrieved result is true.
       
   728 //! @SYMTestType            CIT
       
   729 
       
   730     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   731         CREATE_OBJECT       RWsSession                 ws
       
   732         CREATE_OBJECT       RWindowGroup               wingrp
       
   733         CREATE_OBJECT       RWindow                    win
       
   734         CREATE_OBJECT       RWindow                    win1
       
   735         CREATE_OBJECT       RAnimDll                   animdll
       
   736         CREATE_OBJECT       RAnim                      anim
       
   737         CREATE_OBJECT       RAnimForMClass             animformc
       
   738         COMMAND             ws                         new
       
   739         COMMAND             ws                         Connect
       
   740         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command003
       
   741         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-Construct_command004
       
   742         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command005
       
   743         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-Construct_command006
       
   744         COMMAND             win                        Activate
       
   745         COMMAND             win                        BeginRedraw
       
   746         COMMAND             win                        EndRedraw
       
   747         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command008
       
   748         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-Load_command009
       
   749         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command010
       
   750         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command011
       
   751         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-Construct_command012
       
   752         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-CommandReply_command013
       
   753         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-CommandReply_command014
       
   754         DELAY               1000000
       
   755         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-CommandReply_command016        
       
   756         COMMAND             animformc                  Close
       
   757         COMMAND             anim                       Close
       
   758         COMMAND             animdll                    Destroy        
       
   759         COMMAND             win                        Close
       
   760         COMMAND             wingrp                     Close
       
   761         COMMAND             ws                         Close
       
   762     END_TEST_BLOCK
       
   763    
       
   764 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011
       
   765 
       
   766 
       
   767 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012
       
   768 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012
       
   769 //! @SYMAPI                 MAnimWindowFunctions::SetRect(TRect{ref})
       
   770 //! @SYMAuthor              Forbes Fu
       
   771 //! @SYMCreationDate        11-04-2008
       
   772 //! @SYMTestCaseDesc        Create animation client object and send command to plugin to set rectangle to be drawn to.
       
   773 //!                         Then create a new window whose extension includes this rectangle and check that animation is stopped.
       
   774 //!                         Then close the new window and check that animation is started.
       
   775 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
   776 //!                         2.  Create and construct RWindowGroup and RWindow.
       
   777 //!                         3.  Activate the RWindow.
       
   778 //!                         4.  Create a RAnimDll and Load an animation plugin DLL.
       
   779 //!                         5.  Create a RAnim object by using RAnimDll object.
       
   780 //!                         6.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   781 //!                         7.  Complete construction of the RAnimForMClass based on the created RWindow.
       
   782 //!                         8.  Send ECmdWindowSetRect to animation DLL by CommandReply to set rectangle.
       
   783 //!                         9.  Create a new window to cover the window of that animation is drawing to.
       
   784 //!                         10. Send ECmdWindowIsStarted to animation DLL by CommandReply.
       
   785 //!                         11. Delay one second.
       
   786 //!                         12. Send ECmdRetrieveResult to animation DLL by CommandReply to check whether the animation is started. 
       
   787 //!                         13. Close the new window.
       
   788 //!                         14. Send ECmdWindowIsStarted to animation DLL by CommandReply. 
       
   789 //!                         15. Delay one second.
       
   790 //!                         16. Send ECmdRetrieveResult to animation DLL by CommandReply to check whether the animation is started. 
       
   791 //!                         17. Close RAnimForMClass.
       
   792 //!                         18. Close RAnim.
       
   793 //!                         19. Destroy RAnimDll.
       
   794 //!                         20. Close RWsSession, RWindowGroup and RWindow.
       
   795 //! @SYMTestStatus          Implemented
       
   796 //! @SYMTestPriority        High
       
   797 //! @SYMTestExpectedResults Return false at test action 12;
       
   798 //!                         Return true at test action 16.
       
   799 //! @SYMTestType            CIT
       
   800 
       
   801     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   802         CREATE_OBJECT       RWsSession                 ws
       
   803         CREATE_OBJECT       RWindowGroup               wingrp
       
   804         CREATE_OBJECT       RWindow                    win
       
   805         CREATE_OBJECT       RWindow                    win1
       
   806         CREATE_OBJECT       RAnimDll                   animdll
       
   807         CREATE_OBJECT       RAnim                      anim
       
   808         CREATE_OBJECT       RAnimForMClass             animformc
       
   809         COMMAND             ws                         new
       
   810         COMMAND             ws                         Connect
       
   811         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command003
       
   812         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Construct_command004
       
   813         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command005
       
   814         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Construct_command006
       
   815         COMMAND             win                        Activate
       
   816         COMMAND             win                        BeginRedraw
       
   817         COMMAND             win                        EndRedraw
       
   818         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command008
       
   819         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Load_command009
       
   820         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command010
       
   821         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command011
       
   822         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Construct_command012
       
   823         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command013
       
   824         COMMAND             win1                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command014
       
   825         COMMAND             win1                       Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Construct_command015
       
   826         COMMAND             win1                       Activate
       
   827         COMMAND             win1                       BeginRedraw
       
   828         COMMAND             win1                       EndRedraw
       
   829         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command017
       
   830         DELAY               1000000
       
   831         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command019
       
   832         COMMAND             win1                       Close
       
   833         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command021
       
   834         DELAY               1000000
       
   835         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command023
       
   836         COMMAND             animformc                  Close
       
   837         COMMAND             anim                       Close
       
   838         COMMAND             animdll                    Destroy        
       
   839         COMMAND             win                        Close
       
   840         COMMAND             wingrp                     Close
       
   841         COMMAND             ws                         Close
       
   842     END_TEST_BLOCK
       
   843    
       
   844 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012
       
   845 
       
   846 
       
   847 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013
       
   848 //! @SYMTestCaseID          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013
       
   849 //! @SYMAPI                 MAnimWindowFunctions::Invalidate(TRect{ref})
       
   850 //! @SYMAuthor              Forbes Fu
       
   851 //! @SYMCreationDate        11-04-2008
       
   852 //! @SYMTestCaseDesc        Create animation client object and send command to plugin to invalidate a rectangular part in which try to draw a rect.
       
   853 //! @SYMTestActions         1.  Create and connect a RWsSession.
       
   854 //!                         2.  Create and construct CWsScreenDevice.
       
   855 //!                         3.  Create graphics context(CWindowGc) for CWsScreenDevice.
       
   856 //!                         4.  Create and construct RWindowGroup and RWindow.
       
   857 //!                         5.  Activate the RWindow.
       
   858 //!                         6.  Activate the CWsScreenDevice.
       
   859 //!                         7.  Begin redraw.
       
   860 //!                         8.  Clear the RWindow.
       
   861 //!                         9.  End redraw.
       
   862 //!                         10. Deactivate the CWsScreenDevice.
       
   863 //!                         11. Create a RAnimDll object and Load an animation DLL.
       
   864 //!                         12. Create a RAnim object by using RAnimDll object.
       
   865 //!                         13. Create a RAnimForMClass object and get wrapped object from RAnim.
       
   866 //!                         14. Complete construction of the RAnimForMClass based on the created RWindow.
       
   867 //!                         15. Send command ECmdWindowInvalidate to animation DLL by CommandReply.
       
   868 //!                         15.1 Plugin invalidate a rectangular part of animation window.
       
   869 //!                         15.2 Plugin activate Gc and try to draw a rect in invalid area.
       
   870 //!                         16. Check that plugin draw nothing.
       
   871 //!                         17. Close RAnimForMClass.
       
   872 //!                         18. Close RAnim.
       
   873 //!                         19  Destroy RAnimDll.
       
   874 //!                         20. Destroy CWsScreenDevice and CWindowGc.
       
   875 //!                         21. Close RWsSession, RWindowGroup and RWindow.
       
   876 //! @SYMTestStatus          Implemented
       
   877 //! @SYMTestPriority        High
       
   878 //! @SYMTestExpectedResults CommandReply return true.
       
   879 //! @SYMTestType            CIT
       
   880 
       
   881     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   882         CREATE_OBJECT       RWsSession                 ws
       
   883         CREATE_OBJECT       CWsScreenDevice            scrdev
       
   884         CREATE_OBJECT       CWindowGc                  wingc
       
   885         CREATE_OBJECT       RWindowGroup               wingrp
       
   886         CREATE_OBJECT       RWindow                    win
       
   887         CREATE_OBJECT       RAnimDll                   animdll
       
   888         CREATE_OBJECT       RAnim                      anim
       
   889         CREATE_OBJECT       RAnimForMClass             animformc
       
   890         COMMAND             ws                         new
       
   891         COMMAND             ws                         Connect
       
   892         COMMAND             scrdev                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command003
       
   893         COMMAND             scrdev                     Construct
       
   894         COMMAND             scrdev                     CreateContext        GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-CreateContext_command005
       
   895         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command006
       
   896         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Construct_command007
       
   897         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command008
       
   898         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Construct_command009
       
   899         COMMAND             win                        Activate
       
   900         COMMAND             win                        BeginRedraw
       
   901         COMMAND             win                        EndRedraw
       
   902         COMMAND             wingc                      Activate             GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Activate_command011
       
   903         COMMAND             win                        BeginRedraw
       
   904         COMMAND             wingc                      Clear
       
   905         COMMAND             win                        EndRedraw
       
   906         COMMAND             wingc                      Deactivate
       
   907         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command016
       
   908         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Load_command017        
       
   909         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command018
       
   910         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command019
       
   911         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Construct_command020
       
   912         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-CommandReply_command021
       
   913         COMMAND             scrdev                     RectCompare          GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-RectCompare_command022
       
   914         COMMAND             animformc                  Close
       
   915         COMMAND             anim                       Close
       
   916         COMMAND             animdll                    Destroy
       
   917         COMMAND             win                        Close
       
   918         COMMAND             wingrp                     Close
       
   919         COMMAND             wingc                      ~
       
   920         COMMAND             scrdev                     ~
       
   921         COMMAND             ws                         Close
       
   922     END_TEST_BLOCK
       
   923    
       
   924 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013
       
   925 
       
   926 
       
   927 /////////////////////////////////////////////////////////
       
   928 //MAnimFreeTimerWindowFunctions
       
   929 /////////////////////////////////////////////////////////
       
   930 
       
   931 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014
       
   932 //! @SYMTestCaseID              GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014
       
   933 //! @SYMAPI                     MAnimFreeTimerWindowFunctions::Update()
       
   934 //! @SYMAuthor                  Jason Lin
       
   935 //! @SYMCreationDate            04/14/2008
       
   936 //! @SYMTestCaseDesc            Create animation client object and send command to plugin to force the screen to update. 
       
   937 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
   938 //!                             2.  Create and construct RWindowGroup and RWindow.
       
   939 //!                             3.  Activate the RWindow.
       
   940 //!                             4.  Create a RAnimDll and Load an animation plugin DLL.
       
   941 //!                             5.  Create a RAnim object by using RAnimDll object.
       
   942 //!                             6.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   943 //!                             7.  Complete construction of the RAnimForMClass based on the created RWindow.
       
   944 //!                             8.  Send ECmdFreeTimerWinUpdate to animation DLL by CommandReply to force the screen to update.
       
   945 //!                             9.  Close RAnimForMClass.
       
   946 //!                             10. Close RAnim.
       
   947 //!                             11. Destroy RAnimDll.
       
   948 //!                             12. Close RWsSession, RWindowGroup and RWindow.
       
   949 //! @SYMTestStatus              Implemented
       
   950 //! @SYMTestPriority            High
       
   951 //! @SYMTestExpectedResults     ActivateGc calls successfully.
       
   952 //! @SYMTestType                CIT
       
   953 
       
   954     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
   955         CREATE_OBJECT       RWsSession                 ws
       
   956         CREATE_OBJECT       RWindowGroup               wingrp
       
   957         CREATE_OBJECT       RWindow                    win
       
   958         CREATE_OBJECT       RAnimDll                   animdll
       
   959         CREATE_OBJECT       RAnim                      anim
       
   960         CREATE_OBJECT       RAnimForMClass             animformc
       
   961         COMMAND             ws                         new
       
   962         COMMAND             ws                         Connect
       
   963         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command003
       
   964         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-Construct_command004
       
   965         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command005
       
   966         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-Construct_command006
       
   967         COMMAND             win                        Activate
       
   968         COMMAND             win                        BeginRedraw
       
   969         COMMAND             win                        EndRedraw
       
   970         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command008
       
   971         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-Load_command009
       
   972         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command010
       
   973         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command011
       
   974         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-Construct_command012
       
   975         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-CommandReply_command013
       
   976         COMMAND             animformc                  Close
       
   977         COMMAND             anim                       Close
       
   978         COMMAND             animdll                    Destroy
       
   979         COMMAND             win                        Close
       
   980         COMMAND             wingrp                     Close
       
   981         COMMAND             ws                         Close
       
   982     END_TEST_BLOCK
       
   983    
       
   984 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014
       
   985 
       
   986 
       
   987 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015
       
   988 //! @SYMTestCaseID              GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015
       
   989 //! @SYMAPI                     MAnimFreeTimerWindowFunctions::DeactivateGc()
       
   990 //! @SYMAuthor                  Jason Lin
       
   991 //! @SYMCreationDate            04/14/2008
       
   992 //! @SYMTestCaseDesc            Create animation client object and send command to plugin to check whether DeactivateGc work or not.
       
   993 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
   994 //!                             2.  Create and construct RWindowGroup and RWindow.
       
   995 //!                             3.  Activate the RWindow.
       
   996 //!                             4.  Create a RAnimDll and Load an animation plugin DLL.
       
   997 //!                             5.  Create a RAnim object by using RAnimDll object.
       
   998 //!                             6.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
   999 //!                             7.  Complete construction of the RAnimForMClass based on the created RWindow.
       
  1000 //!                             8.  Send ECmdFreeTimerWinDeactivateGc to animation DLL by CommandReply.
       
  1001 //!                             8.1 plugin check whether DeactivatGc work or not.
       
  1002 //!                             9.  Close RAnimForMClass.
       
  1003 //!                             10. Close RAnim.
       
  1004 //!                             11. Destroy RAnimDll.
       
  1005 //!                             12. Close RWsSession, RWindowGroup and RWindow.
       
  1006 //! @SYMTestStatus              Implemented
       
  1007 //! @SYMTestPriority            High
       
  1008 //! @SYMTestExpectedResults     CommandReply return KErrNone.
       
  1009 //! @SYMTestType                CIT
       
  1010 
       
  1011     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
  1012         CREATE_OBJECT       RWsSession                 ws
       
  1013         CREATE_OBJECT       RWindowGroup               wingrp
       
  1014         CREATE_OBJECT       RWindow                    win
       
  1015         CREATE_OBJECT       RAnimDll                   animdll
       
  1016         CREATE_OBJECT       RAnim                      anim
       
  1017         CREATE_OBJECT       RAnimForMClass             animformc
       
  1018         COMMAND             ws                         new
       
  1019         COMMAND             ws                         Connect
       
  1020         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command003
       
  1021         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-Construct_command004
       
  1022         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command005
       
  1023         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-Construct_command006
       
  1024         COMMAND             win                        Activate
       
  1025         COMMAND             win                        BeginRedraw
       
  1026         COMMAND             win                        EndRedraw
       
  1027         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command008
       
  1028         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-Load_command009
       
  1029         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command010
       
  1030         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command011
       
  1031         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-Construct_command012
       
  1032         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-CommandReply_command013
       
  1033         COMMAND             animformc                  Close
       
  1034         COMMAND             anim                       Close
       
  1035         COMMAND             animdll                    Destroy
       
  1036         COMMAND             win                        Close
       
  1037         COMMAND             wingrp                     Close
       
  1038         COMMAND             ws                         Close
       
  1039     END_TEST_BLOCK
       
  1040    
       
  1041 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015
       
  1042 
       
  1043 
       
  1044 START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016
       
  1045 //! @SYMTestCaseID              GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016
       
  1046 //! @SYMAPI                     MAnimFreeTimerWindowFunctions::DeactivateGc()
       
  1047 //! @SYMAuthor                  Forbes Fu
       
  1048 //! @SYMCreationDate            05/06/2008
       
  1049 //! @SYMTestCaseDesc            Create animation client object and send command to plugin to check whether DeactivateGc work or not.
       
  1050 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
  1051 //!                             2.  Create and construct RWindowGroup and RWindow.
       
  1052 //!                             3.  Set RWindow transparent and activate it.
       
  1053 //!                             4.  Create and construct another RWindow.
       
  1054 //!                             5.  Set the second RWindow transparent and activate it.
       
  1055 //!                             6.  Create a RAnimDll and Load an animation plugin DLL.
       
  1056 //!                             7.  Create a RAnim object by using RAnimDll object.
       
  1057 //!                             8.  Create a RAnimForMClass object and get wrapped object from RAnim.
       
  1058 //!                             9.  Complete construction of the RAnimForMClass based on the created RWindow.
       
  1059 //!                             10. Send ECmdFreeTimerWinDeactivateGc to animation DLL by CommandReply.
       
  1060 //!                             10.1 plugin check whether DeactivatGc work or not.
       
  1061 //!                             11. Close RAnimForMClass.
       
  1062 //!                             12. Close RAnim.
       
  1063 //!                             13. Destroy RAnimDll.
       
  1064 //!                             14. Close RWsSession, RWindowGroup and two RWindow.
       
  1065 //! @SYMTestStatus              Implemented
       
  1066 //! @SYMTestPriority            High
       
  1067 //! @SYMTestExpectedResults     CommandReply return KErrNone.
       
  1068 //! @SYMTestType                CIT
       
  1069 
       
  1070     START_TEST_BLOCK   10   T_GraphicsWservAPI         \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini
       
  1071         CREATE_OBJECT       RWsSession                 ws
       
  1072         CREATE_OBJECT       RWindowGroup               wingrp
       
  1073         CREATE_OBJECT       RWindow                    win
       
  1074         CREATE_OBJECT       RWindow                    win1
       
  1075         CREATE_OBJECT       RAnimDll                   animdll
       
  1076         CREATE_OBJECT       RAnim                      anim
       
  1077         CREATE_OBJECT       RAnimForMClass             animformc
       
  1078         COMMAND             ws                         new
       
  1079         COMMAND             ws                         Connect
       
  1080         COMMAND             wingrp                     new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command003
       
  1081         COMMAND             wingrp                     Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Construct_command004
       
  1082         COMMAND             win                        new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command005
       
  1083         COMMAND             win                        Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Construct_command006
       
  1084         COMMAND             win                        SetTransparencyAlphaChannel
       
  1085         COMMAND             win                        Activate
       
  1086         COMMAND             win                        BeginRedraw
       
  1087         COMMAND             win                        EndRedraw
       
  1088         COMMAND             win1                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command009
       
  1089         COMMAND             win1                       Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Construct_command010
       
  1090         COMMAND             win1                       SetTransparencyAlphaChannel
       
  1091         COMMAND             win1                       Activate
       
  1092         COMMAND             win1                       BeginRedraw
       
  1093         COMMAND             win1                       EndRedraw
       
  1094         COMMAND             animdll                    new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command013
       
  1095         COMMAND             animdll                    Load                 GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Load_command014
       
  1096         COMMAND             anim                       new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command015
       
  1097         COMMAND             animformc                  new                  GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command016
       
  1098         COMMAND             animformc                  Construct            GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Construct_command017
       
  1099         COMMAND             animformc                  CommandReply         GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-CommandReply_command018
       
  1100         COMMAND             animformc                  Close
       
  1101         COMMAND             anim                       Close
       
  1102         COMMAND             animdll                    Destroy
       
  1103         COMMAND             win1                       Close
       
  1104         COMMAND             win                        Close
       
  1105         COMMAND             wingrp                     Close
       
  1106         COMMAND             ws                         Close
       
  1107     END_TEST_BLOCK
       
  1108    
       
  1109 END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016
       
  1110