graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.script
changeset 103 2717213c588a
parent 98 bf7481649c98
child 116 171fae344dd4
child 121 d72fc2aace31
child 187 9f66f99ee56f
equal deleted inserted replaced
98:bf7481649c98 103:2717213c588a
     1 //
       
     2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 //! @file
       
    17 //! @SYMTestSuiteName  GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi
       
    18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
       
    19 
       
    20 ///////////////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi.script
       
    22 //
       
    23 // Tests all public elements of the CFbsScreenDevice 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 // CFbsScreenDevice 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 
       
    35 LOAD_SUITE      T_GraphicsBitGDIAPI
       
    36 DELAY           1000
       
    37 
       
    38 // ****************************************************************************
       
    39 // Class Name		CFbsScreenDevice
       
    40 // ****************************************************************************
       
    41 
       
    42 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0001
       
    43 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0001
       
    44 //! @SYMAPI                 	CFbsScreenDevice::NewL(const TDesC{ref}, TDisplayMode)
       
    45 //! @SYMAuthor              	Wei Liu
       
    46 //! @SYMCreationDate        	03/12/2008
       
    47 //! @SYMTestCaseDesc        	Create CFbsScreenDevice object by using NewL(const TDesC{ref}, TDisplayMode) and destroy it.
       
    48 //! @SYMTestActions         	1.Create CFbsScreenDevice Object by using TDesC{ref} and TDisplayMode params.
       
    49 //!								2.destroy object.
       
    50 //! @SYMTestStatus          	Implemented
       
    51 //! @SYMTestPriority        	High
       
    52 //! @SYMTestExpectedResults 	CFbsScreenDevice was created without causing panic.
       
    53 //! @SYMTestType            	CIT
       
    54 
       
    55     START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
    56         CREATE_OBJECT       	CFbsScreenDevice 	fbsscrdev
       
    57         CREATE_OBJECT       	RFbsSession 	 	rfbssession
       
    58         COMMAND					rfbssession			Constructor
       
    59         COMMAND					rfbssession			Connect
       
    60         COMMAND             	fbsscrdev           NewL     		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0001-NewL_command03
       
    61         COMMAND             	fbsscrdev			~
       
    62         COMMAND					rfbssession			Disconnect
       
    63      END_TEST_BLOCK
       
    64 END_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0001
       
    65 
       
    66 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0002
       
    67 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0002
       
    68 //! @SYMAPI                 	CFbsScreenDevice::NewL(const TDesC{ref}, TDisplayMode)
       
    69 //! @SYMAuthor              	Wei Liu
       
    70 //! @SYMCreationDate        	03/12/2008
       
    71 //! @SYMTestCaseDesc        	Negtive case, create the CFbsScreenDevice object with a bad TDisplayMode arguments.
       
    72 //! @SYMTestActions         	1.create CFbsScreenDevice object with a bad TDisplayMode.
       
    73 //!								2.destroy object.
       
    74 //! @SYMTestStatus          	Implemented
       
    75 //! @SYMTestPriority        	High
       
    76 //! @SYMTestExpectedResults 	NewL(const TDesC{ref}, TDisplayMode) is called with KErrNotSupported returned.
       
    77 //! @SYMTestType            	CIT
       
    78     START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
    79         CREATE_OBJECT       	CFbsScreenDevice 	fbsscrdev
       
    80         CREATE_OBJECT       	RFbsSession 	 	rfbssession
       
    81         COMMAND					rfbssession			Constructor
       
    82         COMMAND					rfbssession			Connect
       
    83         COMMAND  !Error=-5  	fbsscrdev           NewL     		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0002-NewL_command03        
       
    84         COMMAND             	fbsscrdev			~
       
    85         COMMAND					rfbssession			Disconnect
       
    86      END_TEST_BLOCK
       
    87 END_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0002
       
    88 
       
    89 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0003
       
    90 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0003
       
    91 //! @SYMAPI                 	CFbsScreenDevice::NewL(const TDesC{ref}, TDisplayMode, TRgb)
       
    92 //! @SYMAuthor              	Wei Liu
       
    93 //! @SYMCreationDate        	03/12/2008
       
    94 //! @SYMTestCaseDesc        	Create CFbsScreenDevice object by using NewL(const TDesC{ref}, TDisplayMode, TRgb) and destory it.
       
    95 //! @SYMTestActions         	1.Create CFbsScreenDevice object by NewL(const TDesC{ref}, TDisplayMode, TRgb).
       
    96 //!								2.destroy object.
       
    97 //! @SYMTestStatus          	Implemented
       
    98 //! @SYMTestPriority        	High
       
    99 //! @SYMTestExpectedResults 	CFbsScreenDevice was created without causing panic.
       
   100 //! @SYMTestType            	CIT
       
   101     START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   102         CREATE_OBJECT       	CFbsScreenDevice 	fbsscrdev
       
   103         CREATE_OBJECT       	RFbsSession 	 	rfbssession
       
   104         COMMAND					rfbssession			Constructor
       
   105         COMMAND					rfbssession			Connect
       
   106         COMMAND             	fbsscrdev           NewL     		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0003-NewL_command03
       
   107         COMMAND             	fbsscrdev			~
       
   108         COMMAND					rfbssession			Disconnect
       
   109      END_TEST_BLOCK
       
   110 END_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0003
       
   111 
       
   112 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0004
       
   113 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0004
       
   114 //! @SYMAPI                 	CFbsScreenDevice::NewL(const TDesC{ref}, TDisplayMode, TRgb)
       
   115 //! @SYMAuthor              	Wei Liu
       
   116 //! @SYMCreationDate        	03/12/2008
       
   117 //! @SYMTestCaseDesc        	Negtive case, create CFbsScreenDevice object with bad TDisplayMode arguments
       
   118 //! @SYMTestActions        	 	1.create CFbsScreenDevice object with a bad TDisplayMode.
       
   119 //!								2.destroy object.
       
   120 //! @SYMTestStatus          	Implemented
       
   121 //! @SYMTestPriority        	High
       
   122 //! @SYMTestExpectedResults 	NewL(const TDesC{ref}, TDisplayMode, TRgb) is called with KErrNotSupported returned.
       
   123 //! @SYMTestType            	CIT
       
   124     START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   125         CREATE_OBJECT       	CFbsScreenDevice 	fbsscrdev
       
   126         CREATE_OBJECT       	RFbsSession 	 	rfbssession
       
   127         COMMAND					rfbssession			Constructor
       
   128         COMMAND					rfbssession			Connect
       
   129         COMMAND  !Error=-5  	fbsscrdev           NewL     		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0004-NewL_command03
       
   130         COMMAND					rfbssession			Disconnect
       
   131         COMMAND             	fbsscrdev			~
       
   132      END_TEST_BLOCK
       
   133 END_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0004
       
   134 
       
   135 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0005
       
   136 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0005
       
   137 //! @SYMAPI                 	CFbsScreenDevice::NewL(TInt, TDisplayMode)
       
   138 //! @SYMAuthor              	Wei Liu
       
   139 //! @SYMCreationDate        	03/12/2008
       
   140 //! @SYMTestCaseDesc        	Create CFbsScreenDevice object by using NewL(TInt, TDisplayMode) method and destroy it.
       
   141 //! @SYMTestActions         	1.create CfbsScreenDevice object by NewL(TInt, TDisplayMode) method.
       
   142 //!								2.destroy object.
       
   143 //! @SYMTestStatus          	Implemented
       
   144 //! @SYMTestPriority        	High
       
   145 //! @SYMTestExpectedResults 	CFbsScreenDevice was created without causing panic.
       
   146 //! @SYMTestType            	CIT
       
   147     START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   148         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev
       
   149         CREATE_OBJECT       	RFbsSession 	 rfbssession
       
   150         COMMAND					rfbssession		 Constructor
       
   151         COMMAND					rfbssession		 Connect
       
   152         COMMAND             	fbsscrdev        NewL     		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0005-NewL_command03
       
   153         COMMAND             	fbsscrdev	     ~
       
   154         COMMAND					rfbssession		 Disconnect       
       
   155      END_TEST_BLOCK
       
   156 END_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0005
       
   157 
       
   158 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0006
       
   159 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0006
       
   160 //! @SYMAPI                 	CFbsScreenDevice::NewL(TInt, TDisplayMode)
       
   161 //! @SYMAuthor              	Wei Liu
       
   162 //! @SYMCreationDate        	03/12/2008
       
   163 //! @SYMTestCaseDesc        	Negtive case, create CFbsScreenDevice object with bad aScreenNo argument
       
   164 //! @SYMTestActions         	1.create CFbsScreenDevice object with bad aScreenNo argument.
       
   165 //!								2.destroy object.
       
   166 //! @SYMTestStatus          	Implemented
       
   167 //! @SYMTestPriority        	High
       
   168 //! @SYMTestExpectedResults 	NewL(TInt, TDisplayMode) is called with KErrNotSupported returned.
       
   169 //! @SYMTestType            	CIT
       
   170     START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   171         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev
       
   172         CREATE_OBJECT      	 	RFbsSession 	 rfbssession
       
   173         COMMAND					rfbssession		 Constructor
       
   174         COMMAND					rfbssession		 Connect
       
   175         COMMAND  !Error=-5  	fbsscrdev        NewL     		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0006-NewL_command03
       
   176         COMMAND					rfbssession		 Disconnect
       
   177         COMMAND             	fbsscrdev	     ~
       
   178      END_TEST_BLOCK
       
   179 END_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0006
       
   180 
       
   181 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0007
       
   182 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0007
       
   183 //! @SYMAPI                 	CFbsScreenDevice::NewL(TInt, TDisplayMode)
       
   184 //! @SYMAuthor              	Wei Liu
       
   185 //! @SYMCreationDate        	03/12/2008
       
   186 //! @SYMTestCaseDesc       	 	Negtive case, create CFbsScreenDevice object with bad aDispMode argument
       
   187 //! @SYMTestActions         	1.create CFbsScreenDevice object with bad aDispMode argument.
       
   188 //!								2.destroy object.
       
   189 //! @SYMTestStatus          	Implemented
       
   190 //! @SYMTestPriority        	High
       
   191 //! @SYMTestExpectedResults 	NewL(TInt, TDisplayMode) is called with KErrNotSupported returned.
       
   192 //! @SYMTestType           	 	CIT
       
   193     START_TEST_BLOCK   			10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   194         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev
       
   195         CREATE_OBJECT   	    RFbsSession 	 rfbssession
       
   196         COMMAND					rfbssession		 Constructor
       
   197         COMMAND					rfbssession		 Connect
       
   198         COMMAND  !Error=-5	  	fbsscrdev        NewL     		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0007-NewL_command03
       
   199         COMMAND					rfbssession		 Disconnect
       
   200         COMMAND     	        fbsscrdev	     ~
       
   201      END_TEST_BLOCK
       
   202 END_TESTCASE		GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0007
       
   203 
       
   204 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0008
       
   205 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0008
       
   206 //! @SYMAPI                     CFbsScreenDevice::~CFbsScreenDevice()
       
   207 //! @SYMAuthor                  Wei Liu
       
   208 //! @SYMCreationDate            03/12/2008
       
   209 //! @SYMTestCaseDesc            Create a CFbsScreenDevice attached to a RFbsSession and destruct it.
       
   210 //! @SYMTestActions             1. Create and connect a RFbsSession
       
   211 //!                             2. Create a CFbsScreenDevice attached to RFbsSession
       
   212 //!                             3. Destruct the CFbsScreenDevice object
       
   213 //!                             4. Disconnect the RFbsSession object
       
   214 //! @SYMTestStatus              Implemented
       
   215 //! @SYMTestPriority            High
       
   216 //! @SYMTestExpectedResults     CFbsScreenDevice was destructed without causing panic.
       
   217 //! @SYMTestType                CIT
       
   218     START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   219         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev
       
   220         CREATE_OBJECT       	RFbsSession 	 rfbssession
       
   221         COMMAND					rfbssession		 Constructor
       
   222         COMMAND					rfbssession		 Connect
       
   223         COMMAND             	fbsscrdev        NewL     		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0008-NewL_command03
       
   224         COMMAND             	fbsscrdev	     ~
       
   225         COMMAND					rfbssession		 Disconnect
       
   226      END_TEST_BLOCK   
       
   227 END_TESTCASE            GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0008
       
   228 
       
   229 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0009
       
   230 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0009
       
   231 //! @SYMAPI                 	CFbsScreenDevice::HardwareBitmap()
       
   232 //! @SYMAuthor              	Wei Liu
       
   233 //! @SYMCreationDate        	03/12/2008
       
   234 //! @SYMTestCaseDesc        	Create a CFbsScreenDevice object and get the handle from HardwareBitmap() function.
       
   235 //! @SYMTestActions         	1.Create a CFbsScreenDevice attached to RFbsSession.
       
   236 //!								2.Get the handle from CFbsScreenDevice::HardwareBitmap() function.
       
   237 //!								3.Destroy all objects.
       
   238 //! @SYMTestStatus          	Implemented
       
   239 //! @SYMTestPriority        	High
       
   240 //! @SYMTestExpectedResults 	HardwareBitmap() is called without panic.
       
   241 //! @SYMTestType            	CIT
       
   242     START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   243         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev
       
   244         CREATE_OBJECT       	RFbsSession 	 rfbssession
       
   245         COMMAND					rfbssession		 Constructor
       
   246         COMMAND					rfbssession		 Connect
       
   247         COMMAND             	fbsscrdev        NewL     			GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0009-NewL_command03
       
   248         COMMAND             	fbsscrdev		 HardwareBitmap 
       
   249         COMMAND             	fbsscrdev		 ~
       
   250         COMMAND					rfbssession		 Disconnect
       
   251      END_TEST_BLOCK
       
   252 END_TESTCASE 		GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0009
       
   253 
       
   254 START_TESTCASE 		GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0010
       
   255 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0010
       
   256 //! @SYMAPI                 	CFbsScreenDevice::Update()
       
   257 //! @SYMAuthor              	Wei Liu
       
   258 //! @SYMCreationDate        	03/12/2008
       
   259 //! @SYMTestCaseDesc        	Draw a line on the CFbsScreenDevice object and update the screen.
       
   260 //! @SYMTestActions         	1. Create CFbsScreenDevice attached to RFbsSession.
       
   261 //!								2. Create CFbsBitGc and attached to CFbsScreenDevice.
       
   262 //!								3. Clear the screen.
       
   263 //!								4. Draw a line from (20,20) to (60,60) on to the screen device.
       
   264 //!								5. Update the screen device.
       
   265 //!								6. Verify the color of the Pixels (20,20) (40,40) and (59,59), the color is Black.
       
   266 //!								7. Destroy all objects.
       
   267 //! @SYMTestStatus          	Implemented
       
   268 //! @SYMTestPriority        	High
       
   269 //! @SYMTestExpectedResults 	Update() is called without panic and the color of the pixels is as expected.
       
   270 //! @SYMTestType            	CIT
       
   271     START_TEST_BLOCK   		10  T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   272         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev
       
   273         CREATE_OBJECT       	RFbsSession 	 rfbssession
       
   274         CREATE_OBJECT			CFbsBitGc		 fbsbitgc
       
   275         COMMAND					rfbssession		 Constructor
       
   276         COMMAND					rfbssession		 Connect
       
   277         COMMAND             	fbsscrdev        NewL    		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0010-NewL_command03
       
   278         COMMAND					fbsbitgc		 NewL
       
   279         COMMAND					fbsbitgc		 Activate		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0010-Activate_command05 			
       
   280         COMMAND					fbsbitgc		 Clear
       
   281         COMMAND					fbsbitgc		 DrawLine		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0010-DrawLine_command07
       
   282         COMMAND             	fbsscrdev		 Update 	
       
   283         COMMAND					fbsscrdev		 checkPixels	GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0010-checkPixels_command09
       
   284         COMMAND             	fbsscrdev		 ~
       
   285  		COMMAND					fbsbitgc		 ~	
       
   286  		COMMAND					rfbssession		 Disconnect
       
   287      END_TEST_BLOCK
       
   288 END_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0010
       
   289 
       
   290 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0011
       
   291 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0011
       
   292 //! @SYMAPI                 	CFbsScreenDevice::Update(const TRegion{ref})
       
   293 //! @SYMAuthor              	Wei Liu
       
   294 //! @SYMCreationDate        	03/12/2008
       
   295 //! @SYMTestCaseDesc        	Draw a line on the CFbsScreenDevice object and update a region on the screen.
       
   296 //! @SYMTestActions        		1. Create CFbsScreenDevice attached to RFbsSession.
       
   297 //!								2. Create CFbsBitGc and attached to CFbsScreenDevice.
       
   298 //!								3. Clear the screen.
       
   299 //!								4. Draw a line from (20,20) to (60,60) on to the screen device.
       
   300 //!								5. Update a region (20,20),(70,70) on the screen device.
       
   301 //!								6. Verify the color of the Pixels (20,20) (40,40) and (59,59), the color is Black.
       
   302 //!								7. Destroy all objects.
       
   303 //! @SYMTestStatus          	Implemented
       
   304 //! @SYMTestPriority        	High
       
   305 //! @SYMTestExpectedResults 	Update() is called without panic and the color of the pixels is as expected.
       
   306 //! @SYMTestType            	CIT
       
   307 	START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   308         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev
       
   309         CREATE_OBJECT       	RFbsSession 	 rfbssession
       
   310         CREATE_OBJECT			CFbsBitGc		 fbsbitgc
       
   311         COMMAND					rfbssession		 Constructor
       
   312         COMMAND					rfbssession		 Connect
       
   313         COMMAND             	fbsscrdev        NewL    		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-NewL_command03
       
   314         COMMAND					fbsbitgc		 NewL
       
   315         COMMAND					fbsbitgc		 Activate		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-Activate_command05 			
       
   316         COMMAND					fbsbitgc		 Clear
       
   317         COMMAND					fbsbitgc		 DrawLine		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-DrawLine_command07
       
   318         COMMAND             	fbsscrdev		 Update 		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-Update_command08
       
   319         COMMAND					fbsscrdev		 checkPixels	GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-checkPixels_command09
       
   320         COMMAND             	fbsscrdev		 ~
       
   321  		COMMAND					fbsbitgc		 ~	
       
   322  		COMMAND					rfbssession		 Disconnect
       
   323      END_TEST_BLOCK
       
   324 END_TESTCASE		 	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0011
       
   325 
       
   326 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0012
       
   327 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0012
       
   328 //! @SYMAPI                 	CFbsScreenDevice::SetAutoUpdate(TBool)
       
   329 //! @SYMAuthor              	Wei Liu
       
   330 //! @SYMCreationDate        	03/12/2008
       
   331 //! @SYMTestCaseDesc        	Set EFalse to SetAutoUpdate and draw a line onto the device.
       
   332 //! @SYMTestActions         	1. Create CFbsScreenDevice attached to RFbsSession.
       
   333 //!								2. Create CFbsBitGc and attached to CFbsScreenDevice.
       
   334 //!								3. Clear the screen.
       
   335 //!								4. Set EFalse to SetAutoUpdate().
       
   336 //!								5. Draw a line from (50,20) to (56,20) on the screen device.
       
   337 //!								6. Verify the color of the Pixels (50,20)(53,20) and (54,20).
       
   338 //!								7. Update the screen device.
       
   339 //!								8. Verify the color of the Pixels (50,20)(53,20) and (54,20).
       
   340 //!								9. Destroy all object.
       
   341 //! @SYMTestStatus          	Implemented
       
   342 //! @SYMTestPriority        	High
       
   343 //! @SYMTestExpectedResults 	SetAutoUpdate(EFalse) is called without panic and the color of the pixels is as expected.
       
   344 //! @SYMTestType            	CIT
       
   345 	START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   346         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev
       
   347         CREATE_OBJECT       	RFbsSession 	 rfbssession
       
   348         CREATE_OBJECT			CFbsBitGc		 fbsbitgc
       
   349         COMMAND					rfbssession		 Constructor
       
   350         COMMAND					rfbssession		 Connect
       
   351         COMMAND             	fbsscrdev        NewL    		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-NewL_command03
       
   352         COMMAND					fbsbitgc		 NewL
       
   353         COMMAND					fbsbitgc		 Activate		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-Activate_command05 			
       
   354         COMMAND					fbsscrdev		 SetAutoUpdate  GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-SetAutoUpdate_command06	
       
   355         COMMAND					fbsbitgc		 Clear
       
   356         COMMAND					fbsbitgc		 SetPenColor	GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-SetPenColor_command08
       
   357         COMMAND					fbsbitgc		 DrawLine		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-DrawLine_command09
       
   358         COMMAND					fbsscrdev		 checkPixels	GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-checkPixels_command10
       
   359         COMMAND					fbsscrdev		 Update
       
   360         COMMAND					fbsscrdev		 checkPixels	GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-checkPixels_command12
       
   361         COMMAND             	fbsscrdev		 ~
       
   362  		COMMAND					fbsbitgc		 ~	
       
   363         COMMAND					rfbssession		 Disconnect
       
   364      END_TEST_BLOCK
       
   365 END_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0012
       
   366 
       
   367 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0013
       
   368 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0013
       
   369 //! @SYMAPI                 	CFbsScreenDevice::SetAutoUpdate(TBool)
       
   370 //! @SYMAuthor              	Wei Liu
       
   371 //! @SYMCreationDate        	03/12/2008
       
   372 //! @SYMTestCaseDesc        	Set ETrue to SetAutoUpdate and draw a line onto the device.
       
   373 //! @SYMTestActions         	1. Create CFbsScreenDevice attached to RFbsSession.
       
   374 //!								2. Create CFbsBitGc and attached to CFbsScreenDevice.
       
   375 //!								3. Clear the screen.
       
   376 //!								4. Set ETrue to SetAutoUpdate().
       
   377 //!								5. Draw a line from (20,20) to (50,60) on the screen device.
       
   378 //!								6. Verify the color of the Pixels (20,20)(35,40) and (50,60).
       
   379 //!								7. Update the screen device.
       
   380 //!								8. Verify the color of the Pixels (20,20)(35,40) and (50,60).
       
   381 //!								9. Destroy all object.
       
   382 //! @SYMTestStatus          	Implemented
       
   383 //! @SYMTestPriority        	High
       
   384 //! @SYMTestExpectedResults 	SetAutoUpdate(ETrue) is called without panic and the color of the pixels is as expected.
       
   385 //! @SYMTestType            	CIT
       
   386 	START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   387         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev
       
   388         CREATE_OBJECT       	RFbsSession 	 rfbssession
       
   389         CREATE_OBJECT			CFbsBitGc		 fbsbitgc
       
   390         COMMAND					rfbssession		 Constructor
       
   391         COMMAND					rfbssession		 Connect
       
   392         COMMAND             	fbsscrdev        NewL    		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-NewL_command03
       
   393         COMMAND					fbsbitgc		 NewL
       
   394         COMMAND					fbsbitgc		 Activate		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-Activate_command05 			
       
   395         COMMAND					fbsscrdev		 SetAutoUpdate  GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-SetAutoUpdate_command06	
       
   396         COMMAND					fbsbitgc		 DrawLine		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-DrawLine_command07
       
   397         COMMAND					fbsscrdev		 checkPixels	GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-checkPixels_command08
       
   398         COMMAND             	fbsscrdev		 ~
       
   399  		COMMAND					fbsbitgc		 ~	
       
   400  		COMMAND					rfbssession		 Disconnect
       
   401      END_TEST_BLOCK
       
   402 END_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0013
       
   403 
       
   404 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0014
       
   405 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0014
       
   406 //! @SYMAPI                 	CFbsScreenDevice::DrawSpriteBegin()
       
   407 //!								CFbsScreenDevice::DrawSpriteEnd()
       
   408 //! @SYMAuthor              	Wei Liu
       
   409 //! @SYMCreationDate        	03/12/2008
       
   410 //! @SYMTestCaseDesc        	Create CFbsScreenDevice object and test DrawSpriteBegin and DrawSpriteEnd.
       
   411 //! @SYMTestActions         	1. Create CFbsScreenDevice attached to RFbsSession.
       
   412 //!								2. Begin draw sprite on the device.
       
   413 //!								3. End draw sprite on the device.
       
   414 //!								4. Destroy all objects.
       
   415 //! @SYMTestStatus          	Implemented
       
   416 //! @SYMTestPriority        	High
       
   417 //! @SYMTestExpectedResults 	DrawSpriteBegin() & DrawSpriteEnd() are called without panic.
       
   418 //! @SYMTestType            	CIT
       
   419 	START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   420         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev
       
   421         CREATE_OBJECT       	RFbsSession 	 rfbssession
       
   422         COMMAND					rfbssession		 Constructor
       
   423         COMMAND					rfbssession		 Connect
       
   424         COMMAND             	fbsscrdev        NewL             GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0014-NewL_command03			
       
   425         COMMAND					fbsscrdev		 DrawSpriteBegin  	
       
   426         COMMAND					fbsscrdev		 DrawSpriteEnd		        
       
   427         COMMAND             	fbsscrdev		 ~	
       
   428         COMMAND					rfbssession		 Disconnect
       
   429      END_TEST_BLOCK
       
   430 END_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0014
       
   431 
       
   432 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0015
       
   433 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0015
       
   434 //! @SYMAPI                 	CFbsScreenDevice::ChangeScreenDevice(CFbsScreenDevice{ptr})
       
   435 //! @SYMAuthor              	Wei Liu
       
   436 //! @SYMCreationDate        	03/12/2008
       
   437 //! @SYMTestCaseDesc        	Create two CFbsScreenDevice Objects and changescreendevice with each other.
       
   438 //! @SYMTestActions        	 	1. Create CFbsScreenDevice1 and attach to CFbssession.
       
   439 //!								2. Create CFbsScreenDevice2 and attach to CFbssession.
       
   440 //!								3. Replace CFbsScreenDevice1 with CFbsScreenDevice2.
       
   441 //!								4. Destroy all object.
       
   442 //! @SYMTestStatus          	Implemented
       
   443 //! @SYMTestPriority        	High
       
   444 //! @SYMTestExpectedResults 	ChangeScreenDevice() is called without panic.
       
   445 //! @SYMTestType            	CIT
       
   446 	START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   447         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev1
       
   448         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev2
       
   449         CREATE_OBJECT       	RFbsSession 	 rfbssession
       
   450         COMMAND					rfbssession		 Constructor
       
   451         COMMAND					rfbssession		 Connect
       
   452         COMMAND             	fbsscrdev1       NewL				  GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0015-NewL_command03			
       
   453         COMMAND					fbsscrdev2       NewL             	  GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0015-NewL_command04				
       
   454         COMMAND					fbsscrdev2		 ChangeScreenDevice	  GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0015-ChangeScreenDevice_command05 						        
       
   455         COMMAND             	fbsscrdev1		 ~
       
   456         COMMAND             	fbsscrdev2		 ~	
       
   457         COMMAND					rfbssession		 Disconnect
       
   458      END_TEST_BLOCK
       
   459 END_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0015
       
   460 
       
   461 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0016
       
   462 //! @SYMTestCaseID          GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0016
       
   463 //! @SYMAPI                 CFbsScreenDevice::ChangeScreenDevice(CFbsScreenDevice{ptr})
       
   464 //! @SYMAuthor              Wei Liu
       
   465 //! @SYMCreationDate        03/12/2008
       
   466 //! @SYMTestCaseDesc        Negtive case, create CFbsScreenDevice object connected to RFbsSession.
       
   467 //!							ChangeScreenDevice with bad CFbsScreenDevice pointer.
       
   468 //!							Destroy all objects.
       
   469 //! @SYMTestActions         1. create CFbsScreenDevice object.
       
   470 //!							2. connect CFbsScreenDevice to RFbsSession object
       
   471 //!							3. change device with a bad pointer.
       
   472 //!							4. destroy all objects.
       
   473 //! @SYMTestStatus          Implemented
       
   474 //! @SYMTestPriority        High
       
   475 //! @SYMTestExpectedResults ChangeScreenDevice() is called without error.
       
   476 //! @SYMTestType            CIT
       
   477   	START_TEST_BLOCK   10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   478        	CREATE_OBJECT       CFbsScreenDevice fbsscrdev1
       
   479        	CREATE_OBJECT       CFbsScreenDevice fbsscrdev2
       
   480        	CREATE_OBJECT       RFbsSession 	 rfbssession
       
   481 		COMMAND				rfbssession		 Constructor
       
   482 		COMMAND				rfbssession		 Connect
       
   483 		COMMAND				fbsscrdev2       NewL             		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0016-NewL_command03	
       
   484 		COMMAND				fbsscrdev2		 ChangeScreenDevice	  	GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0016-ChangeScreenDevice_command04 								
       
   485 		COMMAND             fbsscrdev2		 ~	     
       
   486 		COMMAND				rfbssession		 Disconnect
       
   487      END_TEST_BLOCK
       
   488 END_TESTCASE	 	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0016
       
   489 
       
   490 START_TESTCASE 		GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0017
       
   491 //! @SYMTestCaseID          GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0017
       
   492 //! @SYMAPI                 CFbsScreenDevice::ChangeScreenDevice(CFbsScreenDevice{ptr})
       
   493 //! @SYMAuthor              Wei Liu
       
   494 //! @SYMCreationDate        04/12/2008
       
   495 //! @SYMTestCaseDesc        Negtive case, create CFbsScreenDevice object and attach to RFbsSession object.
       
   496 //!							ChangeScreenDevice with itself.
       
   497 //!							Destroy all objects.
       
   498 //! @SYMTestActions         1. create CFbsScreenDevice and attach to RFbsSession.
       
   499 //!							2. changeScreenDevice with itself.
       
   500 //!							3. destroy all objects.
       
   501 //! @SYMTestStatus          Implemented
       
   502 //! @SYMTestPriority        High
       
   503 //! @SYMTestExpectedResults ChangeScreenDevice() is called without error.
       
   504 //! @SYMTestType            CIT
       
   505   	START_TEST_BLOCK   10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   506        	CREATE_OBJECT       CFbsScreenDevice fbsscrdev
       
   507        	CREATE_OBJECT       RFbsSession 	 rfbssession
       
   508 		COMMAND				rfbssession		 Constructor
       
   509 		COMMAND				rfbssession		 Connect
       
   510 		COMMAND				fbsscrdev        NewL             		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0017-NewL_command03	
       
   511 		COMMAND				fbsscrdev		 ChangeScreenDevice	  	GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0017-ChangeScreenDevice_command04 								
       
   512 		COMMAND             fbsscrdev		 ~	     
       
   513 		COMMAND				rfbssession		 Disconnect
       
   514      END_TEST_BLOCK
       
   515 END_TESTCASE	 		GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0017
       
   516 
       
   517 START_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0018
       
   518 //! @SYMTestCaseID         		GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0018
       
   519 //! @SYMAPI                 	CFbsScreenDevice::CancelSprite()
       
   520 //! @SYMAuthor              	Wei Liu
       
   521 //! @SYMCreationDate        	04/12/2008
       
   522 //! @SYMTestCaseDesc        	Create CFbsScreenDevice object and attach to RFbsSession.
       
   523 //!								Begin to draw a sprite and cancel it.
       
   524 //! @SYMTestActions         	1. create CFbsScreenDevice attached to RFbsSession.
       
   525 //!								2. Begin to draw a sprite.
       
   526 //!								3. Cancel draw sprite.
       
   527 //!								4. destroy all object.
       
   528 //! @SYMTestStatus          	Implemented
       
   529 //! @SYMTestPriority        	High
       
   530 //! @SYMTestExpectedResults 	DrawSpriteBegin() & CancelSprite() are called without panic.
       
   531 //! @SYMTestType            	CIT
       
   532 	START_TEST_BLOCK   10   	T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   533         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev
       
   534         CREATE_OBJECT       	RFbsSession 	 rfbssession
       
   535         COMMAND					rfbssession		 Constructor
       
   536         COMMAND					rfbssession		 Connect
       
   537         COMMAND             	fbsscrdev        NewL             		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0018-NewL_command03				
       
   538         COMMAND					fbsscrdev		 DrawSpriteBegin  	
       
   539         COMMAND					fbsscrdev		 CancelSprite		
       
   540         COMMAND             	fbsscrdev		 ~	
       
   541         COMMAND					rfbssession		 Disconnect
       
   542      END_TEST_BLOCK
       
   543 END_TESTCASE 			GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0018
       
   544 
       
   545 START_TESTCASE              	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0019
       
   546 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0019
       
   547 //! @SYMAPI                 	CFbsScreenDevice::GetPixel(TRgb{ref}, const TPoint{ref}) const
       
   548 //! @SYMAuthor              	Wei Liu
       
   549 //! @SYMCreationDate        	04/12/2008
       
   550 //! @SYMTestCaseDesc        	Gets color of specified point of screen
       
   551 //! @SYMTestActions         	1. Creates and connects a RFbsSession
       
   552 //!                         	2. Creates a CFbsScreenDevice attached to a RFbsSession
       
   553 //!                         	3. Gets pixel at point(1, 1) to verify the color of pixel is white
       
   554 //!                         	4. Destructs the CFbsScreenDevice object
       
   555 //!                         	5. Closes the CFbsScreenDevice object
       
   556 //! @SYMTestStatus          	Implemented
       
   557 //! @SYMTestPriority        	High
       
   558 //! @SYMTestExpectedResults 	The color of specified point matchs with expected value. 
       
   559 //! @SYMTestType            	CIT
       
   560     START_TEST_BLOCK        	10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   561         CREATE_OBJECT       	RFbsSession        rfbssession
       
   562         CREATE_OBJECT       	CFbsScreenDevice   fbsscrdev
       
   563         COMMAND             	rfbssession        Constructor       
       
   564         COMMAND             	rfbssession        Connect        
       
   565         COMMAND             	fbsscrdev          NewL         GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0019-NewL_command03
       
   566         COMMAND             	fbsscrdev          GetPixel     GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0019-GetPixel_command04
       
   567         COMMAND             	fbsscrdev          ~ 
       
   568         COMMAND             	rfbssession        Disconnect
       
   569     END_TEST_BLOCK    
       
   570 END_TESTCASE                GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0019
       
   571 
       
   572 START_TESTCASE              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0020
       
   573 //! @SYMTestCaseID      	    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0020
       
   574 //! @SYMAPI            	    	CFbsScreenDevice::GetPixel(TRgb{ref}, const TPoint{ref})
       
   575 //! @SYMAuthor              	Wei Liu
       
   576 //! @SYMCreationDate    	    04/12/2008
       
   577 //! @SYMTestCaseDesc 	       Negtive case, Test for negative x- and y-coordinate/too big x- and y-coordinate.
       
   578 //! @SYMTestActions         	1. Creates and connects a RFbsSession
       
   579 //!                     	    2. Creates a CFbsScreenDevice attached to a RFbsSession 
       
   580 //!             	            3. Gets pixel at point(-1, 0) and check the RGB color is white.
       
   581 //!           	              	4. Gets pixel at point(0, -1) and check the RGB color is white.
       
   582 //!                         	5. Gets pixel at point(-1, -1) and check the RGB color is white.
       
   583 //!                     	    6. Gets pixel at point(10000, 0) and check the RGB color is white.
       
   584 //!                  	      	7. Gets pixel at point(0, 10000) and check the RGB color is white.
       
   585 //!                         	8. Gets pixel at point(10000, 10000) and check the RGB color is white.
       
   586 //!                        	 	9. Destruct and close all objects used.
       
   587 //! @SYMTestStatus          	Implemented
       
   588 //! @SYMTestPriority        	High
       
   589 //! @SYMTestExpectedResults 	GetPixel doesn't cause panic and matchs with the expected color.
       
   590 //! @SYMTestType            	CIT
       
   591    START_TEST_BLOCK         	10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   592         CREATE_OBJECT   	    RFbsSession        rfbssession
       
   593         CREATE_OBJECT   	    CFbsScreenDevice   fbsscrdev
       
   594         COMMAND         	    rfbssession        Constructor       
       
   595         COMMAND         	    rfbssession        Connect        
       
   596         COMMAND         	    fbsscrdev          NewL         GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-NewL_command03				  
       
   597         COMMAND        			fbsscrdev          GetPixel     GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command04
       
   598         COMMAND         		fbsscrdev          GetPixel     GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command05
       
   599         COMMAND       		  	fbsscrdev          GetPixel     GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command06
       
   600         COMMAND         		fbsscrdev          GetPixel     GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command07
       
   601         COMMAND         		fbsscrdev          GetPixel     GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command08
       
   602         COMMAND         		fbsscrdev          GetPixel     GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command09
       
   603         COMMAND     	        fbsscrdev          ~        
       
   604         COMMAND 	            rfbssession        Disconnect
       
   605    END_TEST_BLOCK
       
   606 END_TESTCASE                	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0020
       
   607 
       
   608 START_TESTCASE                 	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0021
       
   609 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0021
       
   610 //! @SYMAPI                     CFbsScreenDevice::HorizontalPixelsToTwips(TInt)
       
   611 //! @SYMAuthor                  Wei Liu
       
   612 //! @SYMCreationDate            04/12/2008
       
   613 //! @SYMTestCaseDesc            Translates a horizontal dimension of a screen device in pixels into twips
       
   614 //! @SYMTestActions             1. Create and connect a RFbsSession
       
   615 //!                             2. Create a CFbsScreenDevice attached to RFbsSession
       
   616 //!                             3. Translates a horizontal dimension pixels into twips 
       
   617 //!                             4. Destruct the CFbsScreenDevice object
       
   618 //!                             5. Disconnect the RFbsSession object
       
   619 //! @SYMTestStatus              Implemented
       
   620 //! @SYMTestPriority            Critical
       
   621 //! @SYMTestExpectedResults     HorizontalPixelsToTwips doesn't cause panic and the returned twips are as expected
       
   622 //! @SYMTestType                CIT
       
   623     START_TEST_BLOCK            10    T_GraphicsBitGDIAPI       \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   624         CREATE_OBJECT           RFbsSession       rfbssession
       
   625         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
   626         COMMAND                 rfbssession       Constructor       
       
   627         COMMAND                 rfbssession       Connect        
       
   628         COMMAND                 fbsscrdev         NewL         			   GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0021-NewL_command03                    
       
   629         COMMAND                 fbsscrdev         HorizontalPixelsToTwips  GRAPHICS-WSERV-WsScreenDevice-PublicApi-0021-HorizontalPixelsToTwips_command04              
       
   630         COMMAND                 fbsscrdev         ~        
       
   631         COMMAND                 rfbssession       Disconnect       
       
   632     END_TEST_BLOCK    
       
   633 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0021
       
   634 
       
   635 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0022
       
   636 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0022
       
   637 //! @SYMAPI                     CFbsScreenDevice::HorizontalPixelsToTwips(TInt)
       
   638 //! @SYMAuthor                  Wei Liu
       
   639 //! @SYMCreationDate            04/12/2008
       
   640 //! @SYMTestCaseDesc            Negitve case, Uses big pixels/0/small negative pixels
       
   641 //! @SYMTestActions             1. Create and connect a RFbsSession
       
   642 //!                             2. Create a CFbsScreenDevice attached to RFbsSession
       
   643 //!                             3. Translates three horizontal dimension in pixels into twips 
       
   644 //!                             4. Input pixel = 64000000, return 1774789 for emulator and 892600000 for H4.
       
   645 //!                             5. Input pixel = 0, return 0.
       
   646 //!                             6. Input pixel = -64000000, return -1774788 for emulator and -892599999 for H4.
       
   647 //!                             7. Destruct the CFbsScreenDevice object
       
   648 //!                             8. Disconnect the RFbsSession object
       
   649 //! @SYMTestStatus              Implemented
       
   650 //! @SYMTestPriority            Critical
       
   651 //! @SYMTestExpectedResults     HorizontalPixelsToTwips doesn't cause panic and the returned twips are as expected
       
   652 //! @SYMTestType                CIT
       
   653     START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   654         CREATE_OBJECT       	RFbsSession       rfbssession
       
   655         CREATE_OBJECT      		CFbsScreenDevice  fbsscrdev
       
   656         COMMAND             	rfbssession       Constructor       
       
   657         COMMAND             	rfbssession       Connect          
       
   658         COMMAND                 fbsscrdev         NewL           		   GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0022-new_command03                      
       
   659         COMMAND                 fbsscrdev         HorizontalPixelsToTwips  GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0022-HorizontalPixelsToTwips_command04
       
   660         COMMAND                 fbsscrdev         HorizontalPixelsToTwips  GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0022-HorizontalPixelsToTwips_command05
       
   661         COMMAND                 fbsscrdev         HorizontalPixelsToTwips  GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0022-HorizontalPixelsToTwips_command06
       
   662         COMMAND                 fbsscrdev            ~        
       
   663         COMMAND                 rfbssession       Disconnect       
       
   664     END_TEST_BLOCK    
       
   665 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0022
       
   666 
       
   667 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0023
       
   668 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0023
       
   669 //! @SYMAPI                     CFbsScreenDevice::VerticalPixelsToTwips(TInt)
       
   670 //! @SYMAuthor                  Wei Liu
       
   671 //! @SYMCreationDate            04/12/2008
       
   672 //! @SYMTestCaseDesc            Translates a vertical dimension of a screen device in pixels into twips
       
   673 //! @SYMTestActions             1. Create and connect a RFbsSession
       
   674 //!                             2. Create a CFbsScreenDevice attached to RFbsSession
       
   675 //!                             3. Translates a vertical dimension pixels into twips 
       
   676 //!                             4. Destruct the CFbsScreenDevice object
       
   677 //!                             5. Disconnect the RFbsSession object
       
   678 //! @SYMTestStatus              Implemented
       
   679 //! @SYMTestPriority            Critical
       
   680 //! @SYMTestExpectedResults     VerticalPixelsToTwips doesn't cause panic and the returned twips are as expected
       
   681 //! @SYMTestType                CIT
       
   682     START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   683         CREATE_OBJECT           RFbsSession       rfbssession
       
   684         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
   685         COMMAND                 rfbssession       Constructor       
       
   686         COMMAND                 rfbssession       Connect         
       
   687         COMMAND                 fbsscrdev         NewL         			   GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0023-NewL_command03                                
       
   688         COMMAND                 fbsscrdev         VerticalPixelsToTwips    GRAPHICS-WSERV-WsScreenDevice-PublicApi-0023-VerticalPixelsToTwips_command04             
       
   689         COMMAND                 fbsscrdev         ~        
       
   690         COMMAND                 rfbssession       Disconnect      
       
   691     END_TEST_BLOCK    
       
   692 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0023
       
   693 
       
   694 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0024
       
   695 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0024
       
   696 //! @SYMAPI                     CFbsScreenDevice::VerticalPixelsToTwips(TInt)
       
   697 //! @SYMAuthor                  Wei Liu
       
   698 //! @SYMCreationDate            04/12/2008
       
   699 //! @SYMTestCaseDesc            Negtive case, Uses big pixels/0/small negative pixels
       
   700 //! @SYMTestActions             1. Create and connect a RFbsSession
       
   701 //!                             2. Create a CFbsScreenDevice attached to RFbsSession
       
   702 //!                             3. Translates three vertical dimension in pixels into twips 
       
   703 //!                             4. Input pixel = 1200000, return 1404698 for emulator and 304100000 for H4.
       
   704 //!                             5. Input pixel = 0, return 0.
       
   705 //!                             6. Input pixel = -1200000, return -1404697 for emulator and -304099999 for H4.
       
   706 //!                             7. Destruct the FbsScreenDevice object
       
   707 //!                             8. Disconnect the RFbsSession object
       
   708 //! @SYMTestStatus              Implemented
       
   709 //! @SYMTestPriority            Critical
       
   710 //! @SYMTestExpectedResults     VerticalPixelsToTwips doesn't cause panic and the returned twips are as expected
       
   711 //! @SYMTestType                CIT
       
   712     START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   713         CREATE_OBJECT       	RFbsSession       rfbssession
       
   714         CREATE_OBJECT      		CFbsScreenDevice  fbsscrdev
       
   715         COMMAND             	rfbssession       Constructor       
       
   716         COMMAND             	rfbssession       Connect       
       
   717         COMMAND                 fbsscrdev         NewL          		 GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0024-new_command03                        
       
   718         COMMAND                 fbsscrdev         VerticalPixelsToTwips  GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0024-VerticalPixelsToTwips_command04
       
   719         COMMAND                 fbsscrdev         VerticalPixelsToTwips  GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0024-VerticalPixelsToTwips_command05
       
   720         COMMAND                 fbsscrdev         VerticalPixelsToTwips  GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0024-VerticalPixelsToTwips_command06
       
   721         COMMAND                 fbsscrdev         ~        
       
   722         COMMAND                 rfbssession       Disconnect       
       
   723     END_TEST_BLOCK    
       
   724 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0024
       
   725 
       
   726 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0025
       
   727 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0025
       
   728 //! @SYMAPI                     CFbsScreenDevice::HorizontalTwipsToPixels(TInt)
       
   729 //! @SYMAuthor                  Wei Liu
       
   730 //! @SYMCreationDate            04/12/2008
       
   731 //! @SYMTestCaseDesc            Translates a horizontal dimension of a screen device in twips into pixels
       
   732 //! @SYMTestActions             1. Create and connect a RFbsSession
       
   733 //!                             2. Create a CFbsScreenDevice attached to RFbsSession
       
   734 //!                             3. Translates a horizontal dimension twips into pixels 
       
   735 //!                             4. Destruct the CFbsScreenDevice object
       
   736 //!                             5. Disconnect the RFbsSession object
       
   737 //! @SYMTestStatus              Implemented
       
   738 //! @SYMTestPriority            Critical
       
   739 //! @SYMTestExpectedResults     HorizontalTwipsToPixels doesn't cause panic and the returned pixels are as expected.
       
   740 //! @SYMTestType                CIT
       
   741     START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   742         CREATE_OBJECT           RFbsSession       rfbssession
       
   743         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
   744         COMMAND                 rfbssession       Constructor       
       
   745         COMMAND                 rfbssession       Connect         
       
   746         COMMAND                 fbsscrdev         NewL         			   GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0025-NewL_command03                                
       
   747         COMMAND                 fbsscrdev         HorizontalTwipsToPixels  GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0025-HorizontalTwipsToPixels_command04              
       
   748         COMMAND                 fbsscrdev         ~        
       
   749         COMMAND                 rfbssession       Disconnect       
       
   750     END_TEST_BLOCK    
       
   751 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0025
       
   752 
       
   753 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0026
       
   754 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0026
       
   755 //! @SYMAPI                     CFbsScreenDevice::HorizontalTwipsToPixels(TInt)
       
   756 //! @SYMAuthor                  Wei Liu
       
   757 //! @SYMCreationDate            04/12/2008
       
   758 //! @SYMTestCaseDesc            Negtive case, Uses big twips/0/small negative twips
       
   759 //! @SYMTestActions             1. Create and connect a RFbsSession
       
   760 //!                             2. Create a CFbsScreenDevice attached to RFbsSession
       
   761 //!                             3. Translates three horizontal dimension in twips into pixels
       
   762 //!                             4. Input twips = 1774789, return 64000000 for emulator and 54635895 for H4.
       
   763 //!                             5. Input twips = 0, return 0.
       
   764 //!                             6. Input twips = -1774789, return -63999999 for emulator and -54635894 for H4.
       
   765 //!                             7. Destruct the CFbsScreenDevice object
       
   766 //!                             8. Disconnect the RFbsSession object
       
   767 //! @SYMTestStatus              Implemented
       
   768 //! @SYMTestPriority            Critical
       
   769 //! @SYMTestExpectedResults     HorizontalTwipsToPixels doesn't cause panic and the returned pixels are as expected
       
   770 //! @SYMTestType                CIT
       
   771     START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   772         CREATE_OBJECT       	RFbsSession       rfbssession
       
   773         CREATE_OBJECT      		CFbsScreenDevice  fbsscrdev
       
   774         COMMAND             	rfbssession       Constructor       
       
   775         COMMAND             	rfbssession       Connect           
       
   776         COMMAND                 fbsscrdev         NewL          		   GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0026-new_command03                          
       
   777         COMMAND                 fbsscrdev         HorizontalTwipsToPixels  GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0026-HorizontalTwipsToPixels_command04
       
   778         COMMAND                 fbsscrdev         HorizontalTwipsToPixels  GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0026-HorizontalTwipsToPixels_command05
       
   779         COMMAND                 fbsscrdev         HorizontalTwipsToPixels  GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0026-HorizontalTwipsToPixels_command06
       
   780         COMMAND                 fbsscrdev         ~        
       
   781         COMMAND                 rfbssession       Disconnect       
       
   782     END_TEST_BLOCK    
       
   783 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0026
       
   784 
       
   785 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0027
       
   786 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0027
       
   787 //! @SYMAPI                     CFbsScreenDevice::VerticalTwipsToPixels(TInt)
       
   788 //! @SYMAuthor                  Wei Liu
       
   789 //! @SYMCreationDate            04/12/2008
       
   790 //! @SYMTestCaseDesc            Translates a vertical dimension of a screen device in twips into pixels
       
   791 //! @SYMTestActions             1. Create and connect a RFbsSession
       
   792 //!                             2. Create a CFbsScreenDevice attached to RFbsSession
       
   793 //!                             3. Translates a vertical dimension twips into pixels 
       
   794 //!                             4. Destruct the CFbsScreenDevice object
       
   795 //!                             5. Disconnect the RFbsSession object
       
   796 //! @SYMTestStatus              Implemented
       
   797 //! @SYMTestPriority            Critical
       
   798 //! @SYMTestExpectedResults     VerticalTwipsToPixels doesn't cause panic and the returned pixels are as expected
       
   799 //! @SYMTestType                CIT
       
   800     START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   801         CREATE_OBJECT           RFbsSession       rfbssession
       
   802         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
   803         COMMAND                 rfbssession       Constructor       
       
   804         COMMAND                 rfbssession       Connect         
       
   805         COMMAND                 fbsscrdev         NewL         			   GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0027-NewL_command03                                
       
   806         COMMAND                 fbsscrdev         VerticalTwipsToPixels    GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0027-VerticalTwipsToPixels_command04             
       
   807         COMMAND                 fbsscrdev         ~        
       
   808         COMMAND                 rfbssession       Disconnect       
       
   809     END_TEST_BLOCK    
       
   810 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0027
       
   811 
       
   812 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0028
       
   813 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0028
       
   814 //! @SYMAPI                     CFbsScreenDevice::VerticalTwipsToPixels(TInt)
       
   815 //! @SYMAuthor                  Wei Liu
       
   816 //! @SYMCreationDate            04/12/2008
       
   817 //! @SYMTestCaseDesc            Negtive case, Uses big twips/0/small negative twips
       
   818 //! @SYMTestActions             1. Create and connect a RFbsSession
       
   819 //!                             2. Create a CFbsScreenDevice attached to RFbsSession
       
   820 //!                             3. Translates three vertical dimension in twips into pixels
       
   821 //!                             4. Input twips = 1404698, return 12000000 for emulator and 22555738 for H4.
       
   822 //!                             5. Input twips = 0, return 0.
       
   823 //!                             6. Input twips = -1404698, return -11999999 for emulator and -22555737 for H4.
       
   824 //!                             7. Destruct the CFbsScreenDevice object
       
   825 //!                             8. Disconnect the RFbsSession object
       
   826 //! @SYMTestStatus              Implemented
       
   827 //! @SYMTestPriority            Critical
       
   828 //! @SYMTestExpectedResults     VerticalTwipsToPixels doesn't cause panic and the returned pixels are as expected
       
   829 //! @SYMTestType                CIT
       
   830     START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   831         CREATE_OBJECT       	RFbsSession       rfbssession
       
   832         CREATE_OBJECT      		CFbsScreenDevice  fbsscrdev
       
   833         COMMAND             	rfbssession       Constructor       
       
   834         COMMAND             	rfbssession       Connect           
       
   835         COMMAND                 fbsscrdev         NewL          		   	GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0028-new_command03                                              
       
   836         COMMAND                 fbsscrdev         VerticalTwipsToPixels  	GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0028-VerticalTwipsToPixels_command04
       
   837         COMMAND                 fbsscrdev         VerticalTwipsToPixels  	GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0028-VerticalTwipsToPixels_command05
       
   838         COMMAND                 fbsscrdev         VerticalTwipsToPixels  	GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0028-VerticalTwipsToPixels_command06
       
   839         COMMAND                 fbsscrdev         ~        
       
   840         COMMAND                 rfbssession       Disconnect       
       
   841     END_TEST_BLOCK    
       
   842 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0028
       
   843 
       
   844 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0029
       
   845 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0029
       
   846 //! @SYMAPI                     CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode)
       
   847 //! @SYMAuthor                  Wei Liu
       
   848 //! @SYMCreationDate            04/12/2008
       
   849 //! @SYMTestCaseDesc            Gets a scanline into a buffer
       
   850 //! @SYMTestActions             1. Create and connect a RFbsSession.
       
   851 //!                             2. Create a CFbsScreenDevice attached to RFbsSession.
       
   852 //!                             3. Create a CFbsBitGc object.
       
   853 //!                             4. Draw a line from (25,25) to (45,25) on CFbsBitGc.
       
   854 //!                             5. Get scanline from screen and verify the pixels just drawed.
       
   855 //!                             6. Disconnect and destruct all objects used.
       
   856 //! @SYMTestStatus              Implemented
       
   857 //! @SYMTestPriority            High
       
   858 //! @SYMTestExpectedResults     1. The scanline get copied, and no panic get raised 
       
   859 //!                             2. Check the scanline(Get pixel (1,1) of the scanline, the color is Black).
       
   860 //! @SYMTestType                CIT
       
   861         START_TEST_BLOCK        10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   862         CREATE_OBJECT           RFbsSession       rfbssession
       
   863         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
   864         CREATE_OBJECT           CFbsBitGc         fbsbitgc
       
   865         COMMAND                 rfbssession       Constructor       
       
   866         COMMAND                 rfbssession       Connect         
       
   867         COMMAND                 fbsscrdev         NewL         		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0029-NewL_command03       
       
   868 		COMMAND					fbsbitgc		  NewL				
       
   869 		COMMAND					fbsbitgc		  Activate			GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0029-Activate_command05
       
   870 		COMMAND					fbsbitgc		  DrawLine			GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0029-DrawLine_command06
       
   871 		COMMAND					fbsscrdev		  Update
       
   872 		COMMAND					fbsscrdev		  GetScanLine		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0029-GetScanLine_command08
       
   873 		COMMAND					fbsscrdev		  ~
       
   874 		COMMAND					fbsbitgc		  ~
       
   875 		COMMAND					rfbssession		  Disconnect
       
   876 		END_TEST_BLOCK 
       
   877 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0029
       
   878 
       
   879 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0030
       
   880 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0030
       
   881 //! @SYMAPI                     CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode)
       
   882 //! @SYMAuthor                  Wei Liu
       
   883 //! @SYMCreationDate            04/12/2008
       
   884 //! @SYMTestCaseDesc            Negative test, uses a zero-length buffer.
       
   885 //! @SYMTestActions             1. Create and connect a RFbsSession.
       
   886 //!                             2. Create a CFbsScreenDevice attached to RFbsSession.
       
   887 //!                             3. Get scanline from screen.
       
   888 //!                             4. Disconnect and destruct all objects used.
       
   889 //! @SYMTestStatus              Implemented
       
   890 //! @SYMTestPriority            High
       
   891 //! @SYMTestExpectedResults     GetScanLine is called without panic. 
       
   892 //! @SYMTestType                CIT
       
   893    START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   894         CREATE_OBJECT           RFbsSession       rfbssession
       
   895         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
   896         COMMAND                 rfbssession       Constructor       
       
   897         COMMAND                 rfbssession       Connect         
       
   898         COMMAND                 fbsscrdev         NewL         		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0030-NewL_command03        				
       
   899 		COMMAND					fbsscrdev		  GetScanLine		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0030-GetScanLine_command04
       
   900 		COMMAND					fbsscrdev		  ~	
       
   901 		COMMAND					rfbssession		  Disconnect
       
   902 	END_TEST_BLOCK
       
   903 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0030
       
   904 
       
   905 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0031
       
   906 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0031
       
   907 //! @SYMAPI                     CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode)
       
   908 //! @SYMAuthor                  Wei Liu
       
   909 //! @SYMCreationDate            04/12/2008
       
   910 //! @SYMTestCaseDesc            Negtive case, Test for a zero-length scanline.
       
   911 //! @SYMTestActions             1. Create and connect a RFbsSession.
       
   912 //!                             2. Create a CFbsScreenDevice attached to RFbsSession.
       
   913 //!                             3. Get scanline from screen.
       
   914 //!                             4. Disconnect and destruct all objects used.
       
   915 //! @SYMTestStatus              Implemented
       
   916 //! @SYMTestPriority            High
       
   917 //! @SYMTestExpectedResults     GetScanLine is called without panic. 
       
   918 //! @SYMTestType                CIT
       
   919    START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   920         CREATE_OBJECT           RFbsSession       rfbssession
       
   921         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
   922         COMMAND                 rfbssession       Constructor       
       
   923         COMMAND                 rfbssession       Connect         
       
   924         COMMAND                 fbsscrdev         NewL         		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0031-NewL_command03        			
       
   925 		COMMAND					fbsscrdev		  GetScanLine		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0031-GetScanLine_command04
       
   926 		COMMAND					fbsscrdev		  ~
       
   927 		COMMAND					rfbssession		  Disconnect
       
   928 	END_TEST_BLOCK
       
   929 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0031
       
   930 
       
   931 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0032
       
   932 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0032
       
   933 //! @SYMAPI                     CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode)
       
   934 //! @SYMAuthor                  Wei Liu
       
   935 //! @SYMCreationDate            04/12/2008
       
   936 //! @SYMTestCaseDesc            Negtive case, Test for a negative-length scanline.
       
   937 //! @SYMTestActions             1. Create and connect a RFbsSession.
       
   938 //!                             2. Create a CFbsScreenDevice attached to RFbsSession.
       
   939 //!                             3. Get scanline from screen.
       
   940 //! @SYMTestStatus              Implemented
       
   941 //! @SYMTestPriority            High
       
   942 //! @SYMTestExpectedResults     GetScanLine is called with USER 23 panic received. 
       
   943 //! @SYMTestType                CIT
       
   944    START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   945         CREATE_OBJECT           RFbsSession       rfbssession
       
   946         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
   947         COMMAND                 rfbssession       Constructor       
       
   948         COMMAND                 rfbssession       Connect         
       
   949         COMMAND                 fbsscrdev         NewL         		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0032-NewL_command03        			
       
   950 		COMMAND					fbsscrdev		  GetScanLine		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0032-GetScanLine_command04
       
   951    END_TEST_BLOCK	 !PanicString=USER !PanicCode=23
       
   952    RUN_TEST_STEP				100	T_GraphicsBitGDIAPI	utilityClearPanicDlg
       
   953 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0032
       
   954 
       
   955 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0033
       
   956 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0033
       
   957 //! @SYMAPI                     CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode)
       
   958 //! @SYMAuthor                  Wei Liu
       
   959 //! @SYMCreationDate            04/12/2008
       
   960 //! @SYMTestCaseDesc            Negtive case, Test for a 99999-length scanline with starting point (0, 0).
       
   961 //! @SYMTestActions             1. Create and connect a RFbsSession.
       
   962 //!                             2. Create a CFbsScreenDevice attached to RFbsSession.
       
   963 //!                             3. Get scanline from screen.
       
   964 //!                             4. Disconnect and destruct all objects used.
       
   965 //! @SYMTestStatus              Implemented
       
   966 //! @SYMTestPriority            High
       
   967 //! @SYMTestExpectedResults     GetScanLine is called without panic. 
       
   968 //! @SYMTestType                CIT
       
   969    START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   970         CREATE_OBJECT           RFbsSession       rfbssession
       
   971         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
   972         COMMAND                 rfbssession       Constructor       
       
   973         COMMAND                 rfbssession       Connect         
       
   974         COMMAND                 fbsscrdev         NewL         		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0033-NewL_command03        			
       
   975 		COMMAND					fbsscrdev		  GetScanLine		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0033-GetScanLine_command04
       
   976 		COMMAND					fbsscrdev		  ~
       
   977 		COMMAND					rfbssession		  Disconnect
       
   978 	END_TEST_BLOCK
       
   979 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0033
       
   980 
       
   981 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0034
       
   982 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0034
       
   983 //! @SYMAPI                     CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode)
       
   984 //! @SYMAuthor                  Wei Liu
       
   985 //! @SYMCreationDate            04/12/2008
       
   986 //! @SYMTestCaseDesc            Negtive case, Test for a 10-length scanline with negative starting point (-1, -1).
       
   987 //! @SYMTestActions             1. Create and connect a RFbsSession.
       
   988 //!                             2. Create a CFbsScreenDevice attached to RFbsSession.
       
   989 //!								3. Create CFbsBitGc object.
       
   990 //!								4. Clear screen
       
   991 //!                             5. Get scanline from screen.
       
   992 //!                             6. Disconnect and destruct all objects used.
       
   993 //! @SYMTestStatus              Implemented
       
   994 //! @SYMTestPriority            High
       
   995 //! @SYMTestExpectedResults     GetScanLine is called without any panic.
       
   996 //! @SYMTestType                CIT
       
   997    START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
   998         CREATE_OBJECT           RFbsSession       rfbssession
       
   999         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
  1000         CREATE_OBJECT			CFbsBitGc		  fbsbitgc
       
  1001         COMMAND                 rfbssession       Constructor       
       
  1002         COMMAND                 rfbssession       Connect         
       
  1003         COMMAND                 fbsscrdev         NewL         		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0034-NewL_command03        			
       
  1004 		COMMAND					fbsbitgc		  NewL
       
  1005 		COMMAND					fbsbitgc		  Activate			GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0034-Activate_command05
       
  1006 		COMMAND					fbsbitgc		  Clear				
       
  1007 		COMMAND					fbsscrdev		  GetScanLine		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0034-GetScanLine_command07
       
  1008 		COMMAND					fbsscrdev		  ~
       
  1009 		COMMAND					fbsbitgc		  ~
       
  1010 		COMMAND					rfbssession		  Disconnect
       
  1011 	END_TEST_BLOCK
       
  1012 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0034
       
  1013 
       
  1014 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0035
       
  1015 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0035
       
  1016 //! @SYMAPI                     CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode)
       
  1017 //! @SYMAuthor                  Wei Liu
       
  1018 //! @SYMCreationDate            04/12/2008
       
  1019 //! @SYMTestCaseDesc            Negtive case, Test for a 10-length scanline with starting point (10000, 10000).
       
  1020 //! @SYMTestActions             1. Create and connect a RFbsSession.
       
  1021 //!                             2. Create a CFbsScreenDevice attached to RFbsSession.
       
  1022 //!								3. Create CFbsBitGc object.
       
  1023 //!								4. Clear screen
       
  1024 //!                             5. Get scanline from screen.
       
  1025 //!                             6. Disconnect and destruct all objects used.
       
  1026 //! @SYMTestStatus              Implemented
       
  1027 //! @SYMTestPriority            High
       
  1028 //! @SYMTestExpectedResults     GetScanLine doesn't cause panic.
       
  1029 //! @SYMTestType                CIT
       
  1030    START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
  1031         CREATE_OBJECT           RFbsSession       rfbssession
       
  1032         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
  1033         CREATE_OBJECT			CFbsBitGc		  fbsbitgc
       
  1034         COMMAND                 rfbssession       Constructor       
       
  1035         COMMAND                 rfbssession       Connect         
       
  1036         COMMAND                 fbsscrdev         NewL         		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0035-NewL_command03        			
       
  1037 		COMMAND					fbsbitgc		  NewL
       
  1038 		COMMAND					fbsbitgc		  Activate			GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0035-Activate_command05
       
  1039 		COMMAND					fbsbitgc		  Clear
       
  1040 		COMMAND					fbsscrdev		  GetScanLine		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0035-GetScanLine_command07
       
  1041 		COMMAND					fbsscrdev		  ~
       
  1042 		COMMAND					fbsbitgc		  ~	
       
  1043 		COMMAND					rfbssession		  Disconnect
       
  1044 	END_TEST_BLOCK
       
  1045 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0035
       
  1046 
       
  1047 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0036
       
  1048 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0036
       
  1049 //! @SYMAPI                     CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode)
       
  1050 //! @SYMAuthor                  Wei Liu
       
  1051 //! @SYMCreationDate            04/12/2008
       
  1052 //! @SYMTestCaseDesc            Negtive case, Test for a 10-length scanline with starting point (0, 0).
       
  1053 //! @SYMTestActions             1. Create and connect a RFbsSession.
       
  1054 //!                             2. Create a CFbsScreenDevice attached to RFbsSession.
       
  1055 //!                             3. Get scanline from screen.
       
  1056 //! @SYMTestStatus              Implemented
       
  1057 //! @SYMTestPriority            High
       
  1058 //! @SYMTestExpectedResults     1. GetScanLine is called with BITGDI panic received. 
       
  1059 //!                             2. The length of the scanline buffer is as expected. The scanline data in the buffer is as expected.
       
  1060 //! @SYMTestType                CIT
       
  1061    START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
  1062         CREATE_OBJECT           RFbsSession       rfbssession
       
  1063         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
  1064         COMMAND                 rfbssession       Constructor       
       
  1065         COMMAND                 rfbssession       Connect         
       
  1066         COMMAND                 fbsscrdev         NewL         		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0036-NewL_command03        			
       
  1067 		COMMAND					fbsscrdev		  GetScanLine		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0036-GetScanLine_command04
       
  1068 	END_TEST_BLOCK 		!PanicString=BITGDI !PanicCode=9
       
  1069 	RUN_TEST_STEP				100	T_GraphicsBitGDIAPI	utilityClearPanicDlg
       
  1070 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0036
       
  1071 
       
  1072 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0037
       
  1073 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0037
       
  1074 //! @SYMAPI                     CFbsScreenDevice::PaletteAttributes(TBool{ref}, TInt{ref})
       
  1075 //! @SYMAuthor                  Wei Liu
       
  1076 //! @SYMCreationDate            04/12/2008
       
  1077 //! @SYMTestCaseDesc            Gets the attributes of the device's palette.
       
  1078 //! @SYMTestActions             1. Create and connect a RFbsSession
       
  1079 //!                             2. Create a CFbsScreenDevice attached to RFbsSession.
       
  1080 //!                             3. Call PaletteAttributes() method and verify the palette received.
       
  1081 //!                             4. Destruct and Close.
       
  1082 //! @SYMTestStatus              Implemented
       
  1083 //! @SYMTestPriority            High
       
  1084 //! @SYMTestExpectedResults     PaletteAttributes retrieves expected values.
       
  1085 //! @SYMTestType                CIT
       
  1086     START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
  1087         CREATE_OBJECT           RFbsSession       rfbssession
       
  1088         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
  1089         COMMAND                 rfbssession       Constructor       
       
  1090         COMMAND                 rfbssession       Connect         
       
  1091         COMMAND                 fbsscrdev         NewL         			GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0037-NewL_command03      
       
  1092         COMMAND                 fbsscrdev         PaletteAttributes     GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0037-PaletteAttributes_command04
       
  1093         COMMAND                 fbsscrdev         ~        
       
  1094         COMMAND					rfbssession		  Disconnect 
       
  1095     END_TEST_BLOCK    
       
  1096 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0037
       
  1097 
       
  1098 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0038
       
  1099 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0038
       
  1100 //! @SYMAPI                     CFbsScreenDevice::GetPalette(const CPalette{ptr})
       
  1101 //! @SYMAuthor                  Wei Liu
       
  1102 //! @SYMCreationDate            04/12/2008
       
  1103 //! @SYMTestCaseDesc            Sets the palette.
       
  1104 //!                             Gets the screen device's palette.
       
  1105 //!                             Support for palette will depend on the screen driver implementation, it's not supported in techview. 
       
  1106 //! @SYMTestActions             1. Create and connect a RFbsSession
       
  1107 //!                             2. Create a Palette.
       
  1108 //!                             3. Create a CFbsScreenDevice attached to RFbsSession.
       
  1109 //!                             4. Set the palette with the existing palette.
       
  1110 //!                             5. Get the palette and verify whether it is the same as we set before.
       
  1111 //!                             6. Destruct and Close.
       
  1112 //! @SYMTestStatus              Implemented
       
  1113 //! @SYMTestPriority            High
       
  1114 //! @SYMTestExpectedResults     GetPalette retrieves a palette as expected.
       
  1115 //! @SYMTestType                CIT
       
  1116     START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
  1117         CREATE_OBJECT           RFbsSession       rfbssession
       
  1118         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
  1119         CREATE_OBJECT           CPalette          palette
       
  1120         COMMAND                 rfbssession       Constructor       
       
  1121         COMMAND                 rfbssession       Connect         
       
  1122         COMMAND                 fbsscrdev         NewL         			GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0038-NewL_command03
       
  1123         COMMAND                 palette           NewL                  GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0038-NewL_command04       
       
  1124         COMMAND                 fbsscrdev         SetPalette            GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0038-SetPalette_command05      
       
  1125         COMMAND                 fbsscrdev         GetPalette            GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0038-GetPalette_command06
       
  1126         COMMAND                 palette           ~        
       
  1127         COMMAND                 fbsscrdev         ~        
       
  1128         COMMAND                 rfbssession		  Disconnect   
       
  1129     END_TEST_BLOCK    
       
  1130 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0038
       
  1131 
       
  1132 START_TESTCASE              	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0039
       
  1133 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0039
       
  1134 //! @SYMAPI                 	CFbsScreenDevice::SetPalette(CPalette{ptr})
       
  1135 //! @SYMAuthor              	Wei Liu
       
  1136 //! @SYMCreationDate        	04/12/2008
       
  1137 //! @SYMTestCaseDesc        	Sets the palette.
       
  1138 //!                         	Gets the screen device's palette.
       
  1139 //!                         	Support for palette will depend on the screen driver implementation, it's not supported in techview. 
       
  1140 //! @SYMTestActions        	 	1. Create RFbsSession object
       
  1141 //!						    	2. Create CFbsScreenDevice Object.
       
  1142 //!								3. Create a Palette. 
       
  1143 //!                         	4. Set the Palette with the existing palette.
       
  1144 //!                         	5. Get the Palette and verify it with expected.
       
  1145 //!                         	6. Destruct and Close.
       
  1146 //! @SYMTestStatus          	Implemented
       
  1147 //! @SYMTestPriority        	High
       
  1148 //! @SYMTestExpectedResults 	SetPalette returns KErrNone. GetPalette retrieves a palette as expected.
       
  1149 //! @SYMTestType            	CIT
       
  1150     START_TEST_BLOCK        	10    T_GraphicsBitGDIAPI     \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
  1151      	CREATE_OBJECT     		CFbsScreenDevice fbsscrdev
       
  1152         CREATE_OBJECT     		RFbsSession 	 rfbssession
       
  1153         CREATE_OBJECT       	CPalette         palette
       
  1154         COMMAND             	palette          NewL               GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0039-NewL_command01				
       
  1155         COMMAND					rfbssession		 Constructor
       
  1156         COMMAND			  		rfbssession		 Connect
       
  1157         COMMAND             	fbsscrdev        NewL             	GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0039-NewL_command04				
       
  1158         COMMAND             	fbsscrdev        SetPalette         GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0039-SetPalette_command05      	
       
  1159         COMMAND					fbsscrdev        GetPalette         GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0039-GetPalette_command06		
       
  1160         COMMAND             	palette          ~
       
  1161         COMMAND             	fbsscrdev		 ~
       
  1162         COMMAND					rfbssession		 Disconnect	  
       
  1163     END_TEST_BLOCK    
       
  1164 END_TESTCASE                GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0039
       
  1165 
       
  1166 START_TESTCASE                  GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0040
       
  1167 //! @SYMTestCaseID              GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0040
       
  1168 //! @SYMAPI                     CFbsScreenDevice::SizeInTwips()
       
  1169 //! @SYMAuthor                  Wei Liu
       
  1170 //! @SYMCreationDate            04/12/2008
       
  1171 //! @SYMTestCaseDesc            Gets the size of the screen device area in twips
       
  1172 //! @SYMTestActions             1. Create and connect a RFbsSession
       
  1173 //!                             2. Create a CFbsScreenDevice attached to RFbsSession
       
  1174 //!                             3. Get the screen's size in twips and check it with expected.
       
  1175 //!                             4. Destruct the CWsScreenDevice object
       
  1176 //!                             5. Close the RFbsSession object
       
  1177 //! @SYMTestStatus              Implemented
       
  1178 //! @SYMTestPriority            Critical
       
  1179 //! @SYMTestExpectedResults     No panic and the returned screen sizes in twips and twips are as expected
       
  1180 //! @SYMTestType                CIT
       
  1181     START_TEST_BLOCK            10    T_GraphicsBitGDIAPI      \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
  1182         CREATE_OBJECT           RFbsSession       rfbssession
       
  1183         CREATE_OBJECT           CFbsScreenDevice  fbsscrdev
       
  1184         COMMAND                 rfbssession       Constructor       
       
  1185         COMMAND                 rfbssession       Connect         
       
  1186         COMMAND                 fbsscrdev         NewL         			GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0040-NewL_command03             
       
  1187         COMMAND                 fbsscrdev         SizeInTwips
       
  1188         COMMAND                 fbsscrdev         ~        
       
  1189         COMMAND                 rfbssession		  Disconnect       
       
  1190     END_TEST_BLOCK    
       
  1191 END_TESTCASE                    GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0040
       
  1192 
       
  1193 START_TESTCASE 					GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0041
       
  1194 //! @SYMTestCaseID          	GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0041
       
  1195 //! @SYMAPI                 	CFbsScreenDevice::ScreenNo()
       
  1196 //! @SYMAuthor              	Wei Liu
       
  1197 //! @SYMCreationDate        	04/12/2008
       
  1198 //! @SYMTestCaseDesc        	Create CFbsScreenDevice Object attached to RFbsSession .
       
  1199 //!								Check the number received from the ScreenNo function with expected.
       
  1200 //!								Destroy object.
       
  1201 //! @SYMTestActions         	1.Create CFbsScreenDevice Object attached to RFbsSession.
       
  1202 //!								2.Check the Screen number from ScreenNo() with expected.
       
  1203 //!								3.Destroy object.
       
  1204 //! @SYMTestStatus          	Implemented
       
  1205 //! @SYMTestPriority        	High
       
  1206 //! @SYMTestExpectedResults 	The number returned from ScreenNo() is as expected.
       
  1207 //! @SYMTestType            	CIT
       
  1208     START_TEST_BLOCK   		10   T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini
       
  1209         CREATE_OBJECT       	CFbsScreenDevice fbsscrdev
       
  1210         CREATE_OBJECT       	RFbsSession 	 rfbssession
       
  1211         COMMAND					rfbssession		 Constructor
       
  1212         COMMAND					rfbssession		 Connect
       
  1213         COMMAND             	fbsscrdev        NewL     		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0041-NewL_command03
       
  1214         COMMAND             	fbsscrdev		 ScreenNo 		GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0041-ScreenNo_command04
       
  1215         COMMAND             	fbsscrdev		 ~
       
  1216         COMMAND					rfbssession		 Disconnect
       
  1217      END_TEST_BLOCK
       
  1218 END_TESTCASE 		GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0041
       
  1219 
       
  1220 
       
  1221 
       
  1222 
       
  1223 
       
  1224 
       
  1225 
       
  1226 
       
  1227 
       
  1228 
       
  1229 
       
  1230 
       
  1231 
       
  1232 
       
  1233 
       
  1234 
       
  1235 
       
  1236 
       
  1237 
       
  1238 
       
  1239