graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-FbsBitmap-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-FBSERV-FbsBitmap-PublicApi
       
    18 //! @SYMScriptTestEnvironment	This test script requires a basic ROM.
       
    19 
       
    20 /////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-FBSERV-FbsBitmap-PublicAPI.script
       
    22 //
       
    23 // Tests all public elements of the CFbsBitmap class
       
    24 // as a means of confidence that the APIs work as expected.
       
    25 //
       
    26 // The purpose is to provide a regression test suite of PublishedAll APIs for CFbsBitmap.
       
    27 // Negative testing is performed to confirm that correct errors are returned when incorrect parameters are given.
       
    28 // The tests are fully automated.
       
    29 /////////////////////////////////////////////////////////////////////
       
    30 
       
    31 LOAD_SUITE	T_FBServAPI
       
    32 
       
    33 
       
    34 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0001
       
    35 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0001
       
    36 //! @SYMAPI			CFbsBitmap
       
    37 //! @SYMAuthor			James Mechen
       
    38 //! @SYMCreationDate		22/03/2006
       
    39 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
    40 //! @SYMTestCaseDesc		CFbsBitmap::Load() (Load(const TDesC \&aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test. Load a bitmap file with no file offset, without using RFile,
       
    41 //!				making it available for sharing between font and bitmap server clients.
       
    42 //!				Uses API elements: Load()
       
    43 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
    44 //! @SYMTestStatus		Implemented
       
    45 //! @SYMTestPriority		Critical
       
    46 //! @SYMTestExpectedResults	The Load() method call returns KErrNone and doesn't cause panic.
       
    47 //! @SYMTestType		CIT
       
    48 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
    49 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
    50 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
    51 		COMMAND		RFbsSession1	Connect
       
    52 		COMMAND		CFbsBitmap1	new
       
    53 		COMMAND		CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0001-001command4Load
       
    54 		COMMAND		CFbsBitmap1	~
       
    55 		COMMAND		RFbsSession1	Disconnect
       
    56 	END_TEST_BLOCK
       
    57 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0001
       
    58 
       
    59 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0002
       
    60 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0002
       
    61 //! @SYMAPI			CFbsBitmap
       
    62 //! @SYMAuthor			James Mechen
       
    63 //! @SYMCreationDate		22/03/2006
       
    64 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
    65 //! @SYMTestCaseDesc		CFbsBitmap::Load() (Load(RFile \&aFile, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test.
       
    66 //!				Load a bitmap file with no file offset, using RFile,
       
    67 //!				not making it available for sharing between font and bitmap server clients.
       
    68 //!				Uses API elements: Load()
       
    69 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
    70 //! @SYMTestStatus		Implemented
       
    71 //! @SYMTestPriority		Critical
       
    72 //! @SYMTestExpectedResults	The Load() method call returns KErrNone and doesn't cause panic.
       
    73 //! @SYMTestType		CIT
       
    74 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
    75 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
    76 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
    77 		COMMAND		RFbsSession1	Connect
       
    78 		COMMAND		CFbsBitmap1	new
       
    79 		COMMAND		CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0002-001command4Load
       
    80 		COMMAND		CFbsBitmap1	~
       
    81 		COMMAND		RFbsSession1	Disconnect
       
    82 	END_TEST_BLOCK
       
    83 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0002
       
    84 
       
    85 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0003
       
    86 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0003
       
    87 //! @SYMAPI			CFbsBitmap
       
    88 //! @SYMAuthor			James Mechen
       
    89 //! @SYMCreationDate		22/03/2006
       
    90 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
    91 //! @SYMTestCaseDesc		CFbsBitmap::Load() (Load(const TDesC \&aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test.
       
    92 //!				Load a bitmap file with a file offset, without using RFile,
       
    93 //!				not making it available for sharing between font and bitmap server clients.
       
    94 //!				Uses API elements: Load()
       
    95 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
    96 //! @SYMTestStatus		Implemented
       
    97 //! @SYMTestPriority		Critical
       
    98 //! @SYMTestExpectedResults	The Load() method call returns KErrNone and doesn't cause panic.
       
    99 //! @SYMTestType		CIT
       
   100 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   101 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   102 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   103 		COMMAND		RFbsSession1	Connect
       
   104 		COMMAND		CFbsBitmap1	new
       
   105 		COMMAND		CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0003-001command4Load
       
   106 		COMMAND		CFbsBitmap1	~
       
   107 		COMMAND		RFbsSession1	Disconnect
       
   108 	END_TEST_BLOCK
       
   109 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0003
       
   110 
       
   111 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0004
       
   112 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0004
       
   113 //! @SYMAPI			CFbsBitmap
       
   114 //! @SYMAuthor			James Mechen
       
   115 //! @SYMCreationDate		22/03/2006
       
   116 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   117 //! @SYMTestCaseDesc		CFbsBitmap::Load() (Load(RFile \&aFile, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test.
       
   118 //!				Load a bitmap file with a file offset, using RFile,
       
   119 //!				making it available for sharing between font and bitmap server clients.
       
   120 //!				Uses API elements: Load(), IsCompressedInRAM()
       
   121 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
   122 //!				2. Check bitmap is not compressed in RAM.
       
   123 //! @SYMTestStatus		Implemented
       
   124 //! @SYMTestPriority		Critical
       
   125 //! @SYMTestExpectedResults	The Load() method call returns KErrNone and doesn't cause panic. IsCompressedInRAM() returns false.
       
   126 //! @SYMTestType		CIT
       
   127 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   128 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   129 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   130 		COMMAND		RFbsSession1	Connect
       
   131 		COMMAND		CFbsBitmap1	new
       
   132 		COMMAND		CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0004-001command4Load
       
   133 		COMMAND		CFbsBitmap1	IsCompressedInRAM	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0004-001command5IsCompressedInRAM
       
   134 		COMMAND		CFbsBitmap1	~
       
   135 		COMMAND		RFbsSession1	Disconnect
       
   136 	END_TEST_BLOCK
       
   137 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0004
       
   138 
       
   139 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0005
       
   140 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0005
       
   141 //! @SYMAPI			CFbsBitmap
       
   142 //! @SYMAuthor			James Mechen
       
   143 //! @SYMCreationDate		22/03/2006
       
   144 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   145 //! @SYMTestCaseDesc		CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC \&aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test.
       
   146 //!				Load and compress a bitmap file with no file offset, without using RFile,
       
   147 //!				making it available for sharing between font and bitmap server clients.
       
   148 //!				Uses API elements: LoadAndCompress(), IsCompressedInRAM()
       
   149 //! @SYMTestActions		1. Load and compress a bitmap from a multi-bitmap file.
       
   150 //!				2. Check bitmap is compressed in RAM.
       
   151 //! @SYMTestStatus		Implemented
       
   152 //! @SYMTestPriority		Critical
       
   153 //! @SYMTestExpectedResults	The LoadAndCompress() method call returns KErrNone and doesn't cause panic.
       
   154 //! @SYMTestType		CIT
       
   155 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   156 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   157 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   158 		COMMAND		RFbsSession1	Connect
       
   159 		COMMAND		CFbsBitmap1	new
       
   160 		COMMAND		CFbsBitmap1	LoadAndCompress		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0005-001command4LoadAndCompress
       
   161 		COMMAND		CFbsBitmap1	IsCompressedInRAM	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0005-001command5IsCompressedInRAM
       
   162 		COMMAND		CFbsBitmap1	~
       
   163 		COMMAND		RFbsSession1	Disconnect
       
   164 	END_TEST_BLOCK
       
   165 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0005
       
   166 
       
   167 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0006
       
   168 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0006
       
   169 //! @SYMAPI			CFbsBitmap
       
   170 //! @SYMAuthor			James Mechen
       
   171 //! @SYMCreationDate		22/03/2006
       
   172 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   173 //! @SYMTestCaseDesc		CFbsBitmap::LoadAndCompress() (LoadAndCompress(RFile \&aFile, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test.
       
   174 //!				Load and compress a bitmap file with no file offset, using RFile,
       
   175 //!				not making it available for sharing between font and bitmap server clients.
       
   176 //!				Uses API elements: LoadAndCompress(), IsCompressedInRAM()
       
   177 //! @SYMTestActions		1. Load and compress a bitmap from a multi-bitmap file.
       
   178 //!				2. Check bitmap is compressed in RAM.
       
   179 //! @SYMTestStatus		Implemented
       
   180 //! @SYMTestPriority		Critical
       
   181 //! @SYMTestExpectedResults	The LoadAndCompress() method call returns KErrNone and doesn't cause panic.
       
   182 //! @SYMTestType		CIT
       
   183 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   184 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   185 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   186 		COMMAND		RFbsSession1	Connect
       
   187 		COMMAND		CFbsBitmap1	new
       
   188 		COMMAND		CFbsBitmap1	LoadAndCompress		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0006-001command4LoadAndCompress
       
   189 		COMMAND		CFbsBitmap1	IsCompressedInRAM	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0006-001command5IsCompressedInRAM
       
   190 		COMMAND		CFbsBitmap1	~
       
   191 		COMMAND		RFbsSession1	Disconnect
       
   192 	END_TEST_BLOCK
       
   193 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0006
       
   194 
       
   195 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0007
       
   196 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0007
       
   197 //! @SYMAPI			CFbsBitmap
       
   198 //! @SYMAuthor			James Mechen
       
   199 //! @SYMCreationDate		22/03/2006
       
   200 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   201 //! @SYMTestCaseDesc		CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC \&aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test.
       
   202 //!				Load and compress a bitmap file with a file offset, without using RFile,
       
   203 //!				not making it available for sharing between font and bitmap server clients.
       
   204 //!				Uses API elements: LoadAndCompress(), IsCompressedInRAM()
       
   205 //! @SYMTestActions		1. Load and compress a bitmap from a multi-bitmap file.
       
   206 //!				2. Check bitmap is compressed in RAM.
       
   207 //! @SYMTestStatus		Implemented
       
   208 //! @SYMTestPriority		Critical
       
   209 //! @SYMTestExpectedResults	The LoadAndCompress() method call returns KErrNone and doesn't cause panic.
       
   210 //! @SYMTestType		CIT
       
   211 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   212 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   213 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   214 		COMMAND		RFbsSession1	Connect
       
   215 		COMMAND		CFbsBitmap1	new
       
   216 		COMMAND		CFbsBitmap1	LoadAndCompress		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0007-001command4LoadAndCompress
       
   217 		COMMAND		CFbsBitmap1	IsCompressedInRAM	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0007-001command5IsCompressedInRAM
       
   218 		COMMAND		CFbsBitmap1	~
       
   219 		COMMAND		RFbsSession1	Disconnect
       
   220 	END_TEST_BLOCK
       
   221 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0007
       
   222 
       
   223 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0008
       
   224 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0008
       
   225 //! @SYMAPI			CFbsBitmap
       
   226 //! @SYMAuthor			James Mechen
       
   227 //! @SYMCreationDate		22/03/2006
       
   228 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   229 //! @SYMTestCaseDesc		CFbsBitmap::LoadAndCompress() (LoadAndCompress(RFile \&aFile, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test.
       
   230 //!				Load and compress a bitmap file with a file offset, using RFile,
       
   231 //!				making it available for sharing between font and bitmap server clients.
       
   232 //!				Uses API elements: LoadAndCompress(), IsCompressedInRAM()
       
   233 //! @SYMTestActions		1. Load and compress a bitmap from a multi-bitmap file.
       
   234 //!				2. Check bitmap is compressed in RAM.
       
   235 //! @SYMTestStatus		Implemented
       
   236 //! @SYMTestPriority		Critical
       
   237 //! @SYMTestExpectedResults	The LoadAndCompress() method call returns KErrNone and doesn't cause panic.
       
   238 //! @SYMTestType		CIT
       
   239 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   240 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   241 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   242 		COMMAND		RFbsSession1	Connect
       
   243 		COMMAND		CFbsBitmap1	new
       
   244 		COMMAND		CFbsBitmap1	LoadAndCompress		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0008-001command4LoadAndCompress
       
   245 		COMMAND		CFbsBitmap1	IsCompressedInRAM	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0008-001command5IsCompressedInRAM
       
   246 		COMMAND		CFbsBitmap1	~
       
   247 		COMMAND		RFbsSession1	Disconnect
       
   248 	END_TEST_BLOCK
       
   249 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0008
       
   250 
       
   251 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0009
       
   252 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0009
       
   253 //! @SYMAPI			CFbsBitmap
       
   254 //! @SYMAuthor			James Mechen
       
   255 //! @SYMCreationDate		22/03/2006
       
   256 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   257 //! @SYMTestCaseDesc		Load then compress a bitmap file.
       
   258 //!				Uses API elements: Load(), Compress(), IsCompressedInRAM()
       
   259 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
   260 //!				2. Compress bitmap.
       
   261 //!				3. Check bitmap is compressed in RAM.
       
   262 //! @SYMTestStatus		Implemented
       
   263 //! @SYMTestPriority		Critical
       
   264 //! @SYMTestExpectedResults	The Load() method call returns KErrNone and doesn't cause panic. IsCompressedInRAM() returns true.
       
   265 //! @SYMTestType		CIT
       
   266 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   267 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   268 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   269 		COMMAND		RFbsSession1	Connect
       
   270 		COMMAND		CFbsBitmap1	new
       
   271 		COMMAND		CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0009-001command4Load
       
   272 		COMMAND		CFbsBitmap1	Compress
       
   273 		COMMAND		CFbsBitmap1	IsCompressedInRAM	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0009-001command6IsCompressedInRAM
       
   274 		COMMAND		CFbsBitmap1	~
       
   275 		COMMAND		RFbsSession1	Disconnect
       
   276 	END_TEST_BLOCK
       
   277 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0009
       
   278 
       
   279 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010
       
   280 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010
       
   281 //! @SYMAPI			CFbsBitmap
       
   282 //! @SYMAuthor			James Mechen
       
   283 //! @SYMCreationDate		22/03/2006
       
   284 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   285 //! @SYMTestCaseDesc		CFbsBitmap::CompressInBackground() test (CompressInBackground() version). Load then compress a bitmap in background, without providing a Request Status.
       
   286 //!				Uses API elements: Load(), CompressInBackground(), IsCompressedInRAM()
       
   287 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
   288 //!				2. Compress bitmap in background.
       
   289 //!				3. Wait 1 second
       
   290 //!				3. Check bitmap is compressed in RAM.
       
   291 //! @SYMTestStatus		Implemented
       
   292 //! @SYMTestPriority		Critical
       
   293 //! @SYMTestExpectedResults	The CompressInbackground() method call returns KErrNone and doesn't cause panic.
       
   294 //! @SYMTestType		CIT
       
   295 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   296 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   297 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   298 		COMMAND		RFbsSession1	Connect
       
   299 		COMMAND		RFbsSession1	GetSession
       
   300 		COMMAND		CFbsBitmap1	new
       
   301 		COMMAND		CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010-001command5Load
       
   302 		COMMAND		CFbsBitmap1	CompressInBackground	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010-001command6CompressInBackground
       
   303 		COMMAND		RFbsSession1	SendCommand		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010-001command8SendCommand
       
   304 		COMMAND		CFbsBitmap1	IsCompressedInRAM	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010-001command10IsCompressedInRAM
       
   305 		COMMAND		CFbsBitmap1	~
       
   306 		COMMAND		RFbsSession1	Disconnect
       
   307 	END_TEST_BLOCK
       
   308 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010
       
   309 
       
   310 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011
       
   311 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011
       
   312 //! @SYMAPI			CFbsBitmap
       
   313 //! @SYMAuthor			James Mechen
       
   314 //! @SYMCreationDate		22/03/2006
       
   315 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   316 //! @SYMTestCaseDesc		CFbsBitmap::CompressInBackground() test (CompressInBackground(TRequestStatus \&aRequestStatus) version). Load then compress a bitmap in background, providing a Request Status.
       
   317 //!				Uses API elements: Load(), CompressInBackground(), IsCompressedInRAM()
       
   318 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
   319 //!				2. Compress bitmap in background.
       
   320 //!				3. Check bitmap is compressed in RAM.
       
   321 //! @SYMTestStatus		Implemented
       
   322 //! @SYMTestPriority		Critical
       
   323 //! @SYMTestExpectedResults	The CompressInbackground() method call returns KErrNone and doesn't cause panic.
       
   324 //! @SYMTestType		CIT
       
   325 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   326 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   327 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   328 		COMMAND		RFbsSession1	Connect
       
   329 		COMMAND		CFbsBitmap1	new
       
   330 		COMMAND		CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011-001command4Load
       
   331 		COMMAND		CFbsBitmap1	CompressInBackground	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011-001command5CompressInBackground
       
   332 		OUTSTANDING
       
   333 		COMMAND		CFbsBitmap1	IsCompressedInRAM	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011-001command6IsCompressedInRAM
       
   334 		COMMAND		CFbsBitmap1	~
       
   335 		COMMAND		RFbsSession1	Disconnect
       
   336 	END_TEST_BLOCK
       
   337 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011
       
   338 
       
   339 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0012
       
   340 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0012
       
   341 //! @SYMAPI			CFbsBitmap
       
   342 //! @SYMAuthor			James Mechen
       
   343 //! @SYMCreationDate		22/03/2006
       
   344 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   345 //! @SYMTestCaseDesc		Load a bitmap and then releases it.
       
   346 //!				Uses API elements: Load(), Reset()
       
   347 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
   348 //!				2. Release bitmap's handle from font and bitmap server.
       
   349 //! @SYMTestStatus		Implemented
       
   350 //! @SYMTestPriority		Critical
       
   351 //! @SYMTestExpectedResults	The Reset() method call doesn't cause panic.
       
   352 //! @SYMTestType		CIT
       
   353 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   354 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   355 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   356 		COMMAND		RFbsSession1	Connect
       
   357 		COMMAND		CFbsBitmap1	new
       
   358 		COMMAND		CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0012-001command4Load
       
   359 		COMMAND		CFbsBitmap1	Reset
       
   360 		COMMAND		CFbsBitmap1	~
       
   361 		COMMAND		RFbsSession1	Disconnect
       
   362 	END_TEST_BLOCK
       
   363 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0012
       
   364 
       
   365 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013
       
   366 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013
       
   367 //! @SYMAPI			CFbsBitmap
       
   368 //! @SYMAuthor			James Mechen
       
   369 //! @SYMCreationDate		22/03/2006
       
   370 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   371 //! @SYMTestCaseDesc		Create bitmaps with various sizes in all display modes.
       
   372 //!				Uses API elements: Create()
       
   373 //! @SYMTestActions		1-11. Create bitmaps with various sizes in all display modes except ENone, ERgb, EColorLast.
       
   374 //! @SYMTestStatus		Implemented
       
   375 //! @SYMTestPriority		Critical
       
   376 //! @SYMTestExpectedResults	The Create() method call returns KErrNone and doesn't cause panic.
       
   377 //! @SYMTestType		CIT
       
   378 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   379 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   380 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   381 		COMMAND		RFbsSession1	Connect
       
   382 		COMMAND		CFbsBitmap1	new
       
   383 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command4Create
       
   384 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command5Create
       
   385 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command6Create
       
   386 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command7Create
       
   387 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command8Create
       
   388 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command9Create
       
   389 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command10Create
       
   390 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command11Create
       
   391 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command12Create
       
   392 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command13Create
       
   393 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command14Create
       
   394 		COMMAND		CFbsBitmap1	~
       
   395 		COMMAND		RFbsSession1	Disconnect
       
   396 	END_TEST_BLOCK
       
   397 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013
       
   398 
       
   399 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0014
       
   400 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0014
       
   401 //! @SYMAPI			CFbsBitmap
       
   402 //! @SYMAuthor			James Mechen
       
   403 //! @SYMCreationDate		22/03/2006
       
   404 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   405 //! @SYMTestCaseDesc		CFbsBitmap::Save() (Save(const TDesC \&aFilename) version) test. Create bitmap and save to file, without using RFile.
       
   406 //!				Uses API elements: Create(), Save()
       
   407 //! @SYMTestActions		1. Create bitmap.
       
   408 //!				2. Save bitmap to file.
       
   409 //! @SYMTestStatus		Implemented
       
   410 //! @SYMTestPriority		Critical
       
   411 //! @SYMTestExpectedResults	The Save() method call returns KErrNone and doesn't cause panic.
       
   412 //! @SYMTestType		CIT
       
   413 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   414 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   415 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   416 		COMMAND		RFbsSession1	Connect
       
   417 		COMMAND		CFbsBitmap1	new
       
   418 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0014-001command4Create
       
   419 		COMMAND		CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0014-001command5Save
       
   420 		COMMAND		CFbsBitmap1	~
       
   421 		COMMAND		RFbsSession1	Disconnect
       
   422 	END_TEST_BLOCK
       
   423 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0014
       
   424 
       
   425 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0015
       
   426 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0015
       
   427 //! @SYMAPI			CFbsBitmap
       
   428 //! @SYMAuthor			James Mechen
       
   429 //! @SYMCreationDate		22/03/2006
       
   430 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   431 //! @SYMTestCaseDesc		CFbsBitmap::Save() (Save(RFile \&aFile) version) test. Create bitmap and save to file, using RFile.
       
   432 //!				Uses API elements: Create(), Save()
       
   433 //! @SYMTestActions		1. Create bitmap.
       
   434 //!				2. Save bitmap to file.
       
   435 //! @SYMTestStatus		Implemented
       
   436 //! @SYMTestPriority		Critical
       
   437 //! @SYMTestExpectedResults	The Save() method call returns KErrNone and doesn't cause panic.
       
   438 //! @SYMTestType		CIT
       
   439 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   440 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   441 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   442 		COMMAND		RFbsSession1	Connect
       
   443 		COMMAND		CFbsBitmap1	new
       
   444 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0015-001command4Create
       
   445 		COMMAND		CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0015-001command5Save
       
   446 		COMMAND		CFbsBitmap1	~
       
   447 		COMMAND		RFbsSession1	Disconnect
       
   448 	END_TEST_BLOCK
       
   449 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0015
       
   450 
       
   451 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016
       
   452 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016
       
   453 //! @SYMAPI			CFbsBitmap
       
   454 //! @SYMAuthor			James Mechen
       
   455 //! @SYMCreationDate		22/03/2006
       
   456 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   457 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(const TDesC \&aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test.
       
   458 //!				Create bitmaps and store them in a multi-bitmap file, without using RFile.
       
   459 //!				Uses API elements: Create(), StoreL()
       
   460 //! @SYMTestActions		1-3. Create 3 bitmaps saving them into 3 different files right after creation.
       
   461 //!				4. Call Store() to create a multi-bitmap file using those 3 files.
       
   462 //! @SYMTestStatus		Implemented
       
   463 //! @SYMTestPriority		Critical
       
   464 //! @SYMTestExpectedResults	The StoreL() method call doesn't leave and doesn't cause panic.
       
   465 //! @SYMTestType		CIT
       
   466 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   467 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   468 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   469 		COMMAND		RFbsSession1	Connect
       
   470 		COMMAND		CFbsBitmap1	new
       
   471 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command4Create
       
   472 		COMMAND		CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command5Save
       
   473 		COMMAND		CFbsBitmap1	Reset
       
   474 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command7Create
       
   475 		COMMAND		CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command8Save
       
   476 		COMMAND		CFbsBitmap1	Reset
       
   477 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command10Create
       
   478 		COMMAND		CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command11Save
       
   479 		COMMAND		CFbsBitmap1	Reset
       
   480 		COMMAND		CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command13StoreL
       
   481 		COMMAND		CFbsBitmap1	~
       
   482 		COMMAND		RFbsSession1	Disconnect
       
   483 	END_TEST_BLOCK
       
   484 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016
       
   485 
       
   486 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017
       
   487 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017
       
   488 //! @SYMAPI			CFbsBitmap
       
   489 //! @SYMAuthor			James Mechen
       
   490 //! @SYMCreationDate		23/03/2006
       
   491 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   492 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(RFile \&aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test.
       
   493 //!				Create bitmaps and store them in a multi-bitmap file, using RFile.
       
   494 //!				Uses API elements: Create(), StoreL()
       
   495 //! @SYMTestActions		1-3. Create 3 bitmaps saving them into 3 different files right after creation.
       
   496 //!				4. Store bitmaps in a multi-bitmap file.
       
   497 //! @SYMTestStatus		Implemented
       
   498 //! @SYMTestPriority		Critical
       
   499 //! @SYMTestExpectedResults	The StoreL() method call doesn't leave and doesn't cause panic.
       
   500 //! @SYMTestType		CIT
       
   501 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   502 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   503 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   504 		COMMAND		RFbsSession1	Connect
       
   505 		COMMAND		CFbsBitmap1	new
       
   506 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command4Create
       
   507 		COMMAND		CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command5Save
       
   508 		COMMAND		CFbsBitmap1	Reset
       
   509 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command7Create
       
   510 		COMMAND		CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command8Save
       
   511 		COMMAND		CFbsBitmap1	Reset
       
   512 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command10Create
       
   513 		COMMAND		CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command11Save
       
   514 		COMMAND		CFbsBitmap1	Reset
       
   515 		COMMAND		CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command13StoreL
       
   516 		COMMAND		CFbsBitmap1	~
       
   517 		COMMAND		RFbsSession1	Disconnect
       
   518 	END_TEST_BLOCK
       
   519 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017
       
   520 
       
   521 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018
       
   522 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018
       
   523 //! @SYMAPI			CFbsBitmap
       
   524 //! @SYMAuthor			James Mechen
       
   525 //! @SYMCreationDate		23/03/2006
       
   526 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   527 //! @SYMTestCaseDesc		Load bitmap, duplicate it and save duplicate to file.
       
   528 //!				Uses API elements: Load(), Duplicate(), Save()
       
   529 //! @SYMTestActions		1. Load bitmap from file.
       
   530 //!				2. Instantiate another bitmap.
       
   531 //!				2. Duplicate loaded bitmap by the second one.
       
   532 //!				3. Save duplicate to file.
       
   533 //! @SYMTestStatus		Implemented
       
   534 //! @SYMTestPriority		Critical
       
   535 //! @SYMTestExpectedResults	The methods return KErrNone and don't cause panic.
       
   536 //! @SYMTestType		CIT
       
   537 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   538 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   539 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   540 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap2
       
   541 		COMMAND		RFbsSession1	Connect
       
   542 		COMMAND		CFbsBitmap1	new
       
   543 		COMMAND		CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018-001command4Load
       
   544 		COMMAND		CFbsBitmap1	Handle
       
   545 		COMMAND		CFbsBitmap2	new
       
   546 		COMMAND		CFbsBitmap2	Duplicate	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018-001command7Duplicate
       
   547 		COMMAND		CFbsBitmap2	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018-001command8Save
       
   548 		COMMAND		CFbsBitmap1	~
       
   549 		COMMAND		CFbsBitmap2	~
       
   550 		COMMAND		RFbsSession1	Disconnect
       
   551 	END_TEST_BLOCK
       
   552 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018
       
   553 
       
   554 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019
       
   555 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019
       
   556 //! @SYMAPI			CFbsBitmap
       
   557 //! @SYMAuthor			James Mechen
       
   558 //! @SYMCreationDate		23/03/2006
       
   559 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   560 //! @SYMTestCaseDesc		Load bitmap and externalized it to a write stream.
       
   561 //!				Uses API elements: Create(), ExternalizeL(), InternalizeL()
       
   562 //! @SYMTestActions		1. Create a bitmap.
       
   563 //!				2. Externalize bitmap to write stream.
       
   564 //!				3. Internalize bitmap from read stream.
       
   565 //! @SYMTestStatus		Implemented
       
   566 //! @SYMTestPriority		Critical
       
   567 //! @SYMTestExpectedResults	Methods ExternalizeL() and InternalizeL() don't leave and don't cause panic.
       
   568 //! @SYMTestType		CIT
       
   569 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   570 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   571 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   572 		COMMAND		RFbsSession1	Connect
       
   573 		COMMAND		CFbsBitmap1	new
       
   574 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019-001command4Create
       
   575 		COMMAND		CFbsBitmap1	ExternalizeL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019-001command5ExternalizeL
       
   576 		COMMAND		CFbsBitmap1	InternalizeL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019-001command6InternalizeL
       
   577 		COMMAND		CFbsBitmap1	~
       
   578 		COMMAND		RFbsSession1	Disconnect
       
   579 	END_TEST_BLOCK
       
   580 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019
       
   581 
       
   582 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020
       
   583 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020
       
   584 //! @SYMAPI			CFbsBitmap
       
   585 //! @SYMAuthor			James Mechen
       
   586 //! @SYMCreationDate		23/03/2006
       
   587 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   588 //! @SYMTestCaseDesc		Load bitmap and externalized part of it to a write stream.
       
   589 //!				Uses API elements: Create(), ExternalizeRectangleL(), InternalizeL()
       
   590 //! @SYMTestActions		1. Create a bitmap.
       
   591 //!				2. Externalize part of bitmap to write stream.
       
   592 //!				3. Internalize bitmap from read stream.
       
   593 //! @SYMTestStatus		Implemented
       
   594 //! @SYMTestPriority		Critical
       
   595 //! @SYMTestExpectedResults	Methods ExternalizeRectangleL() and InternalizeL() don't leave and don't cause panic.
       
   596 //! @SYMTestType		CIT
       
   597 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   598 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   599 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   600 		COMMAND		RFbsSession1	Connect
       
   601 		COMMAND		CFbsBitmap1	new
       
   602 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020-001command4Create
       
   603 		COMMAND		CFbsBitmap1	ExternalizeRectangleL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020-001command5ExternalizeRectangleL
       
   604 		COMMAND		CFbsBitmap1	InternalizeL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020-001command6InternalizeL
       
   605 		COMMAND		CFbsBitmap1	~
       
   606 		COMMAND		RFbsSession1	Disconnect
       
   607 	END_TEST_BLOCK
       
   608 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020
       
   609 
       
   610 
       
   611 //! START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0021
       
   612 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0021
       
   613 //! @SYMAPI			CFbsBitmap
       
   614 //! @SYMAuthor			James Mechen
       
   615 //! @SYMCreationDate		23/03/2006
       
   616 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   617 //! @SYMTestCaseDesc		Create hardware bitmap
       
   618 //!				Uses API elements: CreateHardwareBitmap(), HardwareBitmapHandle()
       
   619 //! @SYMTestActions		1. Create hardware bitmap.
       
   620 //!				2. Get handle for hardware bitmap.
       
   621 //! @SYMTestStatus		Implemented
       
   622 //! @SYMTestPriority		Critical
       
   623 //! @SYMTestExpectedResults	Hardware Bitmaps are not supported so expect panic on get handle
       
   624 //! @SYMTestType		CIT
       
   625 //! 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   626 //! 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
   627 //! 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
   628 //! 		COMMAND			RFbsSession1	Connect
       
   629 //! 		COMMAND			CFbsBitmap1	new
       
   630 //! 		COMMAND	!Error=-5	CFbsBitmap1	CreateHardwareBitmap	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0021-001command4CreateHardwareBitmap
       
   631 //! 		COMMAND			CFbsBitmap1	HardwareBitmapHandle	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0021-001command5HardwareBitmapHandle
       
   632 //! 	END_TEST_BLOCK	!PanicCode=3	!PanicString=KERN-EXEC
       
   633 //!     RUN_TEST_STEP	100	T_FBServAPI	utilityClearPanicDlg
       
   634 //! END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0021
       
   635 
       
   636 
       
   637 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022
       
   638 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022
       
   639 //! @SYMAPI			CFbsBitmap
       
   640 //! @SYMAuthor			James Mechen
       
   641 //! @SYMCreationDate		23/03/2006
       
   642 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   643 //! @SYMTestCaseDesc		Load bitmap and set it to all display modes.
       
   644 //!				Uses API elements: Load(), SetDisplayMode(), DisplayMode(), InitialDisplayMode()
       
   645 //! @SYMTestActions		1. Create bitmap with a certain display mode (take EColor256 = 6).
       
   646 //!				2. Call DisplayMode() to check the display mode.
       
   647 //!				3-15. Set then get all display modes that could be fit into EColor256 (1, 2, 3, 4, 5, 6)
       
   648 //!				16. Get initial display mode.
       
   649 //! @SYMTestStatus		Implemented
       
   650 //! @SYMTestPriority		Critical
       
   651 //! @SYMTestExpectedResults	Display modes are correctly set without causing panic.
       
   652 //! @SYMTestType		CIT
       
   653 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   654 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   655 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   656 		COMMAND		RFbsSession1	Connect
       
   657 		COMMAND		CFbsBitmap1	new
       
   658 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command4Create
       
   659 		COMMAND		CFbsBitmap1	DisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command5DisplayMode
       
   660 		COMMAND		CFbsBitmap1	SetDisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command6SetDisplayMode
       
   661 		COMMAND		CFbsBitmap1	DisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command7DisplayMode
       
   662 		COMMAND		CFbsBitmap1	SetDisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command8SetDisplayMode
       
   663 		COMMAND		CFbsBitmap1	DisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command9DisplayMode
       
   664 		COMMAND		CFbsBitmap1	SetDisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command10SetDisplayMode
       
   665 		COMMAND		CFbsBitmap1	DisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command11DisplayMode
       
   666 		COMMAND		CFbsBitmap1	SetDisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command12SetDisplayMode
       
   667 		COMMAND		CFbsBitmap1	DisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command13DisplayMode
       
   668 		COMMAND		CFbsBitmap1	SetDisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command14SetDisplayMode
       
   669 		COMMAND		CFbsBitmap1	DisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command15DisplayMode
       
   670 		COMMAND		CFbsBitmap1	SetDisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command16SetDisplayMode
       
   671 		COMMAND		CFbsBitmap1	DisplayMode		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command17DisplayMode
       
   672 		COMMAND		CFbsBitmap1	InitialDisplayMode	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command18InitialDisplayMode
       
   673 		COMMAND		CFbsBitmap1	~
       
   674 		COMMAND		RFbsSession1	Disconnect
       
   675 	END_TEST_BLOCK
       
   676 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022
       
   677 
       
   678 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023
       
   679 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023
       
   680 //! @SYMAPI			CFbsBitmap
       
   681 //! @SYMAuthor			James Mechen
       
   682 //! @SYMCreationDate		23/03/2006
       
   683 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   684 //! @SYMTestCaseDesc		CFbsBitmap::GetScanLine() (GetScanLine(TDes8 \&aBuf, const TPoint \&aPixel, TInt aLength, TDisplayMode aDispMode) version),
       
   685 //!				CFbsBitmap::SetScanLine(), GetVerticalScanLine() (both GetVerticalScanLine(TDes8 \&aBuf, TInt aX, TDisplayMode aDispMode) and
       
   686 //!				GetVerticalScanLine(TDes8 \&aBuf, TInt aX, const TPoint \&aDitherOffset, TDisplayMode aDispMode) versions) test.
       
   687 //!				Load bitmap and test setting/getting scanlines.
       
   688 //!				Uses API elements: Load(), SetScanLine(), GetScanLine(), GetVerticalScanLine()
       
   689 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
   690 //!				2. Set horizontal scanline using position 0 from data-file
       
   691 //!				3. Get horizontal scanline with the same display mode starting at (0,0) and 10 bytes long
       
   692 //!				4. Get vertical scanline of 0-th vertical with the same display mode
       
   693 //!				5. Get vertical scanline of 0-th vertical with the same display mode using dithering offset (0,0)
       
   694 //! @SYMTestStatus		Implemented
       
   695 //! @SYMTestPriority		Critical
       
   696 //! @SYMTestExpectedResults	Scanlines are correctly set without causing panic.
       
   697 //! @SYMTestType		CIT
       
   698 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   699 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   700 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   701 		COMMAND		RFbsSession1	Connect
       
   702 		COMMAND		CFbsBitmap1	new
       
   703 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command4Create
       
   704 		COMMAND		CFbsBitmap1	SetScanLine		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command5SetScanLine
       
   705 		COMMAND		CFbsBitmap1	GetScanLine		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command6GetScanLine
       
   706 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command7GetVerticalScanLine
       
   707 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command8GetVerticalScanLine
       
   708 		COMMAND		CFbsBitmap1	~
       
   709 		COMMAND		RFbsSession1	Disconnect
       
   710 	END_TEST_BLOCK
       
   711 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023
       
   712 
       
   713 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024
       
   714 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024
       
   715 //! @SYMAPI			CFbsBitmap
       
   716 //! @SYMAuthor			James Mechen
       
   717 //! @SYMCreationDate		23/03/2006
       
   718 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   719 //! @SYMTestCaseDesc		CFbsBitmap::SizeInTwips(), CFbsBitmap::SetSizeInTwips() (both SetSizeInTwips(const MGraphicsDeviceMap *aMap) and SetSizeInTwips(const TSize \&aSizeInTwips) versions) test.
       
   720 //!				Load bitmap and test setting/getting size in twips.
       
   721 //!				Uses API elements: Load(), SetSizeInTwips(), SizeInTwips()
       
   722 //! @SYMTestActions		1. Create bitmap.
       
   723 //!				2-4. Set then get various twips sizes, checking that sizes match.
       
   724 //!				5. Create a bitmap device object.
       
   725 //!				6. Set twips size using the graphics device map.
       
   726 //! @SYMTestStatus		Implemented
       
   727 //! @SYMTestPriority		Critical
       
   728 //! @SYMTestExpectedResults	Sizes in twips are correctly set without causing panic.
       
   729 //! @SYMTestType		CIT
       
   730 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   731 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
   732 		CREATE_OBJECT	CFbsBitmap		CFbsBitmap1
       
   733 		CREATE_OBJECT	CFbsBitmapDevice	CFbsBitmapDevice1
       
   734 		COMMAND		RFbsSession1		Connect
       
   735 		COMMAND		CFbsBitmap1		new
       
   736 		COMMAND		CFbsBitmap1		Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command4Load
       
   737 		COMMAND		CFbsBitmap1		SetSizeInTwips		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command5SetSizeInTwips
       
   738 		COMMAND		CFbsBitmap1		SizeInTwips		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command6SizeInTwips
       
   739 		COMMAND		CFbsBitmap1		SetSizeInTwips		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command7SetSizeInTwips
       
   740 		COMMAND		CFbsBitmap1		SizeInTwips		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command8SizeInTwips
       
   741 		COMMAND		CFbsBitmap1		SetSizeInTwips		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command9SetSizeInTwips
       
   742 		COMMAND		CFbsBitmap1		SizeInTwips		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command10SizeInTwips
       
   743 		COMMAND		CFbsBitmap1		SetSizeInTwips		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command11SetSizeInTwips
       
   744 		COMMAND		CFbsBitmap1		~
       
   745 		COMMAND		RFbsSession1		Disconnect
       
   746 	END_TEST_BLOCK
       
   747 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024
       
   748 
       
   749 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025
       
   750 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025
       
   751 //! @SYMAPI			CFbsBitmap
       
   752 //! @SYMAuthor			James Mechen
       
   753 //! @SYMCreationDate		23/03/2006
       
   754 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   755 //! @SYMTestCaseDesc		Open bitmap files and test various get methods.
       
   756 //!				Uses API elements: Load(), DataStride(), Handle(), IsLargeBitmap(),
       
   757 //!				IsMonochrome(), SizeInPixels()
       
   758 //! @SYMTestActions		1. Load bitmap file.
       
   759 //!				2. Get length in bytes between scanlines in memory.
       
   760 //!				3. Get handle number of the bitmap.
       
   761 //!				4. Get whether bitmap is large and check it to be as expected.
       
   762 //!				5. Get whether bitmap is monochrome and check it to be as expected.
       
   763 //!				6. Get pixel-size of bitmap.
       
   764 //!				7-12. Repeat 1-6 for another file.
       
   765 //! @SYMTestStatus		Implemented
       
   766 //! @SYMTestPriority		Critical
       
   767 //! @SYMTestExpectedResults	Get methods work correctly without causing panic for images loaded.
       
   768 //! @SYMTestType		CIT
       
   769 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   770 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   771 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   772 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap2
       
   773 		COMMAND		RFbsSession1	Connect
       
   774 		COMMAND		CFbsBitmap1	new
       
   775 		COMMAND		CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command4Load
       
   776 		COMMAND		CFbsBitmap1	DataStride
       
   777 		COMMAND		CFbsBitmap1	Handle
       
   778 		COMMAND		CFbsBitmap1	IsLargeBitmap	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command7IsLargeBitmap
       
   779 		COMMAND		CFbsBitmap1	IsMonochrome	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command8IsMonochrome
       
   780 		COMMAND		CFbsBitmap1	SizeInPixels	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command9SizeInPixels
       
   781 		COMMAND		CFbsBitmap1	new
       
   782 		COMMAND		CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command12Load
       
   783 		COMMAND		CFbsBitmap1	DataStride
       
   784 		COMMAND		CFbsBitmap1	Handle
       
   785 		COMMAND		CFbsBitmap1	IsLargeBitmap	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command15IsLargeBitmap
       
   786 		COMMAND		CFbsBitmap1	IsMonochrome	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command16IsMonochrome
       
   787 		COMMAND		CFbsBitmap1	SizeInPixels	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command17SizeInPixels
       
   788 		COMMAND		CFbsBitmap1	~
       
   789 		COMMAND		CFbsBitmap2	~
       
   790 		COMMAND		RFbsSession1	Disconnect
       
   791 	END_TEST_BLOCK
       
   792 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025
       
   793 
       
   794 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026
       
   795 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026
       
   796 //! @SYMAPI			CFbsBitmap
       
   797 //! @SYMAuthor			James Mechen
       
   798 //! @SYMCreationDate		23/03/2006
       
   799 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   800 //! @SYMTestCaseDesc		Load bitmap and get RGB value of various pixels.
       
   801 //!				Uses API elements: Load(), GetPixel()
       
   802 //! @SYMTestActions		1. Load bitmap.
       
   803 //!				2-6. Get RGB value of various pixels and check them to be as expected.
       
   804 //! @SYMTestStatus		Implemented
       
   805 //! @SYMTestPriority		Critical
       
   806 //! @SYMTestExpectedResults	RGB values of pixels are returned without causing panic.
       
   807 //! @SYMTestType		CIT
       
   808 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   809 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   810 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   811 		COMMAND		RFbsSession1	Connect
       
   812 		COMMAND		CFbsBitmap1	new
       
   813 		COMMAND		CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command4Load
       
   814 		COMMAND		CFbsBitmap1	GetPixel	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command5GetPixel
       
   815 		COMMAND		CFbsBitmap1	GetPixel	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command6GetPixel
       
   816 		COMMAND		CFbsBitmap1	GetPixel	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command7GetPixel
       
   817 		COMMAND		CFbsBitmap1	GetPixel	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command8GetPixel
       
   818 		COMMAND		CFbsBitmap1	GetPixel	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command9GetPixel
       
   819 		COMMAND		CFbsBitmap1	~
       
   820 		COMMAND		RFbsSession1	Disconnect
       
   821 	END_TEST_BLOCK
       
   822 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026
       
   823 
       
   824 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027
       
   825 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027
       
   826 //! @SYMAPI			CFbsBitmap
       
   827 //! @SYMAuthor			James Mechen
       
   828 //! @SYMCreationDate		23/03/2006
       
   829 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   830 //! @SYMTestCaseDesc		IsFileInRom() (both IsFileInRom(const TDesC \&aFilename, TUint32 *\&aWord) and IsFileInRom(RFile \&aFile, TUint32 *\&aWord) versions),
       
   831 //!				SetRomBitmapL(), IsRomBitmap() test. Load bitmap into ROM and test ROM methods.
       
   832 //!				Uses API elements: Load(), IsFileInRom(), SetRomBitmapL(), IsRomBitmap()
       
   833 //! @SYMTestActions		1. Load bitmap from C drive, without using RFile.
       
   834 //!				2. Get if the file is in ROM (expect return value FALSE), without using RFile.
       
   835 //!				3. Load another bitmap from ROM, without using RFile.
       
   836 //!				4. Get if the file is in ROM (expect return value TRUE), using RFile.
       
   837 //!				5. Reset the first bitmap.
       
   838 //!				6. Set the first bitmap to use the bitmap image stored in ROM.
       
   839 //!				7. Get if bitmap is in ROM.
       
   840 //!				8-14. Repeat 1-6 using RFile.
       
   841 //! @SYMTestStatus		Implemented
       
   842 //! @SYMTestPriority		Critical
       
   843 //! @SYMTestExpectedResults	ROM methods work correctly without causing panic.
       
   844 //! @SYMTestType		CIT
       
   845 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   846 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   847 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   848 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap2
       
   849 		COMMAND		RFbsSession1	Connect
       
   850 		COMMAND		CFbsBitmap1	new
       
   851 		COMMAND		CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command4Load
       
   852 		COMMAND		CFbsBitmap1	IsFileInRom	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command5IsFileInRom
       
   853 		COMMAND		CFbsBitmap2	new
       
   854 		COMMAND		CFbsBitmap2	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command8Load
       
   855 		COMMAND		CFbsBitmap2	IsFileInRom	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command9IsFileInRom
       
   856 		COMMAND		CFbsBitmap2	IsRomBitmap	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command10IsRomBitmap
       
   857 		COMMAND		CFbsBitmap1	Reset
       
   858 		COMMAND		CFbsBitmap1	SetRomBitmapL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command13SetRomBitmapL
       
   859 		COMMAND		CFbsBitmap1	IsRomBitmap	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command14IsRomBitmap
       
   860 		COMMAND		CFbsBitmap1	~
       
   861 		COMMAND		CFbsBitmap2	~
       
   862 		COMMAND		RFbsSession1	Disconnect
       
   863 	END_TEST_BLOCK
       
   864 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027
       
   865 
       
   866 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028
       
   867 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028
       
   868 //! @SYMAPI			CFbsBitmap
       
   869 //! @SYMAuthor			James Mechen
       
   870 //! @SYMCreationDate		23/03/2006
       
   871 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   872 //! @SYMTestCaseDesc		Get scanline length for all legal display modes.
       
   873 //!				Uses API elements: ScanLineLength()
       
   874 //! @SYMTestActions		1-11. Get scanline lengths for all display modes (except ENone, ERgb, EColorLast) and various lengths and check them to be as expected.
       
   875 //! @SYMTestStatus		Implemented
       
   876 //! @SYMTestPriority		Critical
       
   877 //! @SYMTestExpectedResults	Scanline lengths are correctly returned without causing panic.
       
   878 //! @SYMTestType		CIT
       
   879 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   880 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   881 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   882 		COMMAND		RFbsSession1	Connect
       
   883 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command3ScanLineLength
       
   884 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command4ScanLineLength
       
   885 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command5ScanLineLength
       
   886 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command6ScanLineLength
       
   887 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command7ScanLineLength
       
   888 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command8ScanLineLength
       
   889 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command9ScanLineLength
       
   890 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command10ScanLineLength
       
   891 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command11ScanLineLength
       
   892 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command12ScanLineLength
       
   893 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command13ScanLineLength
       
   894 		COMMAND		CFbsBitmap1	~
       
   895 		COMMAND		RFbsSession1	Disconnect
       
   896 	END_TEST_BLOCK
       
   897 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028
       
   898 
       
   899 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029
       
   900 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029
       
   901 //! @SYMAPI			CFbsBitmap
       
   902 //! @SYMAuthor			James Mechen
       
   903 //! @SYMCreationDate		23/03/2006
       
   904 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   905 //! @SYMTestCaseDesc		Load bitmap and resize several times.
       
   906 //!				Uses API elements: Load(), Resize(), SwapWidthAndHeight(), SizeInPixels()
       
   907 //! @SYMTestActions		1. Load bitmap.
       
   908 //!				2. Resize bitmap to larger than original size.
       
   909 //!				3. Get size of bitmap.
       
   910 //!				4. Resize bitmap back to original size.
       
   911 //!				5. Get size of bitmap.
       
   912 //!				6. Resize bitmap to small than original size.
       
   913 //!				7. Get size of bitmap.
       
   914 //!				8. Swap width and height of bitmap.
       
   915 //!				9. Get size of bitmap.
       
   916 //! @SYMTestStatus		Implemented
       
   917 //! @SYMTestPriority		Critical
       
   918 //! @SYMTestExpectedResults	Bitmap is resized correctly without causing panic.
       
   919 //! @SYMTestType		CIT
       
   920 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   921 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   922 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   923 		COMMAND		RFbsSession1	Connect
       
   924 		COMMAND		CFbsBitmap1	new
       
   925 		COMMAND		CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command4Load
       
   926 		COMMAND		CFbsBitmap1	SizeInPixels		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command5SizeInPixels
       
   927 		COMMAND		CFbsBitmap1	Resize			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command6Resize
       
   928 		COMMAND		CFbsBitmap1	SizeInPixels		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command7SizeInPixels
       
   929 		COMMAND		CFbsBitmap1	Resize			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command8Resize
       
   930 		COMMAND		CFbsBitmap1	SizeInPixels		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command9SizeInPixels
       
   931 		COMMAND		CFbsBitmap1	Resize			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command10Resize
       
   932 		COMMAND		CFbsBitmap1	SizeInPixels		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command11SizeInPixels
       
   933 		COMMAND		CFbsBitmap1	SwapWidthAndHeight
       
   934 		COMMAND		CFbsBitmap1	SizeInPixels		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command13SizeInPixels
       
   935 		COMMAND		CFbsBitmap1	~
       
   936 		COMMAND		RFbsSession1	Disconnect
       
   937 	END_TEST_BLOCK
       
   938 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029
       
   939 
       
   940 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030
       
   941 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030
       
   942 //! @SYMAPI			CFbsBitmap
       
   943 //! @SYMAuthor			James Mechen
       
   944 //! @SYMCreationDate		23/03/2006
       
   945 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   946 //! @SYMTestCaseDesc		Load bitmap and convert horiz/vert dimensions on graphics device between pixels and twips.
       
   947 //!				Uses API elements: Load(), HorizontalPixelsToTwips(), HorizontalTwipsToPixels(),
       
   948 //!				VerticalPixelsToTwips(), VerticalTwipsToPixels()
       
   949 //! @SYMTestActions		1. Load bitmap.
       
   950 //!				2. Convert horiz dimensions on graphics device from pixels to twips and check it to be as expected.
       
   951 //!				3. Convert horiz dimensions on graphics device back to pixels from twips and check it to be as expected.
       
   952 //!				4. Convert vert dimensions on graphics device from pixels to twips and check it to be as expected.
       
   953 //!				5. Convert vert dimensions on graphics device back to pixels from twips and check it to be as expected.
       
   954 //! @SYMTestStatus		Implemented
       
   955 //! @SYMTestPriority		Critical
       
   956 //! @SYMTestExpectedResults	Conversions are done correctly without causing panic.
       
   957 //! @SYMTestType		CIT
       
   958 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   959 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
   960 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
   961 		COMMAND		RFbsSession1	Connect
       
   962 		COMMAND		CFbsBitmap1	new
       
   963 		COMMAND		CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command4Load
       
   964 		COMMAND		CFbsBitmap1	HorizontalPixelsToTwips	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command5HorizontalPixelsToTwips
       
   965 		COMMAND		CFbsBitmap1	HorizontalTwipsToPixels	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command6HorizontalTwipsToPixels
       
   966 		COMMAND		CFbsBitmap1	VerticalPixelsToTwips	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command7VerticalPixelsToTwips
       
   967 		COMMAND		CFbsBitmap1	VerticalTwipsToPixels	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command8VerticalTwipsToPixels
       
   968 		COMMAND		CFbsBitmap1	~
       
   969 		COMMAND		RFbsSession1	Disconnect
       
   970 	END_TEST_BLOCK
       
   971 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030
       
   972 
       
   973 ///////////////////////////////////////////////////////////////////////////////////
       
   974 // NEGATIVE TESTS
       
   975 ///////////////////////////////////////////////////////////////////////////////////
       
   976 
       
   977 
       
   978 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0032
       
   979 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0032
       
   980 //! @SYMAPI			CFbsBitmap
       
   981 //! @SYMAuthor			James Mechen
       
   982 //! @SYMCreationDate		30/03/2006
       
   983 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
   984 //! @SYMTestCaseDesc		Load bitmap and set it to invalid display mode.
       
   985 //!				Uses API elements: SetDisplayMode()
       
   986 //! @SYMTestActions		1. Create bitmap.
       
   987 //!				2. Set invalid display mode.
       
   988 //! @SYMTestStatus		Implemented
       
   989 //! @SYMTestPriority		High
       
   990 //! @SYMTestExpectedResults	KErrArgument is returned.
       
   991 //! @SYMTestType		CIT
       
   992 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
   993 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
   994 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
   995 		COMMAND			RFbsSession1	Connect
       
   996 		COMMAND			CFbsBitmap1	new
       
   997 		COMMAND			CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0032-001command4Create
       
   998 		COMMAND	!Error=-6	CFbsBitmap1	SetDisplayMode	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0032-001command5SetDisplayMode
       
   999 		COMMAND			CFbsBitmap1	~
       
  1000 		COMMAND			RFbsSession1	Disconnect
       
  1001 	END_TEST_BLOCK
       
  1002 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0032
       
  1003 
       
  1004 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0033
       
  1005 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0033
       
  1006 //! @SYMAPI			CFbsBitmap
       
  1007 //! @SYMAuthor			James Mechen
       
  1008 //! @SYMCreationDate		30/03/2006
       
  1009 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1010 //! @SYMTestCaseDesc		Set a bitmap to use the bitmap image stored in ROM, giving a bad pointer value.
       
  1011 //!				Uses API elements: SetRomBitmapL()
       
  1012 //! @SYMTestActions		1. Set a bitmap to use the bitmap image stored in ROM.
       
  1013 //! @SYMTestStatus		Implemented
       
  1014 //! @SYMTestPriority		High
       
  1015 //! @SYMTestExpectedResults	KErrUnknown is returned.
       
  1016 //! @SYMTestType		CIT
       
  1017 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1018 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1019 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1020 		COMMAND			RFbsSession1	Connect
       
  1021 		COMMAND			CFbsBitmap1	new
       
  1022 		COMMAND	!Error=-19	CFbsBitmap1	SetRomBitmapL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0033-001command4SetRomBitmapL
       
  1023 		COMMAND			CFbsBitmap1	~
       
  1024 		COMMAND			RFbsSession1	Disconnect
       
  1025 	END_TEST_BLOCK
       
  1026 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0033
       
  1027 
       
  1028 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0034
       
  1029 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0034
       
  1030 //! @SYMAPI			CFbsBitmap
       
  1031 //! @SYMAuthor			James Mechen
       
  1032 //! @SYMCreationDate		30/03/2006
       
  1033 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1034 //! @SYMTestCaseDesc		Create bitmap with negative width.
       
  1035 //!				Uses API elements: Create()
       
  1036 //! @SYMTestActions		1. Create bitmap with negative width.
       
  1037 //! @SYMTestStatus		Implemented
       
  1038 //! @SYMTestPriority		High
       
  1039 //! @SYMTestExpectedResults	KErrArgument is returned.
       
  1040 //! @SYMTestType		CIT
       
  1041 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1042 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1043 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1044 		COMMAND			RFbsSession1	Connect
       
  1045 		COMMAND			CFbsBitmap1	new
       
  1046 		COMMAND	!Error=-6	CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0034-001command4Create
       
  1047 		COMMAND			CFbsBitmap1	~
       
  1048 		COMMAND			RFbsSession1	Disconnect
       
  1049 	END_TEST_BLOCK
       
  1050 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0034
       
  1051 
       
  1052 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0035
       
  1053 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0035
       
  1054 //! @SYMAPI			CFbsBitmap
       
  1055 //! @SYMAuthor			James Mechen
       
  1056 //! @SYMCreationDate		22/03/2006
       
  1057 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1058 //! @SYMTestCaseDesc		Create bitmap with display mode ENone.
       
  1059 //!				Uses API elements: Create()
       
  1060 //! @SYMTestActions		1. Create bitmap with display modes ENone.
       
  1061 //! @SYMTestStatus		Implemented
       
  1062 //! @SYMTestPriority		High
       
  1063 //! @SYMTestExpectedResults	Create() call must return error KErrArgument (-6).
       
  1064 //! @SYMTestType		CIT
       
  1065 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1066 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1067 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1068 		COMMAND			RFbsSession1	Connect
       
  1069 		COMMAND			CFbsBitmap1	new
       
  1070 		COMMAND	!Error=-6	CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0035-001command4Create
       
  1071 		COMMAND			CFbsBitmap1	~
       
  1072 		COMMAND			RFbsSession1	Disconnect
       
  1073 	END_TEST_BLOCK
       
  1074 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0035
       
  1075 
       
  1076 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0036
       
  1077 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0036
       
  1078 //! @SYMAPI			CFbsBitmap
       
  1079 //! @SYMAuthor			James Mechen
       
  1080 //! @SYMCreationDate		22/03/2006
       
  1081 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1082 //! @SYMTestCaseDesc		Create bitmap with display mode ERgb.
       
  1083 //!				Uses API elements: Create()
       
  1084 //! @SYMTestActions		1. Create bitmap with display modes ERgb.
       
  1085 //! @SYMTestStatus		Implemented
       
  1086 //! @SYMTestPriority		High
       
  1087 //! @SYMTestExpectedResults	Create() call must return error KErrArgument (-6).
       
  1088 //! @SYMTestType		CIT
       
  1089 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1090 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1091 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1092 		COMMAND			RFbsSession1	Connect
       
  1093 		COMMAND			CFbsBitmap1	new
       
  1094 		COMMAND	!Error=-6	CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0036-001command4Create
       
  1095 		COMMAND			CFbsBitmap1	~
       
  1096 		COMMAND			RFbsSession1	Disconnect
       
  1097 	END_TEST_BLOCK
       
  1098 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0036
       
  1099 
       
  1100 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0037
       
  1101 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0037
       
  1102 //! @SYMAPI			CFbsBitmap
       
  1103 //! @SYMAuthor			James Mechen
       
  1104 //! @SYMCreationDate		30/03/2006
       
  1105 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1106 //! @SYMTestCaseDesc		Duplicate it with invalid handle.
       
  1107 //!				Uses API elements: Load(), Duplicate()
       
  1108 //! @SYMTestActions		1. Duplicate bitmap with invalid handle.
       
  1109 //! @SYMTestStatus		Implemented
       
  1110 //! @SYMTestPriority		High
       
  1111 //! @SYMTestExpectedResults	KErrUnknown is returned.
       
  1112 //! @SYMTestType		CIT
       
  1113 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1114 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1115 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1116 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap2
       
  1117 		COMMAND			RFbsSession1	Connect
       
  1118 		COMMAND			CFbsBitmap1	new
       
  1119 		COMMAND			CFbsBitmap2	new
       
  1120 		COMMAND	!Error=-19	CFbsBitmap2	Duplicate	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0037-001command6Duplicate
       
  1121 		COMMAND			CFbsBitmap1	~
       
  1122 		COMMAND			CFbsBitmap2	~
       
  1123 		COMMAND			RFbsSession1	Disconnect
       
  1124 	END_TEST_BLOCK
       
  1125 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0037
       
  1126 
       
  1127 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0038
       
  1128 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0038
       
  1129 //! @SYMAPI			CFbsBitmap
       
  1130 //! @SYMAuthor			Anton Golovko
       
  1131 //! @SYMCreationDate		19/05/2006
       
  1132 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1133 //! @SYMTestCaseDesc		CFbsBitmap::Header() test.
       
  1134 //!				Uses API elements: Create(), Header()
       
  1135 //! @SYMTestActions		1. Create bitmap.
       
  1136 //!				2. Call Header() method.
       
  1137 //! @SYMTestStatus		Implemented
       
  1138 //! @SYMTestPriority		Critical
       
  1139 //! @SYMTestExpectedResults	The function Header() call doesn't cause panic.
       
  1140 //! @SYMTestType		CIT
       
  1141 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1142 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1143 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1144 		COMMAND		RFbsSession1	Connect
       
  1145 		COMMAND		CFbsBitmap1	new
       
  1146 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0038-001command4Create
       
  1147 		COMMAND		CFbsBitmap1	Header
       
  1148 		COMMAND		CFbsBitmap1	~
       
  1149 		COMMAND		RFbsSession1	Disconnect
       
  1150 	END_TEST_BLOCK
       
  1151 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0038
       
  1152 
       
  1153 
       
  1154 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0039
       
  1155 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0039
       
  1156 //! @SYMAPI			CFbsBitmap
       
  1157 //! @SYMAuthor			Anton Golovko
       
  1158 //! @SYMCreationDate		19/05/2006
       
  1159 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1160 //! @SYMTestCaseDesc		Test of not supported (by the documentation of Symbian platform 9.3) CFbsBitmap::PaletteAttributes().
       
  1161 //!				Uses API elements: PaletteAttributes()
       
  1162 //! @SYMTestActions		1. Create bitmap.
       
  1163 //!				2. Call PaletteAttributes() method.
       
  1164 //! @SYMTestStatus		Implemented
       
  1165 //! @SYMTestPriority		Critical
       
  1166 //! @SYMTestExpectedResults	PaletteAttributes() call must raise panic
       
  1167 //! @SYMTestType		CIT
       
  1168 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1169 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1170 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1171 		COMMAND		RFbsSession1	Connect
       
  1172 		COMMAND		CFbsBitmap1	new
       
  1173 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0039-001command4Create
       
  1174 		COMMAND		CFbsBitmap1	PaletteAttributes
       
  1175 		COMMAND		CFbsBitmap1	~
       
  1176 		COMMAND		RFbsSession1	Disconnect
       
  1177 	END_TEST_BLOCK
       
  1178 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0039
       
  1179 
       
  1180 
       
  1181 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040
       
  1182 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040
       
  1183 //! @SYMAPI			CFbsBitmap
       
  1184 //! @SYMAuthor			Anton Golovko
       
  1185 //! @SYMCreationDate		19/05/2006
       
  1186 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1187 //! @SYMTestCaseDesc		Test of not supported (by the documentation of Symbian platform 9.3) CFbsBitmap::SetPalette().
       
  1188 //!				Uses API elements: SetPalette()
       
  1189 //! @SYMTestActions		1. Create bitmap.
       
  1190 //!				2. Call SetPalette() for different defualt palettes (all display modes)
       
  1191 //!				3. Call SetPalette() for different custom palettes having  different number of colors
       
  1192 //! @SYMTestStatus		Implemented
       
  1193 //! @SYMTestPriority		Critical
       
  1194 //! @SYMTestExpectedResults	The function SetPalette() call doesn't cause panic.
       
  1195 //! @SYMTestType		CIT
       
  1196 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1197 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1198 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1199 		CREATE_OBJECT	CPalette	CPalette1
       
  1200 		COMMAND		RFbsSession1	Connect
       
  1201 		COMMAND		CFbsBitmap1	new
       
  1202 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command4Create
       
  1203 		COMMAND		CPalette1	NewDefaultL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command6NewDefaultL
       
  1204 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command8SetPalette
       
  1205 		COMMAND		CPalette1	NewDefaultL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command10NewDefaultL
       
  1206 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command12SetPalette
       
  1207 		COMMAND		CPalette1	NewDefaultL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command14NewDefaultL
       
  1208 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command16SetPalette
       
  1209 		COMMAND		CPalette1	NewDefaultL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command18NewDefaultL
       
  1210 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command20SetPalette
       
  1211 		COMMAND		CPalette1	NewDefaultL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command22NewDefaultL
       
  1212 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command24SetPalette
       
  1213 		COMMAND		CPalette1	NewDefaultL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command26NewDefaultL
       
  1214 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command28SetPalette
       
  1215 		COMMAND		CPalette1	NewL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command30NewL
       
  1216 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command32SetPalette
       
  1217 		COMMAND		CPalette1	NewL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command34NewL
       
  1218 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command36SetPalette
       
  1219 		COMMAND		CPalette1	NewL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command38NewL
       
  1220 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command40SetPalette
       
  1221 		COMMAND		CPalette1	NewL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command42NewL
       
  1222 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command44SetPalette
       
  1223 		COMMAND		CPalette1	NewL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command46NewL
       
  1224 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command48SetPalette
       
  1225 		COMMAND		CPalette1	NewL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command50NewL
       
  1226 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command52SetPalette
       
  1227 		COMMAND		CPalette1	NewL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command54NewL
       
  1228 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command56SetPalette
       
  1229 		COMMAND		CFbsBitmap1	~
       
  1230 		COMMAND		RFbsSession1	Disconnect
       
  1231 		COMMAND		CPalette1	~
       
  1232 	END_TEST_BLOCK
       
  1233 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040
       
  1234 
       
  1235 
       
  1236 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0041
       
  1237 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0041
       
  1238 //! @SYMAPI			CFbsBitmap
       
  1239 //! @SYMAuthor			Anton Golovko
       
  1240 //! @SYMCreationDate		19/05/2006
       
  1241 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1242 //! @SYMTestCaseDesc		Test of not supported (by the documentation of Symbian platform 9.3) CFbsBitmap::SetPalette().
       
  1243 //!				Uses API elements: SetPalette()
       
  1244 //! @SYMTestActions		1. Create bitmap.
       
  1245 //!				2. Call SetPalette() passing NULL pointer
       
  1246 //! @SYMTestStatus		Implemented
       
  1247 //! @SYMTestPriority		Critical
       
  1248 //! @SYMTestExpectedResults	The function SetPalette() call doesn't cause panic.
       
  1249 //! @SYMTestType		CIT
       
  1250 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1251 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1252 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1253 		CREATE_OBJECT	CPalette	CPalette1
       
  1254 		COMMAND		RFbsSession1	Connect
       
  1255 		COMMAND		CFbsBitmap1	new
       
  1256 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0041-001command4Create
       
  1257 		COMMAND		CFbsBitmap1	SetPalette	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0041-001command5SetPalette
       
  1258 		COMMAND		CFbsBitmap1	~
       
  1259 		COMMAND		RFbsSession1	Disconnect
       
  1260 	END_TEST_BLOCK
       
  1261 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0041
       
  1262 
       
  1263 
       
  1264 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0042
       
  1265 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0042
       
  1266 //! @SYMAPI			CFbsBitmap
       
  1267 //! @SYMAuthor			Anton Golovko
       
  1268 //! @SYMCreationDate		19/05/2006
       
  1269 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1270 //! @SYMTestCaseDesc		Test of not supported (by the documentation of Symbian platform 9.3) CFbsBitmap::GetPalette().
       
  1271 //!				Uses API elements: GetPalette()
       
  1272 //! @SYMTestActions		1. Create bitmap.
       
  1273 //!				2. Call GetPalette() method.
       
  1274 //! @SYMTestStatus		Implemented
       
  1275 //! @SYMTestPriority		Critical
       
  1276 //! @SYMTestExpectedResults	GetPalette() call must return KErrNotSupported (-5).
       
  1277 //! @SYMTestType		CIT
       
  1278 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1279 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1280 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1281 		COMMAND			RFbsSession1	Connect
       
  1282 		COMMAND			CFbsBitmap1	new
       
  1283 		COMMAND			CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0042-001command4Create
       
  1284 		COMMAND	!Error=-5	CFbsBitmap1	GetPalette
       
  1285 		COMMAND			CFbsBitmap1	~
       
  1286 		COMMAND			RFbsSession1	Disconnect
       
  1287 	END_TEST_BLOCK
       
  1288 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0042
       
  1289 
       
  1290 
       
  1291 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043
       
  1292 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043
       
  1293 //! @SYMAPI			CFbsBitmap
       
  1294 //! @SYMAuthor			Louis Henry Nayegon
       
  1295 //! @SYMCreationDate		14/07/2006
       
  1296 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1297 //! @SYMTestCaseDesc		CFbsBitmap::CompressInBackground() test (CompressInBackground(TBitmapfileCompressionScheme \&aScheme) version). Load then compress a bitmap in background, without providing a Request Status.
       
  1298 //!				Uses API elements: Load(), CompressInBackground(), IsCompressedInRAM()
       
  1299 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
  1300 //!				2. Compress bitmap in background.
       
  1301 //!				3. Wait 1 second
       
  1302 //!				3. Check bitmap is compressed in RAM.
       
  1303 //! @SYMTestStatus		Implemented
       
  1304 //! @SYMTestPriority		Critical
       
  1305 //! @SYMTestExpectedResults	Bitmap is not compressed in background as this is not supported
       
  1306 //! @SYMTestType		CIT
       
  1307 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1308 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1309 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1310 		COMMAND		RFbsSession1	Connect
       
  1311 		COMMAND		RFbsSession1	GetSession
       
  1312 		COMMAND		CFbsBitmap1	new
       
  1313 		COMMAND		CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043-001command5Load
       
  1314 		COMMAND		CFbsBitmap1	CompressInBackground	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043-001command6CompressInBackground
       
  1315 		COMMAND		RFbsSession1	SendCommand		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043-001command8SendCommand
       
  1316 		ASYNC_DELAY	1000
       
  1317 		COMMAND		CFbsBitmap1	IsCompressedInRAM	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043-001command10IsCompressedInRAM
       
  1318 		OUTSTANDING
       
  1319 		COMMAND		CFbsBitmap1	~
       
  1320 		COMMAND		RFbsSession1	Disconnect
       
  1321 	END_TEST_BLOCK
       
  1322 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043
       
  1323 
       
  1324 
       
  1325 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044
       
  1326 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044
       
  1327 //! @SYMAPI			CFbsBitmap
       
  1328 //! @SYMAuthor			Louis Henry Nayegon
       
  1329 //! @SYMCreationDate		14/07/2006
       
  1330 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1331 //! @SYMTestCaseDesc		CFbsBitmap::CompressInBackground() test (CompressInBackground(TRequestStatus \&aRequestStatus, TBitmapfileCompressionScheme \&aScheme) version). Load then compress a bitmap in background, providing a Request Status.
       
  1332 //!				Uses API elements: Load(), CompressInBackground(), IsCompressedInRAM()
       
  1333 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
  1334 //!				2. Compress bitmap in background.
       
  1335 //!				3. Check bitmap is compressed in RAM.
       
  1336 //! @SYMTestStatus		Implemented
       
  1337 //! @SYMTestPriority		Critical
       
  1338 //! @SYMTestExpectedResults	Bitmap is not compressed in background as this is not supported
       
  1339 //! @SYMTestType		CIT
       
  1340 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1341 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1342 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1343 		COMMAND			RFbsSession1	Connect
       
  1344 		COMMAND			RFbsSession1	GetSession
       
  1345 		COMMAND			CFbsBitmap1	new
       
  1346 		COMMAND			CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044-001command5Load
       
  1347 		COMMAND	!AsyncError=-5	CFbsBitmap1	CompressInBackground	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044-001command7CompressInBackground
       
  1348 		COMMAND			RFbsSession1	SendCommand		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044-001command9SendCommand
       
  1349 		OUTSTANDING
       
  1350 		COMMAND			CFbsBitmap1	IsCompressedInRAM	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044-001command12IsCompressedInRAM
       
  1351 		COMMAND			CFbsBitmap1	~
       
  1352 		COMMAND			RFbsSession1	Disconnect
       
  1353 	END_TEST_BLOCK
       
  1354 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044
       
  1355 
       
  1356 
       
  1357 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045
       
  1358 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045
       
  1359 //! @SYMAPI			CFbsBitmap
       
  1360 //! @SYMAuthor			Louis Henry Nayegon
       
  1361 //! @SYMCreationDate		14/07/2006
       
  1362 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1363 //! @SYMTestCaseDesc		Load then compress a bitmap file.
       
  1364 //!				Uses API elements: Load(), Compress(TBitmapfileCompressionScheme \&aScheme), IsCompressedInRAM()
       
  1365 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
  1366 //!				2. Compress bitmap.
       
  1367 //!				3. Check bitmap is compressed in RAM.
       
  1368 //! @SYMTestStatus		Implemented
       
  1369 //! @SYMTestPriority		Critical
       
  1370 //! @SYMTestExpectedResults	Bitmap is compressed with no errors.
       
  1371 //! @SYMTestType		CIT
       
  1372 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1373 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1374 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1375 		COMMAND			RFbsSession1	Connect
       
  1376 		COMMAND			CFbsBitmap1	new
       
  1377 		COMMAND			CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045-001command4Load
       
  1378 		COMMAND	!Error=-5	CFbsBitmap1	Compress		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045-001command5Compress
       
  1379 		COMMAND			CFbsBitmap1	IsCompressedInRAM	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045-001command6IsCompressedInRAM
       
  1380 		COMMAND			CFbsBitmap1	~
       
  1381 		COMMAND			RFbsSession1	Disconnect
       
  1382 	END_TEST_BLOCK
       
  1383 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045
       
  1384 
       
  1385 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0048
       
  1386 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0048
       
  1387 //! @SYMAPI			CFbsBitmap
       
  1388 //! @SYMAuthor			Anton Golovko
       
  1389 //! @SYMCreationDate		05/06/2006
       
  1390 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1391 //! @SYMTestCaseDesc		Calls Reset() on bitmap that wasn't neither created nor loaded.
       
  1392 //!				Uses API elements: Load(), Reset()
       
  1393 //! @SYMTestActions		1. Construct a bitmap instance using new operator.
       
  1394 //!				2. Call Reset() method.
       
  1395 //! @SYMTestStatus		Implemented
       
  1396 //! @SYMTestPriority		Critical
       
  1397 //! @SYMTestExpectedResults	The function Reset() call doesn't cause panic.
       
  1398 //! @SYMTestType		CIT
       
  1399 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1400 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1401 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1402 		COMMAND		RFbsSession1	Connect
       
  1403 		COMMAND		CFbsBitmap1	new
       
  1404 		COMMAND		CFbsBitmap1	Reset
       
  1405 		COMMAND		CFbsBitmap1	~
       
  1406 		COMMAND		RFbsSession1	Disconnect
       
  1407 	END_TEST_BLOCK
       
  1408 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0048
       
  1409 
       
  1410 
       
  1411 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0049
       
  1412 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0049
       
  1413 //! @SYMAPI			CFbsBitmap
       
  1414 //! @SYMAuthor			Anton Golovko
       
  1415 //! @SYMCreationDate		05/06/2006
       
  1416 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1417 //! @SYMTestCaseDesc		ScanLineLength() with negative length test
       
  1418 //!				Uses API elements: ScanLineLength()
       
  1419 //! @SYMTestActions		1. Call ScanLineLength() with length -1 and check it to be as expected.
       
  1420 //! @SYMTestStatus		Implemented
       
  1421 //! @SYMTestPriority		Critical
       
  1422 //! @SYMTestExpectedResults	The function ScanLineLength() call doesn't cause panic.
       
  1423 //! @SYMTestType		CIT
       
  1424 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1425 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1426 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1427 		COMMAND		RFbsSession1	Connect
       
  1428 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0049-001command3ScanLineLength
       
  1429 		COMMAND		CFbsBitmap1	~
       
  1430 		COMMAND		RFbsSession1	Disconnect
       
  1431 	END_TEST_BLOCK
       
  1432 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0049
       
  1433 
       
  1434 
       
  1435 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0050
       
  1436 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0050
       
  1437 //! @SYMAPI			CFbsBitmap
       
  1438 //! @SYMAuthor			Anton Golovko
       
  1439 //! @SYMCreationDate		05/06/2006
       
  1440 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1441 //! @SYMTestCaseDesc		ScanLineLength() with not allowed display mode ENone test
       
  1442 //!				Uses API elements: ScanLineLength()
       
  1443 //! @SYMTestActions		1. Call ScanLineLength() with display mode ENone and check it to be as expected.
       
  1444 //! @SYMTestStatus		Implemented
       
  1445 //! @SYMTestPriority		Critical
       
  1446 //! @SYMTestExpectedResults	The function ScanLineLength() call doesn't cause panic.
       
  1447 //! @SYMTestType		CIT
       
  1448 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1449 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1450 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1451 		COMMAND		RFbsSession1	Connect
       
  1452 		COMMAND		CFbsBitmap1	ScanLineLength	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0050-001command3ScanLineLength
       
  1453 		COMMAND		CFbsBitmap1	~
       
  1454 		COMMAND		RFbsSession1	Disconnect
       
  1455 	END_TEST_BLOCK
       
  1456 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0050
       
  1457 
       
  1458 
       
  1459 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0051
       
  1460 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0051
       
  1461 //! @SYMAPI			CFbsBitmap
       
  1462 //! @SYMAuthor			Anton Golovko
       
  1463 //! @SYMCreationDate		05/06/2006
       
  1464 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1465 //! @SYMTestCaseDesc		Call ScanLineLength() with not allowed display mode ERgb test
       
  1466 //!				Uses API elements: ScanLineLength()
       
  1467 //! @SYMTestActions		1. Call ScanLineLength() with display mode ERgb and check it to be as expected.
       
  1468 //! @SYMTestStatus		Implemented
       
  1469 //! @SYMTestPriority		Critical
       
  1470 //! @SYMTestExpectedResults	The function ScanLineLength() call doesn't cause panic.
       
  1471 //! @SYMTestType		CIT
       
  1472 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1473 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1474 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1475 		COMMAND		RFbsSession1	Connect
       
  1476 		COMMAND		CFbsBitmap1	ScanLineLength		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0051-001command3ScanLineLength
       
  1477 		COMMAND		CFbsBitmap1	~
       
  1478 		COMMAND		RFbsSession1	Disconnect
       
  1479 	END_TEST_BLOCK
       
  1480 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0051
       
  1481 
       
  1482 
       
  1483 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0052
       
  1484 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0052
       
  1485 //! @SYMAPI			CFbsBitmap
       
  1486 //! @SYMAuthor			Anton Golovko
       
  1487 //! @SYMCreationDate		05/06/2006
       
  1488 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1489 //! @SYMTestCaseDesc		Call ScanLineLength() with not allowed display mode EColorLast test
       
  1490 //!				Uses API elements: ScanLineLength()
       
  1491 //! @SYMTestActions		1. Call ScanLineLength() with display mode EColorLast and check it to be as expected.
       
  1492 //! @SYMTestStatus		Implemented
       
  1493 //! @SYMTestPriority		Critical
       
  1494 //! @SYMTestExpectedResults	Operation must panic.
       
  1495 //! @SYMTestType		CIT
       
  1496 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1497 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1498 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1499 		COMMAND		RFbsSession1	Connect
       
  1500 		COMMAND		CFbsBitmap1	ScanLineLength		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0052-001command3ScanLineLength
       
  1501 	END_TEST_BLOCK	!PanicCode=10 !PanicString=FBSCLI
       
  1502     RUN_TEST_STEP	100	T_FBServAPI	utilityClearPanicDlg
       
  1503 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0052
       
  1504 
       
  1505 
       
  1506 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0053
       
  1507 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0053
       
  1508 //! @SYMAPI			CFbsBitmap
       
  1509 //! @SYMAuthor			Anton Golovko
       
  1510 //! @SYMCreationDate		05/06/2006
       
  1511 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1512 //! @SYMTestCaseDesc		Call ScanLineLength() with invalid display mode test
       
  1513 //!				Uses API elements: ScanLineLength()
       
  1514 //! @SYMTestActions		1. Call ScanLineLength() with display mode -1 and check it to be as expected.
       
  1515 //! @SYMTestStatus		Implemented
       
  1516 //! @SYMTestPriority		Critical
       
  1517 //! @SYMTestExpectedResults	Operation must panic.
       
  1518 //! @SYMTestType		CIT
       
  1519 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1520 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1521 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1522 		COMMAND		RFbsSession1	Connect
       
  1523 		COMMAND		CFbsBitmap1	ScanLineLength		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0053-001command3ScanLineLength
       
  1524 	END_TEST_BLOCK	!PanicCode=10 !PanicString=FBSCLI
       
  1525     RUN_TEST_STEP	100	T_FBServAPI	utilityClearPanicDlg
       
  1526 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0053
       
  1527 
       
  1528 
       
  1529 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0054
       
  1530 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0054
       
  1531 //! @SYMAPI			CFbsBitmap
       
  1532 //! @SYMAuthor			Anton Golovko
       
  1533 //! @SYMCreationDate		05/06/2006
       
  1534 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1535 //! @SYMTestCaseDesc		Create bitmap with display mode EColorLast.
       
  1536 //!				Uses API elements: Create()
       
  1537 //! @SYMTestActions		1. Create bitmap with display modes EColorLast.
       
  1538 //! @SYMTestStatus		Implemented
       
  1539 //! @SYMTestPriority		Critical
       
  1540 //! @SYMTestExpectedResults	Create() call must return error KErrArgument (-6).
       
  1541 //! @SYMTestType		CIT
       
  1542 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1543 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1544 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1545 		COMMAND			RFbsSession1	Connect
       
  1546 		COMMAND			CFbsBitmap1	new
       
  1547 		COMMAND	!Error=-6	CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0054-001command4Create
       
  1548 		COMMAND			CFbsBitmap1	~
       
  1549 		COMMAND			RFbsSession1	Disconnect
       
  1550 	END_TEST_BLOCK
       
  1551 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0054
       
  1552 
       
  1553 
       
  1554 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0055
       
  1555 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0055
       
  1556 //! @SYMAPI			CFbsBitmap
       
  1557 //! @SYMAuthor			Anton Golovko
       
  1558 //! @SYMCreationDate		05/06/2006
       
  1559 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1560 //! @SYMTestCaseDesc		Create bitmap with invalid display mode.
       
  1561 //!				Uses API elements: Create()
       
  1562 //! @SYMTestActions		1. Create bitmap with invalid display mode -1.
       
  1563 //! @SYMTestStatus		Implemented
       
  1564 //! @SYMTestPriority		Critical
       
  1565 //! @SYMTestExpectedResults	Create() call must return error KErrArgument (-6).
       
  1566 //! @SYMTestType		CIT
       
  1567 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1568 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1569 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1570 		COMMAND			RFbsSession1	Connect
       
  1571 		COMMAND			CFbsBitmap1	new
       
  1572 		COMMAND	!Error=-6	CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0055-001command4Create
       
  1573 		COMMAND			CFbsBitmap1	~
       
  1574 		COMMAND			RFbsSession1	Disconnect
       
  1575 	END_TEST_BLOCK
       
  1576 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0055
       
  1577 
       
  1578 
       
  1579 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0056
       
  1580 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0056
       
  1581 //! @SYMAPI			CFbsBitmap
       
  1582 //! @SYMAuthor			Anton Golovko
       
  1583 //! @SYMCreationDate		05/06/2006
       
  1584 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1585 //! @SYMTestCaseDesc		Create bitmap with negative height.
       
  1586 //!				Uses API elements: Create()
       
  1587 //! @SYMTestActions		1. Create bitmap with negative height.
       
  1588 //! @SYMTestStatus		Implemented
       
  1589 //! @SYMTestPriority		High
       
  1590 //! @SYMTestExpectedResults	KErrArgument is returned.
       
  1591 //! @SYMTestType		CIT
       
  1592 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1593 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1594 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1595 		COMMAND			RFbsSession1	Connect
       
  1596 		COMMAND			CFbsBitmap1	new
       
  1597 		COMMAND	!Error=-6	CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0056-001command4Create
       
  1598 		COMMAND			CFbsBitmap1	~
       
  1599 		COMMAND			RFbsSession1	Disconnect
       
  1600 	END_TEST_BLOCK
       
  1601 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0056
       
  1602 
       
  1603 
       
  1604 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0057
       
  1605 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0057
       
  1606 //! @SYMAPI			CFbsBitmap
       
  1607 //! @SYMAuthor			Anton Golovko
       
  1608 //! @SYMCreationDate		05/06/2006
       
  1609 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1610 //! @SYMTestCaseDesc		Create bitmap with negative width and height.
       
  1611 //!				Uses API elements: Create()
       
  1612 //! @SYMTestActions		1. Create bitmap with negative width and height.
       
  1613 //! @SYMTestStatus		Implemented
       
  1614 //! @SYMTestPriority		High
       
  1615 //! @SYMTestExpectedResults	KErrArgument is returned.
       
  1616 //! @SYMTestType		CIT
       
  1617 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1618 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1619 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1620 		COMMAND			RFbsSession1	Connect
       
  1621 		COMMAND			CFbsBitmap1	new
       
  1622 		COMMAND	!Error=-6	CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0057-001command4Create
       
  1623 		COMMAND			CFbsBitmap1	~
       
  1624 		COMMAND			RFbsSession1	Disconnect
       
  1625 	END_TEST_BLOCK
       
  1626 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0057
       
  1627 
       
  1628 
       
  1629 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0058
       
  1630 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0058
       
  1631 //! @SYMAPI			CFbsBitmap
       
  1632 //! @SYMAuthor			Anton Golovko
       
  1633 //! @SYMCreationDate		05/06/2006
       
  1634 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1635 //! @SYMTestCaseDesc		Create bitmap with zero-size.
       
  1636 //!				Uses API elements: Create()
       
  1637 //! @SYMTestActions		1. Create bitmap with 0x0 size.
       
  1638 //! @SYMTestStatus		Implemented
       
  1639 //! @SYMTestPriority		High
       
  1640 //! @SYMTestExpectedResults	The function Create() call returns KErrNone and doesn't cause panic.
       
  1641 //! @SYMTestType		CIT
       
  1642 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1643 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1644 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1645 		COMMAND		RFbsSession1	Connect
       
  1646 		COMMAND		CFbsBitmap1	new
       
  1647 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0058-001command4Create
       
  1648 		COMMAND		CFbsBitmap1	~
       
  1649 		COMMAND		RFbsSession1	Disconnect
       
  1650 	END_TEST_BLOCK
       
  1651 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0058
       
  1652 
       
  1653 
       
  1654 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0059
       
  1655 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0059
       
  1656 //! @SYMAPI			CFbsBitmap
       
  1657 //! @SYMAuthor			Anton Golovko
       
  1658 //! @SYMCreationDate		05/06/2006
       
  1659 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1660 //! @SYMTestCaseDesc		CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with inexistant file.
       
  1661 //!				Uses API elements: Load()
       
  1662 //! @SYMTestActions		1. Call Load() providing wrong path as argument.
       
  1663 //! @SYMTestStatus		Implemented
       
  1664 //! @SYMTestPriority		Critical
       
  1665 //! @SYMTestExpectedResults	Operation must return error KErrNotFound (-1)
       
  1666 //! @SYMTestType		CIT
       
  1667 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1668 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1669 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1670 		COMMAND			RFbsSession1	Connect
       
  1671 		COMMAND			CFbsBitmap1	new
       
  1672 		COMMAND	!Error=-1	CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0059-001command4Load
       
  1673 		COMMAND			CFbsBitmap1	~
       
  1674 		COMMAND			RFbsSession1	Disconnect
       
  1675 	END_TEST_BLOCK
       
  1676 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0059
       
  1677 
       
  1678 
       
  1679 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0060
       
  1680 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0060
       
  1681 //! @SYMAPI			CFbsBitmap
       
  1682 //! @SYMAuthor			Anton Golovko
       
  1683 //! @SYMCreationDate		05/06/2006
       
  1684 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1685 //! @SYMTestCaseDesc		CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with directory path instead of file path.
       
  1686 //!				Uses API elements: Load()
       
  1687 //! @SYMTestActions		1. Call Load() providing directory path instead of file path as argument.
       
  1688 //! @SYMTestStatus		Implemented
       
  1689 //! @SYMTestPriority		Critical
       
  1690 //! @SYMTestExpectedResults	Operation must return error KErrAccessDenied (-21)
       
  1691 //! @SYMTestType		CIT
       
  1692 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1693 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1694 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1695 		COMMAND			RFbsSession1	Connect
       
  1696 		COMMAND			CFbsBitmap1	new
       
  1697 		COMMAND	!Error=-21	CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0060-001command4Load
       
  1698 		COMMAND			CFbsBitmap1	~
       
  1699 		COMMAND			RFbsSession1	Disconnect
       
  1700 	END_TEST_BLOCK
       
  1701 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0060
       
  1702 
       
  1703 
       
  1704 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0061
       
  1705 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0061
       
  1706 //! @SYMAPI			CFbsBitmap
       
  1707 //! @SYMAuthor			Anton Golovko
       
  1708 //! @SYMCreationDate		05/06/2006
       
  1709 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1710 //! @SYMTestCaseDesc		CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with empty file as argument.
       
  1711 //!				Uses API elements: Load()
       
  1712 //! @SYMTestActions		1. Call Load() providing empty file as argument.
       
  1713 //! @SYMTestStatus		Implemented
       
  1714 //! @SYMTestPriority		Critical
       
  1715 //! @SYMTestExpectedResults	Operation must error KErrEof (-25)
       
  1716 //! @SYMTestType		CIT
       
  1717 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1718 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1719 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1720 		COMMAND			RFbsSession1	Connect
       
  1721 		COMMAND			CFbsBitmap1	new
       
  1722 		COMMAND	!Error=-25	CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0061-001command4Load
       
  1723 		COMMAND			CFbsBitmap1	~
       
  1724 		COMMAND			RFbsSession1	Disconnect
       
  1725 	END_TEST_BLOCK
       
  1726 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0061
       
  1727 
       
  1728 
       
  1729 //!START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0062
       
  1730 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0062
       
  1731 //! @SYMAPI			CFbsBitmap
       
  1732 //! @SYMAuthor			Anton Golovko
       
  1733 //! @SYMCreationDate		05/06/2006
       
  1734 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1735 //! @SYMTestCaseDesc		CFbsBitmap::Load() (Load(RFile &aFile, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with closed file handle as argument.
       
  1736 //!				Uses API elements: Load()
       
  1737 //! @SYMTestActions		1. Call Load() providing a closed file handle as argument.
       
  1738 //! @SYMTestStatus		Implemented
       
  1739 //! @SYMTestPriority		Critical
       
  1740 //! @SYMTestExpectedResults	Operation must panic
       
  1741 //! @SYMTestType		CIT
       
  1742 //!	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1743 //!		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1744 //!		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1745 //!		COMMAND		RFbsSession1	Connect
       
  1746 //!		COMMAND		CFbsBitmap1	new
       
  1747 //!		COMMAND		CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0062-001command4Load
       
  1748 //!	END_TEST_BLOCK	!PanicCode=0 !PanicString=KERN-EXEC
       
  1749 //!    RUN_TEST_STEP	100	T_FBServAPI	utilityClearPanicDlg
       
  1750 //!END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0062
       
  1751 
       
  1752 
       
  1753 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0063
       
  1754 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0063
       
  1755 //! @SYMAPI			CFbsBitmap
       
  1756 //! @SYMAuthor			Anton Golovko
       
  1757 //! @SYMCreationDate		05/06/2006
       
  1758 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1759 //! @SYMTestCaseDesc		CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with out of range offset.
       
  1760 //!				Uses API elements: Load()
       
  1761 //! @SYMTestActions		1. Call Load() giving real bitmap file as argument but out of range offset.
       
  1762 //! @SYMTestStatus		Implemented
       
  1763 //! @SYMTestPriority		Critical
       
  1764 //! @SYMTestExpectedResults	Operation must error KErrEof (-25)
       
  1765 //! @SYMTestType		CIT
       
  1766 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1767 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1768 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1769 		COMMAND			RFbsSession1	Connect
       
  1770 		COMMAND			CFbsBitmap1	new
       
  1771 		COMMAND	!Error=-25	CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0063-001command4Load
       
  1772 		COMMAND			CFbsBitmap1	~
       
  1773 		COMMAND			RFbsSession1	Disconnect
       
  1774 	END_TEST_BLOCK
       
  1775 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0063
       
  1776 
       
  1777 
       
  1778 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0064
       
  1779 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0064
       
  1780 //! @SYMAPI			CFbsBitmap
       
  1781 //! @SYMAuthor			Anton Golovko
       
  1782 //! @SYMCreationDate		05/06/2006
       
  1783 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1784 //! @SYMTestCaseDesc		CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with negative offset.
       
  1785 //!				Uses API elements: Load()
       
  1786 //! @SYMTestActions		1. Call Load() giving real bitmap file as argument but negative offset.
       
  1787 //! @SYMTestStatus		Implemented
       
  1788 //! @SYMTestPriority		Critical
       
  1789 //! @SYMTestExpectedResults	Load() must return error KErrArgument (-6)
       
  1790 //! @SYMTestType		CIT
       
  1791 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1792 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1793 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1794 		COMMAND			RFbsSession1	Connect
       
  1795 		COMMAND			CFbsBitmap1	new
       
  1796 		COMMAND	!Error=-6	CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0064-001command4Load
       
  1797 		COMMAND			CFbsBitmap1	~
       
  1798 		COMMAND			RFbsSession1	Disconnect
       
  1799 	END_TEST_BLOCK
       
  1800 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0064
       
  1801 
       
  1802 
       
  1803 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0065
       
  1804 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0065
       
  1805 //! @SYMAPI			CFbsBitmap
       
  1806 //! @SYMAuthor			Anton Golovko
       
  1807 //! @SYMCreationDate		05/06/2006
       
  1808 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1809 //! @SYMTestCaseDesc		CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with out of range bitmap id.
       
  1810 //!				Uses API elements: Load()
       
  1811 //! @SYMTestActions		1. Call Load() giving real bitmap file as argument but out of range bitmap id.
       
  1812 //! @SYMTestStatus		Implemented
       
  1813 //! @SYMTestPriority		Critical
       
  1814 //! @SYMTestExpectedResults	Operation must error KErrEof (-25)
       
  1815 //! @SYMTestType		CIT
       
  1816 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1817 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1818 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1819 		COMMAND			RFbsSession1	Connect
       
  1820 		COMMAND			CFbsBitmap1	new
       
  1821 		COMMAND	!Error=-25	CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0065-001command4Load
       
  1822 		COMMAND			CFbsBitmap1	~
       
  1823 		COMMAND			RFbsSession1	Disconnect
       
  1824 	END_TEST_BLOCK
       
  1825 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0065
       
  1826 
       
  1827 
       
  1828 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0066
       
  1829 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0066
       
  1830 //! @SYMAPI			CFbsBitmap
       
  1831 //! @SYMAuthor			Anton Golovko
       
  1832 //! @SYMCreationDate		05/06/2006
       
  1833 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1834 //! @SYMTestCaseDesc		CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with negative bitmap id.
       
  1835 //!				Uses API elements: Load()
       
  1836 //! @SYMTestActions		1. Call Load() giving real bitmap file as argument but negative bitmap id.
       
  1837 //! @SYMTestStatus		Implemented
       
  1838 //! @SYMTestPriority		Critical
       
  1839 //! @SYMTestExpectedResults	Operation must error KErrEof (-25)
       
  1840 //! @SYMTestType		CIT
       
  1841 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1842 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1843 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1844 		COMMAND			RFbsSession1	Connect
       
  1845 		COMMAND			CFbsBitmap1	new
       
  1846 		COMMAND	!Error=-25	CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0066-001command4Load
       
  1847 		COMMAND			CFbsBitmap1	~
       
  1848 		COMMAND			RFbsSession1	Disconnect
       
  1849 	END_TEST_BLOCK
       
  1850 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0066
       
  1851 
       
  1852 
       
  1853 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0067
       
  1854 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0067
       
  1855 //! @SYMAPI			CFbsBitmap
       
  1856 //! @SYMAuthor			Anton Golovko
       
  1857 //! @SYMCreationDate		05/06/2006
       
  1858 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1859 //! @SYMTestCaseDesc		CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with inexistant file.
       
  1860 //!				Uses API elements: LoadAndCompress()
       
  1861 //! @SYMTestActions		1. Call Load() providing wrong path as argument.
       
  1862 //! @SYMTestStatus		Implemented
       
  1863 //! @SYMTestPriority		Critical
       
  1864 //! @SYMTestExpectedResults	Operation must return error KErrNotFound (-1)
       
  1865 //! @SYMTestType		CIT
       
  1866 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1867 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1868 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1869 		COMMAND			RFbsSession1	Connect
       
  1870 		COMMAND			CFbsBitmap1	new
       
  1871 		COMMAND	!Error=-1	CFbsBitmap1	LoadAndCompress	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0067-001command4LoadAndCompress
       
  1872 		COMMAND			CFbsBitmap1	~
       
  1873 		COMMAND			RFbsSession1	Disconnect
       
  1874 	END_TEST_BLOCK
       
  1875 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0067
       
  1876 
       
  1877 
       
  1878 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0068
       
  1879 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0068
       
  1880 //! @SYMAPI			CFbsBitmap
       
  1881 //! @SYMAuthor			Anton Golovko
       
  1882 //! @SYMCreationDate		05/06/2006
       
  1883 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1884 //! @SYMTestCaseDesc		CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with directory path instead of file path.
       
  1885 //!				Uses API elements: LoadAndCompress()
       
  1886 //! @SYMTestActions		1. Call LoadAndCompress() providing directory path instead of file path as argument.
       
  1887 //! @SYMTestStatus		Implemented
       
  1888 //! @SYMTestPriority		Critical
       
  1889 //! @SYMTestExpectedResults	Operation must return error KErrAccessDenied (-21)
       
  1890 //! @SYMTestType		CIT
       
  1891 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1892 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1893 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1894 		COMMAND			RFbsSession1	Connect
       
  1895 		COMMAND			CFbsBitmap1	new
       
  1896 		COMMAND	!Error=-21	CFbsBitmap1	LoadAndCompress	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0068-001command4LoadAndCompress
       
  1897 		COMMAND			CFbsBitmap1	~
       
  1898 		COMMAND			RFbsSession1	Disconnect
       
  1899 	END_TEST_BLOCK
       
  1900 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0068
       
  1901 
       
  1902 
       
  1903 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0069
       
  1904 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0069
       
  1905 //! @SYMAPI			CFbsBitmap
       
  1906 //! @SYMAuthor			Anton Golovko
       
  1907 //! @SYMCreationDate		05/06/2006
       
  1908 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1909 //! @SYMTestCaseDesc		CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with non-bitmap file as argument.
       
  1910 //!				Uses API elements: LoadAndCompress()
       
  1911 //! @SYMTestActions		1. Call LoadAndCompress() providing non-bitmap file as argument.
       
  1912 //! @SYMTestStatus		Implemented
       
  1913 //! @SYMTestPriority		Critical
       
  1914 //! @SYMTestExpectedResults	Operation must return error KErrEof (-25)
       
  1915 //! @SYMTestType		CIT
       
  1916 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1917 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1918 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1919 		COMMAND			RFbsSession1	Connect
       
  1920 		COMMAND			CFbsBitmap1	new
       
  1921 		COMMAND	!Error=-25	CFbsBitmap1	LoadAndCompress	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0069-001command4LoadAndCompress
       
  1922 		COMMAND			CFbsBitmap1	~
       
  1923 		COMMAND			RFbsSession1	Disconnect
       
  1924 	END_TEST_BLOCK
       
  1925 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0069
       
  1926 
       
  1927 
       
  1928 //!START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0070
       
  1929 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0070
       
  1930 //! @SYMAPI			CFbsBitmap
       
  1931 //! @SYMAuthor			Anton Golovko
       
  1932 //! @SYMCreationDate		05/06/2006
       
  1933 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1934 //! @SYMTestCaseDesc		CFbsBitmap::LoadAndCompress() (LoadAndCompress(RFile &aFile, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with closed file handle as argument.
       
  1935 //!				Uses API elements: LoadAndCompress()
       
  1936 //! @SYMTestActions		1. Call LoadAndCompress() providing closed file handle as argument.
       
  1937 //! @SYMTestStatus		Implemented
       
  1938 //! @SYMTestPriority		Critical
       
  1939 //! @SYMTestExpectedResults	Operation must panic
       
  1940 //! @SYMTestType		CIT
       
  1941 //!	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1942 //!		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  1943 //!		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  1944 //!		COMMAND		RFbsSession1	Connect
       
  1945 //!		COMMAND		CFbsBitmap1	new
       
  1946 //!		COMMAND		CFbsBitmap1	LoadAndCompress		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0070-001-LoadAndCompress_command04
       
  1947 //!	END_TEST_BLOCK	!PanicCode=0 !PanicString=KERN-EXEC
       
  1948 //!    RUN_TEST_STEP	100	T_FBServAPI	utilityClearPanicDlg
       
  1949 //!END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0070
       
  1950 
       
  1951 
       
  1952 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0071
       
  1953 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0071
       
  1954 //! @SYMAPI			CFbsBitmap
       
  1955 //! @SYMAuthor			Anton Golovko
       
  1956 //! @SYMCreationDate		05/06/2006
       
  1957 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1958 //! @SYMTestCaseDesc		CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with out of range offset.
       
  1959 //!				Uses API elements: LoadAndCompress()
       
  1960 //! @SYMTestActions		1. Call LoadAndCompress() giving real bitmap file as argument but out of range offset.
       
  1961 //! @SYMTestStatus		Implemented
       
  1962 //! @SYMTestPriority		Critical
       
  1963 //! @SYMTestExpectedResults	Operation must return error KErrEof (-25)
       
  1964 //! @SYMTestType		CIT
       
  1965 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1966 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1967 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1968 		COMMAND			RFbsSession1	Connect
       
  1969 		COMMAND			CFbsBitmap1	new
       
  1970 		COMMAND	!Error=-25	CFbsBitmap1	LoadAndCompress	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0071-001command4LoadAndCompress
       
  1971 		COMMAND			CFbsBitmap1	~
       
  1972 		COMMAND			RFbsSession1	Disconnect
       
  1973 	END_TEST_BLOCK
       
  1974 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0071
       
  1975 
       
  1976 
       
  1977 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0072
       
  1978 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0072
       
  1979 //! @SYMAPI			CFbsBitmap
       
  1980 //! @SYMAuthor			Anton Golovko
       
  1981 //! @SYMCreationDate		05/06/2006
       
  1982 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  1983 //! @SYMTestCaseDesc		CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with negative offset.
       
  1984 //!				Uses API elements: LoadAndCompress()
       
  1985 //! @SYMTestActions		1. Call LoadAndCompress() giving real bitmap file as argument but negative offset.
       
  1986 //! @SYMTestStatus		Implemented
       
  1987 //! @SYMTestPriority		Critical
       
  1988 //! @SYMTestExpectedResults	LoadAndCompress() must return error KErrArgument (-6)
       
  1989 //! @SYMTestType		CIT
       
  1990 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  1991 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  1992 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  1993 		COMMAND			RFbsSession1	Connect
       
  1994 		COMMAND			CFbsBitmap1	new
       
  1995 		COMMAND	!Error=-6	CFbsBitmap1	LoadAndCompress	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0072-001command4LoadAndCompress
       
  1996 		COMMAND			CFbsBitmap1	~
       
  1997 		COMMAND			RFbsSession1	Disconnect
       
  1998 	END_TEST_BLOCK
       
  1999 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0072
       
  2000 
       
  2001 
       
  2002 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0073
       
  2003 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0073
       
  2004 //! @SYMAPI			CFbsBitmap
       
  2005 //! @SYMAuthor			Anton Golovko
       
  2006 //! @SYMCreationDate		05/06/2006
       
  2007 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2008 //! @SYMTestCaseDesc		CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with out of range bitmap id.
       
  2009 //!				Uses API elements: LoadAndCompress()
       
  2010 //! @SYMTestActions		1. Call LoadAndCompress() giving real bitmap file as argument but out of range bitmap id.
       
  2011 //! @SYMTestStatus		Implemented
       
  2012 //! @SYMTestPriority		Critical
       
  2013 //! @SYMTestExpectedResults	Operation must return error KErrEof (-25)
       
  2014 //! @SYMTestType		CIT
       
  2015 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2016 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2017 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2018 		COMMAND			RFbsSession1	Connect
       
  2019 		COMMAND			CFbsBitmap1	new
       
  2020 		COMMAND	!Error=-25	CFbsBitmap1	LoadAndCompress	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0073-001command4LoadAndCompress
       
  2021 		COMMAND			CFbsBitmap1	~
       
  2022 		COMMAND			RFbsSession1	Disconnect
       
  2023 	END_TEST_BLOCK
       
  2024 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0073
       
  2025 
       
  2026 
       
  2027 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0074
       
  2028 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0074
       
  2029 //! @SYMAPI			CFbsBitmap
       
  2030 //! @SYMAuthor			Anton Golovko
       
  2031 //! @SYMCreationDate		05/06/2006
       
  2032 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2033 //! @SYMTestCaseDesc		CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with negative bitmap id.
       
  2034 //!				Uses API elements: LoadAndCompress()
       
  2035 //! @SYMTestActions		1. Call LoadAndCompress() giving real bitmap file as argument but negative bitmap id.
       
  2036 //! @SYMTestStatus		Implemented
       
  2037 //! @SYMTestPriority		Critical
       
  2038 //! @SYMTestExpectedResults	Operation must return error KErrEof (-25)
       
  2039 //! @SYMTestType		CIT
       
  2040 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2041 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2042 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2043 		COMMAND			RFbsSession1	Connect
       
  2044 		COMMAND			CFbsBitmap1	new
       
  2045 		COMMAND	!Error=-25	CFbsBitmap1	LoadAndCompress	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0074-001command4LoadAndCompress
       
  2046 		COMMAND			CFbsBitmap1	~
       
  2047 		COMMAND			RFbsSession1	Disconnect
       
  2048 	END_TEST_BLOCK
       
  2049 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0074
       
  2050 
       
  2051 
       
  2052 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0075
       
  2053 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0075
       
  2054 //! @SYMAPI			CFbsBitmap
       
  2055 //! @SYMAuthor			Anton Golovko
       
  2056 //! @SYMCreationDate		05/06/2006
       
  2057 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2058 //! @SYMTestCaseDesc		CFbsBitmap::Save() (Save(const TDesC &aFilename) version) test with not fully constructed bitmap.
       
  2059 //!				Uses API elements: Save()
       
  2060 //! @SYMTestActions		1. Construct a bitmap but don't load or create it.
       
  2061 //!				2. Call Save() without using RFile.
       
  2062 //! @SYMTestStatus		Implemented
       
  2063 //! @SYMTestPriority		Critical
       
  2064 //! @SYMTestExpectedResults	Operation must return error KErrGeneral (-2)
       
  2065 //! @SYMTestType		CIT
       
  2066 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2067 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2068 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2069 		COMMAND			RFbsSession1	Connect
       
  2070 		COMMAND			CFbsBitmap1	new
       
  2071 		COMMAND	!Error=-2	CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0075-001command4Save
       
  2072 		COMMAND			CFbsBitmap1	~
       
  2073 		COMMAND			RFbsSession1	Disconnect
       
  2074 	END_TEST_BLOCK
       
  2075 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0075
       
  2076 
       
  2077 
       
  2078 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0076
       
  2079 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0076
       
  2080 //! @SYMAPI			CFbsBitmap
       
  2081 //! @SYMAuthor			Anton Golovko
       
  2082 //! @SYMCreationDate		05/06/2006
       
  2083 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2084 //! @SYMTestCaseDesc		CFbsBitmap::Save() (Save(RFile &aFile) version) test with not fully constructed bitmap.
       
  2085 //!				Uses API elements: Save()
       
  2086 //! @SYMTestActions		1. Construct a bitmap but don't load or create it.
       
  2087 //!				2. Call Save() using RFile.
       
  2088 //! @SYMTestStatus		Implemented
       
  2089 //! @SYMTestPriority		Critical
       
  2090 //! @SYMTestExpectedResults	Operation must return error KErrGeneral (-2)
       
  2091 //! @SYMTestType		CIT
       
  2092 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2093 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2094 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2095 		COMMAND			RFbsSession1	Connect
       
  2096 		COMMAND			CFbsBitmap1	new
       
  2097 		COMMAND	!Error=-2	CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0076-001command4Save
       
  2098 		COMMAND			CFbsBitmap1	~
       
  2099 		COMMAND			RFbsSession1	Disconnect
       
  2100 	END_TEST_BLOCK
       
  2101 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0076
       
  2102 
       
  2103 
       
  2104 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0077
       
  2105 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0077
       
  2106 //! @SYMAPI			CFbsBitmap
       
  2107 //! @SYMAuthor			Anton Golovko
       
  2108 //! @SYMCreationDate		05/06/2006
       
  2109 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2110 //! @SYMTestCaseDesc		CFbsBitmap::Save() (Save(const TDesC &aFilename) version) test providing directory path instead of file path.
       
  2111 //!				Uses API elements: Save()
       
  2112 //! @SYMTestActions		1. Create a bitmap.
       
  2113 //!				2. Call Save() without using RFile providing directory path instead of file path.
       
  2114 //! @SYMTestStatus		Implemented
       
  2115 //! @SYMTestPriority		Critical
       
  2116 //! @SYMTestExpectedResults	Operation must return error KErrAccessDenied (-21)
       
  2117 //! @SYMTestType		CIT
       
  2118 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2119 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2120 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2121 		COMMAND			RFbsSession1	Connect
       
  2122 		COMMAND			CFbsBitmap1	new
       
  2123 		COMMAND			CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0077-001command4Create
       
  2124 		COMMAND	!Error=-21	CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0077-001command5Save
       
  2125 		COMMAND			CFbsBitmap1	~
       
  2126 		COMMAND			RFbsSession1	Disconnect
       
  2127 	END_TEST_BLOCK
       
  2128 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0077
       
  2129 
       
  2130 
       
  2131 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0078
       
  2132 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0078
       
  2133 //! @SYMAPI			CFbsBitmap
       
  2134 //! @SYMAuthor			Anton Golovko
       
  2135 //! @SYMCreationDate		05/06/2006
       
  2136 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2137 //! @SYMTestCaseDesc		CFbsBitmap::Save() (Save(const TDesC &aFilename) version) test providing a file path that resides in inexistant directory.
       
  2138 //!				Uses API elements: Save()
       
  2139 //! @SYMTestActions		1. Create a bitmap.
       
  2140 //!				2. Call Save() without using RFile providing a file path that resides in inexistant directory.
       
  2141 //! @SYMTestStatus		Implemented
       
  2142 //! @SYMTestPriority		Critical
       
  2143 //! @SYMTestExpectedResults	Operation must return error KErrPathNotFound (-12)
       
  2144 //! @SYMTestType		CIT
       
  2145 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2146 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2147 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2148 		COMMAND			RFbsSession1	Connect
       
  2149 		COMMAND			CFbsBitmap1	new
       
  2150 		COMMAND			CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0078-001command4Create
       
  2151 		COMMAND	!Error=-12	CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0078-001command5Save
       
  2152 		COMMAND			CFbsBitmap1	~
       
  2153 		COMMAND			RFbsSession1	Disconnect
       
  2154 	END_TEST_BLOCK
       
  2155 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0078
       
  2156 
       
  2157 
       
  2158 //!START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0079
       
  2159 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0079
       
  2160 //! @SYMAPI			CFbsBitmap
       
  2161 //! @SYMAuthor			Anton Golovko
       
  2162 //! @SYMCreationDate		05/06/2006
       
  2163 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2164 //! @SYMTestCaseDesc		CFbsBitmap::Save() (Save(RFile &aFile) version) test providing invalid (closed) file handle.
       
  2165 //!				Uses API elements: Save()
       
  2166 //! @SYMTestActions		1. Create a bitmap.
       
  2167 //!				2. Call Save() using RFile providing invalid (closed) file handle.
       
  2168 //! @SYMTestStatus		Implemented
       
  2169 //! @SYMTestPriority		Critical
       
  2170 //! @SYMTestExpectedResults	Operation must panic
       
  2171 //! @SYMTestType		CIT
       
  2172 //!	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2173 //!		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2174 //!		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2175 //!		COMMAND		RFbsSession1	Connect
       
  2176 //!		COMMAND		CFbsBitmap1	new
       
  2177 //!		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0079-001-Create_command04
       
  2178 //!		COMMAND		CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0079-001-Save_command05
       
  2179 //!	END_TEST_BLOCK	!PanicCode=0 !PanicString=KERN-EXEC
       
  2180 //!END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0079
       
  2181 
       
  2182 
       
  2183 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0080
       
  2184 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0080
       
  2185 //! @SYMAPI			CFbsBitmap
       
  2186 //! @SYMAuthor			Anton Golovko
       
  2187 //! @SYMCreationDate		05/06/2006
       
  2188 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2189 //! @SYMTestCaseDesc		CFbsBitmap::Save() (Save(const TDesC &aFilename) version) test providing malformed (empty) file path.
       
  2190 //!				Uses API elements: Save()
       
  2191 //! @SYMTestActions		1. Create a bitmap.
       
  2192 //!				2. Call Save() without using RFile providing malformed (empty) file path.
       
  2193 //! @SYMTestStatus		Implemented
       
  2194 //! @SYMTestPriority		Critical
       
  2195 //! @SYMTestExpectedResults	Operation must return error KErrBadName (-28)
       
  2196 //! @SYMTestType		CIT
       
  2197 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2198 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2199 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2200 		COMMAND			RFbsSession1	Connect
       
  2201 		COMMAND			CFbsBitmap1	new
       
  2202 		COMMAND			CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0080-001command4Create
       
  2203 		COMMAND	!Error=-28	CFbsBitmap1	Save		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0080-001command5Save
       
  2204 		COMMAND			CFbsBitmap1	~
       
  2205 		COMMAND			RFbsSession1	Disconnect
       
  2206 	END_TEST_BLOCK
       
  2207 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0080
       
  2208 
       
  2209 
       
  2210 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0081
       
  2211 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0081
       
  2212 //! @SYMAPI			CFbsBitmap
       
  2213 //! @SYMAuthor			Anton Golovko
       
  2214 //! @SYMCreationDate		05/06/2006
       
  2215 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2216 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that tries to provide inexistant source files.
       
  2217 //!				Uses API elements: StoreL()
       
  2218 //! @SYMTestActions		1. Call Store() passing an inexistent source file, number of bitmaps 1 and source id 0.
       
  2219 //! @SYMTestStatus		Implemented
       
  2220 //! @SYMTestPriority		Critical
       
  2221 //! @SYMTestExpectedResults	Operation must return error KErrNotFound (-1)
       
  2222 //! @SYMTestType		CIT
       
  2223 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2224 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2225 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2226 		COMMAND			RFbsSession1	Connect
       
  2227 		COMMAND	!Error=-1	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0081-001command3StoreL
       
  2228 		COMMAND			CFbsBitmap1	~
       
  2229 		COMMAND			RFbsSession1	Disconnect
       
  2230 	END_TEST_BLOCK
       
  2231 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0081
       
  2232 
       
  2233 
       
  2234 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0082
       
  2235 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0082
       
  2236 //! @SYMAPI			CFbsBitmap
       
  2237 //! @SYMAuthor			Anton Golovko
       
  2238 //! @SYMCreationDate		05/06/2006
       
  2239 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2240 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that tries to provide out of range id of bitmap.
       
  2241 //!				Uses API elements: StoreL()
       
  2242 //! @SYMTestActions		1. Call Store() passing a valid source file, number of bitmaps 1 and source id 99999.
       
  2243 //! @SYMTestStatus		Implemented
       
  2244 //! @SYMTestPriority		Critical
       
  2245 //! @SYMTestExpectedResults	Operation must return error KErrEof (-25)
       
  2246 //! @SYMTestType		CIT
       
  2247 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2248 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2249 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2250 		COMMAND			RFbsSession1	Connect
       
  2251 		COMMAND	!Error=-25	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0082-001command3StoreL
       
  2252 		COMMAND			CFbsBitmap1	~
       
  2253 		COMMAND			RFbsSession1	Disconnect
       
  2254 	END_TEST_BLOCK
       
  2255 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0082
       
  2256 
       
  2257 
       
  2258 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0083
       
  2259 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0083
       
  2260 //! @SYMAPI			CFbsBitmap
       
  2261 //! @SYMAuthor			Anton Golovko
       
  2262 //! @SYMCreationDate		05/06/2006
       
  2263 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2264 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that tries to provide negative id of bitmap.
       
  2265 //!				Uses API elements: StoreL()
       
  2266 //! @SYMTestActions		1. Call Store() passing a source file, number of bitmaps 1 and source id -1.
       
  2267 //! @SYMTestStatus		Implemented
       
  2268 //! @SYMTestPriority		Critical
       
  2269 //! @SYMTestExpectedResults	Operation must return error KErrEof (-25)
       
  2270 //! @SYMTestType		CIT
       
  2271 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2272 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2273 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2274 		COMMAND			RFbsSession1	Connect
       
  2275 		COMMAND	!Error=-25	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0083-001command3StoreL
       
  2276 		COMMAND			CFbsBitmap1	~
       
  2277 		COMMAND			RFbsSession1	Disconnect
       
  2278 	END_TEST_BLOCK
       
  2279 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0083
       
  2280 
       
  2281 
       
  2282 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0084
       
  2283 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0084
       
  2284 //! @SYMAPI			CFbsBitmap
       
  2285 //! @SYMAuthor			Anton Golovko
       
  2286 //! @SYMCreationDate		05/06/2006
       
  2287 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2288 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that passes negative number of bitmaps.
       
  2289 //!				Uses API elements: StoreL()
       
  2290 //! @SYMTestActions		1. Call Store() passing a source file, number of bitmaps -1 and source id 0.
       
  2291 //! @SYMTestStatus		Implemented
       
  2292 //! @SYMTestPriority		Critical
       
  2293 //! @SYMTestExpectedResults	Operation must return error KErrArgument (-6)
       
  2294 //! @SYMTestType		CIT
       
  2295 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2296 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2297 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2298 		COMMAND			RFbsSession1	Connect
       
  2299 		COMMAND	!Error=-6	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0084-001command3StoreL
       
  2300 		COMMAND			CFbsBitmap1	~
       
  2301 		COMMAND			RFbsSession1	Disconnect
       
  2302 	END_TEST_BLOCK
       
  2303 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0084
       
  2304 
       
  2305 
       
  2306 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0085
       
  2307 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0085
       
  2308 //! @SYMAPI			CFbsBitmap
       
  2309 //! @SYMAuthor			Anton Golovko
       
  2310 //! @SYMCreationDate		05/06/2006
       
  2311 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2312 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that passes out-of-range number of bitmaps.
       
  2313 //!				Uses API elements: StoreL()
       
  2314 //! @SYMTestActions		1. Call Store() passing a source file, number of bitmaps 999 and source id 0.
       
  2315 //! @SYMTestStatus		Implemented
       
  2316 //! @SYMTestPriority		Critical
       
  2317 //! @SYMTestExpectedResults	Operation must return error KErrArgument (-6)
       
  2318 //! @SYMTestType		CIT
       
  2319 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2320 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2321 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2322 		COMMAND			RFbsSession1	Connect
       
  2323 		COMMAND	!Error=-6	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0085-001command3StoreL
       
  2324 		COMMAND			CFbsBitmap1	~
       
  2325 		COMMAND			RFbsSession1	Disconnect
       
  2326 	END_TEST_BLOCK
       
  2327 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0085
       
  2328 
       
  2329 
       
  2330 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0086
       
  2331 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0086
       
  2332 //! @SYMAPI			CFbsBitmap
       
  2333 //! @SYMAuthor			Anton Golovko
       
  2334 //! @SYMCreationDate		05/06/2006
       
  2335 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2336 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that passes number of bitmaps = 0.
       
  2337 //!				Uses API elements: StoreL()
       
  2338 //! @SYMTestActions		1. Call Store() passing a source file, number of bitmaps 0 and source id 0.
       
  2339 //! @SYMTestStatus		Implemented
       
  2340 //! @SYMTestPriority		Critical
       
  2341 //! @SYMTestExpectedResults	Operation must return error KErrArgument (-6)
       
  2342 //! @SYMTestType		CIT
       
  2343 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2344 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2345 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2346 		COMMAND			RFbsSession1	Connect
       
  2347 		COMMAND	!Error=-6	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0086-001command3StoreL
       
  2348 		COMMAND			CFbsBitmap1	~
       
  2349 		COMMAND			RFbsSession1	Disconnect
       
  2350 	END_TEST_BLOCK
       
  2351 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0086
       
  2352 
       
  2353 
       
  2354 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0087
       
  2355 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0087
       
  2356 //! @SYMAPI			CFbsBitmap
       
  2357 //! @SYMAuthor			Anton Golovko
       
  2358 //! @SYMCreationDate		05/06/2006
       
  2359 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2360 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version)
       
  2361 //!				test that passes number of bitmaps that is in range of source file number but greater than number of bitmap ids.
       
  2362 //!				Uses API elements: StoreL()
       
  2363 //! @SYMTestActions		1. Create an array of file names that contains a file 3 times
       
  2364 //!				2. Create an array of bitmap ids that contains 1 id = 0
       
  2365 //!				3. Call Store() passing the source files, bitmaps ids and number of bitmaps = 2
       
  2366 //! @SYMTestStatus		Implemented
       
  2367 //! @SYMTestPriority		Critical
       
  2368 //! @SYMTestExpectedResults	Operation must return error KErrEof (-25)
       
  2369 //! @SYMTestType		CIT
       
  2370 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2371 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2372 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2373 		COMMAND			RFbsSession1	Connect
       
  2374 		COMMAND	!Error=-25	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0087-001command3StoreL
       
  2375 		COMMAND			CFbsBitmap1	~
       
  2376 		COMMAND			RFbsSession1	Disconnect
       
  2377 	END_TEST_BLOCK
       
  2378 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0087
       
  2379 
       
  2380 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0089
       
  2381 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0089
       
  2382 //! @SYMAPI			CFbsBitmap
       
  2383 //! @SYMAuthor			Anton Golovko
       
  2384 //! @SYMCreationDate		05/06/2006
       
  2385 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2386 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that tries to provide inexistant source files.
       
  2387 //!				Uses API elements: StoreL()
       
  2388 //! @SYMTestActions		1. Call Store() passing an inexistent source file, number of bitmaps 1 and source id 0.
       
  2389 //! @SYMTestStatus		Implemented
       
  2390 //! @SYMTestPriority		Critical
       
  2391 //! @SYMTestExpectedResults	Operation must return error KErrNotFound (-1)
       
  2392 //! @SYMTestType		CIT
       
  2393 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2394 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2395 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2396 		COMMAND			RFbsSession1	Connect
       
  2397 		COMMAND	!Error=-1	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0089-001command3StoreL
       
  2398 		COMMAND			CFbsBitmap1	~
       
  2399 		COMMAND			RFbsSession1	Disconnect
       
  2400 	END_TEST_BLOCK
       
  2401 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0089
       
  2402 
       
  2403 
       
  2404 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0090
       
  2405 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0090
       
  2406 //! @SYMAPI			CFbsBitmap
       
  2407 //! @SYMAuthor			Anton Golovko
       
  2408 //! @SYMCreationDate		05/06/2006
       
  2409 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2410 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that tries to provide out of range id of bitmap.
       
  2411 //!				Uses API elements: StoreL()
       
  2412 //! @SYMTestActions		1. Call Store() passing a source file, number of bitmaps 1 and source id 99999.
       
  2413 //! @SYMTestStatus		Implemented
       
  2414 //! @SYMTestPriority		Critical
       
  2415 //! @SYMTestExpectedResults	Operation must return error KErrEof (-25)
       
  2416 //! @SYMTestType		CIT
       
  2417 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2418 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2419 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2420 		COMMAND			RFbsSession1	Connect
       
  2421 		COMMAND	!Error=-25	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0090-001command3StoreL
       
  2422 		COMMAND			CFbsBitmap1	~
       
  2423 		COMMAND			RFbsSession1	Disconnect
       
  2424 	END_TEST_BLOCK
       
  2425 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0090
       
  2426 
       
  2427 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0091
       
  2428 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0091
       
  2429 //! @SYMAPI			CFbsBitmap
       
  2430 //! @SYMAuthor			Anton Golovko
       
  2431 //! @SYMCreationDate		05/06/2006
       
  2432 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2433 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that tries to provide negative id of bitmap.
       
  2434 //!				Uses API elements: StoreL()
       
  2435 //! @SYMTestActions		1. Call Store() passing a source file, number of bitmaps 1 and source id -1.
       
  2436 //! @SYMTestStatus		Implemented
       
  2437 //! @SYMTestPriority		Critical
       
  2438 //! @SYMTestExpectedResults	Operation must return error KErrEof (-25)
       
  2439 //! @SYMTestType		CIT
       
  2440 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2441 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2442 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2443 		COMMAND			RFbsSession1	Connect
       
  2444 		COMMAND	!Error=-25	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0091-001command3StoreL
       
  2445 		COMMAND			CFbsBitmap1	~
       
  2446 		COMMAND			RFbsSession1	Disconnect
       
  2447 	END_TEST_BLOCK
       
  2448 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0091
       
  2449 
       
  2450 
       
  2451 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0092
       
  2452 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0092
       
  2453 //! @SYMAPI			CFbsBitmap
       
  2454 //! @SYMAuthor			Anton Golovko
       
  2455 //! @SYMCreationDate		05/06/2006
       
  2456 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2457 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that passes negative number of bitmaps.
       
  2458 //!				Uses API elements: StoreL()
       
  2459 //! @SYMTestActions		1. Call Store() passing a source file, number of bitmaps -1 and source id 0.
       
  2460 //! @SYMTestStatus		Implemented
       
  2461 //! @SYMTestPriority		Critical
       
  2462 //! @SYMTestExpectedResults	Operation must return error KErrArgument (-6)
       
  2463 //! @SYMTestType		CIT
       
  2464 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2465 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2466 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2467 		COMMAND			RFbsSession1	Connect
       
  2468 		COMMAND	!Error=-6	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0092-001command3StoreL
       
  2469 		COMMAND			CFbsBitmap1	~
       
  2470 		COMMAND			RFbsSession1	Disconnect
       
  2471 	END_TEST_BLOCK
       
  2472 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0092
       
  2473 
       
  2474 
       
  2475 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0093
       
  2476 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0093
       
  2477 //! @SYMAPI			CFbsBitmap
       
  2478 //! @SYMAuthor			Anton Golovko
       
  2479 //! @SYMCreationDate		05/06/2006
       
  2480 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2481 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that passes out-of-range number of bitmaps.
       
  2482 //!				Uses API elements: StoreL()
       
  2483 //! @SYMTestActions		1. Call Store() passing a source file, number of bitmaps 999 and source id 0.
       
  2484 //! @SYMTestStatus		Implemented
       
  2485 //! @SYMTestPriority		Critical
       
  2486 //! @SYMTestExpectedResults	Operation must return error KErrArgument (-6)
       
  2487 //! @SYMTestType		CIT
       
  2488 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2489 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2490 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2491 		COMMAND			RFbsSession1	Connect
       
  2492 		COMMAND	!Error=-6	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0093-001command3StoreL
       
  2493 		COMMAND			CFbsBitmap1	~
       
  2494 		COMMAND			RFbsSession1	Disconnect
       
  2495 	END_TEST_BLOCK
       
  2496 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0093
       
  2497 
       
  2498 
       
  2499 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0094
       
  2500 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0094
       
  2501 //! @SYMAPI			CFbsBitmap
       
  2502 //! @SYMAuthor			Anton Golovko
       
  2503 //! @SYMCreationDate		05/06/2006
       
  2504 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2505 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that passes number of bitmaps = 0.
       
  2506 //!				Uses API elements: StoreL()
       
  2507 //! @SYMTestActions		1. Call Store() passing a source file, number of bitmaps 0 and source id 0.
       
  2508 //! @SYMTestStatus		Implemented
       
  2509 //! @SYMTestPriority		Critical
       
  2510 //! @SYMTestExpectedResults	Operation must return error KErrArgument (-6)
       
  2511 //! @SYMTestType		CIT
       
  2512 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2513 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2514 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2515 		COMMAND			RFbsSession1	Connect
       
  2516 		COMMAND	!Error=-6	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0094-001command3StoreL
       
  2517 		COMMAND			CFbsBitmap1	~
       
  2518 		COMMAND			RFbsSession1	Disconnect
       
  2519 	END_TEST_BLOCK
       
  2520 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0094
       
  2521 
       
  2522 
       
  2523 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0095
       
  2524 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0095
       
  2525 //! @SYMAPI			CFbsBitmap
       
  2526 //! @SYMAuthor			Anton Golovko
       
  2527 //! @SYMCreationDate		05/06/2006
       
  2528 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2529 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version)
       
  2530 //!				test that passes number of bitmaps that is in range of source file number but greater than number of bitmap ids.
       
  2531 //!				Uses API elements: StoreL()
       
  2532 //! @SYMTestActions		1. Create an array of file names that contains 3 files
       
  2533 //!				3. Create an array of bitmap ids that contains 1 id = 0
       
  2534 //!				4. Call Store() passing the source files, bitmaps ids and number of bitmaps = 2
       
  2535 //! @SYMTestStatus		Implemented
       
  2536 //! @SYMTestPriority		Critical
       
  2537 //! @SYMTestExpectedResults	Operation must return error KErrEof (-25)
       
  2538 //! @SYMTestType		CIT
       
  2539 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2540 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  2541 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  2542 		COMMAND			RFbsSession1	Connect
       
  2543 		COMMAND	!Error=-25	CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0095-001command3StoreL
       
  2544 		COMMAND			CFbsBitmap1	~
       
  2545 		COMMAND			RFbsSession1	Disconnect
       
  2546 	END_TEST_BLOCK
       
  2547 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0095
       
  2548 
       
  2549 //!START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0097
       
  2550 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0097
       
  2551 //! @SYMAPI			CFbsBitmap
       
  2552 //! @SYMAuthor			Anton Golovko
       
  2553 //! @SYMCreationDate		05/06/2006
       
  2554 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2555 //! @SYMTestCaseDesc		CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version)
       
  2556 //!				test that passes not opened output file handle
       
  2557 //!				Uses API elements: StoreL()
       
  2558 //! @SYMTestActions		1. Create a bitmap saving it into a file right after creation.
       
  2559 //!				2. Call Store() passing the source file, bitmap id = 0, number of bitmaps = 1 and not-opened output file handle
       
  2560 //! @SYMTestStatus		Implemented
       
  2561 //! @SYMTestPriority		Critical
       
  2562 //! @SYMTestExpectedResults	Operation must panic
       
  2563 //! @SYMTestType		CIT
       
  2564 //!	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2565 //!		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2566 //!		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2567 //!		COMMAND		RFbsSession1	Connect
       
  2568 //!		COMMAND		CFbsBitmap1	StoreL		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0097-001-StoreL_command03
       
  2569 //!	END_TEST_BLOCK	!PanicCode=0 !PanicString=KERN-EXEC
       
  2570 //!    RUN_TEST_STEP	100	T_FBServAPI	utilityClearPanicDlg
       
  2571 //!END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0097
       
  2572 
       
  2573 
       
  2574 //! START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0098
       
  2575 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0098
       
  2576 //! @SYMAPI			CFbsBitmap
       
  2577 //! @SYMAuthor			Anton Golovko
       
  2578 //! @SYMCreationDate		05/06/2006
       
  2579 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2580 //! @SYMTestCaseDesc		CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with negative length.
       
  2581 //!				Uses API elements: GetScanLine()
       
  2582 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2583 //!				2. Call GetScanLine() with start point (0, 0), length = -1, display mode EColor256
       
  2584 //! @SYMTestStatus		Implemented
       
  2585 //! @SYMTestPriority		Critical
       
  2586 //! @SYMTestExpectedResults	Operation must panic.
       
  2587 //! @SYMTestType		CIT
       
  2588 //! 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2589 //! 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2590 //! 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2591 //! 		COMMAND		RFbsSession1	Connect
       
  2592 //! 		COMMAND		CFbsBitmap1	new
       
  2593 //! 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0098-001-Create_command04
       
  2594 //! 		COMMAND		CFbsBitmap1	GetScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0098-001-GetScanLine_command05
       
  2595 //! 	END_TEST_BLOCK	!PanicCode=23 !PanicString=USER
       
  2596 //!     RUN_TEST_STEP	100	T_FBServAPI	utilityClearPanicDlg
       
  2597 //! END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0098
       
  2598 
       
  2599 
       
  2600 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0099
       
  2601 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0099
       
  2602 //! @SYMAPI			CFbsBitmap
       
  2603 //! @SYMAuthor			Anton Golovko
       
  2604 //! @SYMCreationDate		05/06/2006
       
  2605 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2606 //! @SYMTestCaseDesc		CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with 0 length.
       
  2607 //!				Uses API elements: GetScanLine()
       
  2608 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2609 //!				2. Call GetScanLine() with start point (0, 0), length = 0, display mode EColor256
       
  2610 //! @SYMTestStatus		Implemented
       
  2611 //! @SYMTestPriority		Critical
       
  2612 //! @SYMTestExpectedResults	The function GetScanLine() call doesn't cause panic.
       
  2613 //! @SYMTestType		CIT
       
  2614 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2615 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2616 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2617 		COMMAND		RFbsSession1	Connect
       
  2618 		COMMAND		CFbsBitmap1	new
       
  2619 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0099-001command4Create
       
  2620 		COMMAND		CFbsBitmap1	GetScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0099-001command5GetScanLine
       
  2621 		COMMAND		CFbsBitmap1	~
       
  2622 		COMMAND		RFbsSession1	Disconnect
       
  2623 	END_TEST_BLOCK
       
  2624 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0099
       
  2625 
       
  2626 
       
  2627 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0100
       
  2628 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0100
       
  2629 //! @SYMAPI			CFbsBitmap
       
  2630 //! @SYMAuthor			Anton Golovko
       
  2631 //! @SYMCreationDate		05/06/2006
       
  2632 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2633 //! @SYMTestCaseDesc		CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with too big length.
       
  2634 //!				Uses API elements: GetScanLine()
       
  2635 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2636 //!				2. Call GetScanLine() with start point (0, 0), length = 99999, display mode EColor256
       
  2637 //! @SYMTestStatus		Implemented
       
  2638 //! @SYMTestPriority		Critical
       
  2639 //! @SYMTestExpectedResults	The function GetScanLine() call doesn't cause panic.
       
  2640 //! @SYMTestType		CIT
       
  2641 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2642 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2643 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2644 		COMMAND		RFbsSession1	Connect
       
  2645 		COMMAND		CFbsBitmap1	new
       
  2646 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0100-001command4Create
       
  2647 		COMMAND		CFbsBitmap1	GetScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0100-001command5GetScanLine
       
  2648 		COMMAND		CFbsBitmap1	~
       
  2649 		COMMAND		RFbsSession1	Disconnect
       
  2650 	END_TEST_BLOCK
       
  2651 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0100
       
  2652 
       
  2653 
       
  2654 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0101
       
  2655 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0101
       
  2656 //! @SYMAPI			CFbsBitmap
       
  2657 //! @SYMAuthor			Anton Golovko
       
  2658 //! @SYMCreationDate		05/06/2006
       
  2659 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2660 //! @SYMTestCaseDesc		CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with negative start point.
       
  2661 //!				Uses API elements: GetScanLine()
       
  2662 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2663 //!				2. Call GetScanLine() with start point (-1, -1), length = 10, display mode EColor256
       
  2664 //! @SYMTestStatus		Implemented
       
  2665 //! @SYMTestPriority		Critical
       
  2666 //! @SYMTestExpectedResults	The function GetScanLine() call doesn't cause panic.
       
  2667 //! @SYMTestType		CIT
       
  2668 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2669 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2670 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2671 		COMMAND		RFbsSession1	Connect
       
  2672 		COMMAND		CFbsBitmap1	new
       
  2673 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0101-001command4Create
       
  2674 		COMMAND		CFbsBitmap1	GetScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0101-001command5GetScanLine
       
  2675 		COMMAND		CFbsBitmap1	~
       
  2676 		COMMAND		RFbsSession1	Disconnect
       
  2677 	END_TEST_BLOCK
       
  2678 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0101
       
  2679 
       
  2680 
       
  2681 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0102
       
  2682 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0102
       
  2683 //! @SYMAPI			CFbsBitmap
       
  2684 //! @SYMAuthor			Anton Golovko
       
  2685 //! @SYMCreationDate		05/06/2006
       
  2686 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2687 //! @SYMTestCaseDesc		CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with out of range start point.
       
  2688 //!				Uses API elements: GetScanLine()
       
  2689 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2690 //!				2. Call GetScanLine() with start point (100, 100), length = 10, display mode EColor256
       
  2691 //! @SYMTestStatus		Implemented
       
  2692 //! @SYMTestPriority		Critical
       
  2693 //! @SYMTestExpectedResults	The function GetScanLine() call doesn't cause panic.
       
  2694 //! @SYMTestType		CIT
       
  2695 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2696 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2697 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2698 		COMMAND		RFbsSession1	Connect
       
  2699 		COMMAND		CFbsBitmap1	new
       
  2700 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0102-001command4Create
       
  2701 		COMMAND		CFbsBitmap1	GetScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0102-001command5GetScanLine
       
  2702 		COMMAND		CFbsBitmap1	~
       
  2703 		COMMAND		RFbsSession1	Disconnect
       
  2704 	END_TEST_BLOCK
       
  2705 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0102
       
  2706 
       
  2707 
       
  2708 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0103
       
  2709 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0103
       
  2710 //! @SYMAPI			CFbsBitmap
       
  2711 //! @SYMAuthor			Anton Golovko
       
  2712 //! @SYMCreationDate		05/06/2006
       
  2713 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2714 //! @SYMTestCaseDesc		CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with display mode ENone.
       
  2715 //!				Uses API elements: GetScanLine()
       
  2716 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2717 //!				2. Call GetScanLine() with start point (0, 0), length = 10, display mode ENone
       
  2718 //! @SYMTestStatus		Implemented
       
  2719 //! @SYMTestPriority		Critical
       
  2720 //! @SYMTestExpectedResults	The function GetScanLine() call doesn't cause panic.
       
  2721 //! @SYMTestType		CIT
       
  2722 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2723 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2724 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2725 		COMMAND		RFbsSession1	Connect
       
  2726 		COMMAND		CFbsBitmap1	new
       
  2727 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0103-001command4Create
       
  2728 		COMMAND		CFbsBitmap1	GetScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0103-001command5GetScanLine
       
  2729 		COMMAND		CFbsBitmap1	~
       
  2730 		COMMAND		RFbsSession1	Disconnect
       
  2731 	END_TEST_BLOCK
       
  2732 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0103
       
  2733 
       
  2734 
       
  2735 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0104
       
  2736 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0104
       
  2737 //! @SYMAPI			CFbsBitmap
       
  2738 //! @SYMAuthor			Anton Golovko
       
  2739 //! @SYMCreationDate		05/06/2006
       
  2740 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2741 //! @SYMTestCaseDesc		CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with display mode ERgb.
       
  2742 //!				Uses API elements: GetScanLine()
       
  2743 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2744 //!				2. Call GetScanLine() with start point (0, 0), length = 10, display mode ERgb
       
  2745 //! @SYMTestStatus		Implemented
       
  2746 //! @SYMTestPriority		Critical
       
  2747 //! @SYMTestExpectedResults	The function GetScanLine() call doesn't cause panic.
       
  2748 //! @SYMTestType		CIT
       
  2749 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2750 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2751 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2752 		COMMAND		RFbsSession1	Connect
       
  2753 		COMMAND		CFbsBitmap1	new
       
  2754 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0104-001command4Create
       
  2755 		COMMAND		CFbsBitmap1	GetScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0104-001command5GetScanLine
       
  2756 		COMMAND		CFbsBitmap1	~
       
  2757 		COMMAND		RFbsSession1	Disconnect
       
  2758 	END_TEST_BLOCK
       
  2759 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0104
       
  2760 
       
  2761 
       
  2762 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0105
       
  2763 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0105
       
  2764 //! @SYMAPI			CFbsBitmap
       
  2765 //! @SYMAuthor			Anton Golovko
       
  2766 //! @SYMCreationDate		05/06/2006
       
  2767 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2768 //! @SYMTestCaseDesc		CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with display mode EColorLast.
       
  2769 //!				Uses API elements: GetScanLine()
       
  2770 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2771 //!				2. Call GetScanLine() with start point (0, 0), length = 10, display mode EColorLast
       
  2772 //! @SYMTestStatus		Implemented
       
  2773 //! @SYMTestPriority		Critical
       
  2774 //! @SYMTestExpectedResults	The function GetScanLine() call doesn't cause panic.
       
  2775 //! @SYMTestType		CIT
       
  2776 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2777 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2778 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2779 		COMMAND		RFbsSession1	Connect
       
  2780 		COMMAND		CFbsBitmap1	new
       
  2781 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0105-001command4Create
       
  2782 		COMMAND		CFbsBitmap1	GetScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0105-001command5GetScanLine
       
  2783 		COMMAND		CFbsBitmap1	~
       
  2784 		COMMAND		RFbsSession1	Disconnect
       
  2785 	END_TEST_BLOCK
       
  2786 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0105
       
  2787 
       
  2788 
       
  2789 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0106
       
  2790 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0106
       
  2791 //! @SYMAPI			CFbsBitmap
       
  2792 //! @SYMAuthor			Anton Golovko
       
  2793 //! @SYMCreationDate		05/06/2006
       
  2794 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2795 //! @SYMTestCaseDesc		CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with invalid display.
       
  2796 //!				Uses API elements: GetScanLine()
       
  2797 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2798 //!				2. Call GetScanLine() with start point (0, 0), length = 10, display mode -1.
       
  2799 //! @SYMTestStatus		Implemented
       
  2800 //! @SYMTestPriority		Critical
       
  2801 //! @SYMTestExpectedResults	The function GetScanLine() call doesn't cause panic.
       
  2802 //! @SYMTestType		CIT
       
  2803 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2804 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2805 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2806 		COMMAND		RFbsSession1	Connect
       
  2807 		COMMAND		CFbsBitmap1	new
       
  2808 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0106-001command4Create
       
  2809 		COMMAND		CFbsBitmap1	GetScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0106-001command5GetScanLine
       
  2810 		COMMAND		CFbsBitmap1	~
       
  2811 		COMMAND		RFbsSession1	Disconnect
       
  2812 	END_TEST_BLOCK
       
  2813 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0106
       
  2814 
       
  2815 
       
  2816 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0107
       
  2817 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0107
       
  2818 //! @SYMAPI			CFbsBitmap
       
  2819 //! @SYMAuthor			Anton Golovko
       
  2820 //! @SYMCreationDate		05/06/2006
       
  2821 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2822 //! @SYMTestCaseDesc		CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with too short buffer.
       
  2823 //!				Uses API elements: GetScanLine()
       
  2824 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2825 //!				2. Call GetScanLine() with start point (0, 0), length = 10, display mode EColor256 and buffer with length 1.
       
  2826 //! @SYMTestStatus		Implemented
       
  2827 //! @SYMTestPriority		Critical
       
  2828 //! @SYMTestExpectedResults	The function GetScanLine() call doesn't cause panic.
       
  2829 //! @SYMTestType		CIT
       
  2830 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2831 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2832 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2833 		COMMAND		RFbsSession1	Connect
       
  2834 		COMMAND		CFbsBitmap1	new
       
  2835 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0107-001command4Create
       
  2836 		COMMAND		CFbsBitmap1	GetScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0107-001command5GetScanLine
       
  2837 		COMMAND		CFbsBitmap1	~
       
  2838 		COMMAND		RFbsSession1	Disconnect
       
  2839 	END_TEST_BLOCK
       
  2840 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0107
       
  2841 
       
  2842 
       
  2843 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0108
       
  2844 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0108
       
  2845 //! @SYMAPI			CFbsBitmap
       
  2846 //! @SYMAuthor			Anton Golovko
       
  2847 //! @SYMCreationDate		05/06/2006
       
  2848 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2849 //! @SYMTestCaseDesc		CFbsBitmap::SetScanLine() test with negative position.
       
  2850 //!				Uses API elements: SetScanLine()
       
  2851 //! @SYMTestActions		1. Create bitmap (100x100, EColor256).
       
  2852 //!				2. Set horizontal scanline using position -1 from data-file.
       
  2853 //! @SYMTestStatus		Implemented
       
  2854 //! @SYMTestPriority		Critical
       
  2855 //! @SYMTestExpectedResults	The function SetScanLine() call doesn't cause panic.
       
  2856 //! @SYMTestType		CIT
       
  2857 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2858 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2859 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2860 		COMMAND		RFbsSession1	Connect
       
  2861 		COMMAND		CFbsBitmap1	new
       
  2862 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0108-001command4Create
       
  2863 		COMMAND		CFbsBitmap1	SetScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0108-001command5SetScanLine
       
  2864 		COMMAND		CFbsBitmap1	~
       
  2865 		COMMAND		RFbsSession1	Disconnect
       
  2866 	END_TEST_BLOCK
       
  2867 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0108
       
  2868 
       
  2869 
       
  2870 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0109
       
  2871 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0109
       
  2872 //! @SYMAPI			CFbsBitmap
       
  2873 //! @SYMAuthor			Anton Golovko
       
  2874 //! @SYMCreationDate		05/06/2006
       
  2875 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2876 //! @SYMTestCaseDesc		CFbsBitmap::SetScanLine() test with too big position.
       
  2877 //!				Uses API elements: SetScanLine()
       
  2878 //! @SYMTestActions		1. Create bitmap (100x100, EColor256).
       
  2879 //!				2. Set horizontal scanline using bitmaps's position 100 from a data-file.
       
  2880 //! @SYMTestStatus		Implemented
       
  2881 //! @SYMTestPriority		Critical
       
  2882 //! @SYMTestExpectedResults	The function SetScanLine() call doesn't cause panic.
       
  2883 //! @SYMTestType		CIT
       
  2884 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2885 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2886 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2887 		COMMAND		RFbsSession1	Connect
       
  2888 		COMMAND		CFbsBitmap1	new
       
  2889 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0109-001command4Create
       
  2890 		COMMAND		CFbsBitmap1	SetScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0109-001command5SetScanLine
       
  2891 		COMMAND		CFbsBitmap1	~
       
  2892 		COMMAND		RFbsSession1	Disconnect
       
  2893 	END_TEST_BLOCK
       
  2894 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0109
       
  2895 
       
  2896 
       
  2897 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0110
       
  2898 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0110
       
  2899 //! @SYMAPI			CFbsBitmap
       
  2900 //! @SYMAuthor			Anton Golovko
       
  2901 //! @SYMCreationDate		05/06/2006
       
  2902 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2903 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with negative x-coordinate.
       
  2904 //!				Uses API elements: GetVerticalScanLine()
       
  2905 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2906 //!				2. Call GetVerticalScanLine() with x-coordinate -1, display mode EColor256
       
  2907 //! @SYMTestStatus		Implemented
       
  2908 //! @SYMTestPriority		Critical
       
  2909 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  2910 //! @SYMTestType		CIT
       
  2911 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2912 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2913 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2914 		COMMAND		RFbsSession1	Connect
       
  2915 		COMMAND		CFbsBitmap1	new
       
  2916 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0110-001command4Create
       
  2917 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0110-001command5GetVerticalScanLine
       
  2918 		COMMAND		CFbsBitmap1	~
       
  2919 		COMMAND		RFbsSession1	Disconnect
       
  2920 	END_TEST_BLOCK
       
  2921 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0110
       
  2922 
       
  2923 
       
  2924 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0111
       
  2925 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0111
       
  2926 //! @SYMAPI			CFbsBitmap
       
  2927 //! @SYMAuthor			Anton Golovko
       
  2928 //! @SYMCreationDate		05/06/2006
       
  2929 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2930 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with too big x-coordinate.
       
  2931 //!				Uses API elements: GetVerticalScanLine()
       
  2932 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2933 //!				2. Call GetVerticalScanLine() with x-coordinate 999, display mode EColor256
       
  2934 //! @SYMTestStatus		Implemented
       
  2935 //! @SYMTestPriority		Critical
       
  2936 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  2937 //! @SYMTestType		CIT
       
  2938 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2939 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2940 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2941 		COMMAND		RFbsSession1	Connect
       
  2942 		COMMAND		CFbsBitmap1	new
       
  2943 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0111-001command4Create
       
  2944 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0111-001command5GetVerticalScanLine
       
  2945 		COMMAND		CFbsBitmap1	~
       
  2946 		COMMAND		RFbsSession1	Disconnect
       
  2947 	END_TEST_BLOCK
       
  2948 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0111
       
  2949 
       
  2950 
       
  2951 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0112
       
  2952 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0112
       
  2953 //! @SYMAPI			CFbsBitmap
       
  2954 //! @SYMAuthor			Anton Golovko
       
  2955 //! @SYMCreationDate		05/06/2006
       
  2956 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2957 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with display mode ENone.
       
  2958 //!				Uses API elements: GetVerticalScanLine()
       
  2959 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2960 //!				2. Call GetVerticalScanLine() with x-coordinate 0, display mode ENone.
       
  2961 //! @SYMTestStatus		Implemented
       
  2962 //! @SYMTestPriority		Critical
       
  2963 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  2964 //! @SYMTestType		CIT
       
  2965 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2966 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2967 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2968 		COMMAND		RFbsSession1	Connect
       
  2969 		COMMAND		CFbsBitmap1	new
       
  2970 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0112-001command4Create
       
  2971 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0112-001command5GetVerticalScanLine
       
  2972 		COMMAND		CFbsBitmap1	~
       
  2973 		COMMAND		RFbsSession1	Disconnect
       
  2974 	END_TEST_BLOCK
       
  2975 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0112
       
  2976 
       
  2977 
       
  2978 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0113
       
  2979 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0113
       
  2980 //! @SYMAPI			CFbsBitmap
       
  2981 //! @SYMAuthor			Anton Golovko
       
  2982 //! @SYMCreationDate		05/06/2006
       
  2983 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  2984 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with display mode ERgb.
       
  2985 //!				Uses API elements: GetVerticalScanLine()
       
  2986 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  2987 //!				2. Call GetVerticalScanLine() with x-coordinate 0, display mode ERgb.
       
  2988 //! @SYMTestStatus		Implemented
       
  2989 //! @SYMTestPriority		Critical
       
  2990 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  2991 //! @SYMTestType		CIT
       
  2992 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  2993 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  2994 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  2995 		COMMAND		RFbsSession1	Connect
       
  2996 		COMMAND		CFbsBitmap1	new
       
  2997 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0113-001command4Create
       
  2998 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0113-001command5GetVerticalScanLine
       
  2999 		COMMAND		CFbsBitmap1	~
       
  3000 		COMMAND		RFbsSession1	Disconnect
       
  3001 	END_TEST_BLOCK
       
  3002 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0113
       
  3003 
       
  3004 
       
  3005 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0114
       
  3006 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0114
       
  3007 //! @SYMAPI			CFbsBitmap
       
  3008 //! @SYMAuthor			Anton Golovko
       
  3009 //! @SYMCreationDate		05/06/2006
       
  3010 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3011 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with display mode EColorLast.
       
  3012 //!				Uses API elements: GetVerticalScanLine()
       
  3013 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  3014 //!				2. Call GetVerticalScanLine() with x-coordinate 0, display mode EColorLast.
       
  3015 //! @SYMTestStatus		Implemented
       
  3016 //! @SYMTestPriority		Critical
       
  3017 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  3018 //! @SYMTestType		CIT
       
  3019 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3020 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3021 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3022 		COMMAND		RFbsSession1	Connect
       
  3023 		COMMAND		CFbsBitmap1	new
       
  3024 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0114-001command4Create
       
  3025 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0114-001command5GetVerticalScanLine
       
  3026 		COMMAND		CFbsBitmap1	~
       
  3027 		COMMAND		RFbsSession1	Disconnect
       
  3028 	END_TEST_BLOCK
       
  3029 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0114
       
  3030 
       
  3031 
       
  3032 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0115
       
  3033 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0115
       
  3034 //! @SYMAPI			CFbsBitmap
       
  3035 //! @SYMAuthor			Anton Golovko
       
  3036 //! @SYMCreationDate		05/06/2006
       
  3037 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3038 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with invalid display mode.
       
  3039 //!				Uses API elements: GetVerticalScanLine()
       
  3040 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  3041 //!				2. Call GetVerticalScanLine() with x-coordinate 0, display mode -1.
       
  3042 //! @SYMTestStatus		Implemented
       
  3043 //! @SYMTestPriority		Critical
       
  3044 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  3045 //! @SYMTestType		CIT
       
  3046 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3047 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3048 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3049 		COMMAND		RFbsSession1	Connect
       
  3050 		COMMAND		CFbsBitmap1	new
       
  3051 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0115-001command4Create
       
  3052 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0115-001command5GetVerticalScanLine
       
  3053 		COMMAND		CFbsBitmap1	~
       
  3054 		COMMAND		RFbsSession1	Disconnect
       
  3055 	END_TEST_BLOCK
       
  3056 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0115
       
  3057 
       
  3058 
       
  3059 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0116
       
  3060 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0116
       
  3061 //! @SYMAPI			CFbsBitmap
       
  3062 //! @SYMAuthor			Anton Golovko
       
  3063 //! @SYMCreationDate		05/06/2006
       
  3064 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3065 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with too short buffer.
       
  3066 //!				Uses API elements: GetVerticalScanLine()
       
  3067 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  3068 //!				2. Call GetVerticalScanLine() with x-coordinate 0, display mode EColor256 and buffer with length 1.
       
  3069 //! @SYMTestStatus		Implemented
       
  3070 //! @SYMTestPriority		Critical
       
  3071 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  3072 //! @SYMTestType		CIT
       
  3073 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3074 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3075 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3076 		COMMAND		RFbsSession1	Connect
       
  3077 		COMMAND		CFbsBitmap1	new
       
  3078 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0116-001command4Create
       
  3079 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0116-001command5GetVerticalScanLine
       
  3080 		COMMAND		CFbsBitmap1	~
       
  3081 		COMMAND		RFbsSession1	Disconnect
       
  3082 	END_TEST_BLOCK
       
  3083 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0116
       
  3084 
       
  3085 
       
  3086 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0117
       
  3087 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0117
       
  3088 //! @SYMAPI			CFbsBitmap
       
  3089 //! @SYMAuthor			Anton Golovko
       
  3090 //! @SYMCreationDate		05/06/2006
       
  3091 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3092 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with negative x-coordinate.
       
  3093 //!				Uses API elements: GetVerticalScanLine()
       
  3094 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  3095 //!				2. Call GetVerticalScanLine() with x-coordinate -1, display mode EColor256, dithering offset (0, 0).
       
  3096 //! @SYMTestStatus		Implemented
       
  3097 //! @SYMTestPriority		Critical
       
  3098 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  3099 //! @SYMTestType		CIT
       
  3100 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3101 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3102 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3103 		COMMAND		RFbsSession1	Connect
       
  3104 		COMMAND		CFbsBitmap1	new
       
  3105 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0117-001command4Create
       
  3106 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0117-001command5GetVerticalScanLine
       
  3107 		COMMAND		CFbsBitmap1	~
       
  3108 		COMMAND		RFbsSession1	Disconnect
       
  3109 	END_TEST_BLOCK
       
  3110 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0117
       
  3111 
       
  3112 
       
  3113 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0118
       
  3114 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0118
       
  3115 //! @SYMAPI			CFbsBitmap
       
  3116 //! @SYMAuthor			Anton Golovko
       
  3117 //! @SYMCreationDate		05/06/2006
       
  3118 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3119 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with too big x-coordinate.
       
  3120 //!				Uses API elements: GetVerticalScanLine()
       
  3121 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  3122 //!				2. Call GetVerticalScanLine() with x-coordinate 999, display mode EColor256, dithering offset (0, 0).
       
  3123 //! @SYMTestStatus		Implemented
       
  3124 //! @SYMTestPriority		Critical
       
  3125 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  3126 //! @SYMTestType		CIT
       
  3127 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3128 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3129 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3130 		COMMAND		RFbsSession1	Connect
       
  3131 		COMMAND		CFbsBitmap1	new
       
  3132 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0118-001command4Create
       
  3133 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0118-001command5GetVerticalScanLine
       
  3134 		COMMAND		CFbsBitmap1	~
       
  3135 		COMMAND		RFbsSession1	Disconnect
       
  3136 	END_TEST_BLOCK
       
  3137 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0118
       
  3138 
       
  3139 
       
  3140 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0119
       
  3141 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0119
       
  3142 //! @SYMAPI			CFbsBitmap
       
  3143 //! @SYMAuthor			Anton Golovko
       
  3144 //! @SYMCreationDate		05/06/2006
       
  3145 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3146 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with display mode ENone.
       
  3147 //!				Uses API elements: GetVerticalScanLine()
       
  3148 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  3149 //!				2. Call GetVerticalScanLine() with x-coordinate 0, display mode ENone, dithering offset (0, 0).
       
  3150 //! @SYMTestStatus		Implemented
       
  3151 //! @SYMTestPriority		Critical
       
  3152 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  3153 //! @SYMTestType		CIT
       
  3154 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3155 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3156 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3157 		COMMAND		RFbsSession1	Connect
       
  3158 		COMMAND		CFbsBitmap1	new
       
  3159 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0119-001command4Create
       
  3160 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0119-001command5GetVerticalScanLine
       
  3161 		COMMAND		CFbsBitmap1	~
       
  3162 		COMMAND		RFbsSession1	Disconnect
       
  3163 	END_TEST_BLOCK
       
  3164 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0119
       
  3165 
       
  3166 
       
  3167 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0120
       
  3168 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0120
       
  3169 //! @SYMAPI			CFbsBitmap
       
  3170 //! @SYMAuthor			Anton Golovko
       
  3171 //! @SYMCreationDate		05/06/2006
       
  3172 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3173 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with display mode ERgb.
       
  3174 //!				Uses API elements: GetVerticalScanLine()
       
  3175 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  3176 //!				2. Call GetVerticalScanLine() with x-coordinate 0, display mode ERgb, dithering offset (0, 0).
       
  3177 //! @SYMTestStatus		Implemented
       
  3178 //! @SYMTestPriority		Critical
       
  3179 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  3180 //! @SYMTestType		CIT
       
  3181 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3182 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3183 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3184 		COMMAND		RFbsSession1	Connect
       
  3185 		COMMAND		CFbsBitmap1	new
       
  3186 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0120-001command4Create
       
  3187 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0120-001command5GetVerticalScanLine
       
  3188 		COMMAND		CFbsBitmap1	~
       
  3189 		COMMAND		RFbsSession1	Disconnect
       
  3190 	END_TEST_BLOCK
       
  3191 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0120
       
  3192 
       
  3193 
       
  3194 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0121
       
  3195 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0121
       
  3196 //! @SYMAPI			CFbsBitmap
       
  3197 //! @SYMAuthor			Anton Golovko
       
  3198 //! @SYMCreationDate		05/06/2006
       
  3199 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3200 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with display mode EColorLast.
       
  3201 //!				Uses API elements: GetVerticalScanLine()
       
  3202 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  3203 //!				2. Call GetVerticalScanLine() with x-coordinate 0, display mode EColorLast, dithering offset (0, 0).
       
  3204 //! @SYMTestStatus		Implemented
       
  3205 //! @SYMTestPriority		Critical
       
  3206 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  3207 //! @SYMTestType		CIT
       
  3208 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3209 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3210 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3211 		COMMAND		RFbsSession1	Connect
       
  3212 		COMMAND		CFbsBitmap1	new
       
  3213 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0121-001command4Create
       
  3214 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0121-001command5GetVerticalScanLine
       
  3215 		COMMAND		CFbsBitmap1	~
       
  3216 		COMMAND		RFbsSession1	Disconnect
       
  3217 	END_TEST_BLOCK
       
  3218 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0121
       
  3219 
       
  3220 
       
  3221 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0122
       
  3222 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0122
       
  3223 //! @SYMAPI			CFbsBitmap
       
  3224 //! @SYMAuthor			Anton Golovko
       
  3225 //! @SYMCreationDate		05/06/2006
       
  3226 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3227 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with invalid display mode.
       
  3228 //!				Uses API elements: GetVerticalScanLine()
       
  3229 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  3230 //!				2. Call GetVerticalScanLine() with x-coordinate 0, display mode -1, dithering offset (0, 0).
       
  3231 //! @SYMTestStatus		Implemented
       
  3232 //! @SYMTestPriority		Critical
       
  3233 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  3234 //! @SYMTestType		CIT
       
  3235 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3236 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3237 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3238 		COMMAND		RFbsSession1	Connect
       
  3239 		COMMAND		CFbsBitmap1	new
       
  3240 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0122-001command4Create
       
  3241 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0122-001command5GetVerticalScanLine
       
  3242 		COMMAND		CFbsBitmap1	~
       
  3243 		COMMAND		RFbsSession1	Disconnect
       
  3244 	END_TEST_BLOCK
       
  3245 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0122
       
  3246 
       
  3247 
       
  3248 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0123
       
  3249 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0123
       
  3250 //! @SYMAPI			CFbsBitmap
       
  3251 //! @SYMAuthor			Anton Golovko
       
  3252 //! @SYMCreationDate		05/06/2006
       
  3253 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3254 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with too short buffer.
       
  3255 //!				Uses API elements: GetVerticalScanLine()
       
  3256 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  3257 //!				2. Call GetVerticalScanLine() with x-coordinate 0, display mode EColor256, dithering offset (0, 0). and buffer with length 1.
       
  3258 //! @SYMTestStatus		Implemented
       
  3259 //! @SYMTestPriority		Critical
       
  3260 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  3261 //! @SYMTestType		CIT
       
  3262 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3263 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3264 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3265 		COMMAND		RFbsSession1	Connect
       
  3266 		COMMAND		CFbsBitmap1	new
       
  3267 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0123-001command4Create
       
  3268 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0123-001command5GetVerticalScanLine
       
  3269 		COMMAND		CFbsBitmap1	~
       
  3270 		COMMAND		RFbsSession1	Disconnect
       
  3271 	END_TEST_BLOCK
       
  3272 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0123
       
  3273 
       
  3274 
       
  3275 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0124
       
  3276 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0124
       
  3277 //! @SYMAPI			CFbsBitmap
       
  3278 //! @SYMAuthor			Anton Golovko
       
  3279 //! @SYMCreationDate		05/06/2006
       
  3280 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3281 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with negative dithering offset.
       
  3282 //!				Uses API elements: GetVerticalScanLine()
       
  3283 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  3284 //!				2. Call GetVerticalScanLine() with x-coordinate 0, display mode EColor256, dithering offset (-1, -1).
       
  3285 //! @SYMTestStatus		Implemented
       
  3286 //! @SYMTestPriority		Critical
       
  3287 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  3288 //! @SYMTestType		CIT
       
  3289 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3290 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3291 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3292 		COMMAND		RFbsSession1	Connect
       
  3293 		COMMAND		CFbsBitmap1	new
       
  3294 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0124-001command4Create
       
  3295 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0124-001command5GetVerticalScanLine
       
  3296 		COMMAND		CFbsBitmap1	~
       
  3297 		COMMAND		RFbsSession1	Disconnect
       
  3298 	END_TEST_BLOCK
       
  3299 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0124
       
  3300 
       
  3301 
       
  3302 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0125
       
  3303 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0125
       
  3304 //! @SYMAPI			CFbsBitmap
       
  3305 //! @SYMAuthor			Anton Golovko
       
  3306 //! @SYMCreationDate		05/06/2006
       
  3307 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3308 //! @SYMTestCaseDesc		CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with too big dithering offset.
       
  3309 //!				Uses API elements: GetVerticalScanLine()
       
  3310 //! @SYMTestActions		1. Create bitmap (10x10, EColor256).
       
  3311 //!				2. Call GetVerticalScanLine() with x-coordinate 0, display mode EColor256, dithering offset (99999, 99999).
       
  3312 //! @SYMTestStatus		Implemented
       
  3313 //! @SYMTestPriority		Critical
       
  3314 //! @SYMTestExpectedResults	The function GetVerticalScanLine() call doesn't cause panic.
       
  3315 //! @SYMTestType		CIT
       
  3316 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3317 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3318 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3319 		COMMAND		RFbsSession1	Connect
       
  3320 		COMMAND		CFbsBitmap1	new
       
  3321 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0125-001command4Create
       
  3322 		COMMAND		CFbsBitmap1	GetVerticalScanLine	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0125-001command5GetVerticalScanLine
       
  3323 		COMMAND		CFbsBitmap1	~
       
  3324 		COMMAND		RFbsSession1	Disconnect
       
  3325 	END_TEST_BLOCK
       
  3326 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0125
       
  3327 
       
  3328 
       
  3329 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126
       
  3330 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126
       
  3331 //! @SYMAPI			CFbsBitmap
       
  3332 //! @SYMAuthor			Anton Golovko
       
  3333 //! @SYMCreationDate		05/06/2006
       
  3334 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3335 //! @SYMTestCaseDesc		Convert horiz/vert dimensions on graphics device between pixels and twips for negative values.
       
  3336 //!				Uses API elements: Load(), HorizontalPixelsToTwips(), HorizontalTwipsToPixels(),
       
  3337 //!				VerticalPixelsToTwips(), VerticalTwipsToPixels()
       
  3338 //! @SYMTestActions		1. Create bitmap.
       
  3339 //!				2. Convert horiz dimensions on graphics device from -999 pixels to twips and check it to be as expected.
       
  3340 //!				3. Convert horiz dimensions on graphics device back to pixels from -999 twips and check it to be as expected.
       
  3341 //!				4. Convert vert dimensions on graphics device from -999 pixels to twips and check it to be as expected.
       
  3342 //!				5. Convert vert dimensions on graphics device back to pixels from -999 twips and check it to be as expected.
       
  3343 //! @SYMTestStatus		Implemented
       
  3344 //! @SYMTestPriority		Critical
       
  3345 //! @SYMTestExpectedResults	Conversions are done correctly without causing panic.
       
  3346 //! @SYMTestType		CIT
       
  3347 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3348 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3349 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3350 		COMMAND		RFbsSession1	Connect
       
  3351 		COMMAND		CFbsBitmap1	new
       
  3352 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command4Create
       
  3353 		COMMAND		CFbsBitmap1	HorizontalPixelsToTwips	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command5HorizontalPixelsToTwips
       
  3354 		COMMAND		CFbsBitmap1	HorizontalTwipsToPixels	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command6HorizontalTwipsToPixels
       
  3355 		COMMAND		CFbsBitmap1	VerticalPixelsToTwips	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command7VerticalPixelsToTwips
       
  3356 		COMMAND		CFbsBitmap1	VerticalTwipsToPixels	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command8VerticalTwipsToPixels
       
  3357 		COMMAND		CFbsBitmap1	~
       
  3358 		COMMAND		RFbsSession1	Disconnect
       
  3359 	END_TEST_BLOCK
       
  3360 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126
       
  3361 
       
  3362 
       
  3363 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0127
       
  3364 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0127
       
  3365 //! @SYMAPI			CFbsBitmap
       
  3366 //! @SYMAuthor			Anton Golovko
       
  3367 //! @SYMCreationDate		05/06/2006
       
  3368 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3369 //! @SYMTestCaseDesc		GetPixel() test for negative x-coordinate.
       
  3370 //!				Uses API elements: GetPixel()
       
  3371 //! @SYMTestActions		1. Create 10x10 bitmap.
       
  3372 //!				2. Call GetPixel(-1, 0) and check the RGB color to be as expected.
       
  3373 //! @SYMTestStatus		Implemented
       
  3374 //! @SYMTestPriority		Critical
       
  3375 //! @SYMTestExpectedResults	The function GetPixel() call doesn't cause panic.
       
  3376 //! @SYMTestType		CIT
       
  3377 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3378 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3379 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3380 		COMMAND		RFbsSession1	Connect
       
  3381 		COMMAND		CFbsBitmap1	new
       
  3382 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0127-001command4Create
       
  3383 		COMMAND		CFbsBitmap1	GetPixel	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0127-001command5GetPixel
       
  3384 		COMMAND		CFbsBitmap1	~
       
  3385 		COMMAND		RFbsSession1	Disconnect
       
  3386 	END_TEST_BLOCK
       
  3387 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0127
       
  3388 
       
  3389 
       
  3390 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0128
       
  3391 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0128
       
  3392 //! @SYMAPI			CFbsBitmap
       
  3393 //! @SYMAuthor			Anton Golovko
       
  3394 //! @SYMCreationDate		05/06/2006
       
  3395 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3396 //! @SYMTestCaseDesc		GetPixel() test for negative y-coordinate.
       
  3397 //!				Uses API elements: GetPixel()
       
  3398 //! @SYMTestActions		1. Create 10x10 bitmap.
       
  3399 //!				2. Call GetPixel(0, -1) and check the RGB color to be as expected.
       
  3400 //! @SYMTestStatus		Implemented
       
  3401 //! @SYMTestPriority		Critical
       
  3402 //! @SYMTestExpectedResults	The function GetPixel() call doesn't cause panic.
       
  3403 //! @SYMTestType		CIT
       
  3404 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3405 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3406 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3407 		COMMAND		RFbsSession1	Connect
       
  3408 		COMMAND		CFbsBitmap1	new
       
  3409 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0128-001command4Create
       
  3410 		COMMAND		CFbsBitmap1	GetPixel	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0128-001command5GetPixel
       
  3411 		COMMAND		CFbsBitmap1	~
       
  3412 		COMMAND		RFbsSession1	Disconnect
       
  3413 	END_TEST_BLOCK
       
  3414 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0128
       
  3415 
       
  3416 
       
  3417 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0129
       
  3418 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0129
       
  3419 //! @SYMAPI			CFbsBitmap
       
  3420 //! @SYMAuthor			Anton Golovko
       
  3421 //! @SYMCreationDate		05/06/2006
       
  3422 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3423 //! @SYMTestCaseDesc		GetPixel() test for negative x- and y-coordinate.
       
  3424 //!				Uses API elements: GetPixel()
       
  3425 //! @SYMTestActions		1. Create 10x10 bitmap.
       
  3426 //!				2. Call GetPixel(-1, -1) and check the RGB color to be as expected.
       
  3427 //! @SYMTestStatus		Implemented
       
  3428 //! @SYMTestPriority		Critical
       
  3429 //! @SYMTestExpectedResults	The function GetPixel() call doesn't cause panic.
       
  3430 //! @SYMTestType		CIT
       
  3431 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3432 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3433 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3434 		COMMAND		RFbsSession1	Connect
       
  3435 		COMMAND		CFbsBitmap1	new
       
  3436 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0129-001command4Create
       
  3437 		COMMAND		CFbsBitmap1	GetPixel	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0129-001command5GetPixel
       
  3438 		COMMAND		CFbsBitmap1	~
       
  3439 		COMMAND		RFbsSession1	Disconnect
       
  3440 	END_TEST_BLOCK
       
  3441 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0129
       
  3442 
       
  3443 
       
  3444 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0130
       
  3445 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0130
       
  3446 //! @SYMAPI			CFbsBitmap
       
  3447 //! @SYMAuthor			Anton Golovko
       
  3448 //! @SYMCreationDate		05/06/2006
       
  3449 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3450 //! @SYMTestCaseDesc		GetPixel() test for too big x-coordinate.
       
  3451 //!				Uses API elements: GetPixel()
       
  3452 //! @SYMTestActions		1. Create 10x10 bitmap.
       
  3453 //!				2. Call GetPixel(10, 0) and check the RGB color to be as expected.
       
  3454 //! @SYMTestStatus		Implemented
       
  3455 //! @SYMTestPriority		Critical
       
  3456 //! @SYMTestExpectedResults	The function GetPixel() call doesn't cause panic.
       
  3457 //! @SYMTestType		CIT
       
  3458 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3459 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3460 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3461 		COMMAND		RFbsSession1	Connect
       
  3462 		COMMAND		CFbsBitmap1	new
       
  3463 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0130-001command4Create
       
  3464 		COMMAND		CFbsBitmap1	GetPixel	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0130-001command5GetPixel
       
  3465 		COMMAND		CFbsBitmap1	~
       
  3466 		COMMAND		RFbsSession1	Disconnect
       
  3467 	END_TEST_BLOCK
       
  3468 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0130
       
  3469 
       
  3470 
       
  3471 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0131
       
  3472 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0131
       
  3473 //! @SYMAPI			CFbsBitmap
       
  3474 //! @SYMAuthor			Anton Golovko
       
  3475 //! @SYMCreationDate		05/06/2006
       
  3476 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3477 //! @SYMTestCaseDesc		GetPixel() test for too big y-coordinate.
       
  3478 //!				Uses API elements: GetPixel()
       
  3479 //! @SYMTestActions		1. Create 10x10 bitmap.
       
  3480 //!				2. Call GetPixel(0, 10) and check the RGB color to be as expected.
       
  3481 //! @SYMTestStatus		Implemented
       
  3482 //! @SYMTestPriority		Critical
       
  3483 //! @SYMTestExpectedResults	The function GetPixel() call doesn't cause panic.
       
  3484 //! @SYMTestType		CIT
       
  3485 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3486 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3487 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3488 		COMMAND		RFbsSession1	Connect
       
  3489 		COMMAND		CFbsBitmap1	new
       
  3490 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0131-001command4Create
       
  3491 		COMMAND		CFbsBitmap1	GetPixel	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0131-001command5GetPixel
       
  3492 		COMMAND		CFbsBitmap1	~
       
  3493 		COMMAND		RFbsSession1	Disconnect
       
  3494 	END_TEST_BLOCK
       
  3495 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0131
       
  3496 
       
  3497 
       
  3498 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0132
       
  3499 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0132
       
  3500 //! @SYMAPI			CFbsBitmap
       
  3501 //! @SYMAuthor			Anton Golovko
       
  3502 //! @SYMCreationDate		05/06/2006
       
  3503 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3504 //! @SYMTestCaseDesc		GetPixel() test for too big x- and y-coordinate.
       
  3505 //!				Uses API elements: GetPixel()
       
  3506 //! @SYMTestActions		1. Create 10x10 bitmap.
       
  3507 //!				2. Call GetPixel(10, 10) and check the RGB color to be as expected.
       
  3508 //! @SYMTestStatus		Implemented
       
  3509 //! @SYMTestPriority		Critical
       
  3510 //! @SYMTestExpectedResults	The function GetPixel() call doesn't cause panic.
       
  3511 //! @SYMTestType		CIT
       
  3512 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3513 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3514 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3515 		COMMAND		RFbsSession1	Connect
       
  3516 		COMMAND		CFbsBitmap1	new
       
  3517 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0132-001command4Create
       
  3518 		COMMAND		CFbsBitmap1	GetPixel	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0132-001command5GetPixel
       
  3519 		COMMAND		CFbsBitmap1	~
       
  3520 		COMMAND		RFbsSession1	Disconnect
       
  3521 	END_TEST_BLOCK
       
  3522 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0132
       
  3523 
       
  3524 
       
  3525 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0133
       
  3526 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0133
       
  3527 //! @SYMAPI			CFbsBitmap
       
  3528 //! @SYMAuthor			Anton Golovko
       
  3529 //! @SYMCreationDate		05/06/2006
       
  3530 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3531 //! @SYMTestCaseDesc		Resize() test on not fully constructed bitmap.
       
  3532 //!				Uses API elements: Resize()
       
  3533 //! @SYMTestActions		1. Construct a bitmap, but don't load or create it.
       
  3534 //!				2. Call Resize().
       
  3535 //! @SYMTestStatus		Implemented
       
  3536 //! @SYMTestPriority		Critical
       
  3537 //! @SYMTestExpectedResults	Resize() must return error KErrGeneral (-2).
       
  3538 //! @SYMTestType		CIT
       
  3539 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3540 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  3541 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  3542 		COMMAND			RFbsSession1	Connect
       
  3543 		COMMAND			CFbsBitmap1	new
       
  3544 		COMMAND	!Error=-2	CFbsBitmap1	Resize		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0133-001command4Resize
       
  3545 		COMMAND			CFbsBitmap1	~
       
  3546 		COMMAND			RFbsSession1	Disconnect
       
  3547 	END_TEST_BLOCK
       
  3548 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0133
       
  3549 
       
  3550 
       
  3551 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134
       
  3552 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134
       
  3553 //! @SYMAPI			CFbsBitmap
       
  3554 //! @SYMAuthor			Anton Golovko
       
  3555 //! @SYMCreationDate		05/06/2006
       
  3556 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3557 //! @SYMTestCaseDesc		Resize() test with illegal size.
       
  3558 //!				Uses API elements: Resize()
       
  3559 //! @SYMTestActions		1. Create 10x10 bitmap
       
  3560 //!				2. Call Resize() setting width to -1 and height to -200.
       
  3561 //! @SYMTestStatus		Implemented
       
  3562 //! @SYMTestPriority		Critical
       
  3563 //! @SYMTestExpectedResults	Resize() must return error KErrArgument (-6).
       
  3564 //! @SYMTestType		CIT
       
  3565 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3566 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  3567 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  3568 		COMMAND			RFbsSession1	Connect
       
  3569 		COMMAND			CFbsBitmap1	new
       
  3570 		COMMAND			CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134-001command4Create
       
  3571 		COMMAND	!Error=-6	CFbsBitmap1	Resize		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134-001command5Resize
       
  3572 		COMMAND			CFbsBitmap1	SizeInPixels	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134-001command6SizeInPixels
       
  3573 		COMMAND			CFbsBitmap1	~
       
  3574 		COMMAND			RFbsSession1	Disconnect
       
  3575 	END_TEST_BLOCK
       
  3576 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134
       
  3577 
       
  3578 
       
  3579 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135
       
  3580 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135
       
  3581 //! @SYMAPI			CFbsBitmap
       
  3582 //! @SYMAuthor			Anton Golovko
       
  3583 //! @SYMCreationDate		05/06/2006
       
  3584 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3585 //! @SYMTestCaseDesc		Resize() test on ROM bitmap.
       
  3586 //!				Uses API elements: Resize()
       
  3587 //! @SYMTestActions		1. Load a bitmap from ROM
       
  3588 //!				2. Call Resize() setting width to 10 and height to 10.
       
  3589 //! @SYMTestStatus		Implemented
       
  3590 //! @SYMTestPriority		Critical
       
  3591 //! @SYMTestExpectedResults	Resize() must return error KErrAccessDenied (-21).
       
  3592 //! @SYMTestType		CIT
       
  3593 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3594 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  3595 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  3596 		COMMAND			RFbsSession1	Connect
       
  3597 		COMMAND			CFbsBitmap1	new
       
  3598 		COMMAND			CFbsBitmap1	IsFileInRom	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135-001command4IsFileInRom
       
  3599 		COMMAND			CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135-001command5Load
       
  3600 		COMMAND	!Error=-21	CFbsBitmap1	Resize		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135-001command6Resize
       
  3601 		COMMAND			CFbsBitmap1	~
       
  3602 		COMMAND			RFbsSession1	Disconnect
       
  3603 	END_TEST_BLOCK
       
  3604 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135
       
  3605 
       
  3606 
       
  3607 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0136
       
  3608 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0136
       
  3609 //! @SYMAPI			CFbsBitmap
       
  3610 //! @SYMAuthor			Anton Golovko
       
  3611 //! @SYMCreationDate		05/06/2006
       
  3612 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3613 //! @SYMTestCaseDesc		CFbsBitmap::SetSizeInTwips() (SetSizeInTwips(const MGraphicsDeviceMap *aMap) version) test NULL argument test.
       
  3614 //!				Uses API elements: SetSizeInTwips()
       
  3615 //! @SYMTestActions		1. Create bitmap.
       
  3616 //!				2. Call SetSizeInTwips() passing NULL as argument.
       
  3617 //! @SYMTestStatus		Implemented
       
  3618 //! @SYMTestPriority		Critical
       
  3619 //! @SYMTestExpectedResults	The function SetSizeInTwips() call doesn't cause panic.
       
  3620 //! @SYMTestType		CIT
       
  3621 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3622 		CREATE_OBJECT	RFbsSession		RFbsSession1
       
  3623 		CREATE_OBJECT	CFbsBitmap		CFbsBitmap1
       
  3624 		CREATE_OBJECT	CFbsBitmapDevice	CFbsBitmapDevice1
       
  3625 		COMMAND		RFbsSession1		Connect
       
  3626 		COMMAND		CFbsBitmap1		new
       
  3627 		COMMAND		CFbsBitmap1		Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0136-001command4Create
       
  3628 		COMMAND		CFbsBitmap1		SetSizeInTwips		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0136-001command5SetSizeInTwips
       
  3629 		COMMAND		CFbsBitmap1		~
       
  3630 		COMMAND		RFbsSession1		Disconnect
       
  3631 	END_TEST_BLOCK
       
  3632 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0136
       
  3633 
       
  3634 
       
  3635 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0137
       
  3636 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0137
       
  3637 //! @SYMAPI			CFbsBitmap
       
  3638 //! @SYMAuthor			Anton Golovko
       
  3639 //! @SYMCreationDate		05/06/2006
       
  3640 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3641 //! @SYMTestCaseDesc		CFbsBitmap::SetSizeInTwips() (SetSizeInTwips(const TSize &aSizeInTwips) version) with negative width.
       
  3642 //!				Uses API elements: SetSizeInTwips()
       
  3643 //! @SYMTestActions		1. Create bitmap.
       
  3644 //!				2. Call SetSizeInTwips() passing new size (-10, 0).
       
  3645 //! @SYMTestStatus		Implemented
       
  3646 //! @SYMTestPriority		Critical
       
  3647 //! @SYMTestExpectedResults	The function SetSizeInTwips() call doesn't cause panic.
       
  3648 //! @SYMTestType		CIT
       
  3649 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3650 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3651 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3652 		COMMAND		RFbsSession1	Connect
       
  3653 		COMMAND		CFbsBitmap1	new
       
  3654 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0137-001command4Create
       
  3655 		COMMAND		CFbsBitmap1	SetSizeInTwips	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0137-001command5SetSizeInTwips
       
  3656 		COMMAND		CFbsBitmap1	~
       
  3657 		COMMAND		RFbsSession1	Disconnect
       
  3658 	END_TEST_BLOCK
       
  3659 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0137
       
  3660 
       
  3661 
       
  3662 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0138
       
  3663 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0138
       
  3664 //! @SYMAPI			CFbsBitmap
       
  3665 //! @SYMAuthor			Anton Golovko
       
  3666 //! @SYMCreationDate		05/06/2006
       
  3667 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3668 //! @SYMTestCaseDesc		CFbsBitmap::SetSizeInTwips() (SetSizeInTwips(const TSize &aSizeInTwips) version) with negative height.
       
  3669 //!				Uses API elements: SetSizeInTwips()
       
  3670 //! @SYMTestActions		1. Create bitmap.
       
  3671 //!				2. Call SetSizeInTwips() passing new size (0, -10).
       
  3672 //! @SYMTestStatus		Implemented
       
  3673 //! @SYMTestPriority		Critical
       
  3674 //! @SYMTestExpectedResults	The function SetSizeInTwips() call doesn't cause panic.
       
  3675 //! @SYMTestType		CIT
       
  3676 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3677 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3678 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3679 		COMMAND		RFbsSession1	Connect
       
  3680 		COMMAND		CFbsBitmap1	new
       
  3681 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0138-001command4Create
       
  3682 		COMMAND		CFbsBitmap1	SetSizeInTwips	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0138-001command5SetSizeInTwips
       
  3683 		COMMAND		CFbsBitmap1	~
       
  3684 		COMMAND		RFbsSession1	Disconnect
       
  3685 	END_TEST_BLOCK
       
  3686 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0138
       
  3687 
       
  3688 
       
  3689 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0139
       
  3690 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0139
       
  3691 //! @SYMAPI			CFbsBitmap
       
  3692 //! @SYMAuthor			Anton Golovko
       
  3693 //! @SYMCreationDate		05/06/2006
       
  3694 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3695 //! @SYMTestCaseDesc		CFbsBitmap::SetSizeInTwips() (SetSizeInTwips(const TSize &aSizeInTwips) version) with negative width and height.
       
  3696 //!				Uses API elements: SetSizeInTwips()
       
  3697 //! @SYMTestActions		1. Create bitmap.
       
  3698 //!				2. Call SetSizeInTwips() passing new size (-10, -10).
       
  3699 //! @SYMTestStatus		Implemented
       
  3700 //! @SYMTestPriority		Critical
       
  3701 //! @SYMTestExpectedResults	The function SetSizeInTwips() call doesn't cause panic.
       
  3702 //! @SYMTestType		CIT
       
  3703 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3704 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3705 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3706 		COMMAND		RFbsSession1	Connect
       
  3707 		COMMAND		CFbsBitmap1	new
       
  3708 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0139-001command4Create
       
  3709 		COMMAND		CFbsBitmap1	SetSizeInTwips	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0139-001command5SetSizeInTwips
       
  3710 		COMMAND		CFbsBitmap1	~
       
  3711 		COMMAND		RFbsSession1	Disconnect
       
  3712 	END_TEST_BLOCK
       
  3713 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0139
       
  3714 
       
  3715 
       
  3716 //!START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0140
       
  3717 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0140
       
  3718 //! @SYMAPI			CFbsBitmap
       
  3719 //! @SYMAuthor			Anton Golovko
       
  3720 //! @SYMCreationDate		05/06/2006
       
  3721 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3722 //! @SYMTestCaseDesc		ExternalizeL() test on closed write stream.
       
  3723 //!				Uses API elements: ExternalizeL()
       
  3724 //! @SYMTestActions		1. Create a bitmap.
       
  3725 //!				2. Create write stream, close it
       
  3726 //!				3. Call ExternalizeL() on the closed write stream.
       
  3727 //! @SYMTestStatus		Implemented
       
  3728 //! @SYMTestPriority		Critical
       
  3729 //! @SYMTestExpectedResults	The operation must panic.
       
  3730 //! @SYMTestType		CIT
       
  3731 //!	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3732 //!		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3733 //!		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3734 //!		COMMAND		RFbsSession1	Connect
       
  3735 //!		COMMAND		CFbsBitmap1	new
       
  3736 //!		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0140-001-Create_command04
       
  3737 //!		COMMAND		CFbsBitmap1	ExternalizeL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0140-001-ExternalizeL_command05
       
  3738 //!	END_TEST_BLOCK	!PanicCode=3 !PanicString=KERN-EXEC
       
  3739 //!    RUN_TEST_STEP	100	T_FBServAPI	utilityClearPanicDlg
       
  3740 //!END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0140
       
  3741 
       
  3742 
       
  3743 //!START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0141
       
  3744 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0141
       
  3745 //! @SYMAPI			CFbsBitmap
       
  3746 //! @SYMAuthor			Anton Golovko
       
  3747 //! @SYMCreationDate		05/06/2006
       
  3748 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3749 //! @SYMTestCaseDesc		ExternalizeRectangleL() test on closed write stream.
       
  3750 //!				Uses API elements: ExternalizeRectangleL()
       
  3751 //! @SYMTestActions		1. Create a bitmap.
       
  3752 //!				2. Create write stream, close it
       
  3753 //!				3. Call ExternalizeRectangleL() on the closed write stream.
       
  3754 //! @SYMTestStatus		Implemented
       
  3755 //! @SYMTestPriority		Critical
       
  3756 //! @SYMTestExpectedResults	The operation must panic.
       
  3757 //! @SYMTestType		CIT
       
  3758 //!	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3759 //!		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3760 //!		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3761 //!		COMMAND		RFbsSession1	Connect
       
  3762 //!		COMMAND		CFbsBitmap1	new
       
  3763 //!		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0141-001-Create_command04
       
  3764 //!		COMMAND		CFbsBitmap1	ExternalizeRectangleL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0141-001-ExternalizeRectangleL_command05
       
  3765 //!	END_TEST_BLOCK	!PanicCode=3 !PanicString=KERN-EXEC
       
  3766 //!    RUN_TEST_STEP	100	T_FBServAPI	utilityClearPanicDlg
       
  3767 //!END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0141
       
  3768 
       
  3769 
       
  3770 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0142
       
  3771 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0142
       
  3772 //! @SYMAPI			CFbsBitmap
       
  3773 //! @SYMAuthor			Anton Golovko
       
  3774 //! @SYMCreationDate		05/06/2006
       
  3775 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3776 //! @SYMTestCaseDesc		ExternalizeRectangleL() test with out-of-range rectangle.
       
  3777 //!				Uses API elements: ExternalizeRectangleL()
       
  3778 //! @SYMTestActions		1. Create a bitmap.
       
  3779 //!				2. Call ExternalizeRectangleL() on the write stream passing out-of-range rectangle.
       
  3780 //! @SYMTestStatus		Implemented
       
  3781 //! @SYMTestPriority		Critical
       
  3782 //! @SYMTestExpectedResults	ExternalizeL() must leave with error KErrTooBig (-40)
       
  3783 //! @SYMTestType		CIT
       
  3784 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3785 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  3786 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  3787 		COMMAND			RFbsSession1	Connect
       
  3788 		COMMAND			CFbsBitmap1	new
       
  3789 		COMMAND			CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0142-001command4Create
       
  3790 		COMMAND	!Error=-40	CFbsBitmap1	ExternalizeRectangleL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0142-001command5ExternalizeRectangleL
       
  3791 		COMMAND			CFbsBitmap1	~
       
  3792 		COMMAND			RFbsSession1	Disconnect
       
  3793 	END_TEST_BLOCK
       
  3794 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0142
       
  3795 
       
  3796 
       
  3797 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0143
       
  3798 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0143
       
  3799 //! @SYMAPI			CFbsBitmap
       
  3800 //! @SYMAuthor			Anton Golovko
       
  3801 //! @SYMCreationDate		05/06/2006
       
  3802 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3803 //! @SYMTestCaseDesc		InternalizeL() test from non-bitmap file.
       
  3804 //!				Uses API elements: InternalizeL()
       
  3805 //! @SYMTestActions		1. Create a bitmap class instance.
       
  3806 //!				2. Internalize bitmap from read stream that points to non-bitmap file.
       
  3807 //! @SYMTestStatus		Implemented
       
  3808 //! @SYMTestPriority		Critical
       
  3809 //! @SYMTestExpectedResults	InternalizeL() must leave with error KErrCorrupt (-20)
       
  3810 //! @SYMTestType		CIT
       
  3811 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3812 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  3813 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  3814 		COMMAND			RFbsSession1	Connect
       
  3815 		COMMAND			CFbsBitmap1	new
       
  3816 		COMMAND			CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0143-001command4Create
       
  3817 		COMMAND	!Error=-20	CFbsBitmap1	InternalizeL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0143-001command5InternalizeL
       
  3818 		COMMAND			CFbsBitmap1	~
       
  3819 		COMMAND			RFbsSession1	Disconnect
       
  3820 	END_TEST_BLOCK
       
  3821 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0143
       
  3822 
       
  3823 
       
  3824 //!START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0144
       
  3825 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0144
       
  3826 //! @SYMAPI			CFbsBitmap
       
  3827 //! @SYMAuthor			Anton Golovko
       
  3828 //! @SYMCreationDate		05/06/2006
       
  3829 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3830 //! @SYMTestCaseDesc		InternalizeL() test on non-opened read stream.
       
  3831 //!				Uses API elements: InternalizeL()
       
  3832 //! @SYMTestActions		1. Create a bitmap class instance.
       
  3833 //!				2. Call InternalizeL() on non-opened read stream
       
  3834 //! @SYMTestStatus		Implemented
       
  3835 //! @SYMTestPriority		Critical
       
  3836 //! @SYMTestExpectedResults	InternalizeL() must panic.
       
  3837 //! @SYMTestType		CIT
       
  3838 //!	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3839 //!		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3840 //!		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3841 //!		COMMAND		RFbsSession1	Connect
       
  3842 //!		COMMAND		CFbsBitmap1	new
       
  3843 //!		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0144-001command4Create
       
  3844 //!		COMMAND		CFbsBitmap1	InternalizeL	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0144-001command5InternalizeL
       
  3845 //!	END_TEST_BLOCK	!PanicCode=3 !PanicString=KERN-EXEC
       
  3846 //!    RUN_TEST_STEP	100	T_FBServAPI	utilityClearPanicDlg
       
  3847 //!END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0144
       
  3848 
       
  3849 
       
  3850 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0145
       
  3851 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0145
       
  3852 //! @SYMAPI			CFbsBitmap
       
  3853 //! @SYMAuthor			Anton Golovko
       
  3854 //! @SYMCreationDate		06/06/2006
       
  3855 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3856 //! @SYMTestCaseDesc		Twice compress a bitmap.
       
  3857 //!				Uses API elements: Compress()
       
  3858 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
  3859 //!				2. Compress the bitmap.
       
  3860 //!				3. Compress the bitmap second time.
       
  3861 //! @SYMTestStatus		Implemented
       
  3862 //! @SYMTestPriority		Critical
       
  3863 //! @SYMTestExpectedResults	Second Compress() call must also complete without causing panic.
       
  3864 //! @SYMTestType		CIT
       
  3865 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3866 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3867 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3868 		COMMAND		RFbsSession1	Connect
       
  3869 		COMMAND		CFbsBitmap1	new
       
  3870 		COMMAND		CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0145-001command4Load
       
  3871 		COMMAND		CFbsBitmap1	Compress
       
  3872 		COMMAND		CFbsBitmap1	Compress
       
  3873 		COMMAND		CFbsBitmap1	~
       
  3874 		COMMAND		RFbsSession1	Disconnect
       
  3875 	END_TEST_BLOCK
       
  3876 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0145
       
  3877 
       
  3878 
       
  3879 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0146
       
  3880 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0146
       
  3881 //! @SYMAPI			CFbsBitmap
       
  3882 //! @SYMAuthor			Anton Golovko
       
  3883 //! @SYMCreationDate		06/06/2006
       
  3884 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3885 //! @SYMTestCaseDesc		CFbsBitmap::Compress() test on bitmap loaded from ROM.
       
  3886 //!				Uses API elements: Compress()
       
  3887 //! @SYMTestActions		1. Load a bitmap from file that resides in ROM.
       
  3888 //!				2. Compress the bitmap.
       
  3889 //! @SYMTestStatus		Implemented
       
  3890 //! @SYMTestPriority		Critical
       
  3891 //! @SYMTestExpectedResults	Compress() call must return error KErrAccessDenied (-21)
       
  3892 //! @SYMTestType		CIT
       
  3893 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3894 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  3895 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  3896 		COMMAND			RFbsSession1	Connect
       
  3897 		COMMAND			CFbsBitmap1	new
       
  3898 		COMMAND			CFbsBitmap1	IsFileInRom	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0146-001command4IsFileInRom
       
  3899 		COMMAND			CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0146-001command5Load
       
  3900 		COMMAND	!Error=-21	CFbsBitmap1	Compress
       
  3901 		COMMAND			CFbsBitmap1	~
       
  3902 		COMMAND			RFbsSession1	Disconnect
       
  3903 	END_TEST_BLOCK
       
  3904 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0146
       
  3905 
       
  3906 
       
  3907 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0147
       
  3908 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0147
       
  3909 //! @SYMAPI			CFbsBitmap
       
  3910 //! @SYMAuthor			Anton Golovko
       
  3911 //! @SYMCreationDate		06/06/2006
       
  3912 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3913 //! @SYMTestCaseDesc		CFbsBitmap::Compress() test on not-fully-constucted bitmap.
       
  3914 //!				Uses API elements: Compress()
       
  3915 //! @SYMTestActions		1. Create a bitmap instance, but don't create or load the bitmap.
       
  3916 //!				2. Compress the bitmap.
       
  3917 //! @SYMTestStatus		Implemented
       
  3918 //! @SYMTestPriority		Critical
       
  3919 //! @SYMTestExpectedResults	Compress() call must return error KErrGeneral (-2)
       
  3920 //! @SYMTestType		CIT
       
  3921 	START_TEST_BLOCK	100			T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3922 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  3923 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  3924 		COMMAND			RFbsSession1	Connect
       
  3925 		COMMAND			CFbsBitmap1	new
       
  3926 		COMMAND	!Error=-2	CFbsBitmap1	Compress
       
  3927 		COMMAND			CFbsBitmap1	~
       
  3928 		COMMAND			RFbsSession1	Disconnect
       
  3929 	END_TEST_BLOCK
       
  3930 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0147
       
  3931 
       
  3932 
       
  3933 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0148
       
  3934 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0148
       
  3935 //! @SYMAPI			CFbsBitmap
       
  3936 //! @SYMAuthor			Anton Golovko
       
  3937 //! @SYMCreationDate		06/06/2006
       
  3938 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3939 //! @SYMTestCaseDesc		CFbsBitmap::CompressInBackground() (CompressInBackground() version) test that compress a bitmap twice.
       
  3940 //!				Uses API elements: CompressInBackground()
       
  3941 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
  3942 //!				2. Call Compress() on the bitmap.
       
  3943 //!				3. Call CompressInBackground() on the bitmap.
       
  3944 //! @SYMTestStatus		Implemented
       
  3945 //! @SYMTestPriority		Critical
       
  3946 //! @SYMTestExpectedResults	Second CompressInBackground() call must complete without causing panic.
       
  3947 //! @SYMTestType		CIT
       
  3948 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3949 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  3950 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  3951 		COMMAND		RFbsSession1	Connect
       
  3952 		COMMAND		CFbsBitmap1	new
       
  3953 		COMMAND		CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0148-001command4Load
       
  3954 		COMMAND		CFbsBitmap1	Compress
       
  3955 		COMMAND		CFbsBitmap1	CompressInBackground	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0148-001command6CompressInBackground
       
  3956 		OUTSTANDING
       
  3957 		COMMAND		CFbsBitmap1	~
       
  3958 		COMMAND		RFbsSession1	Disconnect
       
  3959 	END_TEST_BLOCK
       
  3960 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0148
       
  3961 
       
  3962 
       
  3963 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149
       
  3964 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149
       
  3965 //! @SYMAPI			CFbsBitmap
       
  3966 //! @SYMAuthor			Anton Golovko
       
  3967 //! @SYMCreationDate		06/06/2006
       
  3968 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3969 //! @SYMTestCaseDesc		CFbsBitmap::CompressInBackground() (CompressInBackground() version) test on bitmap loaded from ROM.
       
  3970 //!				Uses API elements: CompressInBackground()
       
  3971 //! @SYMTestActions		1. Load a bitmap from file that resides in ROM.
       
  3972 //!				2. Compress the bitmap using CompressInBackground()
       
  3973 //! @SYMTestStatus		Implemented
       
  3974 //! @SYMTestPriority		Critical
       
  3975 //! @SYMTestExpectedResults	CompressInBackground() call must return error KErrAccessDenied (-21)
       
  3976 //! @SYMTestType		CIT
       
  3977 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  3978 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  3979 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  3980 		COMMAND			RFbsSession1	Connect
       
  3981 		COMMAND			CFbsBitmap1	new
       
  3982 		COMMAND			CFbsBitmap1	IsFileInRom		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149-001command4IsFileInRom
       
  3983 		COMMAND			CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149-001command5Load
       
  3984 		COMMAND	!Error=-21	CFbsBitmap1	CompressInBackground	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149-001command6CompressInBackground
       
  3985 		OUTSTANDING
       
  3986 		COMMAND			CFbsBitmap1	~
       
  3987 		COMMAND			RFbsSession1	Disconnect
       
  3988 	END_TEST_BLOCK
       
  3989 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149
       
  3990 
       
  3991 
       
  3992 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0150
       
  3993 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0150
       
  3994 //! @SYMAPI			CFbsBitmap
       
  3995 //! @SYMAuthor			Anton Golovko
       
  3996 //! @SYMCreationDate		06/06/2006
       
  3997 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  3998 //! @SYMTestCaseDesc		CFbsBitmap::CompressInBackground() (CompressInBackground() version) test on not-fully-constucted bitmap.
       
  3999 //!				Uses API elements: CompressInBackground()
       
  4000 //! @SYMTestActions		1. Create a bitmap instance, but don't create or load the bitmap.
       
  4001 //!				2. Compress the bitmap using CompressInBackground()
       
  4002 //! @SYMTestStatus		Implemented
       
  4003 //! @SYMTestPriority		Critical
       
  4004 //! @SYMTestExpectedResults	CompressInBackground() call must return error KErrGeneral (-2)
       
  4005 //! @SYMTestType		CIT
       
  4006 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4007 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  4008 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  4009 		COMMAND			RFbsSession1	Connect
       
  4010 		COMMAND			CFbsBitmap1	new
       
  4011 		COMMAND	!Error=-2	CFbsBitmap1	CompressInBackground	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0150-001command4CompressInBackground
       
  4012 		OUTSTANDING
       
  4013 		COMMAND			CFbsBitmap1	~
       
  4014 		COMMAND			RFbsSession1	Disconnect
       
  4015 	END_TEST_BLOCK
       
  4016 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0150
       
  4017 
       
  4018 
       
  4019 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0151
       
  4020 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0151
       
  4021 //! @SYMAPI			CFbsBitmap
       
  4022 //! @SYMAuthor			Anton Golovko
       
  4023 //! @SYMCreationDate		06/06/2006
       
  4024 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4025 //! @SYMTestCaseDesc		CFbsBitmap::CompressInBackground() (CompressInBackground(TRequestStatus &aRequestStatus) version) test that compress a bitmap twice.
       
  4026 //!				Uses API elements: CompressInBackground()
       
  4027 //! @SYMTestActions		1. Load a bitmap from a multi-bitmap file.
       
  4028 //!				2. Call Compress() on the bitmap.
       
  4029 //!				3. Call CompressInBackground() on the bitmap.
       
  4030 //! @SYMTestStatus		Implemented
       
  4031 //! @SYMTestPriority		Critical
       
  4032 //! @SYMTestExpectedResults	Second CompressInBackground() call must complete without causing panic.
       
  4033 //! @SYMTestType		CIT
       
  4034 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4035 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  4036 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  4037 		COMMAND		RFbsSession1	Connect
       
  4038 		COMMAND		CFbsBitmap1	new
       
  4039 		COMMAND		CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0151-001command4Load
       
  4040 		COMMAND		CFbsBitmap1	Compress
       
  4041 		COMMAND		CFbsBitmap1	CompressInBackground	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0151-001command6CompressInBackground
       
  4042 		OUTSTANDING
       
  4043 		COMMAND		CFbsBitmap1	~
       
  4044 		COMMAND		RFbsSession1	Disconnect
       
  4045 	END_TEST_BLOCK
       
  4046 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0151
       
  4047 
       
  4048 
       
  4049 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152
       
  4050 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152
       
  4051 //! @SYMAPI			CFbsBitmap
       
  4052 //! @SYMAuthor			Anton Golovko
       
  4053 //! @SYMCreationDate		06/06/2006
       
  4054 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4055 //! @SYMTestCaseDesc		CFbsBitmap::CompressInBackground() (CompressInBackground(TRequestStatus &aRequestStatus) version) test on bitmap loaded from ROM.
       
  4056 //!				Uses API elements: CompressInBackground()
       
  4057 //! @SYMTestActions		1. Load a bitmap from file that resides in ROM.
       
  4058 //!				2. Compress the bitmap using CompressInBackground()
       
  4059 //! @SYMTestStatus		Implemented
       
  4060 //! @SYMTestPriority		Critical
       
  4061 //! @SYMTestExpectedResults	CompressInBackground() call must return error KErrAccessDenied (-21) from request status
       
  4062 //! @SYMTestType		CIT
       
  4063 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4064 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  4065 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  4066 		COMMAND			RFbsSession1	Connect
       
  4067 		COMMAND			CFbsBitmap1	new
       
  4068 		COMMAND			CFbsBitmap1	IsFileInRom		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152-001command4IsFileInRom
       
  4069 		COMMAND			CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152-001command5Load
       
  4070 		COMMAND	!AsyncError=-21	CFbsBitmap1	CompressInBackground	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152-001command6CompressInBackground
       
  4071 		OUTSTANDING
       
  4072 		COMMAND			CFbsBitmap1	~
       
  4073 		COMMAND			RFbsSession1	Disconnect
       
  4074 	END_TEST_BLOCK
       
  4075 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152
       
  4076 
       
  4077 
       
  4078 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0153
       
  4079 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0153
       
  4080 //! @SYMAPI			CFbsBitmap
       
  4081 //! @SYMAuthor			Anton Golovko
       
  4082 //! @SYMCreationDate		06/06/2006
       
  4083 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4084 //! @SYMTestCaseDesc		CFbsBitmap::CompressInBackground() (CompressInBackground(TRequestStatus &aRequestStatus) version) test on not-fully-constucted bitmap.
       
  4085 //!				Uses API elements: CompressInBackground()
       
  4086 //! @SYMTestActions		1. Create a bitmap instance, but don't create or load the bitmap.
       
  4087 //!				2. Compress the bitmap using CompressInBackground()
       
  4088 //! @SYMTestStatus		Implemented
       
  4089 //! @SYMTestPriority		Critical
       
  4090 //! @SYMTestExpectedResults	CompressInBackground() call must return error KErrGeneral (-2) from request status
       
  4091 //! @SYMTestType		CIT
       
  4092 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4093 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  4094 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  4095 		COMMAND			RFbsSession1	Connect
       
  4096 		COMMAND			CFbsBitmap1	new
       
  4097 		COMMAND	!AsyncError=-2	CFbsBitmap1	CompressInBackground	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0153-001command4CompressInBackground
       
  4098 		OUTSTANDING
       
  4099 		COMMAND			CFbsBitmap1	~
       
  4100 		COMMAND			RFbsSession1	Disconnect
       
  4101 	END_TEST_BLOCK
       
  4102 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0153
       
  4103 
       
  4104 
       
  4105 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0154
       
  4106 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0154
       
  4107 //! @SYMAPI			CFbsBitmap
       
  4108 //! @SYMAuthor			Anton Golovko
       
  4109 //! @SYMCreationDate		06/06/2006
       
  4110 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4111 //! @SYMTestCaseDesc		CFbsBitmap::IsFileInRom() (IsFileInRom(const TDesC &aFilename, TUint32 *&aWord) version) test for malformed path
       
  4112 //!				Uses API elements: IsFileInRom()
       
  4113 //! @SYMTestActions		1. Call IsFileInRom() passing malformed path like ":::::''"
       
  4114 //! @SYMTestStatus		Implemented
       
  4115 //! @SYMTestPriority		Critical
       
  4116 //! @SYMTestExpectedResults	IsFileInRom() call must pass without causing panic.
       
  4117 //! @SYMTestType		CIT
       
  4118 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4119 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  4120 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  4121 		COMMAND		RFbsSession1	Connect
       
  4122 		COMMAND		CFbsBitmap1	new
       
  4123 		COMMAND		CFbsBitmap1	IsFileInRom		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0154-001command4IsFileInRom
       
  4124 		COMMAND		CFbsBitmap1	~
       
  4125 		COMMAND		RFbsSession1	Disconnect
       
  4126 	END_TEST_BLOCK
       
  4127 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0154
       
  4128 
       
  4129 
       
  4130 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0155
       
  4131 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0155
       
  4132 //! @SYMAPI			CFbsBitmap
       
  4133 //! @SYMAuthor			Anton Golovko
       
  4134 //! @SYMCreationDate		06/06/2006
       
  4135 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4136 //! @SYMTestCaseDesc		CFbsBitmap::CreateHardwareBitmap() test for ENone display mode
       
  4137 //!				Uses API elements: CreateHardwareBitmap()
       
  4138 //! @SYMTestActions		1. Call CreateHardwareBitmap() passing size (100, 200), display mode ENone, creator id 0
       
  4139 //! @SYMTestStatus		Implemented
       
  4140 //! @SYMTestPriority		Critical
       
  4141 //! @SYMTestExpectedResults	CreateHardwareBitmap() must return error KErrArgument (-6)
       
  4142 //! @SYMTestType		CIT
       
  4143 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4144 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  4145 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  4146 		COMMAND			RFbsSession1	Connect
       
  4147 		COMMAND			CFbsBitmap1	new
       
  4148 		COMMAND	!Error=-6	CFbsBitmap1	CreateHardwareBitmap	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0155-001command4CreateHardwareBitmap
       
  4149 		COMMAND			CFbsBitmap1	~
       
  4150 		COMMAND			RFbsSession1	Disconnect
       
  4151 	END_TEST_BLOCK
       
  4152 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0155
       
  4153 
       
  4154 
       
  4155 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0156
       
  4156 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0156
       
  4157 //! @SYMAPI			CFbsBitmap
       
  4158 //! @SYMAuthor			Anton Golovko
       
  4159 //! @SYMCreationDate		06/06/2006
       
  4160 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4161 //! @SYMTestCaseDesc		CFbsBitmap::CreateHardwareBitmap() test for ERgb display mode
       
  4162 //!				Uses API elements: CreateHardwareBitmap()
       
  4163 //! @SYMTestActions		1. Call CreateHardwareBitmap() passing size (100, 200), display mode ERgb, creator id 0
       
  4164 //! @SYMTestStatus		Implemented
       
  4165 //! @SYMTestPriority		Critical
       
  4166 //! @SYMTestExpectedResults	CreateHardwareBitmap() must return error KErrArgument (-6)
       
  4167 //! @SYMTestType		CIT
       
  4168 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4169 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  4170 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  4171 		COMMAND			RFbsSession1	Connect
       
  4172 		COMMAND			CFbsBitmap1	new
       
  4173 		COMMAND	!Error=-6	CFbsBitmap1	CreateHardwareBitmap	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0156-001command4CreateHardwareBitmap
       
  4174 		COMMAND			CFbsBitmap1	~
       
  4175 		COMMAND			RFbsSession1	Disconnect
       
  4176 	END_TEST_BLOCK
       
  4177 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0156
       
  4178 
       
  4179 
       
  4180 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0157
       
  4181 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0157
       
  4182 //! @SYMAPI			CFbsBitmap
       
  4183 //! @SYMAuthor			Anton Golovko
       
  4184 //! @SYMCreationDate		06/06/2006
       
  4185 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4186 //! @SYMTestCaseDesc		CFbsBitmap::CreateHardwareBitmap() test for EColorLast display mode
       
  4187 //!				Uses API elements: CreateHardwareBitmap()
       
  4188 //! @SYMTestActions		1. Call CreateHardwareBitmap() passing size (100, 200), display mode EColorLast, creator id 0
       
  4189 //! @SYMTestStatus		Implemented
       
  4190 //! @SYMTestPriority		Critical
       
  4191 //! @SYMTestExpectedResults	CreateHardwareBitmap() must return error KErrArgument (-6)
       
  4192 //! @SYMTestType		CIT
       
  4193 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4194 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  4195 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  4196 		COMMAND			RFbsSession1	Connect
       
  4197 		COMMAND			CFbsBitmap1	new
       
  4198 		COMMAND	!Error=-6	CFbsBitmap1	CreateHardwareBitmap	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0157-001command4CreateHardwareBitmap
       
  4199 		COMMAND			CFbsBitmap1	~
       
  4200 		COMMAND			RFbsSession1	Disconnect
       
  4201 	END_TEST_BLOCK
       
  4202 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0157
       
  4203 
       
  4204 
       
  4205 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0158
       
  4206 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0158
       
  4207 //! @SYMAPI			CFbsBitmap
       
  4208 //! @SYMAuthor			Anton Golovko
       
  4209 //! @SYMCreationDate		06/06/2006
       
  4210 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4211 //! @SYMTestCaseDesc		CFbsBitmap::CreateHardwareBitmap() test for invalid display mode
       
  4212 //!				Uses API elements: CreateHardwareBitmap()
       
  4213 //! @SYMTestActions		1. Call CreateHardwareBitmap() passing size (100, 200), display mode -1, creator id 0
       
  4214 //! @SYMTestStatus		Implemented
       
  4215 //! @SYMTestPriority		Critical
       
  4216 //! @SYMTestExpectedResults	CreateHardwareBitmap() must return error KErrArgument (-6)
       
  4217 //! @SYMTestType		CIT
       
  4218 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4219 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  4220 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  4221 		COMMAND			RFbsSession1	Connect
       
  4222 		COMMAND			CFbsBitmap1	new
       
  4223 		COMMAND	!Error=-6	CFbsBitmap1	CreateHardwareBitmap	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0158-001command4CreateHardwareBitmap
       
  4224 		COMMAND			CFbsBitmap1	~
       
  4225 		COMMAND			RFbsSession1	Disconnect
       
  4226 	END_TEST_BLOCK
       
  4227 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0158
       
  4228 
       
  4229 
       
  4230 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0159
       
  4231 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0159
       
  4232 //! @SYMAPI			CFbsBitmap
       
  4233 //! @SYMAuthor			Anton Golovko
       
  4234 //! @SYMCreationDate		06/06/2006
       
  4235 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4236 //! @SYMTestCaseDesc		CFbsBitmap::CreateHardwareBitmap() test for invalid size
       
  4237 //!				Uses API elements: CreateHardwareBitmap()
       
  4238 //! @SYMTestActions		1. Call CreateHardwareBitmap() passing size (100, -200), display mode EColor256, creator id 0
       
  4239 //! @SYMTestStatus		Implemented
       
  4240 //! @SYMTestPriority		Critical
       
  4241 //! @SYMTestExpectedResults	CreateHardwareBitmap() must return error KErrArgument (-6)
       
  4242 //! @SYMTestType		CIT
       
  4243 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4244 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  4245 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  4246 		COMMAND			RFbsSession1	Connect
       
  4247 		COMMAND			CFbsBitmap1	new
       
  4248 		COMMAND	!Error=-6	CFbsBitmap1	CreateHardwareBitmap	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0159-001command4CreateHardwareBitmap
       
  4249 		COMMAND			CFbsBitmap1	~
       
  4250 		COMMAND			RFbsSession1	Disconnect
       
  4251 	END_TEST_BLOCK
       
  4252 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0159
       
  4253 
       
  4254 
       
  4255 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0160
       
  4256 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0160
       
  4257 //! @SYMAPI			CFbsBitmap
       
  4258 //! @SYMAuthor			Anton Golovko
       
  4259 //! @SYMCreationDate		06/06/2006
       
  4260 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4261 //! @SYMTestCaseDesc		CFbsBitmap::HardwareBitmapHandle() test non-hardware bitmap
       
  4262 //!				Uses API elements: HardwareBitmapHandle()
       
  4263 //! @SYMTestActions		1. Create a 100x200 bitmap
       
  4264 //!				2. Check that HardwareBitmapHandle() returns 0
       
  4265 //! @SYMTestStatus		Implemented
       
  4266 //! @SYMTestPriority		Critical
       
  4267 //! @SYMTestExpectedResults	HardwareBitmapHandle() call doesn't cause panic and must return 0
       
  4268 //! @SYMTestType		CIT
       
  4269 	START_TEST_BLOCK	100		T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4270 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  4271 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  4272 		COMMAND		RFbsSession1	Connect
       
  4273 		COMMAND		CFbsBitmap1	new
       
  4274 		COMMAND		CFbsBitmap1	Create			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0160-001command4Create
       
  4275 		COMMAND		CFbsBitmap1	HardwareBitmapHandle	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0160-001command5HardwareBitmapHandle
       
  4276 		COMMAND		CFbsBitmap1	~
       
  4277 		COMMAND		RFbsSession1	Disconnect
       
  4278 	END_TEST_BLOCK
       
  4279 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0160
       
  4280 
       
  4281 
       
  4282 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0161
       
  4283 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0161
       
  4284 //! @SYMAPI			CFbsBitmap
       
  4285 //! @SYMAuthor			Anton Golovko
       
  4286 //! @SYMCreationDate		06/06/2006
       
  4287 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4288 //! @SYMTestCaseDesc		CFbsBitmap::DataAddress() test without locking heap
       
  4289 //!				Uses API elements: DataAddress()
       
  4290 //! @SYMTestActions		1. Create a 100x200 bitmap
       
  4291 //!				2. Call DataAddress() without locking the heap
       
  4292 //! @SYMTestStatus		Implemented
       
  4293 //! @SYMTestPriority		Critical
       
  4294 //! @SYMTestExpectedResults	DataAddress() must complete without causing panic.
       
  4295 //! @SYMTestType		CIT
       
  4296 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4297 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  4298 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  4299 		COMMAND		RFbsSession1	Connect
       
  4300 		COMMAND		CFbsBitmap1	new
       
  4301 		COMMAND		CFbsBitmap1	Create		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0161-001command4Create
       
  4302 		COMMAND		CFbsBitmap1	DataAddress
       
  4303 		COMMAND		CFbsBitmap1	~
       
  4304 		COMMAND		RFbsSession1	Disconnect
       
  4305 	END_TEST_BLOCK
       
  4306 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0161
       
  4307 
       
  4308 
       
  4309 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0165
       
  4310 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0165
       
  4311 //! @SYMAPI			CFbsBitmap
       
  4312 //! @SYMAuthor			Anton Golovko
       
  4313 //! @SYMCreationDate		05/06/2006
       
  4314 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4315 //! @SYMTestCaseDesc		SwapWidthAndHeight() test on not fully constructed bitmap.
       
  4316 //!				Uses API elements: SwapWidthAndHeight()
       
  4317 //! @SYMTestActions		1. Construct a bitmap, but don't load or create it.
       
  4318 //!				2. Call SwapWidthAndHeight().
       
  4319 //! @SYMTestStatus		Implemented
       
  4320 //! @SYMTestPriority		Critical
       
  4321 //! @SYMTestExpectedResults	SwapWidthAndHeight() must return error KErrGeneral (-2).
       
  4322 //! @SYMTestType		CIT
       
  4323 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4324 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  4325 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  4326 		COMMAND			RFbsSession1	Connect
       
  4327 		COMMAND			CFbsBitmap1	new
       
  4328 		COMMAND	!Error=-2	CFbsBitmap1	SwapWidthAndHeight
       
  4329 		COMMAND			CFbsBitmap1	~
       
  4330 		COMMAND			RFbsSession1	Disconnect
       
  4331 	END_TEST_BLOCK
       
  4332 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0165
       
  4333 
       
  4334 
       
  4335 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0166
       
  4336 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0166
       
  4337 //! @SYMAPI			CFbsBitmap
       
  4338 //! @SYMAuthor			Anton Golovko
       
  4339 //! @SYMCreationDate		05/06/2006
       
  4340 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4341 //! @SYMTestCaseDesc		SwapWidthAndHeight() test with hardware bitmap.
       
  4342 //!				Uses API elements: SwapWidthAndHeight()
       
  4343 //! @SYMTestActions		1. Create 10x10, Color256 bitmap hardware bitmap
       
  4344 //!				2. Call SwapWidthAndHeight()
       
  4345 //! @SYMTestStatus		Implemented
       
  4346 //! @SYMTestPriority		Critical
       
  4347 //! @SYMTestExpectedResults	SwapWidthAndHeight() must return error KErrNotSupported (-5).
       
  4348 //! @SYMTestType		CIT
       
  4349 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4350 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  4351 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  4352 		COMMAND			RFbsSession1	Connect
       
  4353 		COMMAND			CFbsBitmap1	new
       
  4354 		COMMAND	!Error=-5	CFbsBitmap1	CreateHardwareBitmap	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0166-001command4CreateHardwareBitmap
       
  4355 		COMMAND	!Error=-2	CFbsBitmap1	SwapWidthAndHeight	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0166-001command5SwapWidthAndHeight
       
  4356 		COMMAND			CFbsBitmap1	~
       
  4357 		COMMAND			RFbsSession1	Disconnect
       
  4358 	END_TEST_BLOCK
       
  4359 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0166
       
  4360 
       
  4361 
       
  4362 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0167
       
  4363 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0167
       
  4364 //! @SYMAPI			CFbsBitmap
       
  4365 //! @SYMAuthor			Anton Golovko
       
  4366 //! @SYMCreationDate		05/06/2006
       
  4367 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4368 //! @SYMTestCaseDesc		SwapWidthAndHeight() test on ROM bitmap.
       
  4369 //!				Uses API elements: SwapWidthAndHeight()
       
  4370 //! @SYMTestActions		1. Load another bitmap from ROM
       
  4371 //!				2. Call SwapWidthAndHeight()
       
  4372 //! @SYMTestStatus		Implemented
       
  4373 //! @SYMTestPriority		Critical
       
  4374 //! @SYMTestExpectedResults	SwapWidthAndHeight() must return error KErrAccessDenied (-21).
       
  4375 //! @SYMTestType		CIT
       
  4376 	START_TEST_BLOCK	100			T_FBServAPI		\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4377 		CREATE_OBJECT		RFbsSession	RFbsSession1
       
  4378 		CREATE_OBJECT		CFbsBitmap	CFbsBitmap1
       
  4379 		COMMAND			RFbsSession1	Connect
       
  4380 		COMMAND			CFbsBitmap1	new
       
  4381 		COMMAND			CFbsBitmap1	Load			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0167-001command4Load
       
  4382 		COMMAND	!Error=-21	CFbsBitmap1	SwapWidthAndHeight
       
  4383 		COMMAND			CFbsBitmap1	~
       
  4384 		COMMAND			RFbsSession1	Disconnect
       
  4385 	END_TEST_BLOCK
       
  4386 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0167
       
  4387 
       
  4388 
       
  4389 START_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0171
       
  4390 //! @SYMTestCaseID		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0171
       
  4391 //! @SYMAPI			CFbsBitmap
       
  4392 //! @SYMAuthor			Louis Henry Nayegon
       
  4393 //! @SYMCreationDate		02/08/2006
       
  4394 //! @SYMTestCaseDependencies	setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script
       
  4395 //! @SYMTestCaseDesc		Duplicate a bitmap in ROM
       
  4396 //!				Uses API elements: Load(), Duplicate()
       
  4397 //! @SYMTestActions		1. Duplicate a bitmap in ROM
       
  4398 //! @SYMTestStatus		Implemented
       
  4399 //! @SYMTestPriority		High
       
  4400 //! @SYMTestExpectedResults	Bitmap is duplicated with no errors.
       
  4401 //! @SYMTestType		CIT
       
  4402 	START_TEST_BLOCK	100		T_FBServAPI	\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini
       
  4403 		CREATE_OBJECT	RFbsSession	RFbsSession1
       
  4404 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap1
       
  4405 		CREATE_OBJECT	CFbsBitmap	CFbsBitmap2
       
  4406 		COMMAND		RFbsSession1	Connect
       
  4407 		COMMAND		CFbsBitmap1	new
       
  4408 		COMMAND		CFbsBitmap1	Load		GRAPHICS-FBSERV-FbsBitmap-PublicApi-0171-001command4Load
       
  4409 		COMMAND		CFbsBitmap1	Handle
       
  4410 		COMMAND		CFbsBitmap2	new
       
  4411 		COMMAND		CFbsBitmap2	Duplicate	GRAPHICS-FBSERV-FbsBitmap-PublicApi-0171-001command7Duplicate
       
  4412 		COMMAND		CFbsBitmap1	~
       
  4413 		COMMAND		CFbsBitmap2	~
       
  4414 		COMMAND		RFbsSession1	Disconnect
       
  4415 	END_TEST_BLOCK
       
  4416 END_TESTCASE 			GRAPHICS-FBSERV-FbsBitmap-PublicApi-0171