1 // |
|
2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 //! @file |
|
17 //! @SYMTestSuiteName GRAPHICS-BitGDI-CFbsBitmapDevice-PublicApi |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
|
20 /////////////////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-BitGDI-CFbsBitmapDevice-PublicApi.script |
|
22 // |
|
23 // Tests all public elements of the CFbsBitmapDevice class |
|
24 // as a means of confidence that the API works as expected. |
|
25 // |
|
26 // The purpose is to provide a regression test suite of PublishedAll APIs for |
|
27 // CFbsBitmapDevice related classes. |
|
28 // Negative testing is performed to confirm that correct errors are returned |
|
29 // when incorrect parameters are given. |
|
30 // |
|
31 // The tests are fully automated. |
|
32 /////////////////////////////////////////////////////////////////////////////// |
|
33 |
|
34 |
|
35 LOAD_SUITE T_GraphicsBitGDIAPI |
|
36 DELAY 1000 |
|
37 |
|
38 // **************************************************************************** |
|
39 // Class Name CFbsBitmapDevice |
|
40 // **************************************************************************** |
|
41 |
|
42 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001 |
|
43 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001 |
|
44 //! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}) |
|
45 //! @SYMAuthor Wei Liu |
|
46 //! @SYMCreationDate 05/01/2009 |
|
47 //! @SYMTestCaseDesc Create CFbsBitmapDevice object by using NewL(CFbsBitmap{ptr}) and destroy it. |
|
48 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
49 //! 2.Create CFbsBitmap Object and load bitmap. |
|
50 //! 3.Create CFbsBitmapDevice Object and distroy it. |
|
51 //! @SYMTestStatus Implemented |
|
52 //! @SYMTestPriority High |
|
53 //! @SYMTestExpectedResults CFbsBitmapDevice was created without any error. |
|
54 //! @SYMTestType CIT |
|
55 |
|
56 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
57 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
58 CREATE_OBJECT RFbsSession rfbssession |
|
59 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
60 COMMAND rfbssession Connect |
|
61 COMMAND fbsBitmap new |
|
62 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001-Load_command03 |
|
63 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001-SetSizeInTwips_command04 |
|
64 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001-NewL_command05 |
|
65 COMMAND fbsbitdev ~ |
|
66 COMMAND fbsBitmap ~ |
|
67 COMMAND rfbssession Disconnect |
|
68 END_TEST_BLOCK |
|
69 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001 |
|
70 |
|
71 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0002 |
|
72 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0002 |
|
73 //! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}) |
|
74 //! @SYMAuthor Wei Liu |
|
75 //! @SYMCreationDate 05/01/2009 |
|
76 //! @SYMTestCaseDesc Negative case, Create CFbsBitmapDevice object with NULL CFbsBitmap* param. |
|
77 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
78 //! 2.Create CFbsBitmapDevice Object with Null CFbsBitmap param. |
|
79 //! @SYMTestStatus Implemented |
|
80 //! @SYMTestPriority High |
|
81 //! @SYMTestExpectedResults BITGDI panic will occur as expected. |
|
82 //! @SYMTestType CIT |
|
83 |
|
84 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
85 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
86 CREATE_OBJECT RFbsSession rfbssession |
|
87 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
88 COMMAND rfbssession Connect |
|
89 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0002-NewL_command02 |
|
90 END_TEST_BLOCK !PanicString=BITGDI !PanicCode=13 |
|
91 RUN_TEST_STEP 100 T_GraphicsBitGDIAPI utilityClearPanicDlg |
|
92 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0002 |
|
93 |
|
94 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0003 |
|
95 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0003 |
|
96 //! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}) |
|
97 //! @SYMAuthor Wei Liu |
|
98 //! @SYMCreationDate 05/01/2009 |
|
99 //! @SYMTestCaseDesc Negative case, Create CFbsBitmapDevice object by using bad CFbsBitmap object and destroy it. |
|
100 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
101 //! 2.Create CFbsBitmap Object. |
|
102 //! 3.Create CFbsBitmapDevice Object and distroy it. |
|
103 //! @SYMTestStatus Implemented |
|
104 //! @SYMTestPriority High |
|
105 //! @SYMTestExpectedResults KErrArgument error occurs. |
|
106 //! @SYMTestType CIT |
|
107 |
|
108 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
109 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
110 CREATE_OBJECT RFbsSession rfbssession |
|
111 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
112 COMMAND rfbssession Connect |
|
113 COMMAND fbsBitmap new |
|
114 COMMAND !Error=-6 fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0003-NewL_command03 |
|
115 COMMAND fbsbitdev ~ |
|
116 COMMAND fbsBitmap ~ |
|
117 COMMAND rfbssession Disconnect |
|
118 END_TEST_BLOCK |
|
119 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0003 |
|
120 |
|
121 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004 |
|
122 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004 |
|
123 //! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}) |
|
124 //! @SYMAuthor Wei Liu |
|
125 //! @SYMCreationDate 05/01/2009 |
|
126 //! @SYMTestCaseDesc Negative case, create CFbsBitmapDevice object using ROM bitmap. |
|
127 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
128 //! 2.Create CFbsBitmap Object and load a ROM bitmap. |
|
129 //! 3.Create CFbsBitmapDevice Object and distroy it. |
|
130 //! @SYMTestStatus Implemented |
|
131 //! @SYMTestPriority High |
|
132 //! @SYMTestExpectedResults KErrAccessDenied error was received. |
|
133 //! @SYMTestType CIT |
|
134 |
|
135 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
136 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
137 CREATE_OBJECT RFbsSession rfbssession |
|
138 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
139 COMMAND rfbssession Connect |
|
140 COMMAND fbsBitmap new |
|
141 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004-Load_command03 |
|
142 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004-SetSizeInTwips_command04 |
|
143 COMMAND !Error=-21 fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004-NewL_command05 |
|
144 COMMAND fbsbitdev ~ |
|
145 COMMAND fbsBitmap ~ |
|
146 COMMAND rfbssession Disconnect |
|
147 END_TEST_BLOCK |
|
148 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004 |
|
149 |
|
150 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005 |
|
151 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005 |
|
152 //! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}, const TDesC{ref}) |
|
153 //! @SYMAuthor Wei Liu |
|
154 //! @SYMCreationDate 05/01/2009 |
|
155 //! @SYMTestCaseDesc Create CFbsBitmapDevice object by using NewL(CFbsBitmap{ptr}, const TDesC{ref}) and destroy it. |
|
156 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
157 //! 2.Create CFbsBitmap Object and load bitmap. |
|
158 //! 3.Create CFbsBitmapDevice Object and distroy it. |
|
159 //! @SYMTestStatus Implemented |
|
160 //! @SYMTestPriority High |
|
161 //! @SYMTestExpectedResults CFbsBitmapDevice was created without any error. |
|
162 //! @SYMTestType CIT |
|
163 |
|
164 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
165 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
166 CREATE_OBJECT RFbsSession rfbssession |
|
167 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
168 COMMAND rfbssession Connect |
|
169 COMMAND fbsBitmap new |
|
170 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005-Load_command03 |
|
171 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005-SetSizeInTwips_command04 |
|
172 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005-NewL_command05 |
|
173 COMMAND fbsbitdev ~ |
|
174 COMMAND fbsBitmap ~ |
|
175 COMMAND rfbssession Disconnect |
|
176 END_TEST_BLOCK |
|
177 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005 |
|
178 |
|
179 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0006 |
|
180 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0006 |
|
181 //! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}, const TDesC{ref}) |
|
182 //! @SYMAuthor Wei Liu |
|
183 //! @SYMCreationDate 05/01/2009 |
|
184 //! @SYMTestCaseDesc Negative case, Create CFbsBitmapDevice object by using bad CFbsBitmap object and destroy it. |
|
185 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
186 //! 2.Create CFbsBitmap Object. |
|
187 //! 3.Create CFbsBitmapDevice Object and distroy it. |
|
188 //! @SYMTestStatus Implemented |
|
189 //! @SYMTestPriority High |
|
190 //! @SYMTestExpectedResults KErrArgument error occurs. |
|
191 //! @SYMTestType CIT |
|
192 |
|
193 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
194 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
195 CREATE_OBJECT RFbsSession rfbssession |
|
196 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
197 COMMAND rfbssession Connect |
|
198 COMMAND fbsBitmap new |
|
199 COMMAND !Error=-6 fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0006-NewL_command03 |
|
200 COMMAND fbsbitdev ~ |
|
201 COMMAND fbsBitmap ~ |
|
202 COMMAND rfbssession Disconnect |
|
203 END_TEST_BLOCK |
|
204 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0006 |
|
205 |
|
206 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0007 |
|
207 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0007 |
|
208 //! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}, const TDesC{ref}) |
|
209 //! @SYMAuthor Wei Liu |
|
210 //! @SYMCreationDate 05/01/2009 |
|
211 //! @SYMTestCaseDesc Negative case, Create CFbsBitmapDevice object with NULL CFbsBitmap* param. |
|
212 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
213 //! 2.Create CFbsBitmapDevice Object with Null CFbsBitmap param. |
|
214 //! @SYMTestStatus Implemented |
|
215 //! @SYMTestPriority High |
|
216 //! @SYMTestExpectedResults BITGDI panic will occur as expected. |
|
217 //! @SYMTestType CIT |
|
218 |
|
219 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
220 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
221 CREATE_OBJECT RFbsSession rfbssession |
|
222 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
223 COMMAND rfbssession Connect |
|
224 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0007-NewL_command02 |
|
225 END_TEST_BLOCK !PanicString=BITGDI !PanicCode=13 |
|
226 RUN_TEST_STEP 100 T_GraphicsBitGDIAPI utilityClearPanicDlg |
|
227 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0007 |
|
228 |
|
229 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008 |
|
230 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008 |
|
231 //! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}, const TDesC{ref}) |
|
232 //! @SYMAuthor Wei Liu |
|
233 //! @SYMCreationDate 05/01/2009 |
|
234 //! @SYMTestCaseDesc Negative case, create CFbsBitmapDevice object using ROM bitmap. |
|
235 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
236 //! 2.Create CFbsBitmap Object and load a ROM bitmap. |
|
237 //! 3.Create CFbsBitmapDevice Object and distroy it. |
|
238 //! @SYMTestStatus Implemented |
|
239 //! @SYMTestPriority High |
|
240 //! @SYMTestExpectedResults KErrAccessDenied error was received. |
|
241 //! @SYMTestType CIT |
|
242 |
|
243 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
244 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
245 CREATE_OBJECT RFbsSession rfbssession |
|
246 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
247 COMMAND rfbssession Connect |
|
248 COMMAND fbsBitmap new |
|
249 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008-Load_command03 |
|
250 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008-SetSizeInTwips_command04 |
|
251 COMMAND !Error=-21 fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008-NewL_command05 |
|
252 COMMAND fbsbitdev ~ |
|
253 COMMAND fbsBitmap ~ |
|
254 COMMAND rfbssession Disconnect |
|
255 END_TEST_BLOCK |
|
256 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008 |
|
257 |
|
258 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0009 |
|
259 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0009 |
|
260 //! @SYMAPI CFbsBitmapDevice::~CFbsBitmapDevice() |
|
261 //! @SYMAuthor Wei Liu |
|
262 //! @SYMCreationDate 05/01/2009 |
|
263 //! @SYMTestCaseDesc Create CFbsBitmapDevice object by using NewL(CFbsBitmap{ptr}) and destroy it. |
|
264 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
265 //! 2.Create CFbsBitmap Object and load bitmap. |
|
266 //! 3.Create CFbsBitmapDevice Object and distroy it. |
|
267 //! @SYMTestStatus Implemented |
|
268 //! @SYMTestPriority High |
|
269 //! @SYMTestExpectedResults CFbsBitmapDevice was deleted without any error. |
|
270 //! @SYMTestType CIT |
|
271 |
|
272 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
273 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
274 CREATE_OBJECT RFbsSession rfbssession |
|
275 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
276 COMMAND rfbssession Connect |
|
277 COMMAND fbsBitmap new |
|
278 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0009-Load_command03 |
|
279 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0009-NewL_command04 |
|
280 COMMAND fbsbitdev ~ |
|
281 COMMAND fbsBitmap ~ |
|
282 COMMAND rfbssession Disconnect |
|
283 END_TEST_BLOCK |
|
284 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0009 |
|
285 |
|
286 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010 |
|
287 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010 |
|
288 //! @SYMAPI CFbsBitmapDevice::DrawingBegin(TBool) and CFbsBitmapDevice::DrawingEnd(TBool) |
|
289 //! @SYMAuthor Wei Liu |
|
290 //! @SYMCreationDate 05/01/2009 |
|
291 //! @SYMTestCaseDesc Create CFbsBitmapDevice object and drawing it. |
|
292 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
293 //! 2.Create CFbsBitmap Object and load bitmap. |
|
294 //! 3.Create CFbsBitmapDevice Object. |
|
295 //! 4.Create CFbsBitGc Object and related to CFbsBitmapDevice Object. |
|
296 //! 5.Call DrawingBegin to begin a draw. |
|
297 //! 6.Draw a line on the bitmap. |
|
298 //! 7.Call DrawingEnd to end a draw. |
|
299 //! 8.Destroy all the objects. |
|
300 //! @SYMTestStatus Implemented |
|
301 //! @SYMTestPriority High |
|
302 //! @SYMTestExpectedResults DrawingBegin and DrawingEnd are called without any error. |
|
303 //! @SYMTestType CIT |
|
304 |
|
305 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
306 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
307 CREATE_OBJECT RFbsSession rfbssession |
|
308 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
309 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
310 COMMAND rfbssession Connect |
|
311 COMMAND fbsBitmap new |
|
312 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-Load_command03 |
|
313 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-NewL_command04 |
|
314 COMMAND fbsBitGc NewL |
|
315 COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-Activate_command05 |
|
316 COMMAND fbsbitdev DrawingBegin GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-DrawingBegin_command06 |
|
317 COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-DrawLine_command07 |
|
318 COMMAND fbsbitdev DrawingEnd GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-DrawingEnd_command08 |
|
319 COMMAND fbsbitdev ~ |
|
320 COMMAND fbsBitmap ~ |
|
321 COMMAND fbsBitGc ~ |
|
322 COMMAND rfbssession Disconnect |
|
323 END_TEST_BLOCK |
|
324 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010 |
|
325 |
|
326 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011 |
|
327 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011 |
|
328 //! @SYMAPI CFbsBitmapDevice::DrawingBegin(TBool) and CFbsBitmapDevice::DrawingEnd(TBool) |
|
329 //! @SYMAuthor Wei Liu |
|
330 //! @SYMCreationDate 05/01/2009 |
|
331 //! @SYMTestCaseDesc Negative case, Drawing a line on the bitmap without calling DrawingBegin first. |
|
332 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
333 //! 2.Create CFbsBitmap Object and load bitmap. |
|
334 //! 3.Create CFbsBitmapDevice Object. |
|
335 //! 4.Create CFbsBitGc Object and related to CFbsBitmapDevice Object. |
|
336 //! 5.Draw a line on the bitmap. |
|
337 //! 6.Destroy all the objects. |
|
338 //! @SYMTestStatus Implemented |
|
339 //! @SYMTestPriority High |
|
340 //! @SYMTestExpectedResults DrawingEnd are called without any error. |
|
341 //! @SYMTestType CIT |
|
342 |
|
343 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
344 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
345 CREATE_OBJECT RFbsSession rfbssession |
|
346 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
347 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
348 COMMAND rfbssession Connect |
|
349 COMMAND fbsBitmap new |
|
350 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011-Load_command03 |
|
351 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011-NewL_command04 |
|
352 COMMAND fbsBitGc NewL |
|
353 COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011-Activate_command05 |
|
354 COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011-DrawLine_command06 |
|
355 COMMAND fbsbitdev DrawingEnd |
|
356 COMMAND fbsbitdev ~ |
|
357 COMMAND fbsBitmap ~ |
|
358 COMMAND fbsBitGc ~ |
|
359 COMMAND rfbssession Disconnect |
|
360 END_TEST_BLOCK |
|
361 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011 |
|
362 |
|
363 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012 |
|
364 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012 |
|
365 //! @SYMAPI CFbsBitmapDevice::DrawingBegin(TBool) |
|
366 //! @SYMAuthor Wei Liu |
|
367 //! @SYMCreationDate 05/01/2009 |
|
368 //! @SYMTestCaseDesc Negative case, call DrawingBegin without DrawingEnd. |
|
369 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
370 //! 2.Create CFbsBitmap Object and load bitmap. |
|
371 //! 3.Create CFbsBitmapDevice Object. |
|
372 //! 4.Call DrawingBegin to begin a draw. |
|
373 //! 5.Destroy all the objects. |
|
374 //! @SYMTestStatus Implemented |
|
375 //! @SYMTestPriority High |
|
376 //! @SYMTestExpectedResults DrawingBegin is called without any error. |
|
377 //! @SYMTestType CIT |
|
378 |
|
379 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
380 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
381 CREATE_OBJECT RFbsSession rfbssession |
|
382 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
383 COMMAND rfbssession Connect |
|
384 COMMAND fbsBitmap new |
|
385 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012-Load_command03 |
|
386 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012-NewL_command04 |
|
387 COMMAND fbsbitdev DrawingBegin GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012-DrawingBegin_command05 |
|
388 COMMAND fbsbitdev ~ |
|
389 COMMAND fbsBitmap ~ |
|
390 COMMAND rfbssession Disconnect |
|
391 END_TEST_BLOCK |
|
392 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012 |
|
393 |
|
394 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013 |
|
395 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013 |
|
396 //! @SYMAPI CFbsBitmapDevice::DrawingEnd(TBool) |
|
397 //! @SYMAuthor Wei Liu |
|
398 //! @SYMCreationDate 05/01/2009 |
|
399 //! @SYMTestCaseDesc Negative case, call DrawingEnd without call DrawingBegin before. |
|
400 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
401 //! 2.Create CFbsBitmap Object and load bitmap. |
|
402 //! 3.Create CFbsBitmapDevice Object. |
|
403 //! 4.Call DrawingEnd to begin a draw. |
|
404 //! 5.Destroy all the objects. |
|
405 //! @SYMTestStatus Implemented |
|
406 //! @SYMTestPriority High |
|
407 //! @SYMTestExpectedResults DrawingBegin is called without any error. |
|
408 //! @SYMTestType CIT |
|
409 |
|
410 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
411 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
412 CREATE_OBJECT RFbsSession rfbssession |
|
413 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
414 COMMAND rfbssession Connect |
|
415 COMMAND fbsBitmap new |
|
416 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013-Load_command03 |
|
417 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013-NewL_command04 |
|
418 COMMAND fbsbitdev DrawingEnd GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013-DrawingEnd_command05 |
|
419 COMMAND fbsbitdev ~ |
|
420 COMMAND fbsBitmap ~ |
|
421 COMMAND rfbssession Disconnect |
|
422 END_TEST_BLOCK |
|
423 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013 |
|
424 |
|
425 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014 |
|
426 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014 |
|
427 //! @SYMAPI CFbsBitmapDevice::SetPalette(CPalette{ptr}). |
|
428 //! @SYMAuthor Wei Liu |
|
429 //! @SYMCreationDate 06/01/2009 |
|
430 //! @SYMTestCaseDesc Set a palette to CFbsBitmapDevice Object. |
|
431 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
432 //! 2.Create CFbsBitmap Object and load bitmap. |
|
433 //! 3.Create CFbsBitmapDevice Object. |
|
434 //! 4.Create CPalette Object. |
|
435 //! 5.Set the palette with the existing palette. |
|
436 //! 6.Destroy all the objects. |
|
437 //! @SYMTestStatus Implemented |
|
438 //! @SYMTestPriority High |
|
439 //! @SYMTestExpectedResults A Palette was set without any error. |
|
440 //! @SYMTestType CIT |
|
441 |
|
442 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
443 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
444 CREATE_OBJECT RFbsSession rfbssession |
|
445 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
446 CREATE_OBJECT CPalette palette |
|
447 COMMAND rfbssession Connect |
|
448 COMMAND fbsBitmap new |
|
449 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014-Load_command03 |
|
450 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014-NewL_command04 |
|
451 COMMAND palette NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014-NewL_command05 |
|
452 COMMAND fbsbitdev SetPalette GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014-SetPalette_command06 |
|
453 COMMAND fbsbitdev ~ |
|
454 COMMAND fbsBitmap ~ |
|
455 COMMAND palette ~ |
|
456 COMMAND rfbssession Disconnect |
|
457 END_TEST_BLOCK |
|
458 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014 |
|
459 |
|
460 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015 |
|
461 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015 |
|
462 //! @SYMAPI CFbsBitmapDevice::SetPalette(CPalette{ptr}). |
|
463 //! @SYMAuthor Wei Liu |
|
464 //! @SYMCreationDate 06/01/2009 |
|
465 //! @SYMTestCaseDesc Negative case, Set a NULL Palette to CFbsBitmapDevice Object. |
|
466 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
467 //! 2.Create CFbsBitmap Object and load bitmap. |
|
468 //! 3.Create CFbsBitmapDevice Object. |
|
469 //! 4.Create CPalette Object. |
|
470 //! 5.Set the NULL Palette. |
|
471 //! 6.Destroy all the objects. |
|
472 //! @SYMTestStatus Implemented |
|
473 //! @SYMTestPriority High |
|
474 //! @SYMTestExpectedResults Null palette is set to the device. |
|
475 //! @SYMTestType CIT |
|
476 |
|
477 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
478 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
479 CREATE_OBJECT RFbsSession rfbssession |
|
480 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
481 CREATE_OBJECT CPalette palette |
|
482 COMMAND rfbssession Connect |
|
483 COMMAND fbsBitmap new |
|
484 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015-Load_command03 |
|
485 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015-NewL_command04 |
|
486 COMMAND fbsbitdev SetPalette GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015-SetPalette_command05 |
|
487 COMMAND fbsbitdev ~ |
|
488 COMMAND fbsBitmap ~ |
|
489 COMMAND palette ~ |
|
490 COMMAND rfbssession Disconnect |
|
491 END_TEST_BLOCK |
|
492 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015 |
|
493 |
|
494 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016 |
|
495 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016 |
|
496 //! @SYMAPI CFbsBitmapDevice::GetPalette(CPalette{ptr}{ref}) const |
|
497 //! @SYMAuthor Wei Liu |
|
498 //! @SYMCreationDate 06/01/2009 |
|
499 //! @SYMTestCaseDesc Get the Palette from the CFbsBitmapDevice object and verify it. |
|
500 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
501 //! 2.Create CFbsBitmap Object and load bitmap. |
|
502 //! 3.Create CFbsBitmapDevice Object. |
|
503 //! 4.Create CPalette Object. |
|
504 //! 5.Set the palette with the existing palette. |
|
505 //! 6.Get the palette and verify whether it is the same as we set before. |
|
506 //! 7.Destroy all the objects. |
|
507 //! @SYMTestStatus Implemented |
|
508 //! @SYMTestPriority High |
|
509 //! @SYMTestExpectedResults Palette was received as expected. |
|
510 //! @SYMTestType CIT |
|
511 |
|
512 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
513 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
514 CREATE_OBJECT RFbsSession rfbssession |
|
515 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
516 CREATE_OBJECT CPalette palette |
|
517 COMMAND rfbssession Connect |
|
518 COMMAND fbsBitmap new |
|
519 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-Load_command03 |
|
520 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-NewL_command04 |
|
521 COMMAND palette NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-NewL_command05 |
|
522 COMMAND fbsbitdev SetPalette GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-SetPalette_command06 |
|
523 COMMAND fbsbitdev GetPalette GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-GetPalette_command07 |
|
524 COMMAND fbsbitdev ~ |
|
525 COMMAND fbsBitmap ~ |
|
526 COMMAND palette ~ |
|
527 COMMAND rfbssession Disconnect |
|
528 END_TEST_BLOCK |
|
529 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016 |
|
530 |
|
531 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017 |
|
532 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017 |
|
533 //! @SYMAPI CFbsBitmapDevice::GetPixel(TRgb{ref}, const TPoint{ref}) const |
|
534 //! @SYMAuthor Wei Liu |
|
535 //! @SYMCreationDate 06/01/2009 |
|
536 //! @SYMTestCaseDesc Check the color of specified points of CFbsBitmapDevice object. |
|
537 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
538 //! 2.Create CFbsBitmap Object and load bitmap. |
|
539 //! 3.Create another CFbsBitmap2 Object without load any bitmap. |
|
540 //! 4.Create CFbsBitmapDevice Object with CFbsBitmap Object. |
|
541 //! 5.Create CFbsBitGc and CFbsBitGc2 objects and related to CFbsBitmapDevice and CFbsScreenDevice separately. |
|
542 //! 6.Gets pixel of CFbsBitmap object at point(20, 20) to verify the color of pixel is White. |
|
543 //! 7.Gets pixel of CFbsBitmap object at point(10, 30) to verify the color of pixel is Black. |
|
544 //! 8.Call BitBlt function of CFbsScreenDevice object with CFbsBitmap object to show the bitmap on the device. |
|
545 //! 9.Update the Screendevice to show the bitmap in the Screendevice. |
|
546 //! 10.Delay 1 second. |
|
547 //! 11.Destroy all the objects. |
|
548 //! @SYMTestStatus Implemented |
|
549 //! @SYMTestPriority High |
|
550 //! @SYMTestExpectedResults The color of specified points matchs with expected value. |
|
551 //! @SYMTestType CIT |
|
552 |
|
553 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
554 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
555 CREATE_OBJECT RFbsSession rfbssession |
|
556 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
557 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
558 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
559 CREATE_OBJECT CFbsBitGc fbsBitGc2 |
|
560 COMMAND rfbssession Connect |
|
561 COMMAND fbsBitmap new |
|
562 COMMAND fbsBitGc NewL |
|
563 COMMAND fbsBitGc2 NewL |
|
564 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-Load_command05 |
|
565 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-NewL_command06 |
|
566 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-NewL_command07 |
|
567 COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-Activate_command08 |
|
568 COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-Activate_command09 |
|
569 COMMAND fbsBitGc2 BitBlt GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-BitBlt_command10 |
|
570 COMMAND fbsScrDev Update |
|
571 DELAY 1000000 |
|
572 COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-GetPixel_command12 |
|
573 COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-GetPixel_command13 |
|
574 COMMAND fbsbitdev ~ |
|
575 COMMAND fbsBitmap ~ |
|
576 COMMAND fbsScrDev ~ |
|
577 COMMAND fbsBitGc ~ |
|
578 COMMAND fbsBitGc2 ~ |
|
579 COMMAND rfbssession Disconnect |
|
580 END_TEST_BLOCK |
|
581 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017 |
|
582 |
|
583 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018 |
|
584 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018 |
|
585 //! @SYMAPI CFbsBitmapDevice::GetPixel(TRgb{ref}, const TPoint{ref}) const |
|
586 //! @SYMAuthor Wei Liu |
|
587 //! @SYMCreationDate 06/01/2009 |
|
588 //! @SYMTestCaseDesc Negative case, Check the negative x- and y-coordinate/too big x- and y-coordinate. |
|
589 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
590 //! 2.Create CFbsBitmap Object and load bitmap. |
|
591 //! 3.Create CFbsBitmapDevice Object. |
|
592 //! 4.Gets pixel at point(-1, 0) and check the RGB color is white. |
|
593 //! 5.Gets pixel at point(0, -1) and check the RGB color is white. |
|
594 //! 6.Gets pixel at point(-1, -1) and check the RGB color is white. |
|
595 //! 7.Gets pixel at point(10000, 0) and check the RGB color is white. |
|
596 //! 8.Gets pixel at point(0, 10000) and check the RGB color is white. |
|
597 //! 9.Gets pixel at point(10000, 10000) and check the RGB color is white. |
|
598 //! 10.Destroy all the objects. |
|
599 //! @SYMTestStatus Implemented |
|
600 //! @SYMTestPriority High |
|
601 //! @SYMTestExpectedResults The color of specified points matchs with expected value. |
|
602 //! @SYMTestType CIT |
|
603 |
|
604 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
605 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
606 CREATE_OBJECT RFbsSession rfbssession |
|
607 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
608 COMMAND rfbssession Connect |
|
609 COMMAND fbsBitmap new |
|
610 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-Load_command03 |
|
611 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-NewL_command04 |
|
612 COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command05 |
|
613 COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command06 |
|
614 COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command07 |
|
615 COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command08 |
|
616 COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command09 |
|
617 COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command10 |
|
618 COMMAND fbsbitdev ~ |
|
619 COMMAND fbsBitmap ~ |
|
620 COMMAND rfbssession Disconnect |
|
621 END_TEST_BLOCK |
|
622 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018 |
|
623 |
|
624 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019 |
|
625 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019 |
|
626 //! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) |
|
627 //! @SYMAuthor Wei Liu |
|
628 //! @SYMCreationDate 06/01/2009 |
|
629 //! @SYMTestCaseDesc Gets a scanline into a buffer and verify it. |
|
630 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
631 //! 2.Create CFbsBitmap Object and load bitmap. |
|
632 //! 3.Create CFbsBitmapDevice Object. |
|
633 //! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. |
|
634 //! 5.Destroy all the objects. |
|
635 //! @SYMTestStatus Implemented |
|
636 //! @SYMTestPriority High |
|
637 //! @SYMTestExpectedResults The color of specified scanline matchs with expected value. |
|
638 //! @SYMTestType CIT |
|
639 |
|
640 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
641 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
642 CREATE_OBJECT RFbsSession rfbssession |
|
643 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
644 COMMAND rfbssession Connect |
|
645 COMMAND fbsBitmap new |
|
646 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019-Load_command03 |
|
647 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019-NewL_command04 |
|
648 COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019-GetScanLine_command05 |
|
649 COMMAND fbsbitdev ~ |
|
650 COMMAND fbsBitmap ~ |
|
651 COMMAND rfbssession Disconnect |
|
652 END_TEST_BLOCK |
|
653 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019 |
|
654 |
|
655 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020 |
|
656 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020 |
|
657 //! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) |
|
658 //! @SYMAuthor Wei Liu |
|
659 //! @SYMCreationDate 06/01/2009 |
|
660 //! @SYMTestCaseDesc Negative test, uses a zero-length buffer. |
|
661 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
662 //! 2.Create CFbsBitmap Object and load bitmap. |
|
663 //! 3.Create CFbsBitmapDevice Object. |
|
664 //! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. |
|
665 //! 5.Destroy all the objects. |
|
666 //! @SYMTestStatus Implemented |
|
667 //! @SYMTestPriority High |
|
668 //! @SYMTestExpectedResults GetScanLine is called without panic. |
|
669 //! @SYMTestType CIT |
|
670 |
|
671 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
672 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
673 CREATE_OBJECT RFbsSession rfbssession |
|
674 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
675 COMMAND rfbssession Connect |
|
676 COMMAND fbsBitmap new |
|
677 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020-Load_command03 |
|
678 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020-NewL_command04 |
|
679 COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020-GetScanLine_command05 |
|
680 COMMAND fbsbitdev ~ |
|
681 COMMAND fbsBitmap ~ |
|
682 COMMAND rfbssession Disconnect |
|
683 END_TEST_BLOCK |
|
684 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020 |
|
685 |
|
686 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021 |
|
687 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021 |
|
688 //! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) |
|
689 //! @SYMAuthor Wei Liu |
|
690 //! @SYMCreationDate 06/01/2009 |
|
691 //! @SYMTestCaseDesc Negative case, Test for a zero-length scanline. |
|
692 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
693 //! 2.Create CFbsBitmap Object and load bitmap. |
|
694 //! 3.Create CFbsBitmapDevice Object. |
|
695 //! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. |
|
696 //! 5.Destroy all the objects. |
|
697 //! @SYMTestStatus Implemented |
|
698 //! @SYMTestPriority High |
|
699 //! @SYMTestExpectedResults GetScanLine is called without panic. |
|
700 //! @SYMTestType CIT |
|
701 |
|
702 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
703 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
704 CREATE_OBJECT RFbsSession rfbssession |
|
705 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
706 COMMAND rfbssession Connect |
|
707 COMMAND fbsBitmap new |
|
708 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021-Load_command03 |
|
709 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021-NewL_command04 |
|
710 COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021-GetScanLine_command05 |
|
711 COMMAND fbsbitdev ~ |
|
712 COMMAND fbsBitmap ~ |
|
713 COMMAND rfbssession Disconnect |
|
714 END_TEST_BLOCK |
|
715 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021 |
|
716 |
|
717 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022 |
|
718 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022 |
|
719 //! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) |
|
720 //! @SYMAuthor Wei Liu |
|
721 //! @SYMCreationDate 06/01/2009 |
|
722 //! @SYMTestCaseDesc Negative case, Test for a negative-length scanline. |
|
723 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
724 //! 2.Create CFbsBitmap Object and load bitmap. |
|
725 //! 3.Create CFbsBitmapDevice Object. |
|
726 //! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. |
|
727 //! @SYMTestStatus Implemented |
|
728 //! @SYMTestPriority High |
|
729 //! @SYMTestExpectedResults GetScanLine is called with USER 23 panic received. |
|
730 //! @SYMTestType CIT |
|
731 |
|
732 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
733 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
734 CREATE_OBJECT RFbsSession rfbssession |
|
735 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
736 COMMAND rfbssession Connect |
|
737 COMMAND fbsBitmap new |
|
738 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022-Load_command03 |
|
739 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022-NewL_command04 |
|
740 COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022-GetScanLine_command05 |
|
741 END_TEST_BLOCK !PanicString=USER !PanicCode=23 |
|
742 RUN_TEST_STEP 100 T_GraphicsBitGDIAPI utilityClearPanicDlg |
|
743 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022 |
|
744 |
|
745 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023 |
|
746 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023 |
|
747 //! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) |
|
748 //! @SYMAuthor Wei Liu |
|
749 //! @SYMCreationDate 06/01/2009 |
|
750 //! @SYMTestCaseDesc Negative case, Test for a 99999-length scanline with starting point (0, 0). |
|
751 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
752 //! 2.Create CFbsBitmap Object and load bitmap. |
|
753 //! 3.Create CFbsBitmapDevice Object. |
|
754 //! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. |
|
755 //! 5.Destroy all the objects. |
|
756 //! @SYMTestStatus Implemented |
|
757 //! @SYMTestPriority High |
|
758 //! @SYMTestExpectedResults GetScanLine is called without panic. |
|
759 //! @SYMTestType CIT |
|
760 |
|
761 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
762 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
763 CREATE_OBJECT RFbsSession rfbssession |
|
764 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
765 COMMAND rfbssession Connect |
|
766 COMMAND fbsBitmap new |
|
767 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023-Load_command03 |
|
768 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023-NewL_command04 |
|
769 COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023-GetScanLine_command05 |
|
770 COMMAND fbsbitdev ~ |
|
771 COMMAND fbsBitmap ~ |
|
772 COMMAND rfbssession Disconnect |
|
773 END_TEST_BLOCK |
|
774 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023 |
|
775 |
|
776 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024 |
|
777 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024 |
|
778 //! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) |
|
779 //! @SYMAuthor Wei Liu |
|
780 //! @SYMCreationDate 06/01/2009 |
|
781 //! @SYMTestCaseDesc Negative case, Test for a 10-length scanline with negative starting point (-1, -1). |
|
782 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
783 //! 2.Create CFbsBitmap Object and load bitmap. |
|
784 //! 3.Create CFbsBitmapDevice Object. |
|
785 //! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. |
|
786 //! 5.Destroy all the objects. |
|
787 //! @SYMTestStatus Implemented |
|
788 //! @SYMTestPriority High |
|
789 //! @SYMTestExpectedResults GetScanLine is called without panic. |
|
790 //! @SYMTestType CIT |
|
791 |
|
792 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
793 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
794 CREATE_OBJECT RFbsSession rfbssession |
|
795 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
796 COMMAND rfbssession Connect |
|
797 COMMAND fbsBitmap new |
|
798 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024-Load_command03 |
|
799 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024-NewL_command04 |
|
800 COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024-GetScanLine_command05 |
|
801 COMMAND fbsbitdev ~ |
|
802 COMMAND fbsBitmap ~ |
|
803 COMMAND rfbssession Disconnect |
|
804 END_TEST_BLOCK |
|
805 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024 |
|
806 |
|
807 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025 |
|
808 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025 |
|
809 //! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) |
|
810 //! @SYMAuthor Wei Liu |
|
811 //! @SYMCreationDate 06/01/2009 |
|
812 //! @SYMTestCaseDesc Negative case, Test for a 10-length scanline with starting point (10000, 10000). |
|
813 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
814 //! 2.Create CFbsBitmap Object and load bitmap. |
|
815 //! 3.Create CFbsBitmapDevice Object. |
|
816 //! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. |
|
817 //! 5.Destroy all the objects. |
|
818 //! @SYMTestStatus Implemented |
|
819 //! @SYMTestPriority High |
|
820 //! @SYMTestExpectedResults GetScanLine is called without panic. |
|
821 //! @SYMTestType CIT |
|
822 |
|
823 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
824 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
825 CREATE_OBJECT RFbsSession rfbssession |
|
826 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
827 COMMAND rfbssession Connect |
|
828 COMMAND fbsBitmap new |
|
829 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025-Load_command03 |
|
830 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025-NewL_command04 |
|
831 COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025-GetScanLine_command05 |
|
832 COMMAND fbsbitdev ~ |
|
833 COMMAND fbsBitmap ~ |
|
834 COMMAND rfbssession Disconnect |
|
835 END_TEST_BLOCK |
|
836 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025 |
|
837 |
|
838 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026 |
|
839 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026 |
|
840 //! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) |
|
841 //! @SYMAuthor Wei Liu |
|
842 //! @SYMCreationDate 06/01/2009 |
|
843 //! @SYMTestCaseDesc Negative case, call scanline with bad TDisplayMode params. |
|
844 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
845 //! 2.Create CFbsBitmap Object and load bitmap. |
|
846 //! 3.Create CFbsBitmapDevice Object. |
|
847 //! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. |
|
848 //! @SYMTestStatus Implemented |
|
849 //! @SYMTestPriority High |
|
850 //! @SYMTestExpectedResults A BITGDI panic is received. |
|
851 //! @SYMTestType CIT |
|
852 |
|
853 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
854 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
855 CREATE_OBJECT RFbsSession rfbssession |
|
856 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
857 COMMAND rfbssession Connect |
|
858 COMMAND fbsBitmap new |
|
859 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026-Load_command03 |
|
860 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026-NewL_command04 |
|
861 COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026-GetScanLine_command05 |
|
862 END_TEST_BLOCK !PanicString=BITGDI !PanicCode=9 |
|
863 RUN_TEST_STEP 100 T_GraphicsBitGDIAPI utilityClearPanicDlg |
|
864 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026 |
|
865 |
|
866 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027 |
|
867 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027 |
|
868 //! @SYMAPI CFbsBitmapDevice::HorizontalPixelsToTwips(TInt) |
|
869 //! @SYMAuthor Wei Liu |
|
870 //! @SYMCreationDate 06/01/2009 |
|
871 //! @SYMTestCaseDesc Translates a horizontal dimension of a bitmap device in pixels into twips |
|
872 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
873 //! 2.Create CFbsBitmap Object and load bitmap. |
|
874 //! 3.Create CFbsBitmapDevice Object. |
|
875 //! 4.Translates a horizontal dimension pixels into twips. |
|
876 //! 5.Destroy all the objects. |
|
877 //! @SYMTestStatus Implemented |
|
878 //! @SYMTestPriority High |
|
879 //! @SYMTestExpectedResults HorizontalPixelsToTwips doesn't cause panic and the returned twips are as expected |
|
880 //! @SYMTestType CIT |
|
881 |
|
882 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
883 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
884 CREATE_OBJECT RFbsSession rfbssession |
|
885 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
886 COMMAND rfbssession Connect |
|
887 COMMAND fbsBitmap new |
|
888 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027-Load_command03 |
|
889 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027-NewL_command04 |
|
890 COMMAND fbsbitdev HorizontalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027-HorizontalPixelsToTwips_command05 |
|
891 COMMAND fbsbitdev ~ |
|
892 COMMAND fbsBitmap ~ |
|
893 COMMAND rfbssession Disconnect |
|
894 END_TEST_BLOCK |
|
895 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027 |
|
896 |
|
897 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028 |
|
898 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028 |
|
899 //! @SYMAPI CFbsBitmapDevice::HorizontalPixelsToTwips(TInt) |
|
900 //! @SYMAuthor Wei Liu |
|
901 //! @SYMCreationDate 06/01/2009 |
|
902 //! @SYMTestCaseDesc Translates a horizontal dimension of a bitmap device in pixels into twips |
|
903 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
904 //! 2.Create CFbsBitmap Object and load bitmap. |
|
905 //! 3.Set the size of the bitmap. |
|
906 //! 3.Create CFbsBitmapDevice Object. |
|
907 //! 4.Translates a horizontal dimension pixels into twips. |
|
908 //! 5.Destroy all the objects. |
|
909 //! @SYMTestStatus Implemented |
|
910 //! @SYMTestPriority High |
|
911 //! @SYMTestExpectedResults HorizontalPixelsToTwips doesn't cause panic and the returned twips are as expected |
|
912 //! @SYMTestType CIT |
|
913 |
|
914 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
915 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
916 CREATE_OBJECT RFbsSession rfbssession |
|
917 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
918 COMMAND rfbssession Connect |
|
919 COMMAND fbsBitmap new |
|
920 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-Load_command03 |
|
921 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-SetSizeInTwips_command04 |
|
922 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-NewL_command05 |
|
923 COMMAND fbsbitdev HorizontalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-HorizontalPixelsToTwips_command06 |
|
924 COMMAND fbsbitdev HorizontalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-HorizontalPixelsToTwips_command07 |
|
925 COMMAND fbsbitdev HorizontalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-HorizontalPixelsToTwips_command08 |
|
926 COMMAND fbsbitdev ~ |
|
927 COMMAND fbsBitmap ~ |
|
928 COMMAND rfbssession Disconnect |
|
929 END_TEST_BLOCK |
|
930 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028 |
|
931 |
|
932 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029 |
|
933 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029 |
|
934 //! @SYMAPI CFbsBitmapDevice::HorizontalTwipsToPixels(TInt) |
|
935 //! @SYMAuthor Wei Liu |
|
936 //! @SYMCreationDate 06/01/2009 |
|
937 //! @SYMTestCaseDesc Translates a horizontal dimension of a screen device in twips into pixels. |
|
938 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
939 //! 2.Create CFbsBitmap Object and load bitmap. |
|
940 //! 3.Create CFbsBitmapDevice Object. |
|
941 //! 4.Translates a horizontal dimension twips into pixels. |
|
942 //! 5.Destroy all the objects. |
|
943 //! @SYMTestStatus Implemented |
|
944 //! @SYMTestPriority High |
|
945 //! @SYMTestExpectedResults HorizontalTwipsToPixels doesn't cause panic and the returned pixels are as expected. |
|
946 //! @SYMTestType CIT |
|
947 |
|
948 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
949 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
950 CREATE_OBJECT RFbsSession rfbssession |
|
951 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
952 COMMAND rfbssession Connect |
|
953 COMMAND fbsBitmap new |
|
954 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029-Load_command03 |
|
955 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029-NewL_command04 |
|
956 COMMAND fbsbitdev HorizontalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029-HorizontalTwipsToPixels_command05 |
|
957 COMMAND fbsbitdev ~ |
|
958 COMMAND fbsBitmap ~ |
|
959 COMMAND rfbssession Disconnect |
|
960 END_TEST_BLOCK |
|
961 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029 |
|
962 |
|
963 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030 |
|
964 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030 |
|
965 //! @SYMAPI CFbsBitmapDevice::HorizontalTwipsToPixels(TInt) |
|
966 //! @SYMAuthor Wei Liu |
|
967 //! @SYMCreationDate 06/01/2009 |
|
968 //! @SYMTestCaseDesc Negative case, Uses big twips/0/small negative twips. |
|
969 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
970 //! 2.Create CFbsBitmap Object and load bitmap. |
|
971 //! 3.Set the size of the bitmap. |
|
972 //! 4.Create CFbsBitmapDevice Object. |
|
973 //! 5.Input twips = 1280, return 640. |
|
974 //! 6.Input twips = 0, return 0. |
|
975 //! 7. Input twips = -100, return -49. |
|
976 //! 8.Destroy all the objects. |
|
977 //! @SYMTestStatus Implemented |
|
978 //! @SYMTestPriority High |
|
979 //! @SYMTestExpectedResults HorizontalPixelsToTwips doesn't cause panic and the returned twips are as expected |
|
980 //! @SYMTestType CIT |
|
981 |
|
982 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
983 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
984 CREATE_OBJECT RFbsSession rfbssession |
|
985 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
986 COMMAND rfbssession Connect |
|
987 COMMAND fbsBitmap new |
|
988 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-Load_command03 |
|
989 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-SetSizeInTwips_command04 |
|
990 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-NewL_command05 |
|
991 COMMAND fbsbitdev HorizontalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-HorizontalTwipsToPixels_command06 |
|
992 COMMAND fbsbitdev HorizontalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-HorizontalTwipsToPixels_command07 |
|
993 COMMAND fbsbitdev HorizontalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-HorizontalTwipsToPixels_command08 |
|
994 COMMAND fbsbitdev ~ |
|
995 COMMAND fbsBitmap ~ |
|
996 COMMAND rfbssession Disconnect |
|
997 END_TEST_BLOCK |
|
998 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030 |
|
999 |
|
1000 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031 |
|
1001 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031 |
|
1002 //! @SYMAPI CFbsBitmapDevice::PaletteAttributes(TBool{ref}, TInt{ref}) |
|
1003 //! @SYMAuthor Wei Liu |
|
1004 //! @SYMCreationDate 06/01/2009 |
|
1005 //! @SYMTestCaseDesc Gets the attributes of the device's palette. |
|
1006 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1007 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1008 //! 3.Create CFbsBitmapDevice Object. |
|
1009 //! 4.Get PaletteAttributes and verify the palette received is the default. |
|
1010 //! 5.Destroy all the objects. |
|
1011 //! @SYMTestStatus Implemented |
|
1012 //! @SYMTestPriority High |
|
1013 //! @SYMTestExpectedResults The attributes of the Palette returned are the same as expected. |
|
1014 //! @SYMTestType CIT |
|
1015 |
|
1016 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1017 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1018 CREATE_OBJECT RFbsSession rfbssession |
|
1019 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1020 COMMAND rfbssession Connect |
|
1021 COMMAND fbsBitmap new |
|
1022 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031-Load_command03 |
|
1023 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031-NewL_command04 |
|
1024 COMMAND fbsbitdev PaletteAttributes GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031-PaletteAttributes_command05 |
|
1025 COMMAND fbsbitdev ~ |
|
1026 COMMAND fbsBitmap ~ |
|
1027 COMMAND rfbssession Disconnect |
|
1028 END_TEST_BLOCK |
|
1029 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031 |
|
1030 |
|
1031 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032 |
|
1032 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032 |
|
1033 //! @SYMAPI CFbsBitmapDevice::PaletteAttributes(TBool{ref}, TInt{ref}) |
|
1034 //! @SYMAuthor Wei Liu |
|
1035 //! @SYMCreationDate 06/01/2009 |
|
1036 //! @SYMTestCaseDesc Gets the attributes of the device's palette. |
|
1037 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1038 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1039 //! 3.Create CFbsBitmapDevice Object. |
|
1040 //! 4.Set Palette to the device. |
|
1041 //! 4.Get PaletteAttributes and verify the palette received. |
|
1042 //! 5.Destroy all the objects. |
|
1043 //! @SYMTestStatus Implemented |
|
1044 //! @SYMTestPriority High |
|
1045 //! @SYMTestExpectedResults The attributes of the Palette returned are the same as expected. |
|
1046 //! @SYMTestType CIT |
|
1047 |
|
1048 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1049 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1050 CREATE_OBJECT RFbsSession rfbssession |
|
1051 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1052 CREATE_OBJECT CPalette palette |
|
1053 COMMAND rfbssession Connect |
|
1054 COMMAND fbsBitmap new |
|
1055 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-Load_command03 |
|
1056 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-NewL_command04 |
|
1057 COMMAND palette NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-NewL_command05 |
|
1058 COMMAND fbsbitdev SetPalette GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-SetPalette_command06 |
|
1059 COMMAND fbsbitdev PaletteAttributes GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-PaletteAttributes_command07 |
|
1060 COMMAND fbsbitdev ~ |
|
1061 COMMAND fbsBitmap ~ |
|
1062 COMMAND rfbssession Disconnect |
|
1063 END_TEST_BLOCK |
|
1064 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032 |
|
1065 |
|
1066 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033 |
|
1067 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033 |
|
1068 //! @SYMAPI CFbsBitmapDevice::SizeInTwips() |
|
1069 //! @SYMAuthor Wei Liu |
|
1070 //! @SYMCreationDate 06/01/2009 |
|
1071 //! @SYMTestCaseDesc Gets the size of the device, in twips. |
|
1072 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1073 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1074 //! 3.Create CFbsBitmapDevice Object. |
|
1075 //! 4.Get the size of the device and verify it. |
|
1076 //! 5.Destroy all the objects. |
|
1077 //! @SYMTestStatus Implemented |
|
1078 //! @SYMTestPriority High |
|
1079 //! @SYMTestExpectedResults The size of the device is the same as expected. |
|
1080 //! @SYMTestType CIT |
|
1081 |
|
1082 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1083 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1084 CREATE_OBJECT RFbsSession rfbssession |
|
1085 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1086 COMMAND rfbssession Connect |
|
1087 COMMAND fbsBitmap new |
|
1088 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033-Load_command03 |
|
1089 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033-SetSizeInTwips_command04 |
|
1090 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033-NewL_command05 |
|
1091 COMMAND fbsbitdev SizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033-SizeInTwips_command06 |
|
1092 COMMAND fbsbitdev ~ |
|
1093 COMMAND fbsBitmap ~ |
|
1094 COMMAND rfbssession Disconnect |
|
1095 END_TEST_BLOCK |
|
1096 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033 |
|
1097 |
|
1098 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034 |
|
1099 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034 |
|
1100 //! @SYMAPI CFbsBitmapDevice::Resize(const TSize {ref}) |
|
1101 //! @SYMAuthor Wei Liu |
|
1102 //! @SYMCreationDate 06/01/2009 |
|
1103 //! @SYMTestCaseDesc Gets the size of the device, in twips. |
|
1104 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1105 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1106 //! 3.Create CFbsBitmapDevice Object. |
|
1107 //! 4.Get the size of the device. |
|
1108 //! 5.Resize the size of the device. |
|
1109 //! 6.Get the size of the device and verify it. |
|
1110 //! 7.Destroy all the objects. |
|
1111 //! @SYMTestStatus Implemented |
|
1112 //! @SYMTestPriority High |
|
1113 //! @SYMTestExpectedResults The resize the bitmap as expected. |
|
1114 //! @SYMTestType CIT |
|
1115 |
|
1116 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1117 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1118 CREATE_OBJECT RFbsSession rfbssession |
|
1119 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1120 COMMAND rfbssession Connect |
|
1121 COMMAND fbsBitmap new |
|
1122 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-Load_command03 |
|
1123 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-SetSizeInTwips_command04 |
|
1124 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-NewL_command05 |
|
1125 COMMAND fbsbitdev SizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-SizeInTwips_command06 |
|
1126 COMMAND fbsbitdev Resize GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-Resize_command07 |
|
1127 COMMAND fbsbitdev SizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-SizeInTwips_command08 |
|
1128 COMMAND fbsbitdev ~ |
|
1129 COMMAND fbsBitmap ~ |
|
1130 COMMAND rfbssession Disconnect |
|
1131 END_TEST_BLOCK |
|
1132 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034 |
|
1133 |
|
1134 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035 |
|
1135 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035 |
|
1136 //! @SYMAPI CFbsBitmapDevice::Resize(const TSize {ref}) |
|
1137 //! @SYMAuthor Wei Liu |
|
1138 //! @SYMCreationDate 06/01/2009 |
|
1139 //! @SYMTestCaseDesc Negative case, Set too big size. |
|
1140 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1141 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1142 //! 3.Create CFbsBitmapDevice Object. |
|
1143 //! 4.Get the size of the device. |
|
1144 //! 5.Resize the size of the device. |
|
1145 //! 6.Destroy all the objects. |
|
1146 //! @SYMTestStatus Implemented |
|
1147 //! @SYMTestPriority High |
|
1148 //! @SYMTestExpectedResults KErrTooBig error occurs. |
|
1149 //! @SYMTestType CIT |
|
1150 |
|
1151 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1152 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1153 CREATE_OBJECT RFbsSession rfbssession |
|
1154 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1155 COMMAND rfbssession Connect |
|
1156 COMMAND fbsBitmap new |
|
1157 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-Load_command03 |
|
1158 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-SetSizeInTwips_command04 |
|
1159 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-NewL_command05 |
|
1160 COMMAND fbsbitdev SizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-SizeInTwips_command06 |
|
1161 COMMAND !Error=-40 fbsbitdev Resize GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-Resize_command07 |
|
1162 COMMAND fbsbitdev ~ |
|
1163 COMMAND fbsBitmap ~ |
|
1164 COMMAND rfbssession Disconnect |
|
1165 END_TEST_BLOCK |
|
1166 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035 |
|
1167 |
|
1168 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036 |
|
1169 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036 |
|
1170 //! @SYMAPI CFbsBitmapDevice::Resize(const TSize {ref}) |
|
1171 //! @SYMAuthor Wei Liu |
|
1172 //! @SYMCreationDate 06/01/2009 |
|
1173 //! @SYMTestCaseDesc Negative case, Set Negative width size. |
|
1174 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1175 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1176 //! 3.Create CFbsBitmapDevice Object. |
|
1177 //! 4.Get the size of the device. |
|
1178 //! 5.Resize the size of the device. |
|
1179 //! 6.Destroy all the objects. |
|
1180 //! @SYMTestStatus Implemented |
|
1181 //! @SYMTestPriority High |
|
1182 //! @SYMTestExpectedResults KErrArgument error occurs. |
|
1183 //! @SYMTestType CIT |
|
1184 |
|
1185 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1186 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1187 CREATE_OBJECT RFbsSession rfbssession |
|
1188 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1189 COMMAND rfbssession Connect |
|
1190 COMMAND fbsBitmap new |
|
1191 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-Load_command03 |
|
1192 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-SetSizeInTwips_command04 |
|
1193 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-NewL_command05 |
|
1194 COMMAND fbsbitdev SizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-SizeInTwips_command06 |
|
1195 COMMAND !Error=-6 fbsbitdev Resize GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-Resize_command07 |
|
1196 COMMAND fbsbitdev ~ |
|
1197 COMMAND fbsBitmap ~ |
|
1198 COMMAND rfbssession Disconnect |
|
1199 END_TEST_BLOCK |
|
1200 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036 |
|
1201 |
|
1202 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037 |
|
1203 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037 |
|
1204 //! @SYMAPI CFbsBitmapDevice::Resize(const TSize {ref}) |
|
1205 //! @SYMAuthor Wei Liu |
|
1206 //! @SYMCreationDate 06/01/2009 |
|
1207 //! @SYMTestCaseDesc Negative case, Set Negative Height size. |
|
1208 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1209 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1210 //! 3.Create CFbsBitmapDevice Object. |
|
1211 //! 4.Get the size of the device. |
|
1212 //! 5.Resize the size of the device. |
|
1213 //! 6.Destroy all the objects. |
|
1214 //! @SYMTestStatus Implemented |
|
1215 //! @SYMTestPriority High |
|
1216 //! @SYMTestExpectedResults KErrArgument error occurs. |
|
1217 //! @SYMTestType CIT |
|
1218 |
|
1219 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1220 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1221 CREATE_OBJECT RFbsSession rfbssession |
|
1222 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1223 COMMAND rfbssession Connect |
|
1224 COMMAND fbsBitmap new |
|
1225 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-Load_command03 |
|
1226 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-SetSizeInTwips_command04 |
|
1227 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-NewL_command05 |
|
1228 COMMAND fbsbitdev SizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-SizeInTwips_command06 |
|
1229 COMMAND !Error=-6 fbsbitdev Resize GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-Resize_command07 |
|
1230 COMMAND fbsbitdev ~ |
|
1231 COMMAND fbsBitmap ~ |
|
1232 COMMAND rfbssession Disconnect |
|
1233 END_TEST_BLOCK |
|
1234 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037 |
|
1235 |
|
1236 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038 |
|
1237 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038 |
|
1238 //! @SYMAPI CFbsBitmapDevice::SwapWidthAndHeight() |
|
1239 //! @SYMAuthor Wei Liu |
|
1240 //! @SYMCreationDate 06/01/2009 |
|
1241 //! @SYMTestCaseDesc Swaps bitmap device's width and height. |
|
1242 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1243 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1244 //! 3.Create CFbsBitmapDevice Object with CFbsBitmap object. |
|
1245 //! 4.Set the size of the bitmap first. |
|
1246 //! 5.Swaps bitmap device's width and height. |
|
1247 //! 6.Verify the device's width and height. |
|
1248 //! 7.Destroy all the objects. |
|
1249 //! @SYMTestStatus Implemented |
|
1250 //! @SYMTestPriority High |
|
1251 //! @SYMTestExpectedResults Swap the width and heigth as expected. |
|
1252 //! @SYMTestType CIT |
|
1253 |
|
1254 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1255 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1256 CREATE_OBJECT RFbsSession rfbssession |
|
1257 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1258 COMMAND rfbssession Connect |
|
1259 COMMAND fbsBitmap new |
|
1260 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-Load_command03 |
|
1261 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-SetSizeInTwips_command04 |
|
1262 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-NewL_command05 |
|
1263 COMMAND fbsbitdev Resize GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-Resize_command06 |
|
1264 COMMAND fbsbitdev SwapWidthAndHeight |
|
1265 COMMAND fbsbitdev SizeInPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-SizeInPixels_command08 |
|
1266 COMMAND fbsbitdev ~ |
|
1267 COMMAND fbsBitmap ~ |
|
1268 COMMAND rfbssession Disconnect |
|
1269 END_TEST_BLOCK |
|
1270 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038 |
|
1271 |
|
1272 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039 |
|
1273 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039 |
|
1274 //! @SYMAPI CFbsBitmapDevice::SwapWidthAndHeight() |
|
1275 //! @SYMAuthor Wei Liu |
|
1276 //! @SYMCreationDate 06/01/2009 |
|
1277 //! @SYMTestCaseDesc Swaps bitmap device's width and height. |
|
1278 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1279 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1280 //! 3.Create CFbsBitmapDevice Object. |
|
1281 //! 4.Create CFbsBitGc Object and connected to CFbsBitmapDevice. |
|
1282 //! 5.Set the size of the device. |
|
1283 //! 6.Swaps bitmap device's width and height. |
|
1284 //! 7.Draw a line to the device. |
|
1285 //! 8.Destroy all the objects. |
|
1286 //! @SYMTestStatus Implemented |
|
1287 //! @SYMTestPriority High |
|
1288 //! @SYMTestExpectedResults Swap the width and heigth without any error. |
|
1289 //! @SYMTestType CIT |
|
1290 |
|
1291 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1292 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1293 CREATE_OBJECT RFbsSession rfbssession |
|
1294 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1295 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
1296 COMMAND rfbssession Connect |
|
1297 COMMAND fbsBitmap new |
|
1298 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-Load_command03 |
|
1299 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-SetSizeInTwips_command04 |
|
1300 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-NewL_command05 |
|
1301 COMMAND fbsBitGc NewL |
|
1302 COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-Activate_command07 |
|
1303 COMMAND fbsbitdev Resize GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-Resize_command08 |
|
1304 COMMAND fbsbitdev SwapWidthAndHeight |
|
1305 COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-DrawLine_command10 |
|
1306 COMMAND fbsbitdev ~ |
|
1307 COMMAND fbsBitmap ~ |
|
1308 COMMAND fbsBitGc ~ |
|
1309 COMMAND rfbssession Disconnect |
|
1310 END_TEST_BLOCK |
|
1311 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039 |
|
1312 |
|
1313 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040 |
|
1314 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040 |
|
1315 //! @SYMAPI CFbsBitmapDevice::VerticalPixelsToTwips(TInt) |
|
1316 //! @SYMAuthor Wei Liu |
|
1317 //! @SYMCreationDate 06/01/2009 |
|
1318 //! @SYMTestCaseDesc Translates a vertical dimension of a bitmap device in pixels into twips |
|
1319 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1320 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1321 //! 3.Create CFbsBitmapDevice Object. |
|
1322 //! 4.Translates a vertical dimension pixels into twips. |
|
1323 //! 5.Destroy all the objects. |
|
1324 //! @SYMTestStatus Implemented |
|
1325 //! @SYMTestPriority High |
|
1326 //! @SYMTestExpectedResults VerticalPixelsToTwips doesn't cause panic and the returned twips are as expected |
|
1327 //! @SYMTestType CIT |
|
1328 |
|
1329 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1330 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1331 CREATE_OBJECT RFbsSession rfbssession |
|
1332 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1333 COMMAND rfbssession Connect |
|
1334 COMMAND fbsBitmap new |
|
1335 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040-Load_command03 |
|
1336 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040-NewL_command04 |
|
1337 COMMAND fbsbitdev VerticalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040-VerticalPixelsToTwips_command05 |
|
1338 COMMAND fbsbitdev ~ |
|
1339 COMMAND fbsBitmap ~ |
|
1340 COMMAND rfbssession Disconnect |
|
1341 END_TEST_BLOCK |
|
1342 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040 |
|
1343 |
|
1344 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041 |
|
1345 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041 |
|
1346 //! @SYMAPI CFbsBitmapDevice::VerticalPixelsToTwips(TInt) |
|
1347 //! @SYMAuthor Wei Liu |
|
1348 //! @SYMCreationDate 06/01/2009 |
|
1349 //! @SYMTestCaseDesc Negative case, Uses big pixels/0/small negative pixels. |
|
1350 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1351 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1352 //! 3.Create CFbsBitmapDevice Object. |
|
1353 //! 4.Set the size of the bitmap. |
|
1354 //! 5.Input pixel = 240, return 480. |
|
1355 //! 6.Input pixel = 0, return 0. |
|
1356 //! 7.Input pixel = -100, return -49. |
|
1357 //! 8.Destroy all the objects. |
|
1358 //! @SYMTestStatus Implemented |
|
1359 //! @SYMTestPriority High |
|
1360 //! @SYMTestExpectedResults VerticalPixelsToTwips doesn't cause panic and the returned twips are as expected |
|
1361 //! @SYMTestType CIT |
|
1362 |
|
1363 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1364 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1365 CREATE_OBJECT RFbsSession rfbssession |
|
1366 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1367 COMMAND rfbssession Connect |
|
1368 COMMAND fbsBitmap new |
|
1369 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-Load_command03 |
|
1370 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-SetSizeInTwips_command04 |
|
1371 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-NewL_command05 |
|
1372 COMMAND fbsbitdev VerticalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-VerticalPixelsToTwips_command06 |
|
1373 COMMAND fbsbitdev VerticalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-VerticalPixelsToTwips_command07 |
|
1374 COMMAND fbsbitdev VerticalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-VerticalPixelsToTwips_command08 |
|
1375 COMMAND fbsbitdev ~ |
|
1376 COMMAND fbsBitmap ~ |
|
1377 COMMAND rfbssession Disconnect |
|
1378 END_TEST_BLOCK |
|
1379 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041 |
|
1380 |
|
1381 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042 |
|
1382 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042 |
|
1383 //! @SYMAPI CFbsBitmapDevice::VerticalTwipsToPixels(TInt) |
|
1384 //! @SYMAuthor Wei Liu |
|
1385 //! @SYMCreationDate 06/01/2009 |
|
1386 //! @SYMTestCaseDesc Translates a vertical dimension of a bitmap device in twips into Pixels |
|
1387 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1388 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1389 //! 3.Create CFbsBitmapDevice Object. |
|
1390 //! 4.Translates a vertical dimension twips into Pixels. |
|
1391 //! 5.Destroy all the objects. |
|
1392 //! @SYMTestStatus Implemented |
|
1393 //! @SYMTestPriority High |
|
1394 //! @SYMTestExpectedResults VerticalTwipsToPixels doesn't cause panic and the returned twips are as expected |
|
1395 //! @SYMTestType CIT |
|
1396 |
|
1397 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1398 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1399 CREATE_OBJECT RFbsSession rfbssession |
|
1400 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1401 COMMAND rfbssession Connect |
|
1402 COMMAND fbsBitmap new |
|
1403 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042-Load_command03 |
|
1404 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042-NewL_command04 |
|
1405 COMMAND fbsbitdev VerticalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042-VerticalTwipsToPixels_command05 |
|
1406 COMMAND fbsbitdev ~ |
|
1407 COMMAND fbsBitmap ~ |
|
1408 COMMAND rfbssession Disconnect |
|
1409 END_TEST_BLOCK |
|
1410 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042 |
|
1411 |
|
1412 START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043 |
|
1413 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043 |
|
1414 //! @SYMAPI CFbsBitmapDevice::VerticalTwipsToPixels(TInt) |
|
1415 //! @SYMAuthor Wei Liu |
|
1416 //! @SYMCreationDate 06/01/2009 |
|
1417 //! @SYMTestCaseDesc Negative case, Uses big twips/0/small negative twips. |
|
1418 //! @SYMTestActions 1.Create RFbsSession Object and connect it. |
|
1419 //! 2.Create CFbsBitmap Object and load bitmap. |
|
1420 //! 3.Create CFbsBitmapDevice Object. |
|
1421 //! 4.Set the size of the bitmap. |
|
1422 //! 5.Translates a vertical dimension twips into Pixels. |
|
1423 //! 6.Destroy all the objects. |
|
1424 //! @SYMTestStatus Implemented |
|
1425 //! @SYMTestPriority High |
|
1426 //! @SYMTestExpectedResults VerticalTwipsToPixels doesn't cause panic and the returned twips are as expected |
|
1427 //! @SYMTestType CIT |
|
1428 |
|
1429 START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini |
|
1430 CREATE_OBJECT CFbsBitmapDevice fbsbitdev |
|
1431 CREATE_OBJECT RFbsSession rfbssession |
|
1432 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
1433 COMMAND rfbssession Connect |
|
1434 COMMAND fbsBitmap new |
|
1435 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-Load_command03 |
|
1436 COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-SetSizeInTwips_command04 |
|
1437 COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-NewL_command05 |
|
1438 COMMAND fbsbitdev VerticalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-VerticalTwipsToPixels_command06 |
|
1439 COMMAND fbsbitdev VerticalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-VerticalTwipsToPixels_command07 |
|
1440 COMMAND fbsbitdev VerticalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-VerticalTwipsToPixels_command08 |
|
1441 COMMAND fbsbitdev ~ |
|
1442 COMMAND fbsBitmap ~ |
|
1443 COMMAND rfbssession Disconnect |
|
1444 END_TEST_BLOCK |
|
1445 END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043 |
|