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-CFbsDevice-PublicApi |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
|
20 /////////////////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-BitGDI-CFbsDevice-PublicApi.script |
|
22 // |
|
23 // Tests all public elements of the CFbsDevice 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 // CFbsDevice 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 CFbsDevice |
|
40 // **************************************************************************** |
|
41 |
|
42 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0001 |
|
43 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0001 |
|
44 //! @SYMAPI CFbsDevice::CreateContext(CFbsBitGc{prt}{ref}) |
|
45 //! @SYMAuthor Felix Rao |
|
46 //! @SYMCreationDate 06/02/2009 |
|
47 //! @SYMTestCaseDesc Create a CFbsBitGc object using a CFbsScreenDevice object and check the availablity of the context. |
|
48 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
49 //! 2. Create a CFbsScreenDevice object. |
|
50 //! 3. Create a CFbsBitGc object through CFbsScreenDevice object. |
|
51 //! 4. Draw a line to CFbsScreenDevice object through CFbsBitGc object. |
|
52 //! 5. Check the line color. |
|
53 //! 6. Destruct CFbsBitGc and CFbsScreenDevice objects and disconnect RFbsSession. |
|
54 //! @SYMTestStatus Implemented |
|
55 //! @SYMTestPriority High |
|
56 //! @SYMTestExpectedResults 1. CFbsBitGc object can be created without error. |
|
57 //! 2. The line color is as specified in test data. |
|
58 //! @SYMTestType CIT |
|
59 |
|
60 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
61 CREATE_OBJECT RFbsSession fbsSession |
|
62 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
63 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
64 COMMAND fbsSession Connect |
|
65 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0001-NewL_command02 |
|
66 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0001-CreateContext_command03 |
|
67 COMMAND fbsBitGc Clear |
|
68 COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsDevice-PublicApi-0001-DrawLine_command05 |
|
69 COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0001-checkLineColor_command06 |
|
70 COMMAND fbsScrDev Update |
|
71 DELAY 500000 |
|
72 COMMAND fbsScrDev ~ |
|
73 COMMAND fbsBitGc ~ |
|
74 COMMAND fbsSession Disconnect |
|
75 END_TEST_BLOCK |
|
76 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0001 |
|
77 |
|
78 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0002 |
|
79 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0002 |
|
80 //! @SYMAPI CFbsDevice::CreateContext(CGraphicsContext{prt}{ref}) |
|
81 //! @SYMAuthor Felix Rao |
|
82 //! @SYMCreationDate 06/02/2009 |
|
83 //! @SYMTestCaseDesc Create a CGraphicsContext derived object using a CFbsScreenDevice object and check the availablity of the context. |
|
84 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
85 //! 2. Create a CFbsScreenDevice object. |
|
86 //! 3. Create a CGraphicsContext derived object through CFbsScreenDevice object. |
|
87 //! 4. Draw a line to CFbsScreenDevice object through CGraphicsContext derived object. |
|
88 //! 5. Check the line color. |
|
89 //! 6. Destruct CGraphicsContext derived and CFbsScreenDevice objects and disconnect RFbsSession. |
|
90 //! @SYMTestStatus Implemented |
|
91 //! @SYMTestPriority High |
|
92 //! @SYMTestExpectedResults 1. CGraphicsContext derived object can be created without error. |
|
93 //! 2. The line color is as specified in test data. |
|
94 //! @SYMTestType CIT |
|
95 |
|
96 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
97 CREATE_OBJECT RFbsSession fbsSession |
|
98 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
99 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
100 COMMAND fbsSession Connect |
|
101 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0002-NewL_command02 |
|
102 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0002-CreateContext_command03 |
|
103 COMMAND fbsBitGc Clear |
|
104 COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsDevice-PublicApi-0002-DrawLine_command05 |
|
105 COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0002-checkLineColor_command06 |
|
106 COMMAND fbsScrDev Update |
|
107 DELAY 500000 |
|
108 COMMAND fbsScrDev ~ |
|
109 COMMAND fbsBitGc ~ |
|
110 COMMAND fbsSession Disconnect |
|
111 END_TEST_BLOCK |
|
112 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0002 |
|
113 |
|
114 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0003 |
|
115 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0003 |
|
116 //! @SYMAPI CFbsDevice::DisplayMode() |
|
117 //! @SYMAuthor Felix Rao |
|
118 //! @SYMCreationDate 06/02/2009 |
|
119 //! @SYMTestCaseDesc Gets the device's display mode. |
|
120 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
121 //! 2. Create and destruct CFbsScreenDevice objects using all valid TDisplayMode values respectively. |
|
122 //! 3. Get the display mode. |
|
123 //! 4. Disconnect RFbsSession. |
|
124 //! @SYMTestStatus Implemented |
|
125 //! @SYMTestPriority High |
|
126 //! @SYMTestExpectedResults DisplayMode() returns expected display mode. |
|
127 //! @SYMTestType CIT |
|
128 |
|
129 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
130 CREATE_OBJECT RFbsSession fbsSession |
|
131 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
132 COMMAND fbsSession Connect |
|
133 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0003-NewL_command02 |
|
134 COMMAND fbsScrDev DisplayMode GRAPHICS-BITGDI-FbsDevice-PublicApi-0003-DisplayMode_command03 |
|
135 COMMAND fbsScrDev ~ |
|
136 COMMAND fbsSession Disconnect |
|
137 END_TEST_BLOCK |
|
138 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0003 |
|
139 |
|
140 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0004 |
|
141 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0004 |
|
142 //! @SYMAPI CFbsDevice::SizeInPixels() |
|
143 //! @SYMAuthor Felix Rao |
|
144 //! @SYMCreationDate 06/02/2009 |
|
145 //! @SYMTestCaseDesc Gets the size of the device, in pixels. |
|
146 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
147 //! 2. Create a CFbsBitmap Object and load the bitmap. |
|
148 //! 3. Create a CFbsBitmapDevice Object with the CFbsBitmap object. |
|
149 //! 4. Get the size of the device. |
|
150 //! 5. Destroy all the objects and disconnect RFbsSession. |
|
151 //! @SYMTestStatus Implemented |
|
152 //! @SYMTestPriority High |
|
153 //! @SYMTestExpectedResults SizeInPixels() returns expected size. |
|
154 //! @SYMTestType CIT |
|
155 |
|
156 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
157 CREATE_OBJECT CFbsBitmapDevice fbsBmpDev |
|
158 CREATE_OBJECT RFbsSession fbsSession |
|
159 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
160 COMMAND fbsSession Connect |
|
161 COMMAND fbsBitmap new |
|
162 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsDevice-PublicApi-0004-Load_command03 |
|
163 COMMAND fbsBmpDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0004-NewL_command04 |
|
164 COMMAND fbsBmpDev SizeInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0004-SizeInPixels_command05 |
|
165 COMMAND fbsBmpDev ~ |
|
166 COMMAND fbsBitmap ~ |
|
167 COMMAND fbsSession Disconnect |
|
168 END_TEST_BLOCK |
|
169 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0004 |
|
170 |
|
171 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0005 |
|
172 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0005 |
|
173 //! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) |
|
174 //! @SYMAuthor Felix Rao |
|
175 //! @SYMCreationDate 06/02/2009 |
|
176 //! @SYMTestCaseDesc Compares two rectangles with same color and size on same device, including their contents. |
|
177 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
178 //! 2. Create a CFbsScreenDevice object. |
|
179 //! 3. Create a CFbsBitGc object through CFbsScreenDevice object. |
|
180 //! 4. Clear the device and draw 2 rectangles TRect(10, 10, 60, 110) and TRect(80, 10, 130, 110) in color TRgb(255, 255, 0). |
|
181 //! 5. Compare the 2 rectangles. |
|
182 //! 6. Destruct all objects and disconnect RFbsSession. |
|
183 //! @SYMTestStatus Implemented |
|
184 //! @SYMTestPriority High |
|
185 //! @SYMTestExpectedResults 1. RectCompare() can be called without error. |
|
186 //! 2. The 2 rectangles are the same and RectCompare() returns true. |
|
187 //! @SYMTestType CIT |
|
188 |
|
189 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
190 CREATE_OBJECT RFbsSession fbsSession |
|
191 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
192 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
193 COMMAND fbsSession Connect |
|
194 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-NewL_command02 |
|
195 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-CreateContext_command03 |
|
196 COMMAND fbsBitGc Clear |
|
197 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-SetBrushColor_command05 |
|
198 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-SetBrushStyle_command06 |
|
199 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-SetPenColor_command07 |
|
200 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-DrawRect_command08 |
|
201 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-DrawRect_command09 |
|
202 COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-RectCompare_command10 |
|
203 COMMAND fbsScrDev Update |
|
204 DELAY 500000 |
|
205 COMMAND fbsScrDev ~ |
|
206 COMMAND fbsBitGc ~ |
|
207 COMMAND fbsSession Disconnect |
|
208 END_TEST_BLOCK |
|
209 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0005 |
|
210 |
|
211 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0006 |
|
212 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0006 |
|
213 //! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) |
|
214 //! @SYMAuthor Felix Rao |
|
215 //! @SYMCreationDate 06/02/2009 |
|
216 //! @SYMTestCaseDesc Compares same rectangle on same device. |
|
217 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
218 //! 2. Create a CFbsScreenDevice object. |
|
219 //! 3. Create a CFbsBitGc object through CFbsScreenDevice object. |
|
220 //! 4. Clear the device and draw rectangle TRect(10, 10, 60, 110) in color TRgb(255, 0, 0). |
|
221 //! 5. Compare the rectangle with itself. |
|
222 //! 6. Destruct all objects and disconnect RFbsSession. |
|
223 //! @SYMTestStatus Implemented |
|
224 //! @SYMTestPriority High |
|
225 //! @SYMTestExpectedResults 1. RectCompare() can be called without error. |
|
226 //! 2. RectCompare() returns true. |
|
227 //! @SYMTestType CIT |
|
228 |
|
229 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
230 CREATE_OBJECT RFbsSession fbsSession |
|
231 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
232 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
233 COMMAND fbsSession Connect |
|
234 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-NewL_command02 |
|
235 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-CreateContext_command03 |
|
236 COMMAND fbsBitGc Clear |
|
237 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-SetBrushColor_command05 |
|
238 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-SetBrushStyle_command06 |
|
239 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-SetPenColor_command07 |
|
240 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-DrawRect_command08 |
|
241 COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-RectCompare_command09 |
|
242 COMMAND fbsScrDev Update |
|
243 DELAY 500000 |
|
244 COMMAND fbsScrDev ~ |
|
245 COMMAND fbsBitGc ~ |
|
246 COMMAND fbsSession Disconnect |
|
247 END_TEST_BLOCK |
|
248 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0006 |
|
249 |
|
250 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0007 |
|
251 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0007 |
|
252 //! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) |
|
253 //! @SYMAuthor Felix Rao |
|
254 //! @SYMCreationDate 06/02/2009 |
|
255 //! @SYMTestCaseDesc Compares 2 empty rectangles on same device. |
|
256 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
257 //! 2. Create a CFbsScreenDevice object. |
|
258 //! 3. Create a CFbsBitGc object through CFbsScreenDevice object. |
|
259 //! 4. Clear the device and draw a rectangle TRect(10, 10, 60, 110) in TRgb(0, 255, 0). |
|
260 //! 5. Compare 2 empty rectangles TRect(20, 20, 20, 20) and TRect(80, 10, 80, 10). |
|
261 //! 6. Destruct all objects and disconnect RFbsSession. |
|
262 //! @SYMTestStatus Implemented |
|
263 //! @SYMTestPriority High |
|
264 //! @SYMTestExpectedResults 1. RectCompare() can be called without error. |
|
265 //! 2. RectCompare() returns true. |
|
266 //! @SYMTestType CIT |
|
267 |
|
268 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
269 CREATE_OBJECT RFbsSession fbsSession |
|
270 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
271 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
272 COMMAND fbsSession Connect |
|
273 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-NewL_command02 |
|
274 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-CreateContext_command03 |
|
275 COMMAND fbsBitGc Clear |
|
276 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-SetBrushColor_command05 |
|
277 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-SetBrushStyle_command06 |
|
278 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-SetPenColor_command07 |
|
279 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-DrawRect_command08 |
|
280 COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-RectCompare_command09 |
|
281 COMMAND fbsScrDev Update |
|
282 DELAY 500000 |
|
283 COMMAND fbsScrDev ~ |
|
284 COMMAND fbsBitGc ~ |
|
285 COMMAND fbsSession Disconnect |
|
286 END_TEST_BLOCK |
|
287 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0007 |
|
288 |
|
289 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0008 |
|
290 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0008 |
|
291 //! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) |
|
292 //! @SYMAuthor Felix Rao |
|
293 //! @SYMCreationDate 06/02/2009 |
|
294 //! @SYMTestCaseDesc Compares 2 rectangles with same color and height but different width on same device. |
|
295 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
296 //! 2. Create a CFbsScreenDevice object. |
|
297 //! 3. Create a CFbsBitGc object through CFbsScreenDevice object. |
|
298 //! 4. Clear the device and draw 2 rectangles TRect(10, 10, 60, 110) and TRect (80, 10, 100, 110) in TRgb(0, 0, 255). |
|
299 //! 5. Compare the 2 rectangles. |
|
300 //! 6. Destruct all objects and disconnect RFbsSession. |
|
301 //! @SYMTestStatus Implemented |
|
302 //! @SYMTestPriority High |
|
303 //! @SYMTestExpectedResults 1. RectCompare() can be called without error. |
|
304 //! 2. RectCompare() returns false. |
|
305 //! @SYMTestType CIT |
|
306 |
|
307 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
308 CREATE_OBJECT RFbsSession fbsSession |
|
309 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
310 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
311 COMMAND fbsSession Connect |
|
312 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-NewL_command02 |
|
313 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-CreateContext_command03 |
|
314 COMMAND fbsBitGc Clear |
|
315 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-SetBrushColor_command05 |
|
316 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-SetBrushStyle_command06 |
|
317 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-SetPenColor_command07 |
|
318 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-DrawRect_command08 |
|
319 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-DrawRect_command09 |
|
320 COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-RectCompare_command10 |
|
321 COMMAND fbsScrDev Update |
|
322 DELAY 500000 |
|
323 COMMAND fbsScrDev ~ |
|
324 COMMAND fbsBitGc ~ |
|
325 COMMAND fbsSession Disconnect |
|
326 END_TEST_BLOCK |
|
327 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0008 |
|
328 |
|
329 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0009 |
|
330 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0009 |
|
331 //! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) |
|
332 //! @SYMAuthor Felix Rao |
|
333 //! @SYMCreationDate 06/02/2009 |
|
334 //! @SYMTestCaseDesc Compares 2 rectangles with different color and different width but same height on same device. |
|
335 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
336 //! 2. Create a CFbsScreenDevice object. |
|
337 //! 3. Create a CFbsBitGc object through CFbsScreenDevice object. |
|
338 //! 4. Clear the device and draw 2 rectangles TRect(10, 10, 60, 110) and TRect (80, 10, 100, 110) in TRgb(0, 0, 255) and TRgb(255, 0, 0) respectively. |
|
339 //! 5. Compare the 2 rectangles. |
|
340 //! 6. Destruct all objects and disconnect RFbsSession. |
|
341 //! @SYMTestStatus Implemented |
|
342 //! @SYMTestPriority High |
|
343 //! @SYMTestExpectedResults 1. RectCompare() can be called without error. |
|
344 //! 2. RectCompare() returns false. |
|
345 //! @SYMTestType CIT |
|
346 |
|
347 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
348 CREATE_OBJECT RFbsSession fbsSession |
|
349 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
350 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
351 COMMAND fbsSession Connect |
|
352 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-NewL_command02 |
|
353 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-CreateContext_command03 |
|
354 COMMAND fbsBitGc Clear |
|
355 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetBrushColor_command05 |
|
356 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetBrushStyle_command06 |
|
357 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetPenColor_command07 |
|
358 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-DrawRect_command08 |
|
359 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetBrushColor_command09 |
|
360 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetPenColor_command10 |
|
361 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-DrawRect_command11 |
|
362 COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-RectCompare_command12 |
|
363 COMMAND fbsScrDev Update |
|
364 DELAY 500000 |
|
365 COMMAND fbsScrDev ~ |
|
366 COMMAND fbsBitGc ~ |
|
367 COMMAND fbsSession Disconnect |
|
368 END_TEST_BLOCK |
|
369 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0009 |
|
370 |
|
371 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0010 |
|
372 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0010 |
|
373 //! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) |
|
374 //! @SYMAuthor Felix Rao |
|
375 //! @SYMCreationDate 06/02/2009 |
|
376 //! @SYMTestCaseDesc Compares 2 rectangles with different color but same size on same device. |
|
377 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
378 //! 2. Create a CFbsScreenDevice object. |
|
379 //! 3. Create a CFbsBitGc object through CFbsScreenDevice object. |
|
380 //! 4. Clear the device and draw 2 rectangles TRect(10, 10, 60, 110) and TRect (80, 10, 130, 110) in TRgb(0, 0, 255) and TRgb(255, 0, 0) respectively. |
|
381 //! 5. Compare the 2 rectangles TRect(0, 0, 60, 110) and TRect(70, 0, 130, 110). |
|
382 //! 6. Destruct all objects and disconnect RFbsSession. |
|
383 //! @SYMTestStatus Implemented |
|
384 //! @SYMTestPriority High |
|
385 //! @SYMTestExpectedResults 1. RectCompare() can be called without error. |
|
386 //! 2. RectCompare() returns false. |
|
387 //! @SYMTestType CIT |
|
388 |
|
389 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
390 CREATE_OBJECT RFbsSession fbsSession |
|
391 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
392 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
393 COMMAND fbsSession Connect |
|
394 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-NewL_command02 |
|
395 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-CreateContext_command03 |
|
396 COMMAND fbsBitGc Clear |
|
397 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetBrushColor_command05 |
|
398 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetBrushStyle_command06 |
|
399 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetPenColor_command07 |
|
400 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-DrawRect_command08 |
|
401 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetBrushColor_command09 |
|
402 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetPenColor_command10 |
|
403 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-DrawRect_command11 |
|
404 COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-RectCompare_command12 |
|
405 COMMAND fbsScrDev Update |
|
406 DELAY 500000 |
|
407 COMMAND fbsScrDev ~ |
|
408 COMMAND fbsBitGc ~ |
|
409 COMMAND fbsSession Disconnect |
|
410 END_TEST_BLOCK |
|
411 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0010 |
|
412 |
|
413 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0011 |
|
414 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0011 |
|
415 //! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) |
|
416 //! @SYMAuthor Felix Rao |
|
417 //! @SYMCreationDate 06/02/2009 |
|
418 //! @SYMTestCaseDesc Negative case. Compares 2 very large rectangles with same color and size on same device. |
|
419 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
420 //! 2. Create a CFbsScreenDevice object. |
|
421 //! 3. Create a CFbsBitGc object through CFbsScreenDevice object. |
|
422 //! 4. Clear the device and draw 2 rectangles TRect(0, 0, 8000, 8000) and TRect (10, 10, 8010, 8010) in TRgb(0, 0, 255). |
|
423 //! 5. Compare the 2 rectangles. |
|
424 //! 6. Destruct all objects and disconnect RFbsSession. |
|
425 //! @SYMTestStatus Implemented |
|
426 //! @SYMTestPriority High |
|
427 //! @SYMTestExpectedResults 1. RectCompare() can be called without error. |
|
428 //! 2. RectCompare() returns false. |
|
429 //! @SYMTestType CIT |
|
430 |
|
431 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
432 CREATE_OBJECT RFbsSession fbsSession |
|
433 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
434 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
435 COMMAND fbsSession Connect |
|
436 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-NewL_command02 |
|
437 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-CreateContext_command03 |
|
438 COMMAND fbsBitGc Clear |
|
439 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-SetBrushColor_command05 |
|
440 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-SetBrushStyle_command06 |
|
441 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-SetPenColor_command07 |
|
442 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-DrawRect_command08 |
|
443 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-DrawRect_command09 |
|
444 COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-RectCompare_command10 |
|
445 COMMAND fbsScrDev Update |
|
446 DELAY 500000 |
|
447 COMMAND fbsScrDev ~ |
|
448 COMMAND fbsBitGc ~ |
|
449 COMMAND fbsSession Disconnect |
|
450 END_TEST_BLOCK |
|
451 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0011 |
|
452 |
|
453 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0015 |
|
454 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0015 |
|
455 //! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) |
|
456 //! @SYMAuthor Felix Rao |
|
457 //! @SYMCreationDate 06/02/2009 |
|
458 //! @SYMTestCaseDesc Compares two rectangles with same color and size on different device, including their contents. |
|
459 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
460 //! 2. Create a CFbsScreenDevice object and a CFbsBitmap object. |
|
461 //! 3. Load a bitmap to CFbsBitmap object. |
|
462 //! 4. Create a CFbsBitmapDevice through the bitmap. |
|
463 //! 5. Create a CFbsBitGc object through CFbsScreenDevice object. |
|
464 //! 6. Create a CFbsBitGc object through CFbsBitmapDevice object. |
|
465 //! 7. Clear the 2 devices and draw 2 rectangles TRect(10, 10, 40, 40) and TRect(10, 10, 40, 40) in color TRgb(0, 0, 0) on each device. |
|
466 //! 8. Compare the 2 rectangles. |
|
467 //! 9. Destruct all objects and disconnect RFbsSession. |
|
468 //! @SYMTestStatus Implemented |
|
469 //! @SYMTestPriority High |
|
470 //! @SYMTestExpectedResults 1. RectCompare() can be called without error. |
|
471 //! 2. The 2 rectangles are the same and RectCompare() returns true. |
|
472 //! @SYMTestType CIT |
|
473 |
|
474 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
475 CREATE_OBJECT RFbsSession fbsSession |
|
476 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
477 CREATE_OBJECT CFbsBitmapDevice fbsBmpDev |
|
478 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
479 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
480 CREATE_OBJECT CFbsBitGc fbsBitGc2 |
|
481 COMMAND fbsSession Connect |
|
482 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-NewL_command02 |
|
483 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-CreateContext_command03 |
|
484 COMMAND fbsBitmap new |
|
485 COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-Load_command05 |
|
486 COMMAND fbsBmpDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-NewL_command06 |
|
487 COMMAND fbsBmpDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-CreateContext_command07 |
|
488 COMMAND fbsBitGc Clear |
|
489 COMMAND fbsBitGc2 Clear |
|
490 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetBrushColor_command10 |
|
491 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetBrushStyle_command11 |
|
492 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetPenColor_command12 |
|
493 COMMAND fbsBitGc2 SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetBrushColor_command13 |
|
494 COMMAND fbsBitGc2 SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetBrushStyle_command14 |
|
495 COMMAND fbsBitGc2 SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetPenColor_command15 |
|
496 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-DrawRect_command16 |
|
497 COMMAND fbsBitGc2 DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-DrawRect_command17 |
|
498 COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-RectCompare_command18 |
|
499 COMMAND fbsBmpDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-RectCompare_command19 |
|
500 COMMAND fbsScrDev Update |
|
501 DELAY 500100 |
|
502 COMMAND fbsScrDev ~ |
|
503 COMMAND fbsBmpDev ~ |
|
504 COMMAND fbsBitmap ~ |
|
505 COMMAND fbsBitGc ~ |
|
506 COMMAND fbsBitGc2 ~ |
|
507 COMMAND fbsSession Disconnect |
|
508 END_TEST_BLOCK |
|
509 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0015 |
|
510 |
|
511 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0017 |
|
512 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0017 |
|
513 //! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) |
|
514 //! @SYMAuthor Felix Rao |
|
515 //! @SYMCreationDate 06/02/2009 |
|
516 //! @SYMTestCaseDesc Compares 2 rectangles with same color and width but different height on same device. |
|
517 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
518 //! 2. Create a CFbsScreenDevice object. |
|
519 //! 3. Create a CFbsBitGc object through CFbsScreenDevice object. |
|
520 //! 4. Clear the device and draw 2 rectangles TRect(0, 0, 50, 50) and TRect (60, 10, 110, 50) in TRgb(0, 0, 255). |
|
521 //! 5. Compare the 2 rectangles. |
|
522 //! 6. Destruct all objects and disconnect RFbsSession. |
|
523 //! @SYMTestStatus Implemented |
|
524 //! @SYMTestPriority High |
|
525 //! @SYMTestExpectedResults 1. RectCompare() can be called without error. |
|
526 //! 2. RectCompare() returns false. |
|
527 //! @SYMTestType CIT |
|
528 |
|
529 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
530 CREATE_OBJECT RFbsSession fbsSession |
|
531 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
532 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
533 COMMAND fbsSession Connect |
|
534 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-NewL_command02 |
|
535 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-CreateContext_command03 |
|
536 COMMAND fbsBitGc Clear |
|
537 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-SetBrushColor_command05 |
|
538 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-SetBrushStyle_command06 |
|
539 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-SetPenColor_command07 |
|
540 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-DrawRect_command08 |
|
541 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-DrawRect_command09 |
|
542 COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-RectCompare_command10 |
|
543 COMMAND fbsScrDev Update |
|
544 DELAY 500000 |
|
545 COMMAND fbsScrDev ~ |
|
546 COMMAND fbsBitGc ~ |
|
547 COMMAND fbsSession Disconnect |
|
548 END_TEST_BLOCK |
|
549 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0017 |
|
550 |
|
551 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0018 |
|
552 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0018 |
|
553 //! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) |
|
554 //! @SYMAuthor Felix Rao |
|
555 //! @SYMCreationDate 06/02/2009 |
|
556 //! @SYMTestCaseDesc Compares 2 rectangles with different color and different height but same width on same device. |
|
557 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
558 //! 2. Create a CFbsScreenDevice object. |
|
559 //! 3. Create a CFbsBitGc object through CFbsScreenDevice object. |
|
560 //! 4. Clear the device and draw 2 rectangles TRect(10, 10, 60, 110) and TRect (80, 10, 130, 150) in TRgb(0, 0, 255) and TRgb(255, 0, 0) respectively. |
|
561 //! 5. Compare the 2 rectangles. |
|
562 //! 6. Destruct all objects and disconnect RFbsSession. |
|
563 //! @SYMTestStatus Implemented |
|
564 //! @SYMTestPriority High |
|
565 //! @SYMTestExpectedResults 1. RectCompare() can be called without error. |
|
566 //! 2. RectCompare() returns false. |
|
567 //! @SYMTestType CIT |
|
568 |
|
569 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
570 CREATE_OBJECT RFbsSession fbsSession |
|
571 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
572 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
573 COMMAND fbsSession Connect |
|
574 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-NewL_command02 |
|
575 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-CreateContext_command03 |
|
576 COMMAND fbsBitGc Clear |
|
577 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetBrushColor_command05 |
|
578 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetBrushStyle_command06 |
|
579 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetPenColor_command07 |
|
580 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-DrawRect_command08 |
|
581 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetBrushColor_command09 |
|
582 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetPenColor_command10 |
|
583 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-DrawRect_command11 |
|
584 COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-RectCompare_command12 |
|
585 COMMAND fbsScrDev Update |
|
586 DELAY 500000 |
|
587 COMMAND fbsScrDev ~ |
|
588 COMMAND fbsBitGc ~ |
|
589 COMMAND fbsSession Disconnect |
|
590 END_TEST_BLOCK |
|
591 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0018 |
|
592 |
|
593 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0019 |
|
594 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0019 |
|
595 //! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) |
|
596 //! @SYMAuthor Felix Rao |
|
597 //! @SYMCreationDate 06/02/2009 |
|
598 //! @SYMTestCaseDesc Compares 2 rectangles with different color but same size on same device, which is created using EColor16. |
|
599 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
600 //! 2. Create a CFbsScreenDevice object. |
|
601 //! 3. Create a CFbsBitGc object through CFbsScreenDevice object. |
|
602 //! 4. Clear the device and draw 2 rectangles TRect(10, 10, 60, 110) and TRect (80, 10, 130, 110) in TRgb(0, 0, 255) and TRgb(255, 0, 0) respectively. |
|
603 //! 5. Compare the 2 rectangles. |
|
604 //! 6. Destruct all objects and disconnect RFbsSession. |
|
605 //! @SYMTestStatus Implemented |
|
606 //! @SYMTestPriority High |
|
607 //! @SYMTestExpectedResults 1. RectCompare() can be called without error. |
|
608 //! 2. RectCompare() returns false. |
|
609 //! @SYMTestType CIT |
|
610 |
|
611 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
612 CREATE_OBJECT RFbsSession fbsSession |
|
613 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
614 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
615 COMMAND fbsSession Connect |
|
616 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-NewL_command02 |
|
617 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-CreateContext_command03 |
|
618 COMMAND fbsBitGc Clear |
|
619 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetBrushColor_command05 |
|
620 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetBrushStyle_command06 |
|
621 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetPenColor_command07 |
|
622 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-DrawRect_command08 |
|
623 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetBrushColor_command09 |
|
624 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetPenColor_command10 |
|
625 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-DrawRect_command11 |
|
626 COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-RectCompare_command12 |
|
627 COMMAND fbsScrDev Update |
|
628 DELAY 500000 |
|
629 COMMAND fbsScrDev ~ |
|
630 COMMAND fbsBitGc ~ |
|
631 COMMAND fbsSession Disconnect |
|
632 END_TEST_BLOCK |
|
633 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0019 |
|
634 |
|
635 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0020 |
|
636 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0020 |
|
637 //! @SYMAPI CFbsDevice::AddFile(const TDesC{ref},TInt{ref}) |
|
638 //! @SYMAuthor Felix Rao |
|
639 //! @SYMCreationDate 06/02/2009 |
|
640 //! @SYMTestCaseDesc Adds a font file to the device's typeface store. |
|
641 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
642 //! 2. Create a CFbsScreenDevice object and a CFbsFont object. |
|
643 //! 3. Add a font file. |
|
644 //! 4. Checks the expected font is added successfully. |
|
645 //! 5. Remove the font file. |
|
646 //! 6. Destruct all objects and disconnect RFbsSession. |
|
647 //! @SYMTestStatus Implemented |
|
648 //! @SYMTestPriority High |
|
649 //! @SYMTestExpectedResults 1. Font file can be added successfully. |
|
650 //! 2. Font in newly add font file can be used. |
|
651 //! @SYMTestType CIT |
|
652 |
|
653 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
654 CREATE_OBJECT RFbsSession fbsSession |
|
655 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
656 CREATE_OBJECT CFbsFont fbsFont |
|
657 COMMAND fbsSession Connect |
|
658 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-NewL_command02 |
|
659 COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-GetNearestFontToDesignHeightInPixels_command03 |
|
660 COMMAND !Error=-1 fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-FontSpecInTwips_command04 |
|
661 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-ReleaseFont_command05 |
|
662 COMMAND fbsScrDev AddFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-AddFile_command06 |
|
663 COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-GetNearestFontToDesignHeightInPixels_command07 |
|
664 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-FontSpecInTwips_command08 |
|
665 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-ReleaseFont_command09 |
|
666 COMMAND fbsScrDev RemoveFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-RemoveFile_command10 |
|
667 COMMAND fbsScrDev ~ |
|
668 COMMAND fbsSession Disconnect |
|
669 END_TEST_BLOCK |
|
670 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0020 |
|
671 |
|
672 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0021 |
|
673 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0021 |
|
674 //! @SYMAPI CFbsDevice::AddFile(const TDesC{ref},TInt{ref}) |
|
675 //! @SYMAuthor Felix Rao |
|
676 //! @SYMCreationDate 09/02/2009 |
|
677 //! @SYMTestCaseDesc Negative case. Adds a dir as font file to the device's typeface store. |
|
678 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
679 //! 2. Create a CFbsScreenDevice object. |
|
680 //! 3. Add a dir. |
|
681 //! 4. Destruct all objects and disconnect RFbsSession. |
|
682 //! @SYMTestStatus Implemented |
|
683 //! @SYMTestPriority High |
|
684 //! @SYMTestExpectedResults AddFile() returns -21 KErrAccessDenied. |
|
685 //! @SYMTestType CIT |
|
686 |
|
687 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
688 CREATE_OBJECT RFbsSession fbsSession |
|
689 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
690 COMMAND fbsSession Connect |
|
691 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0021-NewL_command02 |
|
692 COMMAND !Error=-21 fbsScrDev AddFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0021-AddFile_command03 |
|
693 COMMAND fbsScrDev ~ |
|
694 COMMAND fbsSession Disconnect |
|
695 END_TEST_BLOCK |
|
696 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0021 |
|
697 |
|
698 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0022 |
|
699 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0022 |
|
700 //! @SYMAPI CFbsDevice::AddFile(const TDesC{ref},TInt{ref}) |
|
701 //! @SYMAuthor Felix Rao |
|
702 //! @SYMCreationDate 09/02/2009 |
|
703 //! @SYMTestCaseDesc Negative case. Adds a non-existent file to the device's typeface store. |
|
704 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
705 //! 2. Create a CFbsScreenDevice object. |
|
706 //! 3. Add a non-existent file. |
|
707 //! 4. Destruct all objects and disconnect RFbsSession. |
|
708 //! @SYMTestStatus Implemented |
|
709 //! @SYMTestPriority High |
|
710 //! @SYMTestExpectedResults AddFile() returns -1 KErrNotFound. |
|
711 //! @SYMTestType CIT |
|
712 |
|
713 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
714 CREATE_OBJECT RFbsSession fbsSession |
|
715 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
716 COMMAND fbsSession Connect |
|
717 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0022-NewL_command02 |
|
718 COMMAND !Error=-1 fbsScrDev AddFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0022-AddFile_command03 |
|
719 COMMAND fbsScrDev ~ |
|
720 COMMAND fbsSession Disconnect |
|
721 END_TEST_BLOCK |
|
722 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0022 |
|
723 |
|
724 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0023 |
|
725 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0023 |
|
726 //! @SYMAPI CFbsDevice::RemoveFile(TInt) |
|
727 //! @SYMAuthor Felix Rao |
|
728 //! @SYMCreationDate 09/02/2009 |
|
729 //! @SYMTestCaseDesc Removes the specified font file from the device's typeface store. |
|
730 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
731 //! 2. Create a CFbsScreenDevice object and a CFbsFont object. |
|
732 //! 3. Add a font file. |
|
733 //! 4. Checks the expected font is added successfully. |
|
734 //! 5. Remove the font file. |
|
735 //! 6. Checks the expected font is removed successfully. |
|
736 //! 7. Destruct all objects and disconnect RFbsSession. |
|
737 //! @SYMTestStatus Implemented |
|
738 //! @SYMTestPriority High |
|
739 //! @SYMTestExpectedResults 1. Font file can be removed successfully. |
|
740 //! 2. Font in newly add font file can not be used after RemoveFile(). |
|
741 //! @SYMTestType CIT |
|
742 |
|
743 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
744 CREATE_OBJECT RFbsSession fbsSession |
|
745 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
746 CREATE_OBJECT CFbsFont fbsFont |
|
747 COMMAND fbsSession Connect |
|
748 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-NewL_command02 |
|
749 COMMAND fbsScrDev AddFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-AddFile_command03 |
|
750 COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-GetNearestFontToDesignHeightInPixels_command04 |
|
751 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-FontSpecInTwips_command05 |
|
752 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-ReleaseFont_command06 |
|
753 COMMAND fbsScrDev RemoveFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-RemoveFile_command07 |
|
754 COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-GetNearestFontToDesignHeightInPixels_command08 |
|
755 COMMAND !Error=-1 fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-FontSpecInTwips_command09 |
|
756 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-ReleaseFont_command10 |
|
757 COMMAND fbsScrDev ~ |
|
758 COMMAND fbsSession Disconnect |
|
759 END_TEST_BLOCK |
|
760 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0023 |
|
761 |
|
762 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0024 |
|
763 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0024 |
|
764 //! @SYMAPI CFbsDevice::RemoveFile(TInt) |
|
765 //! @SYMAuthor Felix Rao |
|
766 //! @SYMCreationDate 09/02/2009 |
|
767 //! @SYMTestCaseDesc Removes all font files from the device's typeface store. |
|
768 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
769 //! 2. Create a CFbsScreenDevice object and a CFbsFont object. |
|
770 //! 3. Add a font file. |
|
771 //! 4. Checks the expected font is added successfully. |
|
772 //! 5. Remove all files. |
|
773 //! 6. Checks the expected font is not removed because there are some font is being used. |
|
774 //! 7. Destruct all objects and disconnect RFbsSession. |
|
775 //! @SYMTestStatus Implemented |
|
776 //! @SYMTestPriority High |
|
777 //! @SYMTestExpectedResults Font file can not be removed. |
|
778 //! @SYMTestType CIT |
|
779 |
|
780 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
781 CREATE_OBJECT RFbsSession fbsSession |
|
782 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
783 CREATE_OBJECT CFbsFont fbsFont |
|
784 COMMAND fbsSession Connect |
|
785 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-NewL_command02 |
|
786 COMMAND fbsScrDev AddFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-AddFile_command03 |
|
787 COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-GetNearestFontToDesignHeightInPixels_command04 |
|
788 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-FontSpecInTwips_command05 |
|
789 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-ReleaseFont_command06 |
|
790 COMMAND fbsScrDev RemoveFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-RemoveFile_command07 |
|
791 COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-GetNearestFontToDesignHeightInPixels_command08 |
|
792 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-FontSpecInTwips_command09 |
|
793 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-ReleaseFont_command10 |
|
794 COMMAND fbsScrDev ~ |
|
795 COMMAND fbsSession Disconnect |
|
796 END_TEST_BLOCK |
|
797 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0024 |
|
798 |
|
799 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0025 |
|
800 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0025 |
|
801 //! @SYMAPI CFbsDevice::RemoveFile(TInt) |
|
802 //! @SYMAuthor Felix Rao |
|
803 //! @SYMCreationDate 09/02/2009 |
|
804 //! @SYMTestCaseDesc Negative case. Removes font file from the device's typeface store specified by UID -9. |
|
805 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
806 //! 2. Create a CFbsScreenDevice object. |
|
807 //! 3. Remove font file by specifying UID to -9. |
|
808 //! 4. Destruct all objects and disconnect RFbsSession. |
|
809 //! @SYMTestStatus Implemented |
|
810 //! @SYMTestPriority High |
|
811 //! @SYMTestExpectedResults RemoveFile() will be called without panic. |
|
812 //! @SYMTestType CIT |
|
813 |
|
814 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
815 CREATE_OBJECT RFbsSession fbsSession |
|
816 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
817 CREATE_OBJECT CFbsFont fbsFont |
|
818 COMMAND fbsSession Connect |
|
819 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0025-NewL_command02 |
|
820 COMMAND fbsScrDev RemoveFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0025-RemoveFile_command03 |
|
821 COMMAND fbsScrDev ~ |
|
822 COMMAND fbsSession Disconnect |
|
823 END_TEST_BLOCK |
|
824 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0025 |
|
825 |
|
826 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0026 |
|
827 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0026 |
|
828 //! @SYMAPI CFbsDevice::NumTypefaces() |
|
829 //! @SYMAuthor Felix Rao |
|
830 //! @SYMCreationDate 09/02/2009 |
|
831 //! @SYMTestCaseDesc Gets the number of typefaces supported by the device. |
|
832 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
833 //! 2. Create a CFbsScreenDevice object. |
|
834 //! 3. Get the number of typefaces. |
|
835 //! 4. Add a font file. |
|
836 //! 5. Get the number of typefaces. |
|
837 //! 6. Remove the font file. |
|
838 //! 7. Get the number of typefaces. |
|
839 //! 8. Destruct all objects and disconnect RFbsSession. |
|
840 //! @SYMTestStatus Implemented |
|
841 //! @SYMTestPriority High |
|
842 //! @SYMTestExpectedResults 1. NumTypefaces() will be called without error. |
|
843 //! 2. Before AddFile() and after RemoveFile(), the NumTypefaces() returns same value. |
|
844 //! @SYMTestType CIT |
|
845 |
|
846 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
847 CREATE_OBJECT RFbsSession fbsSession |
|
848 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
849 COMMAND fbsSession Connect |
|
850 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-NewL_command02 |
|
851 COMMAND fbsScrDev NumTypefaces GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-NumTypefaces_command03 |
|
852 COMMAND fbsScrDev AddFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-AddFile_command04 |
|
853 COMMAND fbsScrDev NumTypefaces GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-NumTypefaces_command05 |
|
854 COMMAND fbsScrDev RemoveFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-RemoveFile_command06 |
|
855 COMMAND fbsScrDev NumTypefaces GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-NumTypefaces_command07 |
|
856 COMMAND fbsScrDev ~ |
|
857 COMMAND fbsSession Disconnect |
|
858 END_TEST_BLOCK |
|
859 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0026 |
|
860 |
|
861 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0027 |
|
862 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0027 |
|
863 //! @SYMAPI CFbsDevice::TypefacesSupport(TTypefaceSupport{ref}, TInt) |
|
864 //! @SYMAuthor Felix Rao |
|
865 //! @SYMCreationDate 09/02/2009 |
|
866 //! @SYMTestCaseDesc Gets information about an indexed typeface. |
|
867 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
868 //! 2. Create a CFbsScreenDevice object. |
|
869 //! 3. Get the information about typeface indexed 6 |
|
870 //! 4. Destruct all objects and disconnect RFbsSession. |
|
871 //! @SYMTestStatus Implemented |
|
872 //! @SYMTestPriority High |
|
873 //! @SYMTestExpectedResults TypefaceSupport() will be called successfully. |
|
874 //! @SYMTestType CIT |
|
875 |
|
876 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
877 CREATE_OBJECT RFbsSession fbsSession |
|
878 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
879 COMMAND fbsSession Connect |
|
880 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0027-NewL_command02 |
|
881 COMMAND fbsScrDev TypefaceSupport GRAPHICS-BITGDI-FbsDevice-PublicApi-0027-TypefaceSupport_command03 |
|
882 COMMAND fbsScrDev ~ |
|
883 COMMAND fbsSession Disconnect |
|
884 END_TEST_BLOCK |
|
885 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0027 |
|
886 |
|
887 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0028 |
|
888 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0028 |
|
889 //! @SYMAPI CFbsDevice::TypefacesSupport(TTypefaceSupport{ref}, TInt) |
|
890 //! @SYMAuthor Felix Rao |
|
891 //! @SYMCreationDate 09/02/2009 |
|
892 //! @SYMTestCaseDesc Negative case. Gets information about an indexed typeface. |
|
893 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
894 //! 2. Create a CFbsScreenDevice object. |
|
895 //! 3. Get the information about typeface indexed -6 |
|
896 //! @SYMTestStatus Implemented |
|
897 //! @SYMTestPriority High |
|
898 //! @SYMTestExpectedResults Get panic code 26 and panic string FBSCLI |
|
899 //! @SYMTestType CIT |
|
900 |
|
901 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
902 CREATE_OBJECT RFbsSession fbsSession |
|
903 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
904 COMMAND fbsSession Connect |
|
905 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0028-NewL_command02 |
|
906 COMMAND fbsScrDev TypefaceSupport GRAPHICS-BITGDI-FbsDevice-PublicApi-0028-TypefaceSupport_command03 |
|
907 END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=26 |
|
908 RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg |
|
909 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0028 |
|
910 |
|
911 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0029 |
|
912 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0029 |
|
913 //! @SYMAPI CFbsDevice::SetCustomPalette(const CPalette{ptr}) |
|
914 //! @SYMAuthor Felix Rao |
|
915 //! @SYMCreationDate 09/02/2009 |
|
916 //! @SYMTestCaseDesc Sets the variable 8 bits per pixel colour palette, replacing the system default one. Support for palette will depend on the screen driver implementation, it's not supported in techview. |
|
917 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
918 //! 2. Create a CFbsScreenDevice object and a CPalette object. |
|
919 //! 3. Set the custom palette. |
|
920 //! 4. Destruct all objects and disconnect RFbsSession. |
|
921 //! @SYMTestStatus Implemented |
|
922 //! @SYMTestPriority High |
|
923 //! @SYMTestExpectedResults SetCustomPalette() will be called successfully. |
|
924 //! @SYMTestType CIT |
|
925 |
|
926 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
927 CREATE_OBJECT RFbsSession fbsSession |
|
928 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
929 CREATE_OBJECT CPalette palette |
|
930 COMMAND fbsSession Connect |
|
931 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0029-NewL_command02 |
|
932 COMMAND palette NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0029-NewL_command03 |
|
933 COMMAND fbsScrDev SetCustomPalette GRAPHICS-BITGDI-FbsDevice-PublicApi-0029-SetCustomPalette_command04 |
|
934 COMMAND fbsScrDev ~ |
|
935 COMMAND palette ~ |
|
936 COMMAND fbsSession Disconnect |
|
937 END_TEST_BLOCK |
|
938 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0029 |
|
939 |
|
940 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0030 |
|
941 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0030 |
|
942 //! @SYMAPI CFbsDevice::GraphicsAccelerator() |
|
943 //! @SYMAuthor Felix Rao |
|
944 //! @SYMCreationDate 09/02/2009 |
|
945 //! @SYMTestCaseDesc Gets a pointer to the 2D graphics accelerator owned by the device. |
|
946 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
947 //! 2. Create a CFbsScreenDevice object. |
|
948 //! 3. Gets a pointer to the 2D graphics accelerator. |
|
949 //! 4. Destruct all objects and disconnect RFbsSession. |
|
950 //! @SYMTestStatus Implemented |
|
951 //! @SYMTestPriority High |
|
952 //! @SYMTestExpectedResults GraphicsAccelerator() will be called successfully. |
|
953 //! @SYMTestType CIT |
|
954 |
|
955 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
956 CREATE_OBJECT RFbsSession fbsSession |
|
957 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
958 COMMAND fbsSession Connect |
|
959 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0030-NewL_command02 |
|
960 COMMAND fbsScrDev GraphicsAccelerator |
|
961 COMMAND fbsScrDev ~ |
|
962 COMMAND fbsSession Disconnect |
|
963 END_TEST_BLOCK |
|
964 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0030 |
|
965 |
|
966 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0031 |
|
967 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0031 |
|
968 //! @SYMAPI CFbsDevice::Orientation() |
|
969 //! @SYMAuthor Felix Rao |
|
970 //! @SYMCreationDate 09/02/2009 |
|
971 //! @SYMTestCaseDesc Gets the device's orientation. |
|
972 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
973 //! 2. Create a CFbsScreenDevice object and a CFbsBigGc object. |
|
974 //! 3. Set device orientation to EGraphicsOrientationRotated90, EGraphicsOrientationRotated180, EGraphicsOrientationRotated270, EGraphicsOrientationNormal and Get the device's orientation respectively. |
|
975 //! 4. Destruct all objects and disconnect RFbsSession. |
|
976 //! @SYMTestStatus Implemented |
|
977 //! @SYMTestPriority High |
|
978 //! @SYMTestExpectedResults Orientation() will be called successfully. |
|
979 //! @SYMTestType CIT |
|
980 |
|
981 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
982 CREATE_OBJECT RFbsSession fbsSession |
|
983 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
984 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
985 COMMAND fbsSession Connect |
|
986 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-NewL_command02 |
|
987 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-CreateContext_command03 |
|
988 COMMAND fbsBitGc OrientationsAvailable |
|
989 COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-SetOrientation_command05 |
|
990 COMMAND fbsScrDev Orientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-Orientation_command06 |
|
991 DELAY 500000 |
|
992 COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-SetOrientation_command08 |
|
993 COMMAND fbsScrDev Orientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-Orientation_command09 |
|
994 DELAY 500000 |
|
995 COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-SetOrientation_command11 |
|
996 COMMAND fbsScrDev Orientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-Orientation_command12 |
|
997 DELAY 500000 |
|
998 COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-SetOrientation_command14 |
|
999 COMMAND fbsScrDev Orientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-Orientation_command15 |
|
1000 COMMAND fbsScrDev ~ |
|
1001 COMMAND fbsBitGc ~ |
|
1002 COMMAND fbsSession Disconnect |
|
1003 END_TEST_BLOCK |
|
1004 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0031 |
|
1005 |
|
1006 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0032 |
|
1007 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0032 |
|
1008 //! @SYMAPI CFbsDevice::DisplayMode16M() |
|
1009 //! @SYMAuthor Felix Rao |
|
1010 //! @SYMCreationDate 09/02/2009 |
|
1011 //! @SYMTestCaseDesc Return one of the 16M video modes defined in TDisplayMode |
|
1012 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1013 //! 2. Create and destruct CFbsScreenDevice objects using all valid TDisplayMode values respectively. |
|
1014 //! 3. Get the display mode. |
|
1015 //! 4. Disconnect RFbsSession. |
|
1016 //! @SYMTestStatus Implemented |
|
1017 //! @SYMTestPriority High |
|
1018 //! @SYMTestExpectedResults DisplayMode16M() returns expected display mode. |
|
1019 //! @SYMTestType CIT |
|
1020 |
|
1021 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1022 CREATE_OBJECT RFbsSession fbsSession |
|
1023 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1024 COMMAND fbsSession Connect |
|
1025 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0032-NewL_command02 |
|
1026 COMMAND fbsScrDev DisplayMode16M GRAPHICS-BITGDI-FbsDevice-PublicApi-0032-DisplayMode16M_command03 |
|
1027 COMMAND fbsScrDev ~ |
|
1028 COMMAND fbsSession Disconnect |
|
1029 END_TEST_BLOCK |
|
1030 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0032 |
|
1031 |
|
1032 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0033 |
|
1033 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0033 |
|
1034 //! @SYMAPI CFbsDevice::SetScalingFactor(const TPoint{ref}, TInt, TInt, TInt, TInt) |
|
1035 //! @SYMAuthor Felix Rao |
|
1036 //! @SYMCreationDate 09/02/2009 |
|
1037 //! @SYMTestCaseDesc Sets scaling factor by which the drawing device should scale the drawing images. |
|
1038 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1039 //! 2. Create a CFbsScreenDevice object. |
|
1040 //! 3. Set scaling factor to 10, 10, 1, 1 and scaling origin to TPoint(10, 10). |
|
1041 //! 4. Create a CFbsBitGc object through CFbsScreenDevice object and clear the device. |
|
1042 //! 5. Set brush and pen color to TRgb(0, 255, 255). |
|
1043 //! 6. Draw a rectangle TRect(10, 10, 30, 30) and check it. |
|
1044 //! 7. Set scaling factor to 1, 1, 1, 1 and scaling origin to TPoint(0, 0) and re-activate CFbsBitGc object. |
|
1045 //! 8. Clear the device. Set brush and pen color to TRgb(0, 255, 255). |
|
1046 //! 9. Draw a rectangle TRect(0, 0, 50, 50) and check it. |
|
1047 //! 10. Set scaling factor to 1, 1, 1, 1 and scaling origin to TPoint(10, 10) and re-activate CFbsBitGc object. |
|
1048 //! 11. Clear the device. Set brush and pen color to TRgb(0, 255, 255). |
|
1049 //! 12. Draw a rectangle TRect(0, 0, 50, 50) and check it. |
|
1050 //! 13. Destruct all objects and disconnect RFbsSession. |
|
1051 //! @SYMTestStatus Implemented |
|
1052 //! @SYMTestPriority High |
|
1053 //! @SYMTestExpectedResults 1. SetScalingFactor() will be called successfully. |
|
1054 //! 2. All the three rectangles are in color TRgb(0, 255, 255). |
|
1055 //! @SYMTestType CIT |
|
1056 |
|
1057 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1058 CREATE_OBJECT RFbsSession fbsSession |
|
1059 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1060 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
1061 COMMAND fbsSession Connect |
|
1062 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-NewL_command02 |
|
1063 COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetScalingFactor_command03 |
|
1064 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-CreateContext_command04 |
|
1065 COMMAND fbsBitGc Clear |
|
1066 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command06 |
|
1067 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushStyle_command07 |
|
1068 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetPenColor_command08 |
|
1069 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-DrawRect_command09 |
|
1070 COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-checkRectColor_command10 |
|
1071 COMMAND fbsScrDev Update |
|
1072 DELAY 500000 |
|
1073 COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetScalingFactor_command13 |
|
1074 COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-Activate_command14 |
|
1075 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command15 |
|
1076 COMMAND fbsBitGc Clear |
|
1077 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command17 |
|
1078 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushStyle_command18 |
|
1079 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetPenColor_command19 |
|
1080 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-DrawRect_command20 |
|
1081 COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-checkRectColor_command21 |
|
1082 COMMAND fbsScrDev Update |
|
1083 DELAY 500000 |
|
1084 COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetScalingFactor_command24 |
|
1085 COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-Activate_command25 |
|
1086 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command26 |
|
1087 COMMAND fbsBitGc Clear |
|
1088 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command28 |
|
1089 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushStyle_command29 |
|
1090 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetPenColor_command30 |
|
1091 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-DrawRect_command31 |
|
1092 COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-checkRectColor_command32 |
|
1093 COMMAND fbsScrDev Update |
|
1094 DELAY 500000 |
|
1095 COMMAND fbsScrDev ~ |
|
1096 COMMAND fbsBitGc ~ |
|
1097 COMMAND fbsSession Disconnect |
|
1098 END_TEST_BLOCK |
|
1099 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0033 |
|
1100 |
|
1101 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0034 |
|
1102 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0034 |
|
1103 //! @SYMAPI CFbsDevice::SetScalingFactor(const TPoint{ref}, TInt, TInt, TInt, TInt) |
|
1104 //! @SYMAuthor Felix Rao |
|
1105 //! @SYMCreationDate 09/02/2009 |
|
1106 //! @SYMTestCaseDesc Negative case. Sets scaling factor by which the drawing device should scale the drawing images using negative X-axis factor. |
|
1107 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1108 //! 2. Create a CFbsScreenDevice object. |
|
1109 //! 3. Set scaling factor to -10, 10, 1, 1 and scaling origin to TPoint(10, 10). |
|
1110 //! 4. Create a CFbsBitGc object through CFbsScreenDevice object. Set brush style to ESolidBrush and clear the device. |
|
1111 //! 5. Clear the device. Set brush and pen color to TRgb(0, 255, 255). |
|
1112 //! 6. Draw a rectangle TRect(0, 0, 100, 100). |
|
1113 //! 7. Destruct all objects and disconnect RFbsSession. |
|
1114 //! @SYMTestStatus Implemented |
|
1115 //! @SYMTestPriority High |
|
1116 //! @SYMTestExpectedResults 1. SetScalingFactor() will be called successfully. |
|
1117 //! 2. The scaled rectangle will not be drawn. |
|
1118 //! @SYMTestType CIT |
|
1119 |
|
1120 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1121 CREATE_OBJECT RFbsSession fbsSession |
|
1122 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1123 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
1124 COMMAND fbsSession Connect |
|
1125 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-NewL_command02 |
|
1126 COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-SetScalingFactor_command03 |
|
1127 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-CreateContext_command04 |
|
1128 COMMAND fbsBitGc Clear |
|
1129 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-SetBrushColor_command06 |
|
1130 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-SetBrushStyle_command07 |
|
1131 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-SetPenColor_command08 |
|
1132 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-DrawRect_command09 |
|
1133 COMMAND fbsScrDev Update |
|
1134 DELAY 500000 |
|
1135 COMMAND fbsScrDev ~ |
|
1136 COMMAND fbsBitGc ~ |
|
1137 COMMAND fbsSession Disconnect |
|
1138 END_TEST_BLOCK |
|
1139 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0034 |
|
1140 |
|
1141 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0035 |
|
1142 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0035 |
|
1143 //! @SYMAPI CFbsDevice::SetScalingFactor(const TPoint{ref}, TInt, TInt, TInt, TInt) |
|
1144 //! @SYMAuthor Felix Rao |
|
1145 //! @SYMCreationDate 09/02/2009 |
|
1146 //! @SYMTestCaseDesc Negative case. Sets scaling factor by which the drawing device should scale the drawing images using negative Y-axis factor. |
|
1147 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1148 //! 2. Create a CFbsScreenDevice object and a CFbsBitGc object. |
|
1149 //! 3. Set brush style to ESolidBrush and clear the device. |
|
1150 //! 4. Set scaling factor to 10, -10, 1, 1 and scaling origin to TPoint(10, 10). |
|
1151 //! 5. Set brush and pen color to TRgb(0, 255, 255). |
|
1152 //! 6. Draw a rectangle TRect(0, 0, 100, 100). |
|
1153 //! 7. Destruct all objects and disconnect RFbsSession. |
|
1154 //! @SYMTestStatus Implemented |
|
1155 //! @SYMTestPriority High |
|
1156 //! @SYMTestExpectedResults 1. SetScalingFactor() will be called successfully. |
|
1157 //! 2. The scaled rectangle will not be drawn. |
|
1158 //! @SYMTestType CIT |
|
1159 |
|
1160 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1161 CREATE_OBJECT RFbsSession fbsSession |
|
1162 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1163 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
1164 COMMAND fbsSession Connect |
|
1165 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-NewL_command02 |
|
1166 COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-SetScalingFactor_command03 |
|
1167 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-CreateContext_command04 |
|
1168 COMMAND fbsBitGc Clear |
|
1169 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-SetBrushColor_command06 |
|
1170 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-SetBrushStyle_command07 |
|
1171 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-SetPenColor_command08 |
|
1172 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-DrawRect_command09 |
|
1173 COMMAND fbsScrDev Update |
|
1174 DELAY 500000 |
|
1175 COMMAND fbsScrDev ~ |
|
1176 COMMAND fbsBitGc ~ |
|
1177 COMMAND fbsSession Disconnect |
|
1178 END_TEST_BLOCK |
|
1179 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0035 |
|
1180 |
|
1181 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0036 |
|
1182 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0036 |
|
1183 //! @SYMAPI CFbsDevice::SetScalingFactor(const TPoint{ref}, TInt, TInt, TInt, TInt) |
|
1184 //! @SYMAuthor Felix Rao |
|
1185 //! @SYMCreationDate 09/02/2009 |
|
1186 //! @SYMTestCaseDesc Negative case. Sets scaling factor by which the drawing device should scale the drawing images using TPoint(-100, -100). |
|
1187 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1188 //! 2. Create a CFbsScreenDevice object and a CFbsBitGc object. |
|
1189 //! 3. Set brush style to ESolidBrush and clear the device. |
|
1190 //! 4. Set scaling factor to 10, 10, 1, 1 and scaling origin to TPoint(-100, -100). |
|
1191 //! 5. Set brush and pen color to TRgb(0, 255, 255). |
|
1192 //! 6. Draw a rectangle TRect(0, 0, 20, 20) and check it. |
|
1193 //! 7. Destruct all objects and disconnect RFbsSession. |
|
1194 //! @SYMTestStatus Implemented |
|
1195 //! @SYMTestPriority High |
|
1196 //! @SYMTestExpectedResults 1. SetScalingFactor() will be called successfully. |
|
1197 //! 2. The rectangle is in color TRgb(0, 255, 255). |
|
1198 //! @SYMTestType CIT |
|
1199 |
|
1200 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1201 CREATE_OBJECT RFbsSession fbsSession |
|
1202 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1203 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
1204 COMMAND fbsSession Connect |
|
1205 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-NewL_command02 |
|
1206 COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-SetScalingFactor_command03 |
|
1207 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-CreateContext_command04 |
|
1208 COMMAND fbsBitGc Clear |
|
1209 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-SetBrushColor_command06 |
|
1210 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-SetBrushStyle_command07 |
|
1211 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-SetPenColor_command08 |
|
1212 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-DrawRect_command09 |
|
1213 COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-checkRectColor_command10 |
|
1214 COMMAND fbsScrDev Update |
|
1215 DELAY 500000 |
|
1216 COMMAND fbsScrDev ~ |
|
1217 COMMAND fbsBitGc ~ |
|
1218 COMMAND fbsSession Disconnect |
|
1219 END_TEST_BLOCK |
|
1220 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0036 |
|
1221 |
|
1222 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0037 |
|
1223 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0037 |
|
1224 //! @SYMAPI CFbsDevice::SetScalingFactor(const TPoint{ref}, TInt, TInt, TInt, TInt) |
|
1225 //! @SYMAuthor Felix Rao |
|
1226 //! @SYMCreationDate 09/02/2009 |
|
1227 //! @SYMTestCaseDesc Negative case. Sets scaling factor by which the drawing device should scale the drawing images using TPoint(9100, 9100). |
|
1228 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1229 //! 2. Create a CFbsScreenDevice object and a CFbsBitGc object. |
|
1230 //! 3. Set brush style to ESolidBrush and clear the device. |
|
1231 //! 4. Set scaling factor to 10, 10, 1, 1 and scaling origin to TPoint(9100, 9100). |
|
1232 //! 5. Set brush and pen color to TRgb(0, 255, 255). |
|
1233 //! 6. Draw a rectangle TRect(0, 0, 100, 100). |
|
1234 //! 7. Destruct all objects and disconnect RFbsSession. |
|
1235 //! @SYMTestStatus Implemented |
|
1236 //! @SYMTestPriority High |
|
1237 //! @SYMTestExpectedResults 1. SetScalingFactor() will be called successfully. |
|
1238 //! 2. The scaled rectangle will not be drawn. |
|
1239 //! @SYMTestType CIT |
|
1240 |
|
1241 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1242 CREATE_OBJECT RFbsSession fbsSession |
|
1243 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1244 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
1245 COMMAND fbsSession Connect |
|
1246 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-NewL_command02 |
|
1247 COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-SetScalingFactor_command03 |
|
1248 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-CreateContext_command04 |
|
1249 COMMAND fbsBitGc Clear |
|
1250 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-SetBrushColor_command06 |
|
1251 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-SetBrushStyle_command07 |
|
1252 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-SetPenColor_command08 |
|
1253 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-DrawRect_command09 |
|
1254 COMMAND fbsScrDev Update |
|
1255 DELAY 500000 |
|
1256 COMMAND fbsScrDev ~ |
|
1257 COMMAND fbsBitGc ~ |
|
1258 COMMAND fbsSession Disconnect |
|
1259 END_TEST_BLOCK |
|
1260 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0037 |
|
1261 |
|
1262 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0038 |
|
1263 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0038 |
|
1264 //! @SYMAPI CFbsDevice::GetDrawRect(TRect{ref}) |
|
1265 //! @SYMAuthor Felix Rao |
|
1266 //! @SYMCreationDate 10/02/2009 |
|
1267 //! @SYMTestCaseDesc Gets logical coordinates of the drawing rectangle. |
|
1268 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1269 //! 2. Create a CFbsScreenDevice object. |
|
1270 //! 3. Get draw rectangle. |
|
1271 //! 4. Destruct all objects and disconnect RFbsSession. |
|
1272 //! @SYMTestStatus Implemented |
|
1273 //! @SYMTestPriority High |
|
1274 //! @SYMTestExpectedResults GetDrawRect() will be called successfully. |
|
1275 //! @SYMTestType CIT |
|
1276 |
|
1277 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1278 CREATE_OBJECT RFbsSession fbsSession |
|
1279 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1280 COMMAND fbsSession Connect |
|
1281 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0038-NewL_command02 |
|
1282 COMMAND fbsScrDev GetDrawRect |
|
1283 COMMAND fbsScrDev ~ |
|
1284 COMMAND fbsSession Disconnect |
|
1285 END_TEST_BLOCK |
|
1286 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0038 |
|
1287 |
|
1288 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0039 |
|
1289 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0039 |
|
1290 //! @SYMAPI CFbsDevice::GetDrawRect(TRect{ref}) |
|
1291 //! @SYMAuthor Felix Rao |
|
1292 //! @SYMCreationDate 10/02/2009 |
|
1293 //! @SYMTestCaseDesc Gets logical coordinates of the drawing rectangle of a scaled device. |
|
1294 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1295 //! 2. Create a CFbsScreenDevice object. |
|
1296 //! 3. Set scaling factor to 10, 10, 1, 1 and scaling origin to TPoint(5, 5). |
|
1297 //! 4. Get draw rectangle. |
|
1298 //! 5. Destruct all objects and disconnect RFbsSession. |
|
1299 //! @SYMTestStatus Implemented |
|
1300 //! @SYMTestPriority High |
|
1301 //! @SYMTestExpectedResults GetDrawRect() will be called successfully. |
|
1302 //! @SYMTestType CIT |
|
1303 |
|
1304 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1305 CREATE_OBJECT RFbsSession fbsSession |
|
1306 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1307 COMMAND fbsSession Connect |
|
1308 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0039-NewL_command02 |
|
1309 COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0039-SetScalingFactor_command03 |
|
1310 COMMAND fbsScrDev GetDrawRect |
|
1311 COMMAND fbsScrDev ~ |
|
1312 COMMAND fbsSession Disconnect |
|
1313 END_TEST_BLOCK |
|
1314 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0039 |
|
1315 |
|
1316 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0040 |
|
1317 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0040 |
|
1318 //! @SYMAPI CFbsDevice::RegisterLinkedTypeface(const CLinkedTypefaceSpecification{ref},TInt{ref}) |
|
1319 //! @SYMAuthor Felix Rao |
|
1320 //! @SYMCreationDate 10/02/2009 |
|
1321 //! @SYMTestCaseDesc Add a CLinkedTypefaceSpecification to the font and bitmap server typeface store. |
|
1322 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1323 //! 2. Create a CFbsScreenDevice object and a CLinkedTypefaceSpecification object. |
|
1324 //! 3. Register the CLinkedTypefaceSpecification object. |
|
1325 //! 4. Destruct all objects and disconnect RFbsSession. |
|
1326 //! @SYMTestStatus Implemented |
|
1327 //! @SYMTestPriority High |
|
1328 //! @SYMTestExpectedResults RegisterLinkedTypeface() returns -5 KErrNotSupported. |
|
1329 //! @SYMTestType CIT |
|
1330 |
|
1331 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1332 CREATE_OBJECT RFbsSession fbsSession |
|
1333 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1334 CREATE_OBJECT CLinkedTypefaceSpecification linkedTypefaceSpec |
|
1335 COMMAND fbsSession Connect |
|
1336 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0040-NewL_command02 |
|
1337 COMMAND linkedTypefaceSpec NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0040-NewLC_command03 |
|
1338 COMMAND !Error=-5 fbsScrDev RegisterLinkedTypeface GRAPHICS-BITGDI-FbsDevice-PublicApi-0040-RegisterLinkedTypeface_command04 |
|
1339 COMMAND fbsScrDev ~ |
|
1340 COMMAND linkedTypefaceSpec ~ |
|
1341 COMMAND fbsSession Disconnect |
|
1342 END_TEST_BLOCK |
|
1343 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0040 |
|
1344 |
|
1345 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0041 |
|
1346 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0041 |
|
1347 //! @SYMAPI CFbsDevice::SetDrawDeviceOffset(const TPoint{ref}) |
|
1348 //! @SYMAuthor Felix Rao |
|
1349 //! @SYMCreationDate 10/02/2009 |
|
1350 //! @SYMTestCaseDesc Set the offset of draw device. |
|
1351 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1352 //! 2. Create a CFbsScreenDevice object and then create a CFbsBitGc object through CFbsScreenDevice object. |
|
1353 //! 3. Clear the device and set brush and pen color to TRgb(0, 255, 0) and brush style to ESolidBrush. |
|
1354 //! 4. Set offset of draw device to TPoint(50, 50). |
|
1355 //! 5. Draw a rectangle TRect(0, 0, 100, 100) and check it. |
|
1356 //! 6. Get draw rectangle. |
|
1357 //! 7. Destruct all objects and disconnect RFbsSession. |
|
1358 //! @SYMTestStatus Implemented |
|
1359 //! @SYMTestPriority High |
|
1360 //! @SYMTestExpectedResults 1. SetDrawDeviceOffset() will be called without error. |
|
1361 //! 2. TRect(0, 0, 100, 100) is in color TRgb(0, 255, 0). |
|
1362 //! @SYMTestType CIT |
|
1363 |
|
1364 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1365 CREATE_OBJECT RFbsSession fbsSession |
|
1366 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1367 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
1368 COMMAND fbsSession Connect |
|
1369 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-NewL_command02 |
|
1370 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-CreateContext_command03 |
|
1371 COMMAND fbsBitGc Clear |
|
1372 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-SetBrushColor_command05 |
|
1373 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-SetBrushStyle_command06 |
|
1374 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-SetPenColor_command07 |
|
1375 COMMAND fbsScrDev SetDrawDeviceOffset GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-SetDrawDeviceOffset_command08 |
|
1376 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-DrawRect_command09 |
|
1377 COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-checkRectColor_command10 |
|
1378 COMMAND fbsScrDev GetDrawRect |
|
1379 COMMAND fbsScrDev Update |
|
1380 DELAY 500000 |
|
1381 COMMAND fbsScrDev ~ |
|
1382 COMMAND fbsBitGc ~ |
|
1383 COMMAND fbsSession Disconnect |
|
1384 END_TEST_BLOCK |
|
1385 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0041 |
|
1386 |
|
1387 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0042 |
|
1388 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0042 |
|
1389 //! @SYMAPI CFbsDevice::SetDrawDeviceOffset(const TPoint{ref}) |
|
1390 //! @SYMAuthor Felix Rao |
|
1391 //! @SYMCreationDate 10/02/2009 |
|
1392 //! @SYMTestCaseDesc Set the offset of draw device to TPoint(-50, -50). |
|
1393 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1394 //! 2. Create a CFbsScreenDevice object and then create a CFbsBitGc object through CFbsScreenDevice object. |
|
1395 //! 3. Clear the device and set brush and pen color to TRgb(0, 255, 0) and brush style to ESolidBrush. |
|
1396 //! 4. Set offset of draw device to TPoint(50, 50). |
|
1397 //! 5. Draw a rectangle TRect(0, 0, 100, 100) and check it. |
|
1398 //! 6. Get draw rectangle. |
|
1399 //! 7. Destruct all objects and disconnect RFbsSession. |
|
1400 //! @SYMTestStatus Implemented |
|
1401 //! @SYMTestPriority High |
|
1402 //! @SYMTestExpectedResults 1. SetDrawDeviceOffset() will be called without error. |
|
1403 //! 2. TRect(50, 50, 100, 100) is in color TRgb(0, 255, 0). |
|
1404 //! @SYMTestType CIT |
|
1405 |
|
1406 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1407 CREATE_OBJECT RFbsSession fbsSession |
|
1408 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1409 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
1410 COMMAND fbsSession Connect |
|
1411 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-NewL_command02 |
|
1412 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-CreateContext_command03 |
|
1413 COMMAND fbsBitGc Clear |
|
1414 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-SetBrushColor_command05 |
|
1415 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-SetBrushStyle_command06 |
|
1416 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-SetPenColor_command07 |
|
1417 COMMAND fbsScrDev SetDrawDeviceOffset GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-SetDrawDeviceOffset_command08 |
|
1418 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-DrawRect_command09 |
|
1419 COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-checkRectColor_command10 |
|
1420 COMMAND fbsScrDev GetDrawRect |
|
1421 COMMAND fbsScrDev Update |
|
1422 DELAY 500000 |
|
1423 COMMAND fbsScrDev ~ |
|
1424 COMMAND fbsBitGc ~ |
|
1425 COMMAND fbsSession Disconnect |
|
1426 END_TEST_BLOCK |
|
1427 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0042 |
|
1428 |
|
1429 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0043 |
|
1430 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0043 |
|
1431 //! @SYMAPI CFbsDevice::SetDrawDeviceOffset(const TPoint{ref}) |
|
1432 //! @SYMAuthor Felix Rao |
|
1433 //! @SYMCreationDate 10/02/2009 |
|
1434 //! @SYMTestCaseDesc Set the offset of draw device to TPoint(-100, -100) and draw rectangle TRect(0, 0, 100, 100). |
|
1435 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1436 //! 2. Create a CFbsScreenDevice object and then create a CFbsBitGc object through CFbsScreenDevice object. |
|
1437 //! 3. Clear the device and set brush and pen color to TRgb(0, 255, 0) and brush style to ESolidBrush. |
|
1438 //! 4. Set offset of draw device to TPoint(-100, -100). |
|
1439 //! 5. Draw a rectangle TRect(0, 0, 100, 100). |
|
1440 //! 6. Get draw rectangle. |
|
1441 //! 7. Destruct all objects and disconnect RFbsSession. |
|
1442 //! @SYMTestStatus Implemented |
|
1443 //! @SYMTestPriority High |
|
1444 //! @SYMTestExpectedResults 1. SetDrawDeviceOffset() will be called without error. |
|
1445 //! 2. The rectangle will not be drawn. |
|
1446 //! @SYMTestType CIT |
|
1447 |
|
1448 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1449 CREATE_OBJECT RFbsSession fbsSession |
|
1450 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1451 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
1452 COMMAND fbsSession Connect |
|
1453 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-NewL_command02 |
|
1454 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-CreateContext_command03 |
|
1455 COMMAND fbsBitGc Clear |
|
1456 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-SetBrushColor_command05 |
|
1457 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-SetBrushStyle_command06 |
|
1458 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-SetPenColor_command07 |
|
1459 COMMAND fbsScrDev SetDrawDeviceOffset GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-SetDrawDeviceOffset_command08 |
|
1460 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-DrawRect_command09 |
|
1461 COMMAND fbsScrDev GetDrawRect |
|
1462 COMMAND fbsScrDev ~ |
|
1463 COMMAND fbsBitGc ~ |
|
1464 COMMAND fbsSession Disconnect |
|
1465 END_TEST_BLOCK |
|
1466 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0043 |
|
1467 |
|
1468 START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0044 |
|
1469 //! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0044 |
|
1470 //! @SYMAPI CFbsDevice::SetDrawDeviceOffset(const TPoint{ref}) |
|
1471 //! @SYMAuthor Felix Rao |
|
1472 //! @SYMCreationDate 10/02/2009 |
|
1473 //! @SYMTestCaseDesc Negative case. Set the offset of draw device to TPoint(9000, 9000) and draw rectangle TRect(0, 0, 100, 100). |
|
1474 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1475 //! 2. Create a CFbsScreenDevice object and then create a CFbsBitGc object through CFbsScreenDevice object. |
|
1476 //! 3. Clear the device and set brush and pen color to TRgb(0, 255, 0) and brush style to ESolidBrush. |
|
1477 //! 4. Set offset of draw device to TPoint(9000, 9000). |
|
1478 //! 5. Draw a rectangle TRect(0, 0, 100, 100). |
|
1479 //! 6. Get draw rectangle. |
|
1480 //! 7. Destruct all objects and disconnect RFbsSession. |
|
1481 //! @SYMTestStatus Implemented |
|
1482 //! @SYMTestPriority High |
|
1483 //! @SYMTestExpectedResults 1. SetDrawDeviceOffset() will be called without error. |
|
1484 //! 2. The rectangle will not be drawn. |
|
1485 //! @SYMTestType CIT |
|
1486 |
|
1487 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1488 CREATE_OBJECT RFbsSession fbsSession |
|
1489 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1490 CREATE_OBJECT CFbsBitGc fbsBitGc |
|
1491 COMMAND fbsSession Connect |
|
1492 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-NewL_command02 |
|
1493 COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-CreateContext_command03 |
|
1494 COMMAND fbsBitGc Clear |
|
1495 COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-SetBrushColor_command05 |
|
1496 COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-SetBrushStyle_command06 |
|
1497 COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-SetPenColor_command07 |
|
1498 COMMAND fbsScrDev SetDrawDeviceOffset GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-SetDrawDeviceOffset_command08 |
|
1499 COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-DrawRect_command09 |
|
1500 COMMAND fbsScrDev GetDrawRect |
|
1501 COMMAND fbsScrDev ~ |
|
1502 COMMAND fbsBitGc ~ |
|
1503 COMMAND fbsSession Disconnect |
|
1504 END_TEST_BLOCK |
|
1505 END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0044 |
|
1506 |
|
1507 |
|
1508 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0201 |
|
1509 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0201 |
|
1510 //! @SYMAPI CFbsDevice::GetFontById(CFont{ptr}{ref}, TUid, const TAlgStyle{ref}); |
|
1511 //! @SYMAuthor Forbes Fu |
|
1512 //! @SYMCreationDate 04/02/2009 |
|
1513 //! @SYMTestCaseDesc Get font by a valid uid. |
|
1514 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1515 //! 2. Create a CFbsScreenDevice object and a TAlgStyle object. |
|
1516 //! 3. Get font by uid and algstyle. |
|
1517 //! 4. Check font height in pixels. |
|
1518 //! 5. Release the font. |
|
1519 //! 6. Destroy TAlgStyle object and CFbsScreenDevice object. |
|
1520 //! 7. Disconnect RFbsSession. |
|
1521 //! @SYMTestStatus Implemented |
|
1522 //! @SYMTestPriority High |
|
1523 //! @SYMTestExpectedResults 1. GetFontById returns KErrNone(0). |
|
1524 //! 2. FontMaxHeight returns expected value. |
|
1525 //! @SYMTestType CIT |
|
1526 |
|
1527 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1528 CREATE_OBJECT RFbsSession fbsSession |
|
1529 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1530 CREATE_OBJECT CFbsFont font |
|
1531 CREATE_OBJECT TAlgStyle algstyle |
|
1532 COMMAND fbsSession Connect |
|
1533 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0201-NewL_command02 |
|
1534 COMMAND algstyle new |
|
1535 COMMAND fbsScrDev GetFontById GRAPHICS-BITGDI-FbsDevice-PublicApi-0201-GetFontById_command04 |
|
1536 COMMAND font FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0201-FontMaxHeight_command05 |
|
1537 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0201-ReleaseFont_command06 |
|
1538 COMMAND algstyle ~ |
|
1539 COMMAND fbsScrDev ~ |
|
1540 COMMAND fbsSession Disconnect |
|
1541 END_TEST_BLOCK |
|
1542 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0201 |
|
1543 |
|
1544 |
|
1545 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0202 |
|
1546 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0202 |
|
1547 //! @SYMAPI CFbsDevice::GetFontById(CFbsFont{ptr}{ref}, TUid, const TAlgStyle{ref}); |
|
1548 //! @SYMAuthor Forbes Fu |
|
1549 //! @SYMCreationDate 04/02/2009 |
|
1550 //! @SYMTestCaseDesc Get font by a valid uid. |
|
1551 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1552 //! 2. Create a CFbsScreenDevice object and a TAlgStyle object. |
|
1553 //! 3. Get font by uid and algstyle. |
|
1554 //! 4. Check font height in pixels. |
|
1555 //! 5. Release the font. |
|
1556 //! 7. Destroy TAlgStyle object and CFbsScreenDevice object. |
|
1557 //! 8. Disconnect RFbsSession. |
|
1558 //! @SYMTestStatus Implemented |
|
1559 //! @SYMTestPriority High |
|
1560 //! @SYMTestExpectedResults 1. GetFontById returns KErrNone(0). |
|
1561 //! 2. FontMaxHeight returns expected value. |
|
1562 //! @SYMTestType CIT |
|
1563 |
|
1564 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1565 CREATE_OBJECT RFbsSession fbsSession |
|
1566 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1567 CREATE_OBJECT CFbsFont fbsFont |
|
1568 CREATE_OBJECT TAlgStyle algstyle |
|
1569 COMMAND fbsSession Connect |
|
1570 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0202-NewL_command02 |
|
1571 COMMAND algstyle new |
|
1572 COMMAND fbsScrDev GetFontById GRAPHICS-BITGDI-FbsDevice-PublicApi-0202-GetFontById_command04 |
|
1573 COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0202-FontMaxHeight_command05 |
|
1574 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0202-ReleaseFont_command06 |
|
1575 COMMAND algstyle ~ |
|
1576 COMMAND fbsScrDev ~ |
|
1577 COMMAND fbsSession Disconnect |
|
1578 END_TEST_BLOCK |
|
1579 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0202 |
|
1580 |
|
1581 |
|
1582 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0203 |
|
1583 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0203 |
|
1584 //! @SYMAPI CFbsDevice::GetFontById(CFont{ptr}{ref}, TUid, const TAlgStyle{ref}); |
|
1585 //! @SYMAuthor Forbes Fu |
|
1586 //! @SYMCreationDate 04/02/2009 |
|
1587 //! @SYMTestCaseDesc Get font by a invalid uid. |
|
1588 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1589 //! 2. Create a CFbsScreenDevice object and a TAlgStyle object. |
|
1590 //! 3. Get font by uid and algstyle. |
|
1591 //! 4. Check font height in pixels. |
|
1592 //! 5. Release the font. |
|
1593 //! 6. Destroy TAlgStyle object and CFbsScreenDevice object. |
|
1594 //! 7. Disconnect RFbsSession. |
|
1595 //! @SYMTestStatus Implemented |
|
1596 //! @SYMTestPriority High |
|
1597 //! @SYMTestExpectedResults GetFontById returns KErrNotFound(-1). |
|
1598 //! @SYMTestType CIT |
|
1599 |
|
1600 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1601 CREATE_OBJECT RFbsSession fbsSession |
|
1602 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1603 CREATE_OBJECT CFbsFont font |
|
1604 CREATE_OBJECT TAlgStyle algstyle |
|
1605 COMMAND fbsSession Connect |
|
1606 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0203-NewL_command02 |
|
1607 COMMAND algstyle new |
|
1608 COMMAND !Error=-1 fbsScrDev GetFontById GRAPHICS-BITGDI-FbsDevice-PublicApi-0203-GetFontById_command04 |
|
1609 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0203-ReleaseFont_command05 |
|
1610 COMMAND algstyle ~ |
|
1611 COMMAND fbsScrDev ~ |
|
1612 COMMAND fbsSession Disconnect |
|
1613 END_TEST_BLOCK |
|
1614 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0203 |
|
1615 |
|
1616 |
|
1617 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0204 |
|
1618 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0204 |
|
1619 //! @SYMAPI CFbsDevice::GetFontById(CFbsFont{ptr}{ref}, TUid, const TAlgStyle{ref}); |
|
1620 //! @SYMAuthor Forbes Fu |
|
1621 //! @SYMCreationDate 04/02/2009 |
|
1622 //! @SYMTestCaseDesc Get font by a invalid uid. |
|
1623 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1624 //! 2. Create a CFbsScreenDevice object and a TAlgStyle object. |
|
1625 //! 3. Get font by uid and algstyle. |
|
1626 //! 4. Check font height in pixels. |
|
1627 //! 5. Release the font. |
|
1628 //! 6. Destroy TAlgStyle object and CFbsScreenDevice object. |
|
1629 //! 7. Disconnect RFbsSession. |
|
1630 //! @SYMTestStatus Implemented |
|
1631 //! @SYMTestPriority High |
|
1632 //! @SYMTestExpectedResults GetFontById returns KErrNotFound(-1). |
|
1633 //! @SYMTestType CIT |
|
1634 |
|
1635 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1636 CREATE_OBJECT RFbsSession fbsSession |
|
1637 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1638 CREATE_OBJECT CFbsFont fbsFont |
|
1639 CREATE_OBJECT TAlgStyle algstyle |
|
1640 COMMAND fbsSession Connect |
|
1641 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0204-NewL_command02 |
|
1642 COMMAND algstyle new |
|
1643 COMMAND !Error=-1 fbsScrDev GetFontById GRAPHICS-BITGDI-FbsDevice-PublicApi-0204-GetFontById_command04 |
|
1644 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0204-ReleaseFont_command05 |
|
1645 COMMAND algstyle ~ |
|
1646 COMMAND fbsScrDev ~ |
|
1647 COMMAND fbsSession Disconnect |
|
1648 END_TEST_BLOCK |
|
1649 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0204 |
|
1650 |
|
1651 |
|
1652 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0211 |
|
1653 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0211 |
|
1654 //! @SYMAPI CFbsDevice::GetNearestFontToDesignHeightInPixels(CFbsFont{ptr}{ref}, const TFontSpec{ref}); |
|
1655 //! @SYMAuthor Forbes Fu |
|
1656 //! @SYMCreationDate 04/02/2009 |
|
1657 //! @SYMTestCaseDesc Get the font which most closely matches TFontSpec(DejaVu Sans Mono, 30). |
|
1658 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1659 //! 2. Create a CFbsScreenDevice object. |
|
1660 //! 3. Get font by font specification. |
|
1661 //! 4. Check font maximum height in pixels. |
|
1662 //! 5. Release the font. |
|
1663 //! 6. Destroy CFbsScreenDevice object. |
|
1664 //! 7. Disconnect RFbsSession. |
|
1665 //! @SYMTestStatus Implemented |
|
1666 //! @SYMTestPriority High |
|
1667 //! @SYMTestExpectedResults 1. GetNearestFontToDesignHeightInPixels returns KErrNone(0). |
|
1668 //! 2. FontMaxHeight returns expected value. |
|
1669 //! @SYMTestType CIT |
|
1670 |
|
1671 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1672 CREATE_OBJECT RFbsSession fbsSession |
|
1673 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1674 CREATE_OBJECT CFbsFont fbsFont |
|
1675 COMMAND fbsSession Connect |
|
1676 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0211-NewL_command02 |
|
1677 COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0211-GetNearestFontToDesignHeightInPixels_command04 |
|
1678 COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0211-FontMaxHeight_command05 |
|
1679 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0211-ReleaseFont_command06 |
|
1680 COMMAND fbsScrDev ~ |
|
1681 COMMAND fbsSession Disconnect |
|
1682 END_TEST_BLOCK |
|
1683 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0211 |
|
1684 |
|
1685 |
|
1686 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0212 |
|
1687 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0212 |
|
1688 //! @SYMAPI CFbsDevice::GetNearestFontToDesignHeightInPixels(CFbsFont{ptr}{ref}, const TFontSpec{ref}); |
|
1689 //! @SYMAuthor Forbes Fu |
|
1690 //! @SYMCreationDate 04/02/2009 |
|
1691 //! @SYMTestCaseDesc Negative case; Get the font which most closely matches the font specification with null typeface name. |
|
1692 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1693 //! 2. Create a CFbsScreenDevice object. |
|
1694 //! 3. Get font by font specification with null name. |
|
1695 //! 4. Check font maximum height in pixels. |
|
1696 //! 5. Release the font. |
|
1697 //! 6. Destroy CFbsScreenDevice object. |
|
1698 //! 7. Disconnect RFbsSession. |
|
1699 //! @SYMTestStatus Implemented |
|
1700 //! @SYMTestPriority High |
|
1701 //! @SYMTestExpectedResults 1. GetNearestFontToDesignHeightInPixels returns KErrNone(0). |
|
1702 //! 2. FontMaxHeight returns expected value. |
|
1703 //! @SYMTestType CIT |
|
1704 |
|
1705 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1706 CREATE_OBJECT RFbsSession fbsSession |
|
1707 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1708 CREATE_OBJECT CFbsFont fbsFont |
|
1709 COMMAND fbsSession Connect |
|
1710 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0212-NewL_command02 |
|
1711 COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0212-GetNearestFontToDesignHeightInPixels_command04 |
|
1712 COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0212-FontMaxHeight_command05 |
|
1713 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0212-ReleaseFont_command06 |
|
1714 COMMAND fbsScrDev ~ |
|
1715 COMMAND fbsSession Disconnect |
|
1716 END_TEST_BLOCK |
|
1717 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0212 |
|
1718 |
|
1719 |
|
1720 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0213 |
|
1721 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0213 |
|
1722 //! @SYMAPI CFbsDevice::GetNearestFontToDesignHeightInPixels(CFbsFont{ptr}{ref}, const TFontSpec{ref}); |
|
1723 //! @SYMAuthor Forbes Fu |
|
1724 //! @SYMCreationDate 04/02/2009 |
|
1725 //! @SYMTestCaseDesc Negative case; Get the font which most closely matches the specified font with large, 0, negetive font height. |
|
1726 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1727 //! 2. Create a CFbsScreenDevice object. |
|
1728 //! 3. Get font by font specification with height 999999. |
|
1729 //! 4. Check font maximum height in pixels. |
|
1730 //! 5. Get font by font specification with height 0. |
|
1731 //! 6. Check font maximum height in pixels. |
|
1732 //! 7. Get font by font specification with height -1. |
|
1733 //! 8. Check font maximum height in pixels. |
|
1734 //! 9. Release the font. |
|
1735 //! 10.Destroy CFbsScreenDevice object. |
|
1736 //! 11.Disconnect RFbsSession. |
|
1737 //! @SYMTestStatus Implemented |
|
1738 //! @SYMTestPriority High |
|
1739 //! @SYMTestExpectedResults 1. GetNearestFontToDesignHeightInPixels returns KErrNone(0). |
|
1740 //! 2. FontMaxHeight returns expected value. |
|
1741 //! @SYMTestType CIT |
|
1742 |
|
1743 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1744 CREATE_OBJECT RFbsSession fbsSession |
|
1745 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1746 CREATE_OBJECT CFbsFont fbsFont |
|
1747 COMMAND fbsSession Connect |
|
1748 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-NewL_command02 |
|
1749 COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-GetNearestFontToDesignHeightInPixels_command04 |
|
1750 COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-FontMaxHeight_command05 |
|
1751 COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-GetNearestFontToDesignHeightInPixels_command06 |
|
1752 COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-FontMaxHeight_command07 |
|
1753 COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-GetNearestFontToDesignHeightInPixels_command08 |
|
1754 COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-FontMaxHeight_command09 |
|
1755 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-ReleaseFont_command10 |
|
1756 COMMAND fbsScrDev ~ |
|
1757 COMMAND fbsSession Disconnect |
|
1758 END_TEST_BLOCK |
|
1759 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0213 |
|
1760 |
|
1761 |
|
1762 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0214 |
|
1763 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0214 |
|
1764 //! @SYMAPI CFbsDevice::GetNearestFontToDesignHeightInTwips(CFbsFont{ptr}{ref}, const TFontSpec{ref}); |
|
1765 //! @SYMAuthor Forbes Fu |
|
1766 //! @SYMCreationDate 06/02/2009 |
|
1767 //! @SYMTestCaseDesc Get the font which most closely matches TFontSpec(DejaVu Sans Mono, 500). |
|
1768 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1769 //! 2. Create a CFbsScreenDevice object. |
|
1770 //! 3. Get font by font specification. |
|
1771 //! 4. Check font name and height in twips. |
|
1772 //! 5. Release the font. |
|
1773 //! 6. Destroy CFbsScreenDevice object. |
|
1774 //! 7. Disconnect RFbsSession. |
|
1775 //! @SYMTestStatus Implemented |
|
1776 //! @SYMTestPriority High |
|
1777 //! @SYMTestExpectedResults 1. GetNearestFontToDesignHeightInTwips returns KErrNone(0). |
|
1778 //! 2. Both font name and height are expected. |
|
1779 //! @SYMTestType CIT |
|
1780 |
|
1781 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1782 CREATE_OBJECT RFbsSession fbsSession |
|
1783 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1784 CREATE_OBJECT CFbsFont fbsFont |
|
1785 COMMAND fbsSession Connect |
|
1786 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0214-NewL_command02 |
|
1787 COMMAND fbsScrDev GetNearestFontToDesignHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0214-GetNearestFontToDesignHeightInTwips_command04 |
|
1788 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0214-FontSpecInTwips_command05 |
|
1789 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0214-ReleaseFont_command06 |
|
1790 COMMAND fbsScrDev ~ |
|
1791 COMMAND fbsSession Disconnect |
|
1792 END_TEST_BLOCK |
|
1793 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0214 |
|
1794 |
|
1795 |
|
1796 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0215 |
|
1797 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0215 |
|
1798 //! @SYMAPI CFbsDevice::GetNearestFontToDesignHeightInTwips(CFbsFont{ptr}{ref}, const TFontSpec{ref}); |
|
1799 //! @SYMAuthor Forbes Fu |
|
1800 //! @SYMCreationDate 06/02/2009 |
|
1801 //! @SYMTestCaseDesc Negative case; Get the font which most closely matches the font specification with null typeface name. |
|
1802 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1803 //! 2. Create a CFbsScreenDevice object. |
|
1804 //! 3. Get font by font specification with null name. |
|
1805 //! 4. Check font name and font height in twips.. |
|
1806 //! 5. Release the font. |
|
1807 //! 6. Destroy CFbsScreenDevice object. |
|
1808 //! 7. Disconnect RFbsSession. |
|
1809 //! @SYMTestStatus Implemented |
|
1810 //! @SYMTestPriority High |
|
1811 //! @SYMTestExpectedResults 1. GetNearestFontToDesignHeightInTwips returns KErrNone(0). |
|
1812 //! 2. Both font name and height are expected. |
|
1813 //! @SYMTestType CIT |
|
1814 |
|
1815 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1816 CREATE_OBJECT RFbsSession fbsSession |
|
1817 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1818 CREATE_OBJECT CFbsFont fbsFont |
|
1819 COMMAND fbsSession Connect |
|
1820 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0215-NewL_command02 |
|
1821 COMMAND fbsScrDev GetNearestFontToDesignHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0215-GetNearestFontToDesignHeightInTwips_command04 |
|
1822 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0215-FontSpecInTwips_command05 |
|
1823 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0215-ReleaseFont_command06 |
|
1824 COMMAND fbsScrDev ~ |
|
1825 COMMAND fbsSession Disconnect |
|
1826 END_TEST_BLOCK |
|
1827 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0215 |
|
1828 |
|
1829 |
|
1830 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0216 |
|
1831 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0216 |
|
1832 //! @SYMAPI CFbsDevice::GetNearestFontToDesignHeightInTwips(CFbsFont{ptr}{ref}, const TFontSpec{ref}); |
|
1833 //! @SYMAuthor Forbes Fu |
|
1834 //! @SYMCreationDate 06/02/2009 |
|
1835 //! @SYMTestCaseDesc Negative case; Get the font which most closely matches the specified font with large, 0, negetive font height. |
|
1836 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1837 //! 2. Create a CFbsScreenDevice object. |
|
1838 //! 3. Get font by font specification with height 999999. |
|
1839 //! 4. Check font height in twips. |
|
1840 //! 5. Get font by font specification with height 0. |
|
1841 //! 6. Check font height in twips. |
|
1842 //! 7. Get font by font specification with height -1. |
|
1843 //! 8. Check font height in twips. |
|
1844 //! 9. Release the font. |
|
1845 //! 10.Destroy CFbsScreenDevice object. |
|
1846 //! 11.Disconnect RFbsSession. |
|
1847 //! @SYMTestStatus Implemented |
|
1848 //! @SYMTestPriority High |
|
1849 //! @SYMTestExpectedResults 1. GetNearestFontToDesignHeightInTwips returns KErrNone(0). |
|
1850 //! 2. Both font name and height are expected. |
|
1851 //! @SYMTestType CIT |
|
1852 |
|
1853 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1854 CREATE_OBJECT RFbsSession fbsSession |
|
1855 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1856 CREATE_OBJECT CFbsFont fbsFont |
|
1857 COMMAND fbsSession Connect |
|
1858 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-NewL_command02 |
|
1859 COMMAND fbsScrDev GetNearestFontToDesignHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-GetNearestFontToDesignHeightInTwips_command04 |
|
1860 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-FontSpecInTwips_command05 |
|
1861 COMMAND fbsScrDev GetNearestFontToDesignHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-GetNearestFontToDesignHeightInTwips_command06 |
|
1862 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-FontSpecInTwips_command07 |
|
1863 COMMAND fbsScrDev GetNearestFontToDesignHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-GetNearestFontToDesignHeightInTwips_command08 |
|
1864 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-FontSpecInTwips_command09 |
|
1865 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-ReleaseFont_command10 |
|
1866 COMMAND fbsScrDev ~ |
|
1867 COMMAND fbsSession Disconnect |
|
1868 END_TEST_BLOCK |
|
1869 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0216 |
|
1870 |
|
1871 |
|
1872 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0221 |
|
1873 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0221 |
|
1874 //! @SYMAPI CFbsDevice::GetNearestFontToMaxHeightInPixels(CFbsFont{ptr}{ref}, const TFontSpec{ref}); |
|
1875 //! @SYMAuthor Forbes Fu |
|
1876 //! @SYMCreationDate 06/02/2009 |
|
1877 //! @SYMTestCaseDesc Get the font which most closely matches TFontSpec(DejaVu Sans Mono, 0) and maximum height 30. |
|
1878 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1879 //! 2. Create a CFbsScreenDevice object. |
|
1880 //! 3. Get font by font specification. |
|
1881 //! 4. Check font maximum height in pixels. |
|
1882 //! 5. Release the font. |
|
1883 //! 6. Destroy CFbsScreenDevice object. |
|
1884 //! 7. Disconnect RFbsSession.. |
|
1885 //! @SYMTestStatus Implemented |
|
1886 //! @SYMTestPriority High |
|
1887 //! @SYMTestExpectedResults 1. GetNearestFontToMaxHeightInPixels returns KErrNone(0). |
|
1888 //! 2. FontMaxHeight returns expected value. |
|
1889 //! @SYMTestType CIT |
|
1890 |
|
1891 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1892 CREATE_OBJECT RFbsSession fbsSession |
|
1893 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1894 CREATE_OBJECT CFbsFont fbsFont |
|
1895 COMMAND fbsSession Connect |
|
1896 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0221-NewL_command02 |
|
1897 COMMAND fbsScrDev GetNearestFontToMaxHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0221-GetNearestFontToMaxHeightInPixels_command04 |
|
1898 COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0221-FontMaxHeight_command05 |
|
1899 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0221-ReleaseFont_command06 |
|
1900 COMMAND fbsScrDev ~ |
|
1901 COMMAND fbsSession Disconnect |
|
1902 END_TEST_BLOCK |
|
1903 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0221 |
|
1904 |
|
1905 |
|
1906 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0222 |
|
1907 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0222 |
|
1908 //! @SYMAPI CFbsDevice::GetNearestFontToMaxHeightInPixels(CFbsFont{ptr}{ref}, const TFontSpec{ref}); |
|
1909 //! @SYMAuthor Forbes Fu |
|
1910 //! @SYMCreationDate 06/02/2009 |
|
1911 //! @SYMTestCaseDesc Negative case; Get the font which most closely matches TFontSpec(NULL, 0) and maximum height 30. |
|
1912 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1913 //! 2. Create a CFbsScreenDevice object. |
|
1914 //! 3. Get font by font specification with null name. |
|
1915 //! 4. Check font maximum height in pixels. |
|
1916 //! 5. Release the font. |
|
1917 //! 6. Destroy CFbsScreenDevice object. |
|
1918 //! 7. Disconnect RFbsSession. |
|
1919 //! @SYMTestStatus Implemented |
|
1920 //! @SYMTestPriority High |
|
1921 //! @SYMTestExpectedResults 1. GetNearestFontToMaxHeightInPixels returns KErrNone(0). |
|
1922 //! 2. FontMaxHeight returns expected value. |
|
1923 //! @SYMTestType CIT |
|
1924 |
|
1925 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1926 CREATE_OBJECT RFbsSession fbsSession |
|
1927 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1928 CREATE_OBJECT CFbsFont fbsFont |
|
1929 COMMAND fbsSession Connect |
|
1930 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0222-NewL_command02 |
|
1931 COMMAND fbsScrDev GetNearestFontToMaxHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0222-GetNearestFontToMaxHeightInPixels_command04 |
|
1932 COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0222-FontMaxHeight_command05 |
|
1933 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0222-ReleaseFont_command06 |
|
1934 COMMAND fbsScrDev ~ |
|
1935 COMMAND fbsSession Disconnect |
|
1936 END_TEST_BLOCK |
|
1937 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0222 |
|
1938 |
|
1939 |
|
1940 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0223 |
|
1941 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0223 |
|
1942 //! @SYMAPI CFbsDevice::GetNearestFontToMaxHeightInPixels(CFbsFont{ptr}{ref}, const TFontSpec{ref}); |
|
1943 //! @SYMAuthor Forbes Fu |
|
1944 //! @SYMCreationDate 06/02/2009 |
|
1945 //! @SYMTestCaseDesc Negative case; Get the font which most closely matches the specified font with large, 0, negetive maximum height. |
|
1946 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1947 //! 2. Create a CFbsScreenDevice object. |
|
1948 //! 3. Get font by font specification with maximum height 999999. |
|
1949 //! 4. Get font by font specification with maximum height 0. |
|
1950 //! 5. Check font maximum height in pixels. |
|
1951 //! 6. Release the font. |
|
1952 //! 7. Destroy CFbsScreenDevice object. |
|
1953 //! 8. Disconnect RFbsSession. |
|
1954 //! @SYMTestStatus Implemented |
|
1955 //! @SYMTestPriority High |
|
1956 //! @SYMTestExpectedResults 1. GetNearestFontToMaxHeightInPixels returns KErrTooBig(-40), KErrNone(0), |
|
1957 //! 2. FontMaxHeight returns expected value. |
|
1958 //! @SYMTestType CIT |
|
1959 |
|
1960 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1961 CREATE_OBJECT RFbsSession fbsSession |
|
1962 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1963 CREATE_OBJECT CFbsFont fbsFont |
|
1964 COMMAND fbsSession Connect |
|
1965 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-NewL_command02 |
|
1966 COMMAND !Error=-40 fbsScrDev GetNearestFontToMaxHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-GetNearestFontToMaxHeightInPixels_command04 |
|
1967 COMMAND fbsScrDev GetNearestFontToMaxHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-GetNearestFontToMaxHeightInPixels_command06 |
|
1968 COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-FontMaxHeight_command07 |
|
1969 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-ReleaseFont_command08 |
|
1970 COMMAND fbsScrDev ~ |
|
1971 COMMAND fbsSession Disconnect |
|
1972 END_TEST_BLOCK |
|
1973 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0223 |
|
1974 |
|
1975 |
|
1976 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0224 |
|
1977 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0224 |
|
1978 //! @SYMAPI CFbsDevice::GetNearestFontToMaxHeightInTwips(CFbsFont{ptr}{ref}, const TFontSpec{ref}); |
|
1979 //! @SYMAuthor Forbes Fu |
|
1980 //! @SYMCreationDate 06/02/2009 |
|
1981 //! @SYMTestCaseDesc Get the font which most closely matches TFontSpec(DejaVu Sans Mono, 0) and maximum height 500. |
|
1982 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
1983 //! 2. Create a CFbsScreenDevice object. |
|
1984 //! 3. Get font by font specification. |
|
1985 //! 4. Check font name and height in twips. |
|
1986 //! 5. Release the font. |
|
1987 //! 6. Destroy CFbsScreenDevice object. |
|
1988 //! 7. Disconnect RFbsSession. |
|
1989 //! @SYMTestStatus Implemented |
|
1990 //! @SYMTestPriority High |
|
1991 //! @SYMTestExpectedResults 1. GetNearestFontToMaxHeightInTwips returns KErrNone(0). |
|
1992 //! 2. Both font name and height are expected. |
|
1993 //! @SYMTestType CIT |
|
1994 |
|
1995 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
1996 CREATE_OBJECT RFbsSession fbsSession |
|
1997 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
1998 CREATE_OBJECT CFbsFont fbsFont |
|
1999 COMMAND fbsSession Connect |
|
2000 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0224-NewL_command02 |
|
2001 COMMAND fbsScrDev GetNearestFontToMaxHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0224-GetNearestFontToMaxHeightInTwips_command04 |
|
2002 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0224-FontSpecInTwips_command05 |
|
2003 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0224-ReleaseFont_command06 |
|
2004 COMMAND fbsScrDev ~ |
|
2005 COMMAND fbsSession Disconnect |
|
2006 END_TEST_BLOCK |
|
2007 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0224 |
|
2008 |
|
2009 |
|
2010 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0225 |
|
2011 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0225 |
|
2012 //! @SYMAPI CFbsDevice::GetNearestFontToMaxHeightInTwips(CFbsFont{ptr}{ref}, const TFontSpec{ref}); |
|
2013 //! @SYMAuthor Forbes Fu |
|
2014 //! @SYMCreationDate 06/02/2009 |
|
2015 //! @SYMTestCaseDesc Negative case; Get the font which most closely matches TFontSpec(NULL, 500) and maximum height 500. |
|
2016 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
2017 //! 2. Create a CFbsScreenDevice object. |
|
2018 //! 3. Get font by font specification with null name. |
|
2019 //! 4. Check font name and font height in twips.. |
|
2020 //! 5. Release the font. |
|
2021 //! 6. Destroy CFbsScreenDevice object. |
|
2022 //! 7. Disconnect RFbsSession. |
|
2023 //! @SYMTestStatus Implemented |
|
2024 //! @SYMTestPriority High |
|
2025 //! @SYMTestExpectedResults 1. GetNearestFontToMaxHeightInTwips returns KErrNone(0). |
|
2026 //! 2. Both font name and height are expected. |
|
2027 //! @SYMTestType CIT |
|
2028 |
|
2029 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
2030 CREATE_OBJECT RFbsSession fbsSession |
|
2031 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
2032 CREATE_OBJECT CFbsFont fbsFont |
|
2033 COMMAND fbsSession Connect |
|
2034 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0225-NewL_command02 |
|
2035 COMMAND fbsScrDev GetNearestFontToMaxHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0225-GetNearestFontToMaxHeightInTwips_command04 |
|
2036 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0225-FontSpecInTwips_command05 |
|
2037 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0225-ReleaseFont_command06 |
|
2038 COMMAND fbsScrDev ~ |
|
2039 COMMAND fbsSession Disconnect |
|
2040 END_TEST_BLOCK |
|
2041 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0225 |
|
2042 |
|
2043 |
|
2044 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0226 |
|
2045 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0226 |
|
2046 //! @SYMAPI CFbsDevice::GetNearestFontToMaxHeightInTwips(CFbsFont{ptr}{ref}, const TFontSpec{ref}); |
|
2047 //! @SYMAuthor Forbes Fu |
|
2048 //! @SYMCreationDate 06/02/2009 |
|
2049 //! @SYMTestCaseDesc Negative case; Get the font which most closely matches the specified font with large, 0, negetive maximun height. |
|
2050 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
2051 //! 2. Create a CFbsScreenDevice object. |
|
2052 //! 3. Get font by font specification with height 999999. |
|
2053 //! 4. Check font height in twips. |
|
2054 //! 5. Get font by font specification with height 0. |
|
2055 //! 6. Check font height in twips. |
|
2056 //! 7. Get font by font specification with height -1. |
|
2057 //! 8. Check font height in twips. |
|
2058 //! 9. Release the font. |
|
2059 //! 10.Destroy CFbsScreenDevice object. |
|
2060 //! 11.Disconnect RFbsSession. |
|
2061 //! @SYMTestStatus Implemented |
|
2062 //! @SYMTestPriority High |
|
2063 //! @SYMTestExpectedResults 1. GetNearestFontToMaxHeightInTwips returns KErrTooBig(-40), KErrNone(0), KErrNone(0),. |
|
2064 //! 2. Both font name and height are expected.. |
|
2065 //! @SYMTestType CIT |
|
2066 |
|
2067 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
2068 CREATE_OBJECT RFbsSession fbsSession |
|
2069 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
2070 CREATE_OBJECT CFbsFont fbsFont |
|
2071 COMMAND fbsSession Connect |
|
2072 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-NewL_command02 |
|
2073 COMMAND !Error=-40 fbsScrDev GetNearestFontToMaxHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-GetNearestFontToMaxHeightInTwips_command04 |
|
2074 COMMAND fbsScrDev GetNearestFontToMaxHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-GetNearestFontToMaxHeightInTwips_command06 |
|
2075 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-FontSpecInTwips_command07 |
|
2076 COMMAND fbsScrDev GetNearestFontToMaxHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-GetNearestFontToMaxHeightInTwips_command08 |
|
2077 COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-FontSpecInTwips_command09 |
|
2078 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-ReleaseFont_command10 |
|
2079 COMMAND fbsScrDev ~ |
|
2080 COMMAND fbsSession Disconnect |
|
2081 END_TEST_BLOCK |
|
2082 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0226 |
|
2083 |
|
2084 |
|
2085 |
|
2086 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0231 |
|
2087 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0231 |
|
2088 //! @SYMAPI CFbsDevice::FontHeightInPixels(TInt, TInt); |
|
2089 //! @SYMAuthor Forbes Fu |
|
2090 //! @SYMCreationDate 10/02/2009 |
|
2091 //! @SYMTestCaseDesc Get font height in pixels with typeface index 0 and height index 0. |
|
2092 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
2093 //! 2. Create a CFbsScreenDevice object. |
|
2094 //! 3. Get font height of the specified font and check it. |
|
2095 //! 4. Release the font. |
|
2096 //! 5. Destroy CFbsScreenDevice object. |
|
2097 //! 6. Disconnect RFbsSession. |
|
2098 //! @SYMTestStatus Implemented |
|
2099 //! @SYMTestPriority High |
|
2100 //! @SYMTestExpectedResults FontHeightInPixels returns as expected. |
|
2101 //! @SYMTestType CIT |
|
2102 |
|
2103 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
2104 CREATE_OBJECT RFbsSession fbsSession |
|
2105 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
2106 CREATE_OBJECT CFbsFont fbsFont |
|
2107 COMMAND fbsSession Connect |
|
2108 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0231-NewL_command02 |
|
2109 COMMAND fbsScrDev FontHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0231-FontHeightInPixels_command04 |
|
2110 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0231-ReleaseFont_command05 |
|
2111 COMMAND fbsScrDev ~ |
|
2112 COMMAND fbsSession Disconnect |
|
2113 END_TEST_BLOCK |
|
2114 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0231 |
|
2115 |
|
2116 |
|
2117 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0232 |
|
2118 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0232 |
|
2119 //! @SYMAPI CFbsDevice::FontHeightInPixels(TInt, TInt); |
|
2120 //! @SYMAuthor Forbes Fu |
|
2121 //! @SYMCreationDate 10/02/2009 |
|
2122 //! @SYMTestCaseDesc Negative case; Get font height in pixels with large typeface index. |
|
2123 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
2124 //! 2. Create a CFbsScreenDevice object. |
|
2125 //! 3. Get font height with (999, 0). |
|
2126 //! 4. Release the font. |
|
2127 //! 5. Destroy CFbsScreenDevice object. |
|
2128 //! 6. Disconnect RFbsSession. |
|
2129 //! @SYMTestStatus Implemented |
|
2130 //! @SYMTestPriority High |
|
2131 //! @SYMTestExpectedResults FontHeightInPixels returns 0. |
|
2132 //! @SYMTestType CIT |
|
2133 |
|
2134 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
2135 CREATE_OBJECT RFbsSession fbsSession |
|
2136 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
2137 CREATE_OBJECT CFbsFont fbsFont |
|
2138 COMMAND fbsSession Connect |
|
2139 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0232-NewL_command02 |
|
2140 COMMAND fbsScrDev FontHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0232-FontHeightInPixels_command04 |
|
2141 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0232-ReleaseFont_command05 |
|
2142 COMMAND fbsScrDev ~ |
|
2143 COMMAND fbsSession Disconnect |
|
2144 END_TEST_BLOCK |
|
2145 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0232 |
|
2146 |
|
2147 |
|
2148 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0233 |
|
2149 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0233 |
|
2150 //! @SYMAPI CFbsDevice::FontHeightInPixels(TInt, TInt); |
|
2151 //! @SYMAuthor Forbes Fu |
|
2152 //! @SYMCreationDate 10/02/2009 |
|
2153 //! @SYMTestCaseDesc Negative case; Get font height in pixels with large and negative height index. |
|
2154 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
2155 //! 2. Create a CFbsScreenDevice object. |
|
2156 //! 3. Get font height with (0, 999) and check it. |
|
2157 //! 4. Get font height with (0, -1) and check it. |
|
2158 //! 5. Release the font. |
|
2159 //! 6. Destroy CFbsScreenDevice object. |
|
2160 //! 7. Disconnect RFbsSession. |
|
2161 //! @SYMTestStatus Implemented |
|
2162 //! @SYMTestPriority High |
|
2163 //! @SYMTestExpectedResults Two FontHeightInPixels returns as expected. |
|
2164 //! @SYMTestType CIT |
|
2165 |
|
2166 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
2167 CREATE_OBJECT RFbsSession fbsSession |
|
2168 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
2169 CREATE_OBJECT CFbsFont fbsFont |
|
2170 COMMAND fbsSession Connect |
|
2171 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0233-NewL_command02 |
|
2172 COMMAND fbsScrDev FontHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0233-FontHeightInPixels_command04 |
|
2173 COMMAND fbsScrDev FontHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0233-FontHeightInPixels_command05 |
|
2174 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0233-ReleaseFont_command06 |
|
2175 COMMAND fbsScrDev ~ |
|
2176 COMMAND fbsSession Disconnect |
|
2177 END_TEST_BLOCK |
|
2178 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0233 |
|
2179 |
|
2180 |
|
2181 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0234 |
|
2182 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0234 |
|
2183 //! @SYMAPI CFbsDevice::FontHeightInTwips(TInt, TInt); |
|
2184 //! @SYMAuthor Forbes Fu |
|
2185 //! @SYMCreationDate 10/02/2009 |
|
2186 //! @SYMTestCaseDesc Get font height in twips with typeface index 0 and height index 0. |
|
2187 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
2188 //! 2. Create a CFbsScreenDevice object. |
|
2189 //! 3. Get font height of the specified font and check it. |
|
2190 //! 4. Release the font. |
|
2191 //! 5. Destroy CFbsScreenDevice object. |
|
2192 //! 6. Disconnect RFbsSession. |
|
2193 //! @SYMTestStatus Implemented |
|
2194 //! @SYMTestPriority High |
|
2195 //! @SYMTestExpectedResults FontHeightInTwips returns as expected. |
|
2196 //! @SYMTestType CIT |
|
2197 |
|
2198 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
2199 CREATE_OBJECT RFbsSession fbsSession |
|
2200 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
2201 CREATE_OBJECT CFbsFont fbsFont |
|
2202 COMMAND fbsSession Connect |
|
2203 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0234-NewL_command02 |
|
2204 COMMAND fbsScrDev FontHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0234-FontHeightInTwips_command03 |
|
2205 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0234-ReleaseFont_command04 |
|
2206 COMMAND fbsScrDev ~ |
|
2207 COMMAND fbsSession Disconnect |
|
2208 END_TEST_BLOCK |
|
2209 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0234 |
|
2210 |
|
2211 |
|
2212 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0235 |
|
2213 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0235 |
|
2214 //! @SYMAPI CFbsDevice::FontHeightInTwips(TInt, TInt); |
|
2215 //! @SYMAuthor Forbes Fu |
|
2216 //! @SYMCreationDate 10/02/2009 |
|
2217 //! @SYMTestCaseDesc Negative case; Get font height in twips with large typeface index. |
|
2218 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
2219 //! 2. Create a CFbsScreenDevice object. |
|
2220 //! 3. Get font height with (999, 0). |
|
2221 //! 4. Release the font. |
|
2222 //! 5. Destroy CFbsScreenDevice object. |
|
2223 //! 6. Disconnect RFbsSession. |
|
2224 //! @SYMTestStatus Implemented |
|
2225 //! @SYMTestPriority High |
|
2226 //! @SYMTestExpectedResults FontHeightInTwips returns 0. |
|
2227 //! @SYMTestType CIT |
|
2228 |
|
2229 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
2230 CREATE_OBJECT RFbsSession fbsSession |
|
2231 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
2232 CREATE_OBJECT CFbsFont fbsFont |
|
2233 COMMAND fbsSession Connect |
|
2234 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0235-NewL_command02 |
|
2235 COMMAND fbsScrDev FontHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0235-FontHeightInTwips_command04 |
|
2236 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0235-ReleaseFont_command05 |
|
2237 COMMAND fbsScrDev ~ |
|
2238 COMMAND fbsSession Disconnect |
|
2239 END_TEST_BLOCK |
|
2240 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0235 |
|
2241 |
|
2242 |
|
2243 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0236 |
|
2244 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0236 |
|
2245 //! @SYMAPI CFbsDevice::FontHeightInTwips(TInt, TInt); |
|
2246 //! @SYMAuthor Forbes Fu |
|
2247 //! @SYMCreationDate 10/02/2009 |
|
2248 //! @SYMTestCaseDesc Negative case; Get font height in twips with large and negative height index. |
|
2249 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
2250 //! 2. Create a CFbsScreenDevice object. |
|
2251 //! 3. Get font height with (0, 999) and check it. |
|
2252 //! 4. Get font height with (0, -1) and check it. |
|
2253 //! 5. Release the font. |
|
2254 //! 6. Destroy CFbsScreenDevice object. |
|
2255 //! 7. Disconnect RFbsSession. |
|
2256 //! @SYMTestStatus Implemented |
|
2257 //! @SYMTestPriority High |
|
2258 //! @SYMTestExpectedResults Two FontHeightInTwips returns as expected. |
|
2259 //! @SYMTestType CIT |
|
2260 |
|
2261 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
2262 CREATE_OBJECT RFbsSession fbsSession |
|
2263 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
2264 CREATE_OBJECT CFbsFont fbsFont |
|
2265 COMMAND fbsSession Connect |
|
2266 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0236-NewL_command02 |
|
2267 COMMAND fbsScrDev FontHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0236-FontHeightInTwips_command03 |
|
2268 COMMAND fbsScrDev FontHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0236-FontHeightInTwips_command04 |
|
2269 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0236-ReleaseFont_command05 |
|
2270 COMMAND fbsScrDev ~ |
|
2271 COMMAND fbsSession Disconnect |
|
2272 END_TEST_BLOCK |
|
2273 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0236 |
|
2274 |
|
2275 |
|
2276 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0241 |
|
2277 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0241 |
|
2278 //! @SYMAPI CFbsDevice::ReleaseFont(CFont{ptr}); |
|
2279 //! @SYMAuthor Forbes Fu |
|
2280 //! @SYMCreationDate 10/02/2009 |
|
2281 //! @SYMTestCaseDesc Get a font and release the font. |
|
2282 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
2283 //! 2. Create a CFbsScreenDevice object. |
|
2284 //! 3. Get a font. |
|
2285 //! 4. Release the font. |
|
2286 //! 5. Destroy CFbsScreenDevice object. |
|
2287 //! 6. Disconnect RFbsSession. |
|
2288 //! @SYMTestStatus Implemented |
|
2289 //! @SYMTestPriority High |
|
2290 //! @SYMTestExpectedResults ReleaseFont is called without error. |
|
2291 //! @SYMTestType CIT |
|
2292 |
|
2293 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
2294 CREATE_OBJECT RFbsSession fbsSession |
|
2295 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
2296 CREATE_OBJECT CFbsFont font |
|
2297 CREATE_OBJECT TAlgStyle algstyle |
|
2298 COMMAND fbsSession Connect |
|
2299 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0241-NewL_command02 |
|
2300 COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0241-GetNearestFontToDesignHeightInPixels_command03 |
|
2301 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0241-ReleaseFont_command04 |
|
2302 COMMAND algstyle ~ |
|
2303 COMMAND fbsScrDev ~ |
|
2304 COMMAND fbsSession Disconnect |
|
2305 END_TEST_BLOCK |
|
2306 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0241 |
|
2307 |
|
2308 |
|
2309 START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0242 |
|
2310 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0242 |
|
2311 //! @SYMAPI CFbsDevice::ReleaseFont(CFont{ptr}); |
|
2312 //! @SYMAuthor Forbes Fu |
|
2313 //! @SYMCreationDate 10/02/2009 |
|
2314 //! @SYMTestCaseDesc Negative case; Release a null font. |
|
2315 //! @SYMTestActions 1. Create and connect a RFbsSession object. |
|
2316 //! 2. Create a CFbsScreenDevice object. |
|
2317 //! 3. Release the font. |
|
2318 //! 4. Destroy CFbsScreenDevice object. |
|
2319 //! 5. Disconnect RFbsSession. |
|
2320 //! @SYMTestStatus Implemented |
|
2321 //! @SYMTestPriority High |
|
2322 //! @SYMTestExpectedResults ReleaseFont is called without error. |
|
2323 //! @SYMTestType CIT |
|
2324 |
|
2325 START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini |
|
2326 CREATE_OBJECT RFbsSession fbsSession |
|
2327 CREATE_OBJECT CFbsScreenDevice fbsScrDev |
|
2328 CREATE_OBJECT CFbsFont font |
|
2329 CREATE_OBJECT TAlgStyle algstyle |
|
2330 COMMAND fbsSession Connect |
|
2331 COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0242-NewL_command02 |
|
2332 COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0242-ReleaseFont_command03 |
|
2333 COMMAND algstyle ~ |
|
2334 COMMAND fbsScrDev ~ |
|
2335 COMMAND fbsSession Disconnect |
|
2336 END_TEST_BLOCK |
|
2337 END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0242 |
|
2338 |
|