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-BitmapUtil-PublicApi |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
|
20 ///////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-FBSERV-BitmapUtil-PublicAPI.script |
|
22 // |
|
23 // Tests all public elements of the TBitmapUtil 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 TBitmapUtil. |
|
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-BitmapUtil-PublicApi-0001 |
|
35 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0001 |
|
36 //! @SYMAPI TBitmapUtil |
|
37 //! @SYMAuthor Anton Golovko |
|
38 //! @SYMCreationDate 24/03/2006 |
|
39 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
40 //! @SYMTestCaseDesc TBitmapUtil::TBitmapUtil() simple test |
|
41 //! Uses API elements: TBitmapUtil() |
|
42 //! @SYMTestActions 1. Create a 100x100 bitmap |
|
43 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
44 //! @SYMTestStatus Implemented |
|
45 //! @SYMTestPriority Critical |
|
46 //! @SYMTestExpectedResults The TBitmapUtil() constructor doesn't cause panic. |
|
47 //! @SYMTestType CIT |
|
48 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
49 CREATE_OBJECT RFbsSession RFbsSession1 |
|
50 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
51 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
52 COMMAND RFbsSession1 Connect |
|
53 COMMAND CFbsBitmap1 new |
|
54 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0001-001-Create_command04 |
|
55 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0001-001-New_command06 |
|
56 COMMAND TBitmapUtil1 ~ |
|
57 COMMAND CFbsBitmap1 ~ |
|
58 COMMAND RFbsSession1 Disconnect |
|
59 END_TEST_BLOCK |
|
60 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0001 |
|
61 |
|
62 |
|
63 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002 |
|
64 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002 |
|
65 //! @SYMAPI TBitmapUtil |
|
66 //! @SYMAuthor Anton Golovko |
|
67 //! @SYMCreationDate 24/03/2006 |
|
68 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
69 //! @SYMTestCaseDesc TBitmapUtil Begin() (Begin(const TPoint \&aPosition) version) and End() test |
|
70 //! Uses API elements: TBitmapUtil(), Begin(), End() |
|
71 //! @SYMTestActions 1. Create a 100x100 bitmap |
|
72 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
73 //! 3. Call Begin() method passing a point (0, 0) as a parameter |
|
74 //! 4. Call End() method |
|
75 //! @SYMTestStatus Implemented |
|
76 //! @SYMTestPriority Critical |
|
77 //! @SYMTestExpectedResults The functions Begin() and End() don't cause panic. |
|
78 //! @SYMTestType CIT |
|
79 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
80 CREATE_OBJECT RFbsSession RFbsSession1 |
|
81 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
82 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
83 COMMAND RFbsSession1 Connect |
|
84 COMMAND CFbsBitmap1 new |
|
85 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002-001-Create_command04 |
|
86 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002-001-New_command06 |
|
87 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002-001-Begin_command07 |
|
88 COMMAND TBitmapUtil1 End |
|
89 COMMAND TBitmapUtil1 ~ |
|
90 COMMAND CFbsBitmap1 ~ |
|
91 COMMAND RFbsSession1 Disconnect |
|
92 END_TEST_BLOCK |
|
93 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002 |
|
94 |
|
95 |
|
96 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003 |
|
97 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003 |
|
98 //! @SYMAPI TBitmapUtil |
|
99 //! @SYMAuthor Anton Golovko |
|
100 //! @SYMCreationDate 24/03/2006 |
|
101 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
102 //! @SYMTestCaseDesc TBitmapUtil Begin() (Begin(const TPoint \&aPosition, const TBitmapUtil \&aUtil) version) and End() test with lock share |
|
103 //! Uses API elements: TBitmapUtil(), Begin(), End() |
|
104 //! @SYMTestActions 1. Create a 100x100 bitmap |
|
105 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
106 //! 3. Create another bitmap and a TBitmapUtil instance for it |
|
107 //! 4. Call Begin() method of the first passing a point (0, 0) as a parameter |
|
108 //! 5. Call Begin() method of the second TBitmapUtil passing a point (0, 0) and the first TBitmapUtil as parameters |
|
109 //! 6. Call End() methods of each of TBitmapUtils |
|
110 //! @SYMTestStatus Implemented |
|
111 //! @SYMTestPriority Critical |
|
112 //! @SYMTestExpectedResults The functions Begin() and End() don't cause panic. |
|
113 //! @SYMTestType CIT |
|
114 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
115 CREATE_OBJECT RFbsSession RFbsSession1 |
|
116 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
117 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
118 CREATE_OBJECT CFbsBitmap CFbsBitmap2 |
|
119 CREATE_OBJECT TBitmapUtil TBitmapUtil2 |
|
120 COMMAND RFbsSession1 Connect |
|
121 COMMAND CFbsBitmap1 new |
|
122 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-Create_command04 |
|
123 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-New_command06 |
|
124 COMMAND CFbsBitmap2 new |
|
125 COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-Create_command09 |
|
126 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-Begin_command11 |
|
127 COMMAND TBitmapUtil2 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-New_command13 |
|
128 COMMAND TBitmapUtil2 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-Begin_command14 |
|
129 COMMAND TBitmapUtil2 End |
|
130 COMMAND TBitmapUtil1 End |
|
131 COMMAND TBitmapUtil1 ~ |
|
132 COMMAND TBitmapUtil2 ~ |
|
133 COMMAND CFbsBitmap1 ~ |
|
134 COMMAND CFbsBitmap2 ~ |
|
135 COMMAND RFbsSession1 Disconnect |
|
136 END_TEST_BLOCK |
|
137 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003 |
|
138 |
|
139 |
|
140 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004 |
|
141 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004 |
|
142 //! @SYMAPI TBitmapUtil |
|
143 //! @SYMAuthor Anton Golovko |
|
144 //! @SYMCreationDate 24/03/2006 |
|
145 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
146 //! @SYMTestCaseDesc TBitmapUtil::GetPixel() and TBitmapUtil::SetPixel() (SetPixel(TUint32 aValue) version) test |
|
147 //! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel() |
|
148 //! @SYMTestActions 1. Create a 100x100 bitmap |
|
149 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
150 //! 3. Call Begin() method passing a point (0, 0) as a parameter |
|
151 //! 4. Call SetPixel(128) |
|
152 //! 5. Call GetPixel() |
|
153 //! 6. Call End() method |
|
154 //! @SYMTestStatus Implemented |
|
155 //! @SYMTestPriority Critical |
|
156 //! @SYMTestExpectedResults The SetPixel() and GetPixel() function calls don't cause panic and GetPixel() returns 128 (same color as used in SetPixel()) |
|
157 //! @SYMTestType CIT |
|
158 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
159 CREATE_OBJECT RFbsSession RFbsSession1 |
|
160 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
161 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
162 COMMAND RFbsSession1 Connect |
|
163 COMMAND CFbsBitmap1 new |
|
164 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-Create_command04 |
|
165 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-New_command06 |
|
166 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-Begin_command07 |
|
167 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-SetPixel_command08 |
|
168 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-GetPixel_command09 |
|
169 COMMAND TBitmapUtil1 End |
|
170 COMMAND TBitmapUtil1 ~ |
|
171 COMMAND CFbsBitmap1 ~ |
|
172 COMMAND RFbsSession1 Disconnect |
|
173 END_TEST_BLOCK |
|
174 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004 |
|
175 |
|
176 |
|
177 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005 |
|
178 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005 |
|
179 //! @SYMAPI TBitmapUtil |
|
180 //! @SYMAuthor Anton Golovko |
|
181 //! @SYMCreationDate 24/03/2006 |
|
182 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
183 //! @SYMTestCaseDesc TBitmapUtil::SetPixel() (SetPixel(const TBitmapUtil \&aSource) version) from another bitmap test |
|
184 //! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel() |
|
185 //! @SYMTestActions 1. Create a 100x100 bitmap |
|
186 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
187 //! 5. Call Begin() method of the TBitmapUtil passing a point (23, 45) |
|
188 //! 6. Call the TBitmapUtil's SetPixel() passing 128 |
|
189 //! 9. Call End() methods of the TBitmapUtils |
|
190 //! 4. Create another bitmap and a TBitmapUtil instance for it |
|
191 //! 3. Call Begin() method of the second TBitmapUtil passing a point (0, 0) as a parameter |
|
192 //! 7. Call second TBitmapUtil's SetPixel() and the first TBitmapUtil as a parameter |
|
193 //! 8. Call second TBitmapUtil's GetPixel() and check that the GetPixel() returns 128 (same color as used in SetPixel()) |
|
194 //! 9. Call End() methods of second TBitmapUtils |
|
195 //! @SYMTestStatus Implemented |
|
196 //! @SYMTestPriority Critical |
|
197 //! @SYMTestExpectedResults The function SetPixel() call doesn't cause panic and GetPixel() returns 128 (same color as used in SetPixel()) |
|
198 //! @SYMTestType CIT |
|
199 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
200 CREATE_OBJECT RFbsSession RFbsSession1 |
|
201 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
202 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
203 CREATE_OBJECT CFbsBitmap CFbsBitmap2 |
|
204 CREATE_OBJECT TBitmapUtil TBitmapUtil2 |
|
205 COMMAND RFbsSession1 Connect |
|
206 COMMAND CFbsBitmap1 new |
|
207 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-Create_command04 |
|
208 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-New_command06 |
|
209 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-Begin_command07 |
|
210 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-SetPixel_command08 |
|
211 COMMAND TBitmapUtil1 End |
|
212 COMMAND CFbsBitmap2 new |
|
213 COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-Create_command12 |
|
214 COMMAND TBitmapUtil2 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-New_command14 |
|
215 COMMAND TBitmapUtil2 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-Begin_command15 |
|
216 COMMAND TBitmapUtil2 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-SetPixel_command16 |
|
217 COMMAND TBitmapUtil2 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-GetPixel_command17 |
|
218 COMMAND TBitmapUtil2 End |
|
219 COMMAND TBitmapUtil1 ~ |
|
220 COMMAND TBitmapUtil2 ~ |
|
221 COMMAND CFbsBitmap1 ~ |
|
222 COMMAND CFbsBitmap2 ~ |
|
223 COMMAND RFbsSession1 Disconnect |
|
224 END_TEST_BLOCK |
|
225 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005 |
|
226 |
|
227 |
|
228 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006 |
|
229 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006 |
|
230 //! @SYMAPI TBitmapUtil |
|
231 //! @SYMAuthor Anton Golovko |
|
232 //! @SYMCreationDate 24/03/2006 |
|
233 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
234 //! @SYMTestCaseDesc TBitmapUtil::SetPos() test |
|
235 //! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel(), SetPos() |
|
236 //! @SYMTestActions 1. Create a 2x2 bitmap |
|
237 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
238 //! 3. Call Begin() method passing a point (0, 0) as a parameter |
|
239 //! 4. Pass all of bitmap's pixels using SetPos() and calling SetPixel() to assign them different colors from 0 to 3 |
|
240 //! 5. Pass all of bitmap's pixels using SetPos() and calling GetPixel() to check that the have colors from 0 to 3 |
|
241 //! 6. Call End() method |
|
242 //! @SYMTestStatus Implemented |
|
243 //! @SYMTestPriority Critical |
|
244 //! @SYMTestExpectedResults See actions |
|
245 //! @SYMTestType CIT |
|
246 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
247 CREATE_OBJECT RFbsSession RFbsSession1 |
|
248 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
249 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
250 COMMAND RFbsSession1 Connect |
|
251 COMMAND CFbsBitmap1 new |
|
252 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-Create_command04 |
|
253 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-New_command06 |
|
254 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-Begin_command07 |
|
255 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPixel_command08 |
|
256 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command09 |
|
257 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPixel_command10 |
|
258 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command11 |
|
259 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPixel_command12 |
|
260 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command13 |
|
261 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPixel_command14 |
|
262 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command15 |
|
263 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-GetPixel_command16 |
|
264 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command17 |
|
265 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-GetPixel_command18 |
|
266 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command19 |
|
267 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-GetPixel_command20 |
|
268 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command21 |
|
269 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-GetPixel_command22 |
|
270 COMMAND TBitmapUtil1 End |
|
271 COMMAND TBitmapUtil1 ~ |
|
272 COMMAND CFbsBitmap1 ~ |
|
273 COMMAND RFbsSession1 Disconnect |
|
274 END_TEST_BLOCK |
|
275 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006 |
|
276 |
|
277 |
|
278 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007 |
|
279 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007 |
|
280 //! @SYMAPI TBitmapUtil |
|
281 //! @SYMAuthor Anton Golovko |
|
282 //! @SYMCreationDate 24/03/2006 |
|
283 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
284 //! @SYMTestCaseDesc DecXPos(), DecYPos(), IncXPos(), IncYPos() test |
|
285 //! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel(), SetPos(), DecXPos(), DecYPos(), IncXPos(), IncYPos() |
|
286 //! @SYMTestActions 1. Create a 100x100 bitmap |
|
287 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
288 //! 3. Call Begin() method passing a point (10, 10) as a parameter |
|
289 //! 4. Call DecXPos() and set pixel's color to 1 |
|
290 //! 5. Call DecYPos() and set pixel's color to 2 |
|
291 //! 6. Call IncXPos() and set pixel's color to 3 |
|
292 //! 7. Call IncYPos() and set pixel's color to 4 |
|
293 //! 8. Use SetPos() and GetPixel() methods to verify that dots (9, 10), (9, 9), (10, 9), (10, 10) have |
|
294 //! the following colors 1, 2, 3, 4 correspondingly |
|
295 //! 9. Call End() method |
|
296 //! @SYMTestStatus Implemented |
|
297 //! @SYMTestPriority Critical |
|
298 //! @SYMTestExpectedResults The operations don't cause panic and colors are assigned correctly |
|
299 //! @SYMTestType CIT |
|
300 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
301 CREATE_OBJECT RFbsSession RFbsSession1 |
|
302 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
303 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
304 COMMAND RFbsSession1 Connect |
|
305 COMMAND CFbsBitmap1 new |
|
306 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-Create_command04 |
|
307 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-New_command06 |
|
308 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-Begin_command07 |
|
309 COMMAND TBitmapUtil1 DecXPos |
|
310 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPixel_command09 |
|
311 COMMAND TBitmapUtil1 DecYPos |
|
312 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPixel_command11 |
|
313 COMMAND TBitmapUtil1 IncXPos |
|
314 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPixel_command13 |
|
315 COMMAND TBitmapUtil1 IncYPos |
|
316 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPixel_command15 |
|
317 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPos_command16 |
|
318 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-GetPixel_command17 |
|
319 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPos_command18 |
|
320 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-GetPixel_command19 |
|
321 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPos_command20 |
|
322 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-GetPixel_command21 |
|
323 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPos_command22 |
|
324 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-GetPixel_command23 |
|
325 COMMAND TBitmapUtil1 End |
|
326 COMMAND TBitmapUtil1 ~ |
|
327 COMMAND CFbsBitmap1 ~ |
|
328 COMMAND RFbsSession1 Disconnect |
|
329 END_TEST_BLOCK |
|
330 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007 |
|
331 |
|
332 |
|
333 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0008 |
|
334 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0008 |
|
335 //! @SYMAPI TBitmapUtil |
|
336 //! @SYMAuthor Anton Golovko |
|
337 //! @SYMCreationDate 29/03/2006 |
|
338 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
339 //! @SYMTestCaseDesc TBitmapUtil::TBitmapUtil() negative test with null pointer argument |
|
340 //! Uses API elements: TBitmapUtil() |
|
341 //! @SYMTestActions 1. Call TBitmapUtil::TBitmapUtil() method passing NULL as a parameter |
|
342 //! @SYMTestStatus Implemented |
|
343 //! @SYMTestPriority High |
|
344 //! @SYMTestExpectedResults The TBitmapUtil() constructor doesn't cause panic. |
|
345 //! @SYMTestType CIT |
|
346 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
347 CREATE_OBJECT RFbsSession RFbsSession1 |
|
348 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
349 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
350 COMMAND RFbsSession1 Connect |
|
351 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0008-001-New_command03 |
|
352 COMMAND TBitmapUtil1 ~ |
|
353 COMMAND CFbsBitmap1 ~ |
|
354 COMMAND RFbsSession1 Disconnect |
|
355 END_TEST_BLOCK |
|
356 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0008 |
|
357 |
|
358 |
|
359 //!START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0009 |
|
360 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0009 |
|
361 //! @SYMAPI TBitmapUtil |
|
362 //! @SYMAuthor Anton Golovko |
|
363 //! @SYMCreationDate 29/03/2006 |
|
364 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
365 //! @SYMTestCaseDesc TBitmapUtil::TBitmapUtil() and Begin() negative test with null pointer argument |
|
366 //! Uses API elements: TBitmapUtil() |
|
367 //! @SYMTestActions 1. Call TBitmapUtil::TBitmapUtil() method passing NULL as a parameter |
|
368 //! 2. Call Begin() with point (0,0) as a parameter |
|
369 //! @SYMTestStatus Implemented |
|
370 //! @SYMTestPriority High |
|
371 //! @SYMTestExpectedResults The Begin() method call must panic |
|
372 //! @SYMTestType CIT |
|
373 //! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
374 //! CREATE_OBJECT RFbsSession RFbsSession1 |
|
375 //! CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
376 //! CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
377 //! COMMAND RFbsSession1 Connect |
|
378 //! COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0009-001-New_command03 |
|
379 //! COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0009-001-Begin_command04 |
|
380 //! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC |
|
381 //! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg |
|
382 //!END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0009 |
|
383 |
|
384 |
|
385 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0010 |
|
386 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0010 |
|
387 //! @SYMAPI TBitmapUtil |
|
388 //! @SYMAuthor Anton Golovko |
|
389 //! @SYMCreationDate 29/03/2006 |
|
390 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
391 //! @SYMTestCaseDesc TBitmapUtil::TBitmapUtil() negative test with not constructed bitmap as argument |
|
392 //! Uses API elements: TBitmapUtil() |
|
393 //! @SYMTestActions 1. Create an instance of CFbsBitmap class but don't call neither create nor load method |
|
394 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the instance as a parameter |
|
395 //! @SYMTestStatus Implemented |
|
396 //! @SYMTestPriority High |
|
397 //! @SYMTestExpectedResults The TBitmapUtil() constructor doesn't cause panic. |
|
398 //! @SYMTestType CIT |
|
399 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
400 CREATE_OBJECT RFbsSession RFbsSession1 |
|
401 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
402 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
403 COMMAND RFbsSession1 Connect |
|
404 COMMAND CFbsBitmap1 new |
|
405 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0010-001-New_command05 |
|
406 COMMAND TBitmapUtil1 ~ |
|
407 COMMAND CFbsBitmap1 ~ |
|
408 COMMAND RFbsSession1 Disconnect |
|
409 END_TEST_BLOCK |
|
410 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0010 |
|
411 |
|
412 |
|
413 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011a |
|
414 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011a |
|
415 //! @SYMAPI TBitmapUtil |
|
416 //! @SYMAuthor Anton Golovko |
|
417 //! @SYMCreationDate 29/03/2006 |
|
418 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
419 //! @SYMTestCaseDesc TBitmapUtil::TBitmapUtil(),Begin() and CFbsBitmap::Create() a negative testcase |
|
420 //! an incorrect bitmap loaded with an invalid display mode |
|
421 //! Uses API elements: TBitmapUtil() |
|
422 //! @SYMTestActions 1. Create an instance of CFbsBitmap class with an invalid display mode ERgb |
|
423 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the instance as a parameter |
|
424 //! 3. Call Begin() with point (0,0) as a parameter |
|
425 //! @SYMTestStatus Implemented |
|
426 //! @SYMTestPriority High |
|
427 //! @SYMTestExpectedResults The Create() method should come back with KErrArgument as the requested display mode is invalid |
|
428 //! @SYMTestType CIT |
|
429 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
430 CREATE_OBJECT RFbsSession RFbsSession1 |
|
431 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
432 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
433 COMMAND RFbsSession1 Connect |
|
434 COMMAND CFbsBitmap1 new |
|
435 COMMAND !Error=-6 CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011-001-Create_command06 |
|
436 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011-001-New_command05 |
|
437 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011-001-Begin_command07 |
|
438 END_TEST_BLOCK !PanicCode=10 !PanicString=FBSCLI |
|
439 RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg |
|
440 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011a |
|
441 |
|
442 |
|
443 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012 |
|
444 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012 |
|
445 //! @SYMAPI TBitmapUtil |
|
446 //! @SYMAuthor Anton Golovko |
|
447 //! @SYMCreationDate 29/03/2006 |
|
448 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
449 //! @SYMTestCaseDesc TBitmapUtil Begin() (Begin(const TPoint \&aPosition) version) negative test for out-of-bounds initial position |
|
450 //! Uses API elements: TBitmapUtil(), Begin() |
|
451 //! @SYMTestActions 1. Create a 100x100 bitmap |
|
452 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
453 //! 3. Call Begin() method passing a point (-1, -1) as a parameter |
|
454 //! 4. Call SetPixel(0) |
|
455 //! 4. Call End() |
|
456 //! @SYMTestStatus Implemented |
|
457 //! @SYMTestPriority High |
|
458 //! @SYMTestExpectedResults The function Begin() call doesn't cause panic. |
|
459 //! @SYMTestType CIT |
|
460 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
461 CREATE_OBJECT RFbsSession RFbsSession1 |
|
462 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
463 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
464 COMMAND RFbsSession1 Connect |
|
465 COMMAND CFbsBitmap1 new |
|
466 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012-001-Create_command04 |
|
467 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012-001-New_command06 |
|
468 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012-001-Begin_command07 |
|
469 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012-001-SetPixel_command08 |
|
470 COMMAND TBitmapUtil1 End |
|
471 COMMAND TBitmapUtil1 ~ |
|
472 COMMAND CFbsBitmap1 ~ |
|
473 COMMAND RFbsSession1 Disconnect |
|
474 END_TEST_BLOCK |
|
475 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012 |
|
476 |
|
477 |
|
478 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013 |
|
479 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013 |
|
480 //! @SYMAPI TBitmapUtil |
|
481 //! @SYMAuthor Anton Golovko |
|
482 //! @SYMCreationDate 29/03/2006 |
|
483 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
484 //! @SYMTestCaseDesc TBitmapUtil::SetPixel() (SetPixel(TUint32 aValue) version) negative test for out-of-range color value |
|
485 //! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel() |
|
486 //! @SYMTestActions 1. Create a 100x100 bitmap and 16-color (EGray16 = 3, GDI.H) display mode |
|
487 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
488 //! 3. Call Begin() method passing a point (0, 0) as a parameter |
|
489 //! 4. Call SetPixel(16) |
|
490 //! 5. Check that the color is 0 |
|
491 //! 6. Call End() method |
|
492 //! @SYMTestStatus Implemented |
|
493 //! @SYMTestPriority High |
|
494 //! @SYMTestExpectedResults The test expects SetPixel() for out-of-range color not to panic |
|
495 //! @SYMTestType CIT |
|
496 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
497 CREATE_OBJECT RFbsSession RFbsSession1 |
|
498 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
499 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
500 COMMAND RFbsSession1 Connect |
|
501 COMMAND CFbsBitmap1 new |
|
502 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-Create_command04 |
|
503 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-New_command06 |
|
504 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-Begin_command07 |
|
505 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-SetPixel_command08 |
|
506 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-GetPixel_command09 |
|
507 COMMAND TBitmapUtil1 End |
|
508 COMMAND TBitmapUtil1 ~ |
|
509 COMMAND CFbsBitmap1 ~ |
|
510 COMMAND RFbsSession1 Disconnect |
|
511 END_TEST_BLOCK |
|
512 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013 |
|
513 |
|
514 |
|
515 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014 |
|
516 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014 |
|
517 //! @SYMAPI TBitmapUtil |
|
518 //! @SYMAuthor Anton Golovko |
|
519 //! @SYMCreationDate 29/03/2006 |
|
520 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
521 //! @SYMTestCaseDesc TBitmapUtil::SetPos() negative test for out-of-bounds coordinates |
|
522 //! Uses API elements: TBitmapUtil(), Begin(), End(), SetPos() |
|
523 //! @SYMTestActions 1. Create a 100x100 bitmap |
|
524 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
525 //! 3. Call Begin() method passing a point (0, 0) as a parameter |
|
526 //! 4. Call SetPos(100, 100) |
|
527 //! 5. Call End() method |
|
528 //! @SYMTestStatus Implemented |
|
529 //! @SYMTestPriority High |
|
530 //! @SYMTestExpectedResults Call to SetPos() doesn't cause panic. |
|
531 //! @SYMTestType CIT |
|
532 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
533 CREATE_OBJECT RFbsSession RFbsSession1 |
|
534 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
535 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
536 COMMAND RFbsSession1 Connect |
|
537 COMMAND CFbsBitmap1 new |
|
538 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014-001-Create_command04 |
|
539 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014-001-New_command06 |
|
540 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014-001-Begin_command07 |
|
541 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014-001-SetPos_command08 |
|
542 COMMAND TBitmapUtil1 End |
|
543 COMMAND TBitmapUtil1 ~ |
|
544 COMMAND CFbsBitmap1 ~ |
|
545 COMMAND RFbsSession1 Disconnect |
|
546 END_TEST_BLOCK |
|
547 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014 |
|
548 |
|
549 |
|
550 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015 |
|
551 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015 |
|
552 //! @SYMAPI TBitmapUtil |
|
553 //! @SYMAuthor Anton Golovko |
|
554 //! @SYMCreationDate 29/03/2006 |
|
555 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
556 //! @SYMTestCaseDesc DecXPos() negative test for out-of-bounds coordinates |
|
557 //! Uses API elements: TBitmapUtil(), Begin(), End(), DecXPos() |
|
558 //! @SYMTestActions 1. Create a 1x1 bitmap |
|
559 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
560 //! 3. Call Begin() method passing a point (0, 0) as a parameter |
|
561 //! 4. Call DecXPos() |
|
562 //! 5. Call End() method |
|
563 //! @SYMTestStatus Implemented |
|
564 //! @SYMTestPriority High |
|
565 //! @SYMTestExpectedResults Method DecXPos() call doesn't cause panic. |
|
566 //! @SYMTestType CIT |
|
567 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
568 CREATE_OBJECT RFbsSession RFbsSession1 |
|
569 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
570 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
571 COMMAND RFbsSession1 Connect |
|
572 COMMAND CFbsBitmap1 new |
|
573 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015-001-Create_command04 |
|
574 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015-001-New_command06 |
|
575 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015-001-Begin_command07 |
|
576 COMMAND TBitmapUtil1 DecXPos |
|
577 COMMAND TBitmapUtil1 End |
|
578 COMMAND TBitmapUtil1 ~ |
|
579 COMMAND CFbsBitmap1 ~ |
|
580 COMMAND RFbsSession1 Disconnect |
|
581 END_TEST_BLOCK |
|
582 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015 |
|
583 |
|
584 |
|
585 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016 |
|
586 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016 |
|
587 //! @SYMAPI TBitmapUtil |
|
588 //! @SYMAuthor Anton Golovko |
|
589 //! @SYMCreationDate 29/03/2006 |
|
590 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
591 //! @SYMTestCaseDesc DecYPos() negative test for out-of-bounds coordinates |
|
592 //! Uses API elements: TBitmapUtil(), Begin(), End(), DecYPos() |
|
593 //! @SYMTestActions 1. Create a 1x1 bitmap |
|
594 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
595 //! 3. Call Begin() method passing a point (0, 0) as a parameter |
|
596 //! 4. Call DecYPos() |
|
597 //! 5. Call End() method |
|
598 //! @SYMTestStatus Implemented |
|
599 //! @SYMTestPriority High |
|
600 //! @SYMTestExpectedResults Method DecYPos() call doesn't cause panic. |
|
601 //! @SYMTestType CIT |
|
602 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
603 CREATE_OBJECT RFbsSession RFbsSession1 |
|
604 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
605 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
606 COMMAND RFbsSession1 Connect |
|
607 COMMAND CFbsBitmap1 new |
|
608 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016-001-Create_command04 |
|
609 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016-001-New_command06 |
|
610 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016-001-Begin_command07 |
|
611 COMMAND TBitmapUtil1 DecYPos |
|
612 COMMAND TBitmapUtil1 End |
|
613 COMMAND TBitmapUtil1 ~ |
|
614 COMMAND CFbsBitmap1 ~ |
|
615 COMMAND RFbsSession1 Disconnect |
|
616 END_TEST_BLOCK |
|
617 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016 |
|
618 |
|
619 |
|
620 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017 |
|
621 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017 |
|
622 //! @SYMAPI TBitmapUtil |
|
623 //! @SYMAuthor Anton Golovko |
|
624 //! @SYMCreationDate 29/03/2006 |
|
625 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
626 //! @SYMTestCaseDesc IncXPos() negative test for out-of-bounds coordinates |
|
627 //! Uses API elements: TBitmapUtil(), Begin(), End(), IncXPos() |
|
628 //! @SYMTestActions 1. Create a 1x1 bitmap |
|
629 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
630 //! 3. Call Begin() method passing a point (0, 0) as a parameter |
|
631 //! 4. Call IncXPos() |
|
632 //! 5. Call End() method |
|
633 //! @SYMTestStatus Implemented |
|
634 //! @SYMTestPriority High |
|
635 //! @SYMTestExpectedResults Method IncXPos() call doesn't cause panic. |
|
636 //! @SYMTestType CIT |
|
637 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
638 CREATE_OBJECT RFbsSession RFbsSession1 |
|
639 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
640 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
641 COMMAND RFbsSession1 Connect |
|
642 COMMAND CFbsBitmap1 new |
|
643 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017-001-Create_command04 |
|
644 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017-001-New_command06 |
|
645 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017-001-Begin_command07 |
|
646 COMMAND TBitmapUtil1 IncXPos |
|
647 COMMAND TBitmapUtil1 End |
|
648 COMMAND TBitmapUtil1 ~ |
|
649 COMMAND CFbsBitmap1 ~ |
|
650 COMMAND RFbsSession1 Disconnect |
|
651 END_TEST_BLOCK |
|
652 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017 |
|
653 |
|
654 |
|
655 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018 |
|
656 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018 |
|
657 //! @SYMAPI TBitmapUtil |
|
658 //! @SYMAuthor Anton Golovko |
|
659 //! @SYMCreationDate 29/03/2006 |
|
660 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
661 //! @SYMTestCaseDesc IncYPos() negative test for out-of-bounds coordinates |
|
662 //! Uses API elements: TBitmapUtil(), Begin(), End(), IncYPos() |
|
663 //! @SYMTestActions 1. Create a 1x1 bitmap |
|
664 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
665 //! 3. Call Begin() method passing a point (0, 0) as a parameter |
|
666 //! 4. Call IncYPos() |
|
667 //! 5. Call End() method |
|
668 //! @SYMTestStatus Implemented |
|
669 //! @SYMTestPriority High |
|
670 //! @SYMTestExpectedResults Method IncYPos() call doesn't cause panic. |
|
671 //! @SYMTestType CIT |
|
672 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
673 CREATE_OBJECT RFbsSession RFbsSession1 |
|
674 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
675 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
676 COMMAND RFbsSession1 Connect |
|
677 COMMAND CFbsBitmap1 new |
|
678 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018-001-Create_command04 |
|
679 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018-001-New_command06 |
|
680 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018-001-Begin_command07 |
|
681 COMMAND TBitmapUtil1 IncYPos |
|
682 COMMAND TBitmapUtil1 End |
|
683 COMMAND TBitmapUtil1 ~ |
|
684 COMMAND CFbsBitmap1 ~ |
|
685 COMMAND RFbsSession1 Disconnect |
|
686 END_TEST_BLOCK |
|
687 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018 |
|
688 |
|
689 |
|
690 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019 |
|
691 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019 |
|
692 //! @SYMAPI TBitmapUtil |
|
693 //! @SYMAuthor Rnno Sgirka |
|
694 //! @SYMCreationDate 05/06/2006 |
|
695 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
696 //! @SYMTestCaseDesc TBitmapUtil::Begin() (Begin(const TPoint &aPosition) version) and End() negative test for out-of-bounds coordinates |
|
697 //! Uses API elements: TBitmapUtil(), Begin(), End() |
|
698 //! @SYMTestActions 1. Create a 100x100 bitmap |
|
699 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
700 //! 3. Call Begin() method passing a point (-1, 0) as a parameter |
|
701 //! 4. Call End() |
|
702 //! 5. Call Begin() method passing a point (0, -1) as a parameter |
|
703 //! 6. Call End() |
|
704 //! 7. Call Begin() method passing a point (100, 0) as a parameter |
|
705 //! 8. Call End() |
|
706 //! 9. Call Begin() method passing a point (0, 100) as a parameter |
|
707 //! 10. Call End() |
|
708 //! 11. Call Begin() method passing a point (100, 100) as a parameter |
|
709 //! 12. Call End() |
|
710 //! @SYMTestStatus Implemented |
|
711 //! @SYMTestPriority High |
|
712 //! @SYMTestExpectedResults The Begin() method call doesn't cause panic. |
|
713 //! @SYMTestType CIT |
|
714 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
715 CREATE_OBJECT RFbsSession RFbsSession1 |
|
716 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
717 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
718 COMMAND RFbsSession1 Connect |
|
719 COMMAND CFbsBitmap1 new |
|
720 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Create_command04 |
|
721 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-New_command06 |
|
722 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command07 |
|
723 COMMAND TBitmapUtil1 End |
|
724 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command09 |
|
725 COMMAND TBitmapUtil1 End |
|
726 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command11 |
|
727 COMMAND TBitmapUtil1 End |
|
728 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command13 |
|
729 COMMAND TBitmapUtil1 End |
|
730 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command15 |
|
731 COMMAND TBitmapUtil1 End |
|
732 COMMAND TBitmapUtil1 ~ |
|
733 COMMAND CFbsBitmap1 ~ |
|
734 COMMAND RFbsSession1 Disconnect |
|
735 END_TEST_BLOCK |
|
736 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019 |
|
737 |
|
738 |
|
739 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020 |
|
740 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020 |
|
741 //! @SYMAPI TBitmapUtil |
|
742 //! @SYMAuthor Rnno Sgirka |
|
743 //! @SYMCreationDate 05/06/2006 |
|
744 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
745 //! @SYMTestCaseDesc TBitmapUtil::SetPos() negative test for out-of-bounds coordinates |
|
746 //! Uses API elements: TBitmapUtil(), Begin(), End(), SetPos() |
|
747 //! @SYMTestActions 1. Create a 100x100 bitmap |
|
748 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
749 //! 3. Call Begin() method passing a point (0, 0) as a parameter |
|
750 //! 4. Call SetPos(-1, 0) |
|
751 //! 5. Call SetPos(0, -1) |
|
752 //! 6. Call SetPos(100, 0) |
|
753 //! 7. Call SetPos(0, 100) |
|
754 //! 8. Call End() method |
|
755 //! @SYMTestStatus Implemented |
|
756 //! @SYMTestPriority High |
|
757 //! @SYMTestExpectedResults The SetPos() method call doesn't cause panic. |
|
758 //! @SYMTestType CIT |
|
759 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
760 CREATE_OBJECT RFbsSession RFbsSession1 |
|
761 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
762 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
763 COMMAND RFbsSession1 Connect |
|
764 COMMAND CFbsBitmap1 new |
|
765 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-Create_command04 |
|
766 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-New_command06 |
|
767 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-Begin_command07 |
|
768 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-SetPos_command08 |
|
769 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-SetPos_command09 |
|
770 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-SetPos_command10 |
|
771 COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-SetPos_command11 |
|
772 COMMAND TBitmapUtil1 End |
|
773 COMMAND TBitmapUtil1 ~ |
|
774 COMMAND CFbsBitmap1 ~ |
|
775 COMMAND RFbsSession1 Disconnect |
|
776 END_TEST_BLOCK |
|
777 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020 |
|
778 |
|
779 |
|
780 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021 |
|
781 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021 |
|
782 //! @SYMAPI TBitmapUtil |
|
783 //! @SYMAuthor Louis Henry Nayegon |
|
784 //! @SYMCreationDate 02/08/2006 |
|
785 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
786 //! @SYMTestCaseDesc Multiple calls to DecXPos(), DecYPos(), IncXPos(), IncYPos() test |
|
787 //! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel(), SetPos(), DecXPos(), IncXPos() |
|
788 //! @SYMTestActions 1. Create a 100x100 EColor256 bitmap |
|
789 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
790 //! 3. Call Begin() method passing a point (10, 10) as a parameter |
|
791 //! 4. Call IncXPos() multiple times followed by SetPixel() |
|
792 //! 5. Call DecXPos() multiple times preceded by GetPixel() |
|
793 //! 6. Call End() method |
|
794 //! @SYMTestStatus Implemented |
|
795 //! @SYMTestPriority Critical |
|
796 //! @SYMTestExpectedResults The operations all pass |
|
797 //! @SYMTestType CIT |
|
798 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
799 CREATE_OBJECT RFbsSession RFbsSession1 |
|
800 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
801 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
802 COMMAND RFbsSession1 Connect |
|
803 COMMAND CFbsBitmap1 new |
|
804 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-Create_command04 |
|
805 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-New_command06 |
|
806 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-Begin_command07 |
|
807 COMMAND TBitmapUtil1 IncXPos |
|
808 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command09 |
|
809 COMMAND TBitmapUtil1 IncXPos |
|
810 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command11 |
|
811 COMMAND TBitmapUtil1 IncXPos |
|
812 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command13 |
|
813 COMMAND TBitmapUtil1 IncXPos |
|
814 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command15 |
|
815 COMMAND TBitmapUtil1 IncXPos |
|
816 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command17 |
|
817 COMMAND TBitmapUtil1 IncXPos |
|
818 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command19 |
|
819 COMMAND TBitmapUtil1 IncXPos |
|
820 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command21 |
|
821 COMMAND TBitmapUtil1 IncXPos |
|
822 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command23 |
|
823 COMMAND TBitmapUtil1 IncXPos |
|
824 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command25 |
|
825 COMMAND TBitmapUtil1 IncXPos |
|
826 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command27 |
|
827 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command28 |
|
828 COMMAND TBitmapUtil1 DecXPos |
|
829 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command30 |
|
830 COMMAND TBitmapUtil1 DecXPos |
|
831 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command32 |
|
832 COMMAND TBitmapUtil1 DecXPos |
|
833 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command34 |
|
834 COMMAND TBitmapUtil1 DecXPos |
|
835 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command36 |
|
836 COMMAND TBitmapUtil1 DecXPos |
|
837 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command38 |
|
838 COMMAND TBitmapUtil1 DecXPos |
|
839 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command40 |
|
840 COMMAND TBitmapUtil1 DecXPos |
|
841 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command42 |
|
842 COMMAND TBitmapUtil1 DecXPos |
|
843 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command44 |
|
844 COMMAND TBitmapUtil1 DecXPos |
|
845 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command46 |
|
846 COMMAND TBitmapUtil1 DecXPos |
|
847 COMMAND TBitmapUtil1 End |
|
848 COMMAND TBitmapUtil1 ~ |
|
849 COMMAND CFbsBitmap1 ~ |
|
850 COMMAND RFbsSession1 Disconnect |
|
851 END_TEST_BLOCK |
|
852 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021 |
|
853 |
|
854 |
|
855 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022 |
|
856 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022 |
|
857 //! @SYMAPI TBitmapUtil |
|
858 //! @SYMAuthor Louis Henry Nayegon |
|
859 //! @SYMCreationDate 02/08/2006 |
|
860 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
861 //! @SYMTestCaseDesc Multiple calls to DecXPos(), DecYPos(), IncXPos(), IncYPos() test |
|
862 //! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel(), SetPos(), DecXPos(), IncXPos() |
|
863 //! @SYMTestActions 1. Create a 100x100 EColor16M bitmap |
|
864 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
865 //! 3. Call Begin() method passing a point (10, 10) as a parameter |
|
866 //! 4. Call IncXPos() multiple times followed by SetPixel() |
|
867 //! 5. Call DecXPos() multiple times preceded by GetPixel() |
|
868 //! 6. Call End() method |
|
869 //! @SYMTestStatus Implemented |
|
870 //! @SYMTestPriority Critical |
|
871 //! @SYMTestExpectedResults The operations all pass |
|
872 //! @SYMTestType CIT |
|
873 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
874 CREATE_OBJECT RFbsSession RFbsSession1 |
|
875 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
876 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
877 COMMAND RFbsSession1 Connect |
|
878 COMMAND CFbsBitmap1 new |
|
879 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-Create_command04 |
|
880 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-New_command06 |
|
881 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-Begin_command07 |
|
882 COMMAND TBitmapUtil1 IncXPos |
|
883 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command09 |
|
884 COMMAND TBitmapUtil1 IncXPos |
|
885 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command11 |
|
886 COMMAND TBitmapUtil1 IncXPos |
|
887 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command13 |
|
888 COMMAND TBitmapUtil1 IncXPos |
|
889 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command15 |
|
890 COMMAND TBitmapUtil1 IncXPos |
|
891 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command17 |
|
892 COMMAND TBitmapUtil1 IncXPos |
|
893 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command19 |
|
894 COMMAND TBitmapUtil1 IncXPos |
|
895 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command21 |
|
896 COMMAND TBitmapUtil1 IncXPos |
|
897 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command23 |
|
898 COMMAND TBitmapUtil1 IncXPos |
|
899 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command25 |
|
900 COMMAND TBitmapUtil1 IncXPos |
|
901 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command27 |
|
902 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command28 |
|
903 COMMAND TBitmapUtil1 DecXPos |
|
904 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command30 |
|
905 COMMAND TBitmapUtil1 DecXPos |
|
906 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command32 |
|
907 COMMAND TBitmapUtil1 DecXPos |
|
908 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command34 |
|
909 COMMAND TBitmapUtil1 DecXPos |
|
910 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command36 |
|
911 COMMAND TBitmapUtil1 DecXPos |
|
912 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command38 |
|
913 COMMAND TBitmapUtil1 DecXPos |
|
914 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command40 |
|
915 COMMAND TBitmapUtil1 DecXPos |
|
916 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command42 |
|
917 COMMAND TBitmapUtil1 DecXPos |
|
918 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command44 |
|
919 COMMAND TBitmapUtil1 DecXPos |
|
920 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command46 |
|
921 COMMAND TBitmapUtil1 DecXPos |
|
922 COMMAND TBitmapUtil1 End |
|
923 COMMAND TBitmapUtil1 ~ |
|
924 COMMAND CFbsBitmap1 ~ |
|
925 COMMAND RFbsSession1 Disconnect |
|
926 END_TEST_BLOCK |
|
927 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022 |
|
928 |
|
929 |
|
930 START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023 |
|
931 //! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023 |
|
932 //! @SYMAPI TBitmapUtil |
|
933 //! @SYMAuthor Louis Henry Nayegon |
|
934 //! @SYMCreationDate 02/08/2006 |
|
935 //! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script |
|
936 //! @SYMTestCaseDesc Multiple calls to DecXPos(), DecYPos(), IncXPos(), IncYPos() test |
|
937 //! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel(), SetPos(), DecXPos(), IncXPos() |
|
938 //! @SYMTestActions 1. Create a 100x100 EColor16MU bitmap |
|
939 //! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter |
|
940 //! 3. Call Begin() method passing a point (10, 10) as a parameter |
|
941 //! 4. Call IncXPos() multiple times followed by SetPixel() |
|
942 //! 5. Call DecXPos() multiple times preceded by GetPixel() |
|
943 //! 6. Call End() method |
|
944 //! @SYMTestStatus Implemented |
|
945 //! @SYMTestPriority Critical |
|
946 //! @SYMTestExpectedResults The operations all pass |
|
947 //! @SYMTestType CIT |
|
948 START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini |
|
949 CREATE_OBJECT RFbsSession RFbsSession1 |
|
950 CREATE_OBJECT CFbsBitmap CFbsBitmap1 |
|
951 CREATE_OBJECT TBitmapUtil TBitmapUtil1 |
|
952 COMMAND RFbsSession1 Connect |
|
953 COMMAND CFbsBitmap1 new |
|
954 COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-Create_command04 |
|
955 COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-New_command06 |
|
956 COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-Begin_command07 |
|
957 COMMAND TBitmapUtil1 IncXPos |
|
958 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command09 |
|
959 COMMAND TBitmapUtil1 IncXPos |
|
960 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command11 |
|
961 COMMAND TBitmapUtil1 IncXPos |
|
962 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command13 |
|
963 COMMAND TBitmapUtil1 IncXPos |
|
964 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command15 |
|
965 COMMAND TBitmapUtil1 IncXPos |
|
966 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command17 |
|
967 COMMAND TBitmapUtil1 IncXPos |
|
968 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command19 |
|
969 COMMAND TBitmapUtil1 IncXPos |
|
970 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command21 |
|
971 COMMAND TBitmapUtil1 IncXPos |
|
972 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command23 |
|
973 COMMAND TBitmapUtil1 IncXPos |
|
974 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command25 |
|
975 COMMAND TBitmapUtil1 IncXPos |
|
976 COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command27 |
|
977 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command28 |
|
978 COMMAND TBitmapUtil1 DecXPos |
|
979 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command30 |
|
980 COMMAND TBitmapUtil1 DecXPos |
|
981 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command32 |
|
982 COMMAND TBitmapUtil1 DecXPos |
|
983 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command34 |
|
984 COMMAND TBitmapUtil1 DecXPos |
|
985 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command36 |
|
986 COMMAND TBitmapUtil1 DecXPos |
|
987 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command38 |
|
988 COMMAND TBitmapUtil1 DecXPos |
|
989 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command40 |
|
990 COMMAND TBitmapUtil1 DecXPos |
|
991 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command42 |
|
992 COMMAND TBitmapUtil1 DecXPos |
|
993 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command44 |
|
994 COMMAND TBitmapUtil1 DecXPos |
|
995 COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command46 |
|
996 COMMAND TBitmapUtil1 DecXPos |
|
997 COMMAND TBitmapUtil1 End |
|
998 COMMAND TBitmapUtil1 ~ |
|
999 COMMAND CFbsBitmap1 ~ |
|
1000 COMMAND RFbsSession1 Disconnect |
|
1001 END_TEST_BLOCK |
|
1002 END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023 |
|