|
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-WSERV-WsScreenDevice-PublicApi |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
|
20 ///////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-WSERV-WsScreenDevice-PublicAPI.script |
|
22 // |
|
23 // Tests all public elements of the CWsScreenDevice |
|
24 // classes as a means of confidence that the APIs work as expected. |
|
25 // |
|
26 // The purpose is to provide a regression test suite of PublishedAll APIs for CWsScreenDevice |
|
27 // The tests are fully automated. |
|
28 ///////////////////////////////////////////////////////////////////// |
|
29 |
|
30 LOAD_SUITE T_GraphicsWservAPI |
|
31 DELAY 1000 |
|
32 |
|
33 //! @file |
|
34 //! @SYMTestSuiteName GRAPHICS-WSERV-WsScreenDevice-PublicAPI |
|
35 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
36 |
|
37 ///////////////////////////////////////////////////////////////////// |
|
38 // CWsScreenDevice class |
|
39 ///////////////////////////////////////////////////////////////////// |
|
40 |
|
41 |
|
42 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0001 |
|
43 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0001 |
|
44 //! @SYMAPI CWsScreenDevice::CWsScreenDevice() |
|
45 //! @SYMAuthor Ray Liang |
|
46 //! @SYMCreationDate 11/23/2007 |
|
47 //! @SYMTestCaseDesc create a CWsScreenDevice object by C++ default constructor |
|
48 //! @SYMTestActions 1. Construct a CWsScreenDevice |
|
49 //! @SYMTestStatus Implemented |
|
50 //! @SYMTestPriority Low |
|
51 //! @SYMTestExpectedResults CWsScreenDevice was created without causing panic. |
|
52 //! @SYMTestType CIT |
|
53 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
54 CREATE_OBJECT CWsScreenDevice scrdev |
|
55 COMMAND scrdev new |
|
56 END_TEST_BLOCK |
|
57 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0001 |
|
58 |
|
59 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0002 |
|
60 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0002 |
|
61 //! @SYMAPI CWsScreenDevice::CWsScreenDevice(RWsSession{ref}) |
|
62 //! @SYMAuthor Ray Liang |
|
63 //! @SYMCreationDate 11/23/2007 |
|
64 //! @SYMTestCaseDesc Create a CWsScreenDevice attached to a RWsSession and destruct it after closing RWsSession |
|
65 //! @SYMTestActions 1. Create and connect a RWsSession |
|
66 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
67 //! 3. Close the RWsSession object(There could be a resource leak as the CWsScreenDevice is not deleted before close the RWsSession) |
|
68 //! @SYMTestStatus Implemented |
|
69 //! @SYMTestPriority Critical |
|
70 //! @SYMTestExpectedResults CWsScreenDevice was created without causing panic. |
|
71 //! @SYMTestType CIT |
|
72 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
73 CREATE_OBJECT RWsSession ws |
|
74 CREATE_OBJECT CWsScreenDevice scrdev |
|
75 COMMAND ws new |
|
76 COMMAND ws Connect |
|
77 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0002-0001-new_command03 |
|
78 COMMAND ws Close |
|
79 END_TEST_BLOCK |
|
80 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0002 |
|
81 |
|
82 |
|
83 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0003 |
|
84 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0003 |
|
85 //! @SYMAPI CWsScreenDevice::~CWsScreenDevice() |
|
86 //! @SYMAuthor Ray Liang |
|
87 //! @SYMCreationDate 11/23/2007 |
|
88 //! @SYMTestCaseDesc Create a CWsScreenDevice attached to a RWsSession and destruct it before closing RWsSession |
|
89 //! @SYMTestActions 1. Create and connect a RWsSession |
|
90 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
91 //! 3. Destruct the CWsScreenDevice object |
|
92 //! 4. Close the RWsSession object |
|
93 //! @SYMTestStatus Implemented |
|
94 //! @SYMTestPriority High |
|
95 //! @SYMTestExpectedResults CWsScreenDevice was destructed without causing panic. |
|
96 //! @SYMTestType CIT |
|
97 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
98 CREATE_OBJECT RWsSession ws |
|
99 CREATE_OBJECT CWsScreenDevice scrdev |
|
100 COMMAND ws new |
|
101 COMMAND ws Connect |
|
102 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0003-0001-new_command03 |
|
103 COMMAND scrdev ~ |
|
104 COMMAND ws Close |
|
105 END_TEST_BLOCK |
|
106 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0003 |
|
107 |
|
108 |
|
109 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0004 |
|
110 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0004 |
|
111 //! @SYMAPI CWsScreenDevice::Construct() |
|
112 //! @SYMAuthor Ray Liang |
|
113 //! @SYMCreationDate 11/23/2007 |
|
114 //! @SYMTestCaseDesc Create a CWsScreenDevice attached to a RWsSession and complete the construction |
|
115 //! @SYMTestActions 1. Create and connect a RWsSession |
|
116 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
117 //! 3. Complete the construction |
|
118 //! 4. Destruct the CWsScreenDevice object |
|
119 //! 5. Close the RWsSession object |
|
120 //! @SYMTestStatus Implemented |
|
121 //! @SYMTestPriority Critical |
|
122 //! @SYMTestExpectedResults No panic and returns KErrNone |
|
123 //! @SYMTestType CIT |
|
124 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
125 CREATE_OBJECT RWsSession ws |
|
126 CREATE_OBJECT CWsScreenDevice scrdev |
|
127 COMMAND ws new |
|
128 COMMAND ws Connect |
|
129 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0004-0001-new_command03 |
|
130 COMMAND scrdev Construct |
|
131 COMMAND scrdev ~ |
|
132 COMMAND ws Close |
|
133 END_TEST_BLOCK |
|
134 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0004 |
|
135 |
|
136 |
|
137 |
|
138 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0005 |
|
139 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0005 |
|
140 //! @SYMAPI CWsScreenDevice::Construct(TInt) |
|
141 //! @SYMAuthor Ray Liang |
|
142 //! @SYMCreationDate 11/23/2007 |
|
143 //! @SYMTestCaseDesc Create a CWsScreenDevice attached to a RWsSession and complete the construction, specify the screen on which the application will start. |
|
144 //! @SYMTestActions 1. Create and connect a RWsSession |
|
145 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
146 //! 3. Complete the construction |
|
147 //! 4. Destruct the CWsScreenDevice object |
|
148 //! 5. Close the RWsSession object |
|
149 //! @SYMTestStatus Implemented |
|
150 //! @SYMTestPriority High |
|
151 //! @SYMTestExpectedResults No panic and returns KErrNone |
|
152 //! @SYMTestType CIT |
|
153 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
154 CREATE_OBJECT RWsSession ws |
|
155 CREATE_OBJECT CWsScreenDevice scrdev |
|
156 COMMAND ws new |
|
157 COMMAND ws Connect |
|
158 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0005-0001-new_command03 |
|
159 COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0005-0001-Construct_command04 |
|
160 COMMAND scrdev ~ |
|
161 COMMAND ws Close |
|
162 END_TEST_BLOCK |
|
163 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0005 |
|
164 |
|
165 |
|
166 |
|
167 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0006 |
|
168 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0006 |
|
169 //! @SYMAPI CWsScreenDevice::DisplayMode() |
|
170 //! @SYMAuthor Ray Liang |
|
171 //! @SYMCreationDate 11/23/2007 |
|
172 //! @SYMTestCaseDesc Gets the device's display mode. |
|
173 //! @SYMTestActions 1. Create and connect a RWsSession |
|
174 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
175 //! 3. Complete the construction |
|
176 //! 4. Get the screen's display mode |
|
177 //! 5. Destruct the CWsScreenDevice object |
|
178 //! 6. Close the RWsSession object |
|
179 //! @SYMTestStatus Implemented |
|
180 //! @SYMTestPriority Critical |
|
181 //! @SYMTestExpectedResults No panic and returns the default display mode as defined in the environment file |
|
182 //! @SYMTestType CIT |
|
183 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
184 CREATE_OBJECT RWsSession ws |
|
185 CREATE_OBJECT CWsScreenDevice scrdev |
|
186 COMMAND ws new |
|
187 COMMAND ws Connect |
|
188 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0006-0001-new_command03 |
|
189 COMMAND scrdev Construct |
|
190 COMMAND scrdev DisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0006-0001-DisplayMode_command05 |
|
191 COMMAND scrdev ~ |
|
192 COMMAND ws Close |
|
193 END_TEST_BLOCK |
|
194 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0006 |
|
195 |
|
196 |
|
197 |
|
198 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0010 |
|
199 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0010 |
|
200 //! @SYMAPI CWsScreenDevice::PointerRect() |
|
201 //! @SYMAuthor Ray Liang |
|
202 //! @SYMCreationDate 11/23/2007 |
|
203 //! @SYMTestCaseDesc Gets the active area for the pointing device |
|
204 //! @SYMTestActions 1. Create and connect a RWsSession |
|
205 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
206 //! 3. Complete the construction |
|
207 //! 4. Gets the active area for the pointing device using PointerRect() |
|
208 //! 5. Destruct the CWsScreenDevice object |
|
209 //! 6. Close the RWsSession object |
|
210 //! @SYMTestStatus Implemented |
|
211 //! @SYMTestPriority High |
|
212 //! @SYMTestExpectedResults No panic and the returned active area is as expected |
|
213 //! @SYMTestType CIT |
|
214 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
215 CREATE_OBJECT RWsSession ws |
|
216 CREATE_OBJECT CWsScreenDevice scrdev |
|
217 COMMAND ws new |
|
218 COMMAND ws Connect |
|
219 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0010-0001-new_command03 |
|
220 COMMAND scrdev Construct |
|
221 COMMAND scrdev PointerRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0010-0001-PointerRect_command05 |
|
222 COMMAND scrdev ~ |
|
223 COMMAND ws Close |
|
224 END_TEST_BLOCK |
|
225 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0010 |
|
226 |
|
227 |
|
228 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0011 |
|
229 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0011 |
|
230 //! @SYMAPI CWsScreenDevice::CreateContext(CGraphicsContext{ptr}{ref}) |
|
231 //! @SYMAuthor Ray Liang |
|
232 //! @SYMCreationDate 11/23/2007 |
|
233 //! @SYMTestCaseDesc Creates a graphics context for this device, and set context's background color to TRgb(255,0,0) |
|
234 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
235 //! 1.1 New and connect a RWsSession |
|
236 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
237 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
238 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
239 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
240 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,0,0) |
|
241 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
242 //! 1.7 Activate the CWindowGc to the RWindow |
|
243 //! 2.Use RWindow::BeginRedraw() to start a redraw cycle |
|
244 //! 3.RWindow::EndRedraw() |
|
245 //! 4.check some pixels is drawn with the pen color TRgb(255,0,0) |
|
246 //! 5.Deactive RWindow, destruct and close all objects used |
|
247 //! @SYMTestStatus Implemented |
|
248 //! @SYMTestPriority High |
|
249 //! @SYMTestExpectedResults 1. CreateContext() method returns KErrNone and creates a CWindowGc object |
|
250 //! 2. the drawing result of testaction 1.5 |
|
251 //! 2.1 the pixels (19,10) is drawn with the pen color TRgb(255,0,0) |
|
252 //! 2.2 the pixels (50,30) is drawn with the pen color TRgb(255,0,0) |
|
253 //! 2.3 the pixels (20,29) is drawn with the pen color TRgb(255,0,0) |
|
254 //! 2.4 the pixels (10,50) is drawn with the pen color TRgb(255,0,0) |
|
255 //! @SYMTestType CIT |
|
256 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
257 CREATE_OBJECT RWsSession ws |
|
258 CREATE_OBJECT CWsScreenDevice scrdev |
|
259 CREATE_OBJECT CWindowGc wgc |
|
260 CREATE_OBJECT RWindowGroup wingrp |
|
261 CREATE_OBJECT RWindow win |
|
262 COMMAND ws new |
|
263 COMMAND ws Connect |
|
264 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-new_command03 |
|
265 COMMAND scrdev Construct |
|
266 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-CreateContext_command05 |
|
267 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-new_command06 |
|
268 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-Construct_command07 |
|
269 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-new_command08 |
|
270 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-Construct_command09 |
|
271 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-SetRequiredDisplayMode_command10 |
|
272 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-SetBackgroundColor_command11 |
|
273 COMMAND win Activate |
|
274 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-SetAutoFlush_command13 |
|
275 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-Activate_command14 |
|
276 COMMAND win BeginRedraw |
|
277 COMMAND win EndRedraw |
|
278 COMMAND scrdev checkPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-checkPixels_command17 |
|
279 COMMAND wgc Deactivate |
|
280 COMMAND win Close |
|
281 COMMAND wingrp Close |
|
282 COMMAND wgc ~ |
|
283 COMMAND scrdev ~ |
|
284 COMMAND ws Close |
|
285 END_TEST_BLOCK |
|
286 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0011 |
|
287 |
|
288 |
|
289 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0012 |
|
290 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0012 |
|
291 //! @SYMAPI CWsScreenDevice::CreateContext(CWindowGc{ptr}{ref}) |
|
292 //! @SYMAuthor Ray Liang |
|
293 //! @SYMCreationDate 11/23/2007 |
|
294 //! @SYMTestCaseDesc Creates a graphics context for this device, and set context's background color to TRgb(255,0,0) |
|
295 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
296 //! 1.1 New and connect a RWsSession |
|
297 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
298 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
299 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
300 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
301 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(0,255,0) |
|
302 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
303 //! 1.7 Activate the CWindowGc to the RWindow |
|
304 //! 2.Use RWindow::BeginRedraw() to start a redraw cycle |
|
305 //! 3.RWindow::EndRedraw() |
|
306 //! 4.check some pixels is drawn with the pen color TRgb(0,255,0) |
|
307 //! 5.Deactive RWindow, destruct and close all objects used |
|
308 //! @SYMTestStatus Implemented |
|
309 //! @SYMTestPriority High |
|
310 //! @SYMTestExpectedResults 1. CreateContext() method returns KErrNone and creates a CWindowGc object |
|
311 //! 2. the drawing result of testaction 1.5 |
|
312 //! 2.1 the pixels (19,10) is drawn with the pen color TRgb(0,255,0) |
|
313 //! 2.2 the pixels (50,30) is drawn with the pen color TRgb(0,255,0) |
|
314 //! 2.3 the pixels (20,29) is drawn with the pen color TRgb(0,255,0) |
|
315 //! 2.4 the pixels (10,50) is drawn with the pen color TRgb(0,255,0) |
|
316 //! @SYMTestType CIT |
|
317 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
318 CREATE_OBJECT RWsSession ws |
|
319 CREATE_OBJECT CWsScreenDevice scrdev |
|
320 CREATE_OBJECT CWindowGc wgc |
|
321 CREATE_OBJECT RWindowGroup wingrp |
|
322 CREATE_OBJECT RWindow win |
|
323 COMMAND ws new |
|
324 COMMAND ws Connect |
|
325 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-new_command03 |
|
326 COMMAND scrdev Construct |
|
327 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-CreateContext_command05 |
|
328 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-new_command06 |
|
329 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-Construct_command07 |
|
330 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-new_command08 |
|
331 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-Construct_command09 |
|
332 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-SetRequiredDisplayMode_command10 |
|
333 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-SetBackgroundColor_command11 |
|
334 COMMAND win Activate |
|
335 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-SetAutoFlush_command13 |
|
336 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-Activate_command14 |
|
337 COMMAND win BeginRedraw |
|
338 COMMAND win EndRedraw |
|
339 COMMAND scrdev checkPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-checkPixels_command17 |
|
340 COMMAND wgc Deactivate |
|
341 COMMAND win Close |
|
342 COMMAND wingrp Close |
|
343 COMMAND wgc ~ |
|
344 COMMAND scrdev ~ |
|
345 COMMAND ws Close |
|
346 END_TEST_BLOCK |
|
347 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0012 |
|
348 |
|
349 |
|
350 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0013 |
|
351 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0013 |
|
352 //! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInTwips(CFont{ptr}{ref}, const TFontSpec{ref}) |
|
353 //! @SYMAuthor Ray Liang |
|
354 //! @SYMCreationDate 11/23/2007 |
|
355 //! @SYMTestCaseDesc Gets the nearest font in twips to that specified |
|
356 //! @SYMTestActions 1. Create and connect a RWsSession |
|
357 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
358 //! 3. Complete the construction |
|
359 //! 4. Gets the nearest font matches the design height in twips |
|
360 //! 5. Check the returned font is expected |
|
361 //! 6. Destruct the CWsScreenDevice object |
|
362 //! 7. Close the RWsSession object |
|
363 //! @SYMTestStatus Implemented |
|
364 //! @SYMTestPriority High |
|
365 //! @SYMTestExpectedResults No panic and the returned device font is as expected |
|
366 //! @SYMTestType CIT |
|
367 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
368 CREATE_OBJECT RWsSession ws |
|
369 CREATE_OBJECT CWsScreenDevice scrdev |
|
370 CREATE_OBJECT CFbsFont font |
|
371 COMMAND ws new |
|
372 COMMAND ws Connect |
|
373 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0013-0001-new_command03 |
|
374 COMMAND scrdev Construct |
|
375 COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0013-0001-GetNearestFontToDesignHeightInTwips_command05 |
|
376 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0013-0001-FontSpecInTwips_command06 |
|
377 COMMAND scrdev ~ |
|
378 COMMAND ws Close |
|
379 END_TEST_BLOCK |
|
380 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0013 |
|
381 |
|
382 |
|
383 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0014 |
|
384 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0014 |
|
385 //! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInTwips(CFont{ptr}{ref}, const TFontSpec{ref}, TInt) |
|
386 //! @SYMAuthor Ray Liang |
|
387 //! @SYMCreationDate 11/23/2007 |
|
388 //! @SYMTestCaseDesc Gets the nearest font in twips to that specified |
|
389 //! @SYMTestActions 1. Create and connect a RWsSession |
|
390 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
391 //! 3. Complete the construction |
|
392 //! 4. Gets the nearest font matches the max height in twips |
|
393 //! 5. Check the returned font is expected |
|
394 //! 6. Destruct the CWsScreenDevice object |
|
395 //! 7. Close the RWsSession object |
|
396 //! @SYMTestStatus Implemented |
|
397 //! @SYMTestPriority High |
|
398 //! @SYMTestExpectedResults No panic and the returned device font is as expected |
|
399 //! @SYMTestType CIT |
|
400 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
401 CREATE_OBJECT RWsSession ws |
|
402 CREATE_OBJECT CWsScreenDevice scrdev |
|
403 CREATE_OBJECT CFbsFont font |
|
404 COMMAND ws new |
|
405 COMMAND ws Connect |
|
406 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0014-0001-new_command03 |
|
407 COMMAND scrdev Construct |
|
408 COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0014-0001-GetNearestFontToMaxHeightInTwips_command05 |
|
409 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0014-0001-FontSpecInTwips_command06 |
|
410 COMMAND scrdev ~ |
|
411 COMMAND ws Close |
|
412 END_TEST_BLOCK |
|
413 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0014 |
|
414 |
|
415 |
|
416 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0015 |
|
417 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0015 |
|
418 //! @SYMAPI CWsScreenDevice::NumTypefaces() |
|
419 //! @SYMAuthor Ray Liang |
|
420 //! @SYMCreationDate 11/23/2007 |
|
421 //! @SYMTestCaseDesc Gets the number of typefaces supported by the screen device |
|
422 //! @SYMTestActions 1. Create and connect a RWsSession |
|
423 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
424 //! 3. Complete the construction |
|
425 //! 4. Gets the number of typefaces supported by the screen device using NumTypefaces() |
|
426 //! 5. Destruct the CWsScreenDevice object |
|
427 //! 6. Close the RWsSession object |
|
428 //! @SYMTestStatus Implemented |
|
429 //! @SYMTestPriority High |
|
430 //! @SYMTestExpectedResults No panic and the returned number is as expected |
|
431 //! @SYMTestType CIT |
|
432 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
433 CREATE_OBJECT RWsSession ws |
|
434 CREATE_OBJECT CWsScreenDevice scrdev |
|
435 CREATE_OBJECT CFbsFont font |
|
436 COMMAND ws new |
|
437 COMMAND ws Connect |
|
438 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0015-0001-new_command03 |
|
439 COMMAND scrdev Construct |
|
440 COMMAND scrdev NumTypefaces GRAPHICS-WSERV-WsScreenDevice-PublicApi-0015-0001-NumTypefaces_command05 |
|
441 COMMAND scrdev ~ |
|
442 COMMAND ws Close |
|
443 END_TEST_BLOCK |
|
444 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0015 |
|
445 |
|
446 |
|
447 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0016 |
|
448 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0016 |
|
449 //! @SYMAPI CWsScreenDevice::TypefaceSupport(TTypefaceSupport{ref}, TInt) |
|
450 //! @SYMAuthor Ray Liang |
|
451 //! @SYMCreationDate 11/23/2007 |
|
452 //! @SYMTestCaseDesc Gets typeface information for a particular typeface index number |
|
453 //! @SYMTestActions 1. Create and connect a RWsSession |
|
454 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
455 //! 3. Complete the construction |
|
456 //! 4. Gets typeface information for a particular typeface index number |
|
457 //! 5. Check the returned typeface information is expected |
|
458 //! 6. Destruct the CWsScreenDevice object |
|
459 //! 7. Close the RWsSession object |
|
460 //! @SYMTestStatus Implemented |
|
461 //! @SYMTestPriority High |
|
462 //! @SYMTestExpectedResults No panic and the returned typeface information is as expected |
|
463 //! @SYMTestType CIT |
|
464 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
465 CREATE_OBJECT RWsSession ws |
|
466 CREATE_OBJECT CWsScreenDevice scrdev |
|
467 COMMAND ws new |
|
468 COMMAND ws Connect |
|
469 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0016-0001-new_command03 |
|
470 COMMAND scrdev Construct |
|
471 COMMAND scrdev TypefaceSupport GRAPHICS-WSERV-WsScreenDevice-PublicApi-0016-0001-TypefaceSupport_command05 |
|
472 COMMAND scrdev ~ |
|
473 COMMAND ws Close |
|
474 END_TEST_BLOCK |
|
475 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0016 |
|
476 |
|
477 |
|
478 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0017 |
|
479 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0017 |
|
480 //! @SYMAPI CWsScreenDevice::TypefaceSupport(TTypefaceSupport{ref}, TInt) |
|
481 //! @SYMAuthor Ray Liang |
|
482 //! @SYMCreationDate 11/23/2007 |
|
483 //! @SYMTestCaseDesc Negative test, gets typeface information for a particular typeface index number, input 100 as aTypefaceIndex. |
|
484 //! @SYMTestActions 1. Create and connect a RWsSession |
|
485 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
486 //! 3. Complete the construction |
|
487 //! 4. Gets typeface information for a particular typeface index number |
|
488 //! 5. Destruct the CWsScreenDevice object |
|
489 //! 6. Close the RWsSession object |
|
490 //! @SYMTestStatus Implemented |
|
491 //! @SYMTestPriority High |
|
492 //! @SYMTestExpectedResults No panic |
|
493 //! @SYMTestType CIT |
|
494 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
495 CREATE_OBJECT RWsSession ws |
|
496 CREATE_OBJECT CWsScreenDevice scrdev |
|
497 CREATE_OBJECT CFbsFont font |
|
498 COMMAND ws new |
|
499 COMMAND ws Connect |
|
500 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0017-0001-new_command03 |
|
501 COMMAND scrdev Construct |
|
502 COMMAND scrdev TypefaceSupport GRAPHICS-WSERV-WsScreenDevice-PublicApi-0017-0001-TypefaceSupport_command05 |
|
503 COMMAND scrdev ~ |
|
504 COMMAND ws Close |
|
505 END_TEST_BLOCK |
|
506 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0017 |
|
507 |
|
508 |
|
509 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0018 |
|
510 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0018 |
|
511 //! @SYMAPI CWsScreenDevice::FontHeightInTwips(TInt, TInt) |
|
512 //! @SYMAuthor Ray Liang |
|
513 //! @SYMCreationDate 11/23/2007 |
|
514 //! @SYMTestCaseDesc Gets the height in twips of the specified font |
|
515 //! @SYMTestActions 1. Create and connect a RWsSession |
|
516 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
517 //! 3. Complete the construction |
|
518 //! 4. Gets the height in twips of the specified font |
|
519 //! 5. Destruct the CWsScreenDevice object |
|
520 //! 6. Close the RWsSession object |
|
521 //! @SYMTestStatus Implemented |
|
522 //! @SYMTestPriority High |
|
523 //! @SYMTestExpectedResults No panic and the returned font height is as expected |
|
524 //! @SYMTestType CIT |
|
525 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
526 CREATE_OBJECT RWsSession ws |
|
527 CREATE_OBJECT CWsScreenDevice scrdev |
|
528 COMMAND ws new |
|
529 COMMAND ws Connect |
|
530 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0018-0001-new_command03 |
|
531 COMMAND scrdev Construct |
|
532 COMMAND scrdev FontHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0018-0001-FontHeightInTwips_command05 |
|
533 COMMAND scrdev ~ |
|
534 COMMAND ws Close |
|
535 END_TEST_BLOCK |
|
536 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0018 |
|
537 |
|
538 |
|
539 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0019 |
|
540 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0019 |
|
541 //! @SYMAPI CWsScreenDevice::FontHeightInTwips(TInt, TInt) |
|
542 //! @SYMAuthor Ray Liang |
|
543 //! @SYMCreationDate 11/23/2007 |
|
544 //! @SYMTestCaseDesc Negative test, gets the height in twips of the specified font, input 100 as aTypefaceIndex. |
|
545 //! @SYMTestActions 1. Create and connect a RWsSession |
|
546 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
547 //! 3. Complete the construction |
|
548 //! 4. Gets the height in twips of the specified font using FontHeightInTwips() |
|
549 //! 5. Destruct the CWsScreenDevice object |
|
550 //! 6. Close the RWsSession object |
|
551 //! @SYMTestStatus Implemented |
|
552 //! @SYMTestPriority High |
|
553 //! @SYMTestExpectedResults No panic and the returns 0 |
|
554 //! @SYMTestType CIT |
|
555 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
556 CREATE_OBJECT RWsSession ws |
|
557 CREATE_OBJECT CWsScreenDevice scrdev |
|
558 COMMAND ws new |
|
559 COMMAND ws Connect |
|
560 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0019-0001-new_command03 |
|
561 COMMAND scrdev Construct |
|
562 COMMAND scrdev FontHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0019-0001-FontHeightInTwips_command05 |
|
563 COMMAND scrdev ~ |
|
564 COMMAND ws Close |
|
565 END_TEST_BLOCK |
|
566 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0019 |
|
567 |
|
568 |
|
569 |
|
570 |
|
571 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0020 |
|
572 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0020 |
|
573 //! @SYMAPI CWsScreenDevice::SizeInPixels() |
|
574 //! @SYMAuthor Ray Liang |
|
575 //! @SYMCreationDate 11/23/2007 |
|
576 //! @SYMTestCaseDesc Create a CWsScreenDevice attached to a RWsSession and complete the construction, gets the size of the screen device area in pixels. |
|
577 //! @SYMTestActions 1. Create and connect a RWsSession |
|
578 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
579 //! 3. Complete the construction |
|
580 //! 4. Get the screen's size in pixels |
|
581 //! 5. Destruct the CWsScreenDevice object |
|
582 //! 6. Close the RWsSession object |
|
583 //! @SYMTestStatus Implemented |
|
584 //! @SYMTestPriority Critical |
|
585 //! @SYMTestExpectedResults No panic and the returned screen sizes in pixels and twips are as expected |
|
586 //! @SYMTestType CIT |
|
587 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
588 CREATE_OBJECT RWsSession ws |
|
589 CREATE_OBJECT CWsScreenDevice scrdev |
|
590 COMMAND ws new |
|
591 COMMAND ws Connect |
|
592 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0020-0001-new_command03 |
|
593 COMMAND scrdev Construct |
|
594 COMMAND scrdev SizeInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0020-0001-SizeInPixels_command05 |
|
595 COMMAND scrdev ~ |
|
596 COMMAND ws Close |
|
597 END_TEST_BLOCK |
|
598 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0020 |
|
599 |
|
600 |
|
601 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0021 |
|
602 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0021 |
|
603 //! @SYMAPI CWsScreenDevice::SizeInTwips() |
|
604 //! @SYMAuthor Ray Liang |
|
605 //! @SYMCreationDate 11/23/2007 |
|
606 //! @SYMTestCaseDesc Gets the size of the screen device area in twips |
|
607 //! @SYMTestActions 1. Create and connect a RWsSession |
|
608 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
609 //! 3. Complete the construction |
|
610 //! 4. Get the screen's size in twips |
|
611 //! 5. Destruct the CWsScreenDevice object |
|
612 //! 6. Close the RWsSession object |
|
613 //! @SYMTestStatus Implemented |
|
614 //! @SYMTestPriority Critical |
|
615 //! @SYMTestExpectedResults No panic and the returned screen sizes in twips and twips are as expected |
|
616 //! @SYMTestType CIT |
|
617 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
618 CREATE_OBJECT RWsSession ws |
|
619 CREATE_OBJECT CWsScreenDevice scrdev |
|
620 COMMAND ws new |
|
621 COMMAND ws Connect |
|
622 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0021-0001-new_command03 |
|
623 COMMAND scrdev Construct |
|
624 COMMAND scrdev SizeInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0021-0001-SizeInTwips_command05 |
|
625 COMMAND scrdev ~ |
|
626 COMMAND ws Close |
|
627 END_TEST_BLOCK |
|
628 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0021 |
|
629 |
|
630 |
|
631 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0022 |
|
632 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0022 |
|
633 //! @SYMAPI CWsScreenDevice::HorizontalTwipsToPixels(TInt) |
|
634 //! @SYMAuthor Ray Liang |
|
635 //! @SYMCreationDate 11/23/2007 |
|
636 //! @SYMTestCaseDesc Translates a horizontal dimension of a screen device in twips into pixels |
|
637 //! @SYMTestActions 1. Create and connect a RWsSession |
|
638 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
639 //! 3. Complete the construction |
|
640 //! 4. Translates a horizontal dimension twips into pixels |
|
641 //! 5. Destruct the CWsScreenDevice object |
|
642 //! 6. Close the RWsSession object |
|
643 //! @SYMTestStatus Implemented |
|
644 //! @SYMTestPriority Critical |
|
645 //! @SYMTestExpectedResults No panic and the returned pixels are as expected |
|
646 //! @SYMTestType CIT |
|
647 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
648 CREATE_OBJECT RWsSession ws |
|
649 CREATE_OBJECT CWsScreenDevice scrdev |
|
650 COMMAND ws new |
|
651 COMMAND ws Connect |
|
652 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0022-0001-new_command03 |
|
653 COMMAND scrdev Construct |
|
654 COMMAND scrdev HorizontalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0022-0001-HorizontalTwipsToPixels_command05 |
|
655 COMMAND scrdev ~ |
|
656 COMMAND ws Close |
|
657 END_TEST_BLOCK |
|
658 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0022 |
|
659 |
|
660 |
|
661 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0023 |
|
662 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0023 |
|
663 //! @SYMAPI CWsScreenDevice::VerticalTwipsToPixels(TInt) |
|
664 //! @SYMAuthor Ray Liang |
|
665 //! @SYMCreationDate 11/23/2007 |
|
666 //! @SYMTestCaseDesc Translates a vertical dimension of a screen device in twips into pixels |
|
667 //! @SYMTestActions 1. Create and connect a RWsSession |
|
668 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
669 //! 3. Complete the construction |
|
670 //! 4. Translates a vertical dimension twips into pixels |
|
671 //! 5. Destruct the CWsScreenDevice object |
|
672 //! 6. Close the RWsSession object |
|
673 //! @SYMTestStatus Implemented |
|
674 //! @SYMTestPriority Critical |
|
675 //! @SYMTestExpectedResults No panic and the returned pixels are as expected |
|
676 //! @SYMTestType CIT |
|
677 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
678 CREATE_OBJECT RWsSession ws |
|
679 CREATE_OBJECT CWsScreenDevice scrdev |
|
680 COMMAND ws new |
|
681 COMMAND ws Connect |
|
682 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0023-0001-new_command03 |
|
683 COMMAND scrdev Construct |
|
684 COMMAND scrdev VerticalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0023-0001-VerticalTwipsToPixels_command05 |
|
685 COMMAND scrdev ~ |
|
686 COMMAND ws Close |
|
687 END_TEST_BLOCK |
|
688 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0023 |
|
689 |
|
690 |
|
691 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0024 |
|
692 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0024 |
|
693 //! @SYMAPI CWsScreenDevice::HorizontalPixelsToTwips(TInt) |
|
694 //! @SYMAuthor Ray Liang |
|
695 //! @SYMCreationDate 11/23/2007 |
|
696 //! @SYMTestCaseDesc Translates a horizontal dimension of a screen device in pixels into twips |
|
697 //! @SYMTestActions 1. Create and connect a RWsSession |
|
698 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
699 //! 3. Complete the construction |
|
700 //! 4. Translates a horizontal dimension pixels into twips |
|
701 //! 5. Destruct the CWsScreenDevice object |
|
702 //! 6. Close the RWsSession object |
|
703 //! @SYMTestStatus Implemented |
|
704 //! @SYMTestPriority Critical |
|
705 //! @SYMTestExpectedResults No panic and the returned twips are as expected |
|
706 //! @SYMTestType CIT |
|
707 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
708 CREATE_OBJECT RWsSession ws |
|
709 CREATE_OBJECT CWsScreenDevice scrdev |
|
710 COMMAND ws new |
|
711 COMMAND ws Connect |
|
712 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0024-0001-new_command03 |
|
713 COMMAND scrdev Construct |
|
714 COMMAND scrdev HorizontalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0024-0001-HorizontalPixelsToTwips_command05 |
|
715 COMMAND scrdev ~ |
|
716 COMMAND ws Close |
|
717 END_TEST_BLOCK |
|
718 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0024 |
|
719 |
|
720 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0025 |
|
721 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0025 |
|
722 //! @SYMAPI CWsScreenDevice::VerticalPixelsToTwips(TInt) |
|
723 //! @SYMAuthor Ray Liang |
|
724 //! @SYMCreationDate 11/23/2007 |
|
725 //! @SYMTestCaseDesc Translates a vertical dimension of a screen device in pixels into twips |
|
726 //! @SYMTestActions 1. Create and connect a RWsSession |
|
727 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
728 //! 3. Complete the construction |
|
729 //! 4. Translates a vertical dimension pixels into twips |
|
730 //! 5. Destruct the CWsScreenDevice object |
|
731 //! 6. Close the RWsSession object |
|
732 //! @SYMTestStatus Implemented |
|
733 //! @SYMTestPriority Critical |
|
734 //! @SYMTestExpectedResults No panic and the returned twips are as expected |
|
735 //! @SYMTestType CIT |
|
736 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
737 CREATE_OBJECT RWsSession ws |
|
738 CREATE_OBJECT CWsScreenDevice scrdev |
|
739 COMMAND ws new |
|
740 COMMAND ws Connect |
|
741 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0025-0001-new_command03 |
|
742 COMMAND scrdev Construct |
|
743 COMMAND scrdev VerticalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0025-0001-VerticalPixelsToTwips_command05 |
|
744 COMMAND scrdev ~ |
|
745 COMMAND ws Close |
|
746 END_TEST_BLOCK |
|
747 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0025 |
|
748 |
|
749 |
|
750 |
|
751 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0048 |
|
752 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0048 |
|
753 //! @SYMAPI CWsScreenDevice::SetScreenSizeAndRotation(const TPixelsAndRotation{ref}); |
|
754 //! CWsScreenDevice::GetDefaultScreenSizeAndRotation(TPixelsAndRotation{ref}) |
|
755 //! @SYMAuthor Wekey Weng |
|
756 //! @SYMCreationDate 11/23/2007 |
|
757 //! @SYMTestCaseDesc Sets the current screen size in pixels, and the rotation for the screen device |
|
758 //! Gets the current screen size in pixels and the rotation |
|
759 //! @SYMTestActions 1. Create and connect a RWsSession |
|
760 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
761 //! 3. Complete the construction |
|
762 //! 4. Call SetScreenSizeAndRotation(const TPixelsAndRotation&) to set the current screen size in pixels, and the rotation for the screen device |
|
763 //! 5. Call GetDefaultScreenSizeAndRotation(TPixelsAndRotation&) to get the screen size and rotation with default mode, and check them to be as expected |
|
764 //! 6. Destruct and close all objects used |
|
765 //! @SYMTestStatus Implemented |
|
766 //! @SYMTestPriority Critical |
|
767 //! @SYMTestExpectedResults 1. SetScreenSizeAndRotation(const TPixelsAndRotation&) method without causing panic |
|
768 //! 2. Method GetDefaultScreenSizeAndRotation(TPixelsAndRotation&) called without causing panic and get values as expected |
|
769 //! @SYMTestType CIT |
|
770 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
771 CREATE_OBJECT RWsSession ws |
|
772 CREATE_OBJECT CWsScreenDevice scrdev |
|
773 COMMAND ws new |
|
774 COMMAND ws Connect |
|
775 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0048-0001-new_command03 |
|
776 COMMAND scrdev Construct |
|
777 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0048-0001-SetScreenSizeAndRotation_command05 |
|
778 COMMAND scrdev GetDefaultScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0048-0001-GetDefaultScreenSizeAndRotation_command06 |
|
779 COMMAND scrdev ~ |
|
780 COMMAND ws Close |
|
781 END_TEST_BLOCK |
|
782 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0048 |
|
783 |
|
784 |
|
785 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0049 |
|
786 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0049 |
|
787 //! @SYMAPI CWsScreenDevice::GetScreenModeSizeAndRotation(TInt, TPixelsAndRotation{ref}) |
|
788 //! @SYMAuthor Wekey Weng |
|
789 //! @SYMCreationDate 11/23/2007 |
|
790 //! @SYMTestCaseDesc Gets the screen rotation and size (in pixels) for the specified screen mode |
|
791 //! @SYMTestActions 1. Create and connect a RWsSession |
|
792 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
793 //! 3. Complete the construction |
|
794 //! 4. Call GetScreenModeSizeAndRotation(TInt, TPixelsAndRotation&) to get the screen size in pixels and rotation with specified mode, and check them to be as expected |
|
795 //! 5. Destruct and close all objects used |
|
796 //! @SYMTestStatus Implemented |
|
797 //! @SYMTestPriority Critical |
|
798 //! @SYMTestExpectedResults Method GetScreenModeSizeAndRotation(TInt, TPixelsAndRotation&) called without causing panic and get values as expected |
|
799 //! @SYMTestType CIT |
|
800 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
801 CREATE_OBJECT RWsSession ws |
|
802 CREATE_OBJECT CWsScreenDevice scrdev |
|
803 COMMAND ws new |
|
804 COMMAND ws Connect |
|
805 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0049-0001-new_command03 |
|
806 COMMAND scrdev Construct |
|
807 COMMAND scrdev GetScreenModeSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0049-0001-GetScreenModeSizeAndRotation_command05 |
|
808 COMMAND scrdev ~ |
|
809 COMMAND ws Close |
|
810 END_TEST_BLOCK |
|
811 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0049 |
|
812 |
|
813 |
|
814 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0050 |
|
815 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0050 |
|
816 //! @SYMAPI CWsScreenDevice::SetScreenSizeAndRotation(const TPixelsTwipsAndRotation{ref}); |
|
817 //! CWsScreenDevice::GetDefaultScreenSizeAndRotation(TPixelsTwipsAndRotation{ref}) |
|
818 //! @SYMAuthor Wekey Weng |
|
819 //! @SYMCreationDate 11/23/2007 |
|
820 //! @SYMTestCaseDesc Sets the current screen size in twips and pixels, and the rotation for the screen device |
|
821 //! Gets the current screen size (in both pixels and twips) and rotation |
|
822 //! @SYMTestActions 1. Create and connect a RWsSession |
|
823 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
824 //! 3. Complete the construction |
|
825 //! 4. Call SetScreenSizeAndRotation(const TPixelsTwipsAndRotation&) to sets the current screen size (in both twips and pixels) and the rotation for the screen device |
|
826 //! 5. Call GetDefaultScreenSizeAndRotation(TPixelsTwipsAndRotation&) to get the screen size (in both twips and pixels) and rotation with specified mode, and check them to be as expected |
|
827 //! 6. Destruct and close all objects used |
|
828 //! @SYMTestStatus Implemented |
|
829 //! @SYMTestPriority Critical |
|
830 //! @SYMTestExpectedResults 1. SetScreenSizeAndRotation(const TPixelsTwipsAndRotation&) method without causing panic |
|
831 //! 2. Method GetDefaultScreenSizeAndRotation(TPixelsTwipsAndRotation&) called without causing panic and get values as expected |
|
832 //! @SYMTestType CIT |
|
833 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
834 CREATE_OBJECT RWsSession ws |
|
835 CREATE_OBJECT CWsScreenDevice scrdev |
|
836 COMMAND ws new |
|
837 COMMAND ws Connect |
|
838 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0050-0001-new_command03 |
|
839 COMMAND scrdev Construct |
|
840 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0050-0001-SetScreenSizeAndRotation_command05 |
|
841 COMMAND scrdev GetDefaultScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0050-0001-GetDefaultScreenSizeAndRotation_command06 |
|
842 COMMAND scrdev ~ |
|
843 COMMAND ws Close |
|
844 END_TEST_BLOCK |
|
845 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0050 |
|
846 |
|
847 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0051 |
|
848 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0051 |
|
849 //! @SYMAPI CWsScreenDevice::GetScreenModeSizeAndRotation(TInt, TPixelsTwipsAndRotation{ref}) |
|
850 //! @SYMAuthor Wekey Weng |
|
851 //! @SYMCreationDate 11/23/2007 |
|
852 //! @SYMTestCaseDesc Gets the screen rotation and size, in both pixels and twips, for the specified screen mode |
|
853 //! @SYMTestActions 1. Create and connect a RWsSession |
|
854 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
855 //! 3. Complete the construction |
|
856 //! 4. Call GetScreenModeSizeAndRotation(TInt, TPixelsTwipsAndRotation&) to get the screen size (in both twips and pixels) and rotation with specified mode, and check them to be as expected |
|
857 //! 5. Destruct and close all objects used |
|
858 //! @SYMTestStatus Implemented |
|
859 //! @SYMTestPriority Critical |
|
860 //! @SYMTestExpectedResults Method GetScreenModeSizeAndRotation(TInt, TPixelsTwipsAndRotation&) called without causing panic and get values as expected |
|
861 //! @SYMTestType CIT |
|
862 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
863 CREATE_OBJECT RWsSession ws |
|
864 CREATE_OBJECT CWsScreenDevice scrdev |
|
865 COMMAND ws new |
|
866 COMMAND ws Connect |
|
867 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0051-0001-new_command03 |
|
868 COMMAND scrdev Construct |
|
869 COMMAND scrdev GetScreenModeSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0051-0001-GetScreenModeSizeAndRotation_command05 |
|
870 COMMAND scrdev ~ |
|
871 COMMAND ws Close |
|
872 END_TEST_BLOCK |
|
873 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0051 |
|
874 |
|
875 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0052 |
|
876 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0052 |
|
877 //! @SYMAPI CWsScreenDevice::ScreenModeEnforcement() |
|
878 //! @SYMAuthor Wekey Weng |
|
879 //! @SYMCreationDate 11/23/2007 |
|
880 //! @SYMTestCaseDesc Gets the current screen mode enforcement settings |
|
881 //! @SYMTestActions 1. Create and connect a RWsSession |
|
882 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
883 //! 3. Complete the construction |
|
884 //! 4. Call ScreenModeEnforcement() to get the current screen mode enforcement settings and check it to be as expected |
|
885 //! 5. Destruct and close all objects used |
|
886 //! @SYMTestStatus Implemented |
|
887 //! @SYMTestPriority Critical |
|
888 //! @SYMTestExpectedResults Method ScreenModeEnforcement() called without causing panic and return expected value |
|
889 //! @SYMTestType CIT |
|
890 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
891 CREATE_OBJECT RWsSession ws |
|
892 CREATE_OBJECT CWsScreenDevice scrdev |
|
893 COMMAND ws new |
|
894 COMMAND ws Connect |
|
895 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0052-0001-new_command03 |
|
896 COMMAND scrdev Construct |
|
897 COMMAND scrdev ScreenModeEnforcement GRAPHICS-WSERV-WsScreenDevice-PublicApi-0052-0001-ScreenModeEnforcement_command05 |
|
898 COMMAND scrdev ~ |
|
899 COMMAND ws Close |
|
900 END_TEST_BLOCK |
|
901 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0052 |
|
902 |
|
903 |
|
904 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0053 |
|
905 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0053 |
|
906 //! @SYMAPI CWsScreenDevice::NumScreenModes() |
|
907 //! @SYMAuthor Wekey Weng |
|
908 //! @SYMCreationDate 11/23/2007 |
|
909 //! @SYMTestCaseDesc Gets the number of available screen modes |
|
910 //! @SYMTestActions 1. Create and connect a RWsSession |
|
911 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
912 //! 3. Complete the construction |
|
913 //! 4. Call NumScreenModes() to get the number of screen modes and check it to be as expected |
|
914 //! 5. Destruct and close all objects used |
|
915 //! @SYMTestStatus Implemented |
|
916 //! @SYMTestPriority Critical |
|
917 //! @SYMTestExpectedResults Method NumScreenModes() called without causing panic and return expected value |
|
918 //! @SYMTestType CIT |
|
919 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
920 CREATE_OBJECT RWsSession ws |
|
921 CREATE_OBJECT CWsScreenDevice scrdev |
|
922 COMMAND ws new |
|
923 COMMAND ws Connect |
|
924 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0053-0001-new_command03 |
|
925 COMMAND scrdev Construct |
|
926 COMMAND scrdev NumScreenModes GRAPHICS-WSERV-WsScreenDevice-PublicApi-0053-0001-NumScreenModes_command05 |
|
927 COMMAND scrdev ~ |
|
928 COMMAND ws Close |
|
929 END_TEST_BLOCK |
|
930 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0053 |
|
931 |
|
932 |
|
933 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0054 |
|
934 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0054 |
|
935 //! @SYMAPI CWsScreenDevice::GetScreenSizeModeList(RArray<TInt>{ptr}) |
|
936 //! @SYMAuthor Wekey Weng |
|
937 //! @SYMCreationDate 11/23/2007 |
|
938 //! @SYMTestCaseDesc Gets the available screen size modes |
|
939 //! @SYMTestActions 1. Create and connect a RWsSession |
|
940 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
941 //! 3. Complete the construction |
|
942 //! 4. Call GetScreenSizeModeList() to get the count of the available screen size modes and check it to be expected |
|
943 //! 5. Destruct and close all objects used |
|
944 //! @SYMTestStatus Implemented |
|
945 //! @SYMTestPriority Critical |
|
946 //! @SYMTestExpectedResults Method GetScreenSizeModeList() called without causing panic and the values are as expected |
|
947 //! @SYMTestType CIT |
|
948 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
949 CREATE_OBJECT RWsSession ws |
|
950 CREATE_OBJECT CWsScreenDevice scrdev |
|
951 COMMAND ws new |
|
952 COMMAND ws Connect |
|
953 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0054-0001-new_command03 |
|
954 COMMAND scrdev Construct |
|
955 COMMAND scrdev GetScreenSizeModeList GRAPHICS-WSERV-WsScreenDevice-PublicApi-0054-0001-GetScreenSizeModeList_command05 |
|
956 COMMAND scrdev ~ |
|
957 COMMAND ws Close |
|
958 END_TEST_BLOCK |
|
959 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0054 |
|
960 |
|
961 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0055 |
|
962 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0055 |
|
963 //! @SYMAPI CWsScreenDevice::GetDefaultScreenModeOrigin() |
|
964 //! @SYMAuthor Wekey Weng |
|
965 //! @SYMCreationDate 11/23/2007 |
|
966 //! @SYMTestCaseDesc Gets the origin for the current screen mode |
|
967 //! @SYMTestActions 1. Create and connect a RWsSession |
|
968 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
969 //! 3. Complete the construction |
|
970 //! 4. Call GetDefaultScreenModeOrigin() to get the origin for the default screen mode and check it to be as expected |
|
971 //! 5. Destruct and close all objects used |
|
972 //! @SYMTestStatus Implemented |
|
973 //! @SYMTestPriority Critical |
|
974 //! @SYMTestExpectedResults Method GetDefaultScreenModeOrigin() called without causing panic and return expected value |
|
975 //! @SYMTestType CIT |
|
976 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
977 CREATE_OBJECT RWsSession ws |
|
978 CREATE_OBJECT CWsScreenDevice scrdev |
|
979 COMMAND ws new |
|
980 COMMAND ws Connect |
|
981 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0055-0001-new_command03 |
|
982 COMMAND scrdev Construct |
|
983 COMMAND scrdev GetDefaultScreenModeOrigin GRAPHICS-WSERV-WsScreenDevice-PublicApi-0055-0001-GetDefaultScreenModeOrigin_command05 |
|
984 COMMAND scrdev ~ |
|
985 COMMAND ws Close |
|
986 END_TEST_BLOCK |
|
987 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0055 |
|
988 |
|
989 |
|
990 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0056 |
|
991 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0056 |
|
992 //! @SYMAPI CWsScreenDevice::CurrentScreenMode() |
|
993 //! @SYMAuthor Wekey Weng |
|
994 //! @SYMCreationDate 11/23/2007 |
|
995 //! @SYMTestCaseDesc Gets the current screen mode index |
|
996 //! @SYMTestActions 1. Create and connect a RWsSession |
|
997 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
998 //! 3. Complete the construction |
|
999 //! 4. Call CurrentScreenMode() to get the current screen mode index and check it to be as expected |
|
1000 //! 5. Destruct and close all objects used |
|
1001 //! @SYMTestStatus Implemented |
|
1002 //! @SYMTestPriority Critical |
|
1003 //! @SYMTestExpectedResults Method CurrentScreenMode() called without causing panic and return expected value |
|
1004 //! @SYMTestType CIT |
|
1005 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1006 CREATE_OBJECT RWsSession ws |
|
1007 CREATE_OBJECT CWsScreenDevice scrdev |
|
1008 COMMAND ws new |
|
1009 COMMAND ws Connect |
|
1010 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0056-0001-new_command03 |
|
1011 COMMAND scrdev Construct |
|
1012 COMMAND scrdev CurrentScreenMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0056-0001-CurrentScreenMode_command05 |
|
1013 COMMAND scrdev ~ |
|
1014 COMMAND ws Close |
|
1015 END_TEST_BLOCK |
|
1016 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0056 |
|
1017 |
|
1018 |
|
1019 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0057 |
|
1020 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0057 |
|
1021 //! @SYMAPI CWsScreenDevice::GetRotationsList(TInt, CArrayFixFlat<TInt>{ptr}) |
|
1022 //! @SYMAuthor Wekey Weng |
|
1023 //! @SYMCreationDate 11/23/2007 |
|
1024 //! @SYMTestCaseDesc Gets the list of valid rotations for a particular screen size |
|
1025 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1026 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
1027 //! 3. Complete the construction |
|
1028 //! 4. Call GetRotationsList() to get the count of the available rotations for a particular screen size and check it to be as expected |
|
1029 //! 5. Destruct and close all objects used |
|
1030 //! @SYMTestStatus Implemented |
|
1031 //! @SYMTestPriority Critical |
|
1032 //! @SYMTestExpectedResults Method GetRotationsList() called without causing panic and the values are as expected |
|
1033 //! @SYMTestType CIT |
|
1034 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1035 CREATE_OBJECT RWsSession ws |
|
1036 CREATE_OBJECT CWsScreenDevice scrdev |
|
1037 COMMAND ws new |
|
1038 COMMAND ws Connect |
|
1039 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0057-0001-new_command03 |
|
1040 COMMAND scrdev Construct |
|
1041 COMMAND scrdev GetRotationsList GRAPHICS-WSERV-WsScreenDevice-PublicApi-0057-0001-GetRotationsList_command05 |
|
1042 COMMAND scrdev ~ |
|
1043 COMMAND ws Close |
|
1044 END_TEST_BLOCK |
|
1045 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0057 |
|
1046 |
|
1047 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0058 |
|
1048 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0058 |
|
1049 //! @SYMAPI CWsScreenDevice::GetScreenModeOrigin(TInt) |
|
1050 //! @SYMAuthor Wekey Weng |
|
1051 //! @SYMCreationDate 11/23/2007 |
|
1052 //! @SYMTestCaseDesc Get the origin of the screen for the specified screen mode |
|
1053 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1054 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
1055 //! 3. Complete the construction |
|
1056 //! 4. Call GetScreenModeOrigin() to get the origin for the specified screen mode and check it to be as expected |
|
1057 //! 5. Destruct and close all objects used |
|
1058 //! @SYMTestStatus Implemented |
|
1059 //! @SYMTestPriority Critical |
|
1060 //! @SYMTestExpectedResults Method GetScreenModeOrigin() called without causing panic and return expected value |
|
1061 //! @SYMTestType CIT |
|
1062 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1063 CREATE_OBJECT RWsSession ws |
|
1064 CREATE_OBJECT CWsScreenDevice scrdev |
|
1065 COMMAND ws new |
|
1066 COMMAND ws Connect |
|
1067 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0058-0001-new_command03 |
|
1068 COMMAND scrdev Construct |
|
1069 COMMAND scrdev GetScreenModeOrigin GRAPHICS-WSERV-WsScreenDevice-PublicApi-0058-0001-GetScreenModeOrigin_command05 |
|
1070 COMMAND scrdev ~ |
|
1071 COMMAND ws Close |
|
1072 END_TEST_BLOCK |
|
1073 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0058 |
|
1074 |
|
1075 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0059 |
|
1076 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0059 |
|
1077 //! @SYMAPI CWsScreenDevice::SetAppScreenMode(TInt) |
|
1078 //! @SYMAuthor Wekey Weng |
|
1079 //! @SYMCreationDate 11/23/2007 |
|
1080 //! @SYMTestCaseDesc Sets the application's screen mode; this also sets all the attributes of the screen mode |
|
1081 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1082 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
1083 //! 3. Complete the construction |
|
1084 //! 4. Call SetAppScreenMode() to set the application's screen mode |
|
1085 //! 5. Destruct and close all objects used |
|
1086 //! @SYMTestStatus Implemented |
|
1087 //! @SYMTestPriority Critical |
|
1088 //! @SYMTestExpectedResults SetAppScreenMode method without causing panic.(There seems no methods to check the value is set as expected) |
|
1089 //! @SYMTestType CIT |
|
1090 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1091 CREATE_OBJECT RWsSession ws |
|
1092 CREATE_OBJECT CWsScreenDevice scrdev |
|
1093 COMMAND ws new |
|
1094 COMMAND ws Connect |
|
1095 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0059-0001-new_command03 |
|
1096 COMMAND scrdev Construct |
|
1097 COMMAND scrdev SetAppScreenMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0059-0001-SetAppScreenMode_command05 |
|
1098 COMMAND scrdev ~ |
|
1099 COMMAND ws Close |
|
1100 END_TEST_BLOCK |
|
1101 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0059 |
|
1102 |
|
1103 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0060 |
|
1104 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0060 |
|
1105 //! @SYMAPI CWsScreenDevice::GetCurrentScreenModeScale() |
|
1106 //! @SYMAuthor Wekey Weng |
|
1107 //! @SYMCreationDate 11/23/2007 |
|
1108 //! @SYMTestCaseDesc Gets the scale for the current screen mode |
|
1109 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1110 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
1111 //! 3. Complete the construction |
|
1112 //! 4. Call GetCurrentScreenModeScale() to get the scale for the current screen mode and check it to be as expected |
|
1113 //! 5. Destruct and close all objects used |
|
1114 //! @SYMTestStatus Implemented |
|
1115 //! @SYMTestPriority Critical |
|
1116 //! @SYMTestExpectedResults Method GetCurrentScreenModeScale() called without causing panic and return expected value |
|
1117 //! @SYMTestType CIT |
|
1118 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1119 CREATE_OBJECT RWsSession ws |
|
1120 CREATE_OBJECT CWsScreenDevice scrdev |
|
1121 COMMAND ws new |
|
1122 COMMAND ws Connect |
|
1123 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0060-0001-new_command03 |
|
1124 COMMAND scrdev Construct |
|
1125 COMMAND scrdev GetCurrentScreenModeScale GRAPHICS-WSERV-WsScreenDevice-PublicApi-0060-0001-GetCurrentScreenModeScale_command05 |
|
1126 COMMAND scrdev ~ |
|
1127 COMMAND ws Close |
|
1128 END_TEST_BLOCK |
|
1129 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0060 |
|
1130 |
|
1131 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0061 |
|
1132 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0061 |
|
1133 //! @SYMAPI CWsScreenDevice::GetScreenModeScale(TInt) |
|
1134 //! @SYMAuthor Wekey Weng |
|
1135 //! @SYMCreationDate 11/23/2007 |
|
1136 //! @SYMTestCaseDesc Gets the scale for the specified screen mode |
|
1137 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1138 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
1139 //! 3. Complete the construction |
|
1140 //! 4. Call GetScreenModeScale() to get the scale for the specified screen mode and check it to be as expected |
|
1141 //! 5. Destruct and close all objects used |
|
1142 //! @SYMTestStatus Implemented |
|
1143 //! @SYMTestPriority Critical |
|
1144 //! @SYMTestExpectedResults Method GetScreenModeScale() called without causing panic and return expected value |
|
1145 //! @SYMTestType CIT |
|
1146 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1147 CREATE_OBJECT RWsSession ws |
|
1148 CREATE_OBJECT CWsScreenDevice scrdev |
|
1149 COMMAND ws new |
|
1150 COMMAND ws Connect |
|
1151 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0061-0001-new_command03 |
|
1152 COMMAND scrdev Construct |
|
1153 COMMAND scrdev GetScreenModeScale GRAPHICS-WSERV-WsScreenDevice-PublicApi-0061-0001-GetScreenModeScale_command05 |
|
1154 COMMAND scrdev ~ |
|
1155 COMMAND ws Close |
|
1156 END_TEST_BLOCK |
|
1157 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0061 |
|
1158 |
|
1159 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0062 |
|
1160 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0062 |
|
1161 //! @SYMAPI CWsScreenDevice::GetCurrentScreenModeScaledOrigin() |
|
1162 //! @SYMAuthor Wekey Weng |
|
1163 //! @SYMCreationDate 11/23/2007 |
|
1164 //! @SYMTestCaseDesc Gets the current screen mode's scaled origin |
|
1165 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1166 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
1167 //! 3. Complete the construction |
|
1168 //! 4. Call GetCurrentScreenModeScaledOrigin() to get the scaled origin for the current screen mode and check it to be as expected |
|
1169 //! 5. Destruct and close all objects used |
|
1170 //! @SYMTestStatus Implemented |
|
1171 //! @SYMTestPriority Critical |
|
1172 //! @SYMTestExpectedResults Method GetCurrentScreenModeScaledOrigin() called without causing panic and return expected value |
|
1173 //! @SYMTestType CIT |
|
1174 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1175 CREATE_OBJECT RWsSession ws |
|
1176 CREATE_OBJECT CWsScreenDevice scrdev |
|
1177 COMMAND ws new |
|
1178 COMMAND ws Connect |
|
1179 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0062-0001-new_command03 |
|
1180 COMMAND scrdev Construct |
|
1181 COMMAND scrdev GetCurrentScreenModeScaledOrigin GRAPHICS-WSERV-WsScreenDevice-PublicApi-0062-0001-GetCurrentScreenModeScaledOrigin_command05 |
|
1182 COMMAND scrdev ~ |
|
1183 COMMAND ws Close |
|
1184 END_TEST_BLOCK |
|
1185 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0062 |
|
1186 |
|
1187 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0063 |
|
1188 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0063 |
|
1189 //! @SYMAPI CWsScreenDevice::GetScreenModeScaledOrigin(TInt) |
|
1190 //! @SYMAuthor Wekey Weng |
|
1191 //! @SYMCreationDate 11/23/2007 |
|
1192 //! @SYMTestCaseDesc Gets the specfied screen mode's scaled origin |
|
1193 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1194 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
1195 //! 3. Complete the construction |
|
1196 //! 4. Call GetScreenModeScaledOrigin() to get the scaled origin for the specified screen mode and check it to be as expected |
|
1197 //! 5. Destruct and close all objects used |
|
1198 //! @SYMTestStatus Implemented |
|
1199 //! @SYMTestPriority Critical |
|
1200 //! @SYMTestExpectedResults Method GetScreenModeScaledOrigin() called without causing panic and return expected value |
|
1201 //! @SYMTestType CIT |
|
1202 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1203 CREATE_OBJECT RWsSession ws |
|
1204 CREATE_OBJECT CWsScreenDevice scrdev |
|
1205 COMMAND ws new |
|
1206 COMMAND ws Connect |
|
1207 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0063-0001-new_command03 |
|
1208 COMMAND scrdev Construct |
|
1209 COMMAND scrdev GetScreenModeScaledOrigin GRAPHICS-WSERV-WsScreenDevice-PublicApi-0063-0001-GetScreenModeScaledOrigin_command05 |
|
1210 COMMAND scrdev ~ |
|
1211 COMMAND ws Close |
|
1212 END_TEST_BLOCK |
|
1213 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0063 |
|
1214 |
|
1215 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0064 |
|
1216 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0064 |
|
1217 //! @SYMAPI CWsScreenDevice::GetScreenModeDisplayMode(TInt) |
|
1218 //! @SYMAuthor Wekey Weng |
|
1219 //! @SYMCreationDate 11/23/2007 |
|
1220 //! @SYMTestCaseDesc Gets the display mode of the screen for the specified screen mode |
|
1221 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1222 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
1223 //! 3. Complete the construction |
|
1224 //! 4. Call GetScreenModeDisplayMode() to get the display mode of the screen for the specified screen mode |
|
1225 //! 5. Destruct and close all objects used |
|
1226 //! @SYMTestStatus Implemented |
|
1227 //! @SYMTestPriority Critical |
|
1228 //! @SYMTestExpectedResults Method GetScreenModeDisplayMode() called without causing panic and return expected display mode |
|
1229 //! @SYMTestType CIT |
|
1230 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1231 CREATE_OBJECT RWsSession ws |
|
1232 CREATE_OBJECT CWsScreenDevice scrdev |
|
1233 COMMAND ws new |
|
1234 COMMAND ws Connect |
|
1235 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0064-0001-new_command03 |
|
1236 COMMAND scrdev Construct |
|
1237 COMMAND scrdev GetScreenModeDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0064-0001-GetScreenModeDisplayMode_command05 |
|
1238 COMMAND scrdev ~ |
|
1239 COMMAND ws Close |
|
1240 END_TEST_BLOCK |
|
1241 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0064 |
|
1242 |
|
1243 |
|
1244 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0100 |
|
1245 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0100 |
|
1246 //! @SYMAPI CWsScreenDevice::GetPixel(TRgb {ref}, const TPoint {ref}) const |
|
1247 //! @SYMAuthor Allen CHANG |
|
1248 //! @SYMCreationDate 11/23/2007 |
|
1249 //! @SYMTestCaseDesc Gets color of specified point of screen |
|
1250 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
1251 //! 2. Creates a CWsScreenDevice attached to a RWsSession |
|
1252 //! 3. Completes the construction |
|
1253 //! 4. Gets pixel at point(1, 1) to verify the color of pixel is white |
|
1254 //! 5. Destructs the CWsScreenDevice object |
|
1255 //! 6. Closes the CWsScreenDevice object |
|
1256 //! @SYMTestStatus Implemented |
|
1257 //! @SYMTestPriority High |
|
1258 //! @SYMTestExpectedResults The color of specified point matchs with expected value |
|
1259 //! @SYMTestType CIT |
|
1260 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1261 CREATE_OBJECT RWsSession ws |
|
1262 CREATE_OBJECT CWsScreenDevice scrdev |
|
1263 COMMAND ws new |
|
1264 COMMAND ws Connect |
|
1265 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0100-0001-new_command03 |
|
1266 COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0100-0001-Construct_command04 |
|
1267 COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0100-0001-GetPixel_command05 |
|
1268 COMMAND scrdev ~ |
|
1269 COMMAND ws Close |
|
1270 END_TEST_BLOCK |
|
1271 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0100 |
|
1272 |
|
1273 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0101 |
|
1274 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0101 |
|
1275 //! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) |
|
1276 //! @SYMAuthor Kevin Zeng |
|
1277 //! @SYMCreationDate 11/23/2007 |
|
1278 //! @SYMTestCaseDesc Gets a scanline into a buffer |
|
1279 //! @SYMTestActions 1. Setup a CWindowGc and a RWindow. |
|
1280 //! 1.1 New and connect a RWsSession |
|
1281 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1282 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1283 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1284 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1285 //! and SetRequiredDisplayMode (to EColor64K) for the RWindow, SetBackgroundColor to TRgb(255,0,0) |
|
1286 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1287 //! 1.7 Activate the CWindowGc to the RWindow |
|
1288 //! 2.Use RWindow::BeginRedraw() to start a redraw cycle |
|
1289 //! 3.RWindow::EndRedraw() |
|
1290 //! 4.Get scanline from screen. |
|
1291 //! 5.Deactive RWindow, destruct and close all objects used |
|
1292 //! @SYMTestStatus Implemented |
|
1293 //! @SYMTestPriority High |
|
1294 //! @SYMTestExpectedResults 1. The scanline get copied, and no panic get raised |
|
1295 //! 2. Check the scanline(Get pixel (1,1) of the scanline, the color is red). |
|
1296 //! @SYMTestType CIT |
|
1297 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1298 CREATE_OBJECT RWsSession ws |
|
1299 CREATE_OBJECT CWsScreenDevice scrdev |
|
1300 CREATE_OBJECT CWindowGc wgc |
|
1301 COMMAND ws new |
|
1302 COMMAND ws Connect |
|
1303 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-new_command03 |
|
1304 COMMAND scrdev Construct |
|
1305 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-CreateContext_command05 |
|
1306 CREATE_OBJECT RWindowGroup wingrp |
|
1307 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-new_command06 |
|
1308 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-Construct_command07 |
|
1309 CREATE_OBJECT RWindow win |
|
1310 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-new_command08 |
|
1311 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-Construct_command09 |
|
1312 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-SetRequiredDisplayMode_command10 |
|
1313 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-SetBackgroundColor_command11 |
|
1314 COMMAND win Activate |
|
1315 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-SetAutoFlush_command13 |
|
1316 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-Activate_command14 |
|
1317 COMMAND win BeginRedraw |
|
1318 COMMAND win EndRedraw |
|
1319 COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-GetScanLine_command17 |
|
1320 COMMAND wgc Deactivate |
|
1321 COMMAND win Close |
|
1322 COMMAND wingrp Close |
|
1323 COMMAND wgc ~ |
|
1324 COMMAND scrdev ~ |
|
1325 COMMAND ws Close |
|
1326 END_TEST_BLOCK |
|
1327 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0101 |
|
1328 |
|
1329 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0102 |
|
1330 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0102 |
|
1331 //! @SYMAPI TInt CWsScreenDevice::AddFile(const TDesC {ref}, TInt {ref}); |
|
1332 //! CWsScreenDevice::RemoveFile(TInt) |
|
1333 //! @SYMAuthor Allen CHANG |
|
1334 //! @SYMCreationDate 11/23/2007 |
|
1335 //! @SYMTestCaseDesc 1. Adds a font file to the device's typeface store |
|
1336 //! 2. Removes a font file from device's typeface store |
|
1337 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
1338 //! 2. Creates a CWsScreenDevice attached to a RWsSession |
|
1339 //! 3. Completes the construction |
|
1340 //! 4. Creates a CFont object |
|
1341 //! 5. Checks that the font does not exist |
|
1342 //! 6. Adds a font file to the device's typeface store. |
|
1343 //! 7. Checks the expected font is added successfully |
|
1344 //! 8. Removes a font file from device's typeface store |
|
1345 //! 9. Checks the expected font is removed successfully |
|
1346 //! 10. Destructs the CWsScreenDevice object |
|
1347 //! 11. Closes the CWsScreenDevice object |
|
1348 //! @SYMTestStatus Implemented |
|
1349 //! @SYMTestPriority High |
|
1350 //! @SYMTestExpectedResults 1. Checks that the font named 'Acb14' exists or not, it is negtive case, expects the font does not exist. |
|
1351 //! 2. The specified font file is added to device's typeface store, |
|
1352 //! 3. Checks that the font named 'Act14' is added successfully. |
|
1353 //! 4. The added file is removed from device's typeface store successfully. |
|
1354 //! 5. Checks that the font named 'Act14' is removed as expected, it is negtive case, expects the font does not exist. |
|
1355 //! 6. Releases the reference of font added. |
|
1356 //! @SYMTestType CIT |
|
1357 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1358 CREATE_OBJECT RWsSession ws |
|
1359 CREATE_OBJECT CWsScreenDevice scrdev |
|
1360 CREATE_OBJECT CFbsFont font |
|
1361 COMMAND ws new |
|
1362 COMMAND ws Connect |
|
1363 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-new_command03 |
|
1364 COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-Construct_command04 |
|
1365 COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-GetNearestFontToDesignHeightInTwips_command05 |
|
1366 COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-FontSpecInTwips_command06 |
|
1367 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-ReleaseFont_command07 |
|
1368 COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-AddFile_command08 |
|
1369 COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-GetNearestFontToDesignHeightInTwips_command09 |
|
1370 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-FontSpecInTwips_command10 |
|
1371 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-ReleaseFont_command11 |
|
1372 COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-RemoveFile_command12 |
|
1373 COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-GetNearestFontToDesignHeightInTwips_command13 |
|
1374 COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-FontSpecInTwips_command14 |
|
1375 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-ReleaseFont_command15 |
|
1376 COMMAND scrdev ~ |
|
1377 COMMAND ws Close |
|
1378 END_TEST_BLOCK |
|
1379 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0102 |
|
1380 |
|
1381 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0104 |
|
1382 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0104 |
|
1383 //! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInPixels(CFont {ptr}{ref}, const TFontSpec {ref}) |
|
1384 //! @SYMAuthor Allen CHANG |
|
1385 //! @SYMCreationDate 11/23/2007 |
|
1386 //! @SYMTestCaseDesc Gets the nearest font in pixels to that specified |
|
1387 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
1388 //! 2. Creates a CWsScreenDevice attached to a RWsSession |
|
1389 //! 3. Completes the construction |
|
1390 //! 4. Creates a CFont object |
|
1391 //! 5. Gets the nearest font in pixels to that specified. |
|
1392 //! 6. Checks if the returned device font is as expected |
|
1393 //! 7. Destructs the CWsScreenDevice object |
|
1394 //! 8. Closes the CWsScreenDevice object |
|
1395 //! @SYMTestStatus Implemented |
|
1396 //! @SYMTestPriority High |
|
1397 //! @SYMTestExpectedResults KErrNone is returned and the returned device font is as expected. |
|
1398 //! @SYMTestType CIT |
|
1399 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1400 CREATE_OBJECT RWsSession ws |
|
1401 CREATE_OBJECT CWsScreenDevice scrdev |
|
1402 CREATE_OBJECT CFbsFont font |
|
1403 COMMAND ws new |
|
1404 COMMAND ws Connect |
|
1405 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-new_command03 |
|
1406 COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-Construct_command04 |
|
1407 COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-GetNearestFontToDesignHeightInPixels_command05 |
|
1408 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-FontSpecInTwips_command06 |
|
1409 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-ReleaseFont_command07 |
|
1410 COMMAND scrdev ~ |
|
1411 COMMAND ws Close |
|
1412 END_TEST_BLOCK |
|
1413 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0104 |
|
1414 |
|
1415 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0105 |
|
1416 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0105 |
|
1417 //! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInPixels(CFont {ptr}{ref}, const TFontSpec {ref}, TInt) |
|
1418 //! @SYMAuthor Allen CHANG |
|
1419 //! @SYMCreationDate 11/23/2007 |
|
1420 //! @SYMTestCaseDesc Gets the nearest font in pixels to that specified |
|
1421 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
1422 //! 2. Creates a CWsScreenDevice attached to a RWsSession |
|
1423 //! 3. Completes the construction |
|
1424 //! 4. Create a CFont object |
|
1425 //! 5. Gets the nearest font in pixels to that specified. |
|
1426 //! 6. Checks if the returned device font is as expected |
|
1427 //! 7. Destruct the CWsScreenDevice object |
|
1428 //! 8. Close the CWsScreenDevice object |
|
1429 //! @SYMTestStatus Implemented |
|
1430 //! @SYMTestPriority High |
|
1431 //! @SYMTestExpectedResults KErrNone is returned and the returned device font is as expected. |
|
1432 //! @SYMTestType CIT |
|
1433 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1434 CREATE_OBJECT RWsSession ws |
|
1435 CREATE_OBJECT CWsScreenDevice scrdev |
|
1436 CREATE_OBJECT CFbsFont font |
|
1437 COMMAND ws new |
|
1438 COMMAND ws Connect |
|
1439 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-new_command03 |
|
1440 COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-Construct_command04 |
|
1441 COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-GetNearestFontToMaxHeightInPixels_command05 |
|
1442 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-FontSpecInTwips_command06 |
|
1443 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-ReleaseFont_command07 |
|
1444 COMMAND scrdev ~ |
|
1445 COMMAND ws Close |
|
1446 END_TEST_BLOCK |
|
1447 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0105 |
|
1448 |
|
1449 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0106 |
|
1450 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0106 |
|
1451 //! @SYMAPI CWsScreenDevice::RectCompare(const TRect {ref}, const TRect {ref}) |
|
1452 //! @SYMAuthor Kevin Zeng |
|
1453 //! @SYMCreationDate 12/10/2007 |
|
1454 //! @SYMTestCaseDesc Set up and draw 3 50*50 rect regions on white screen. Region1 is the same as region2. Region3 is different. |
|
1455 //! Compare region1 and region2. |
|
1456 //! Compare region1 and region3. |
|
1457 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
1458 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
1459 //! 3. Create a RWindowGroup attached to RWsSession. |
|
1460 //! 4. Create a RWindow, setup it and activate. |
|
1461 //! 5. RWsSession SetAutoFlush. |
|
1462 //! 6. Setup and draw 3 rectangle(50*50 size,filled with red, border is black)in 3 different regions.Region1 is the same as region2. Region3 is different. |
|
1463 //! 8. Call CWsScreenDevice::RectCompare() to compare region1 and region2. |
|
1464 //! 9. Call CWsScreenDevice::RectCompare() to compare region1 and region3. |
|
1465 //! 10. Destruct and Close. |
|
1466 //! @SYMTestStatus Implemented |
|
1467 //! @SYMTestPriority High |
|
1468 //! @SYMTestExpectedResults 1. RectCompare which compares region1 and region2 returns ETrue. |
|
1469 //! 2. RectCompare which compares region1 and region3 returns EFalse. |
|
1470 //! @SYMTestType CIT |
|
1471 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1472 CREATE_OBJECT RWsSession ws |
|
1473 CREATE_OBJECT CWsScreenDevice scrdev |
|
1474 CREATE_OBJECT CWindowGc wgc |
|
1475 COMMAND ws new |
|
1476 COMMAND ws Connect |
|
1477 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-new_command03 |
|
1478 COMMAND scrdev Construct |
|
1479 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-CreateContext_command05 |
|
1480 CREATE_OBJECT RWindowGroup wingrp |
|
1481 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-new_command06 |
|
1482 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-Construct_command07 |
|
1483 CREATE_OBJECT RWindow win |
|
1484 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-new_command08 |
|
1485 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-Construct_command09 |
|
1486 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetRequiredDisplayMode_command10 |
|
1487 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetBackgroundColor_command11 |
|
1488 COMMAND win Activate |
|
1489 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetAutoFlush_command13 |
|
1490 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-Activate_command14 |
|
1491 COMMAND win BeginRedraw |
|
1492 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetBrushColor_command16 |
|
1493 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetBrushStyle_command17 |
|
1494 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetPenColor_command18 |
|
1495 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-DrawRect_command19 |
|
1496 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-DrawRect_command20 |
|
1497 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-DrawRect_command21 |
|
1498 COMMAND win EndRedraw |
|
1499 COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-RectCompare_command23 |
|
1500 COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-RectCompare_command24 |
|
1501 COMMAND wgc Deactivate |
|
1502 COMMAND win Close |
|
1503 COMMAND wingrp Close |
|
1504 COMMAND wgc ~ |
|
1505 COMMAND scrdev ~ |
|
1506 COMMAND ws Close |
|
1507 END_TEST_BLOCK |
|
1508 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0106 |
|
1509 |
|
1510 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0107 |
|
1511 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0107 |
|
1512 //! @SYMAPI CWsScreenDevice::RectCompare(const TRect {ref}, const TRect {ref}) |
|
1513 //! @SYMAuthor Allen CHANG |
|
1514 //! @SYMCreationDate 11/24/2007 |
|
1515 //! @SYMTestCaseDesc Set up and draw 3 50*50 rect regions on white screen. Region1 is the same as region2. Region3 is different, Overloaded with flag EIncludeSprite. |
|
1516 //! Compare region1 and region2. |
|
1517 //! Compare region1 and region3. |
|
1518 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
1519 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
1520 //! 3. Create a RWindowGroup attached to RWsSession. |
|
1521 //! 4. Create a RWindow, setup it and activate. |
|
1522 //! 5. RWsSession SetAutoFlush. |
|
1523 //! 6. Setup and draw 3 rectangle(50*50 size,filled with red, border is black)in 3 different regions.Region1 is the same as region2. Region3 is different. |
|
1524 //! 8. Verifys region1 and region2 are identical. |
|
1525 //! 9. Verifys region1 and region3 are not identical. |
|
1526 //! 10. Destruct and Close. |
|
1527 //! @SYMTestStatus Implemented |
|
1528 //! @SYMTestPriority High |
|
1529 //! @SYMTestExpectedResults 1. RectCompare which compares region1 and region2 returns ETrue. |
|
1530 //! 2. RectCompare which compares region1 and region3 returns EFalse. |
|
1531 //! @SYMTestType CIT |
|
1532 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1533 CREATE_OBJECT RWsSession ws |
|
1534 CREATE_OBJECT CWsScreenDevice scrdev |
|
1535 CREATE_OBJECT CWindowGc wgc |
|
1536 COMMAND ws new |
|
1537 COMMAND ws Connect |
|
1538 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-new_command03 |
|
1539 COMMAND scrdev Construct |
|
1540 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-CreateContext_command05 |
|
1541 CREATE_OBJECT RWindowGroup wingrp |
|
1542 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-new_command06 |
|
1543 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-Construct_command07 |
|
1544 CREATE_OBJECT RWindow win |
|
1545 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-new_command08 |
|
1546 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-Construct_command09 |
|
1547 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetRequiredDisplayMode_command10 |
|
1548 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetBackgroundColor_command11 |
|
1549 COMMAND win Activate |
|
1550 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetAutoFlush_command13 |
|
1551 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-Activate_command14 |
|
1552 COMMAND win BeginRedraw |
|
1553 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetBrushColor_command16 |
|
1554 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetBrushStyle_command17 |
|
1555 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetPenColor_command18 |
|
1556 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-DrawRect_command19 |
|
1557 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-DrawRect_command20 |
|
1558 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-DrawRect_command21 |
|
1559 COMMAND win EndRedraw |
|
1560 COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-RectCompare_command23 |
|
1561 COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-RectCompare_command24 |
|
1562 COMMAND wgc Deactivate |
|
1563 COMMAND win Close |
|
1564 COMMAND wingrp Close |
|
1565 COMMAND wgc ~ |
|
1566 COMMAND scrdev ~ |
|
1567 COMMAND ws Close |
|
1568 END_TEST_BLOCK |
|
1569 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0107 |
|
1570 |
|
1571 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0108 |
|
1572 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0108 |
|
1573 //! @SYMAPI CWsScreenDevice::RectCompare(const TRect{ref}, const TRect{ref}, TUint) |
|
1574 //! @SYMAuthor Wekey Weng |
|
1575 //! @SYMCreationDate 14/12/2007 |
|
1576 //! @SYMTestCaseDesc Draw two sprites on the screen, set a text cursor. |
|
1577 //! Then compares two rect areas of the screen to verify if they have the same content. Using three compare style: remove sprite, include sprite, text cursor. |
|
1578 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
1579 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
1580 //! 3. Create a CWindowGc attached to CWsScreenDevice. |
|
1581 //! 4. Create a RWindowGroup attached to RWsSession. |
|
1582 //! 5. Create a RWindow, setup it and activate. |
|
1583 //! 6. SetAutoFlush to TRUE for the RWsSession. |
|
1584 //! 7. Active CWindowGc. |
|
1585 //! 8. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1586 //! 9. Use RWindow::EndRedraw() to end draw |
|
1587 //! 10. Create 2 RWsSprite attached to RWsSession by using RWsSprite(RWsSession &aWs) and construct. |
|
1588 //! 11. Create 4 CFbsBitmap objects and load bitmaps. |
|
1589 //! 12. Append these CFbsBitmaps to RWsSprites. |
|
1590 //! 13. Set RWsSprites's position using SetPosition(). |
|
1591 //! 14. Set a text cursor using RWindowGroup::SetTextCursor(). |
|
1592 //! 15. Call RectCompare() to compare 2 areas of same content with ERemoveSprite. |
|
1593 //! 16. Call RectCompare() to compare 2 areas of same content with EIncludeSprite. |
|
1594 //! 17. Call RectCompare() to compare 2 areas of different content with EIncludeTextCursor. |
|
1595 //! 18. Deactive RWindow, destruct and close all objects used. |
|
1596 //! @SYMTestStatus Implemented |
|
1597 //! @SYMTestPriority High |
|
1598 //! @SYMTestExpectedResults 1. No panic |
|
1599 //! 2. compare result |
|
1600 //! 2.1 15 returns ETrue |
|
1601 //! 2.2 16 returns ETrue |
|
1602 //! 2.3 17 returns EFalse |
|
1603 //! @SYMTestType CIT |
|
1604 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1605 CREATE_OBJECT RWsSession ws |
|
1606 CREATE_OBJECT CWsScreenDevice scrdev |
|
1607 CREATE_OBJECT CWindowGc wgc |
|
1608 CREATE_OBJECT CFbsBitmap fbsbmp1 |
|
1609 CREATE_OBJECT CFbsBitmap fbsbmp2 |
|
1610 CREATE_OBJECT CFbsBitmap fbsbmp3 |
|
1611 CREATE_OBJECT CFbsBitmap fbsbmp4 |
|
1612 CREATE_OBJECT RWindowGroup wingrp |
|
1613 CREATE_OBJECT RWindow win |
|
1614 CREATE_OBJECT RWsSprite sprite1 |
|
1615 CREATE_OBJECT RWsSprite sprite2 |
|
1616 COMMAND ws new |
|
1617 COMMAND ws Connect |
|
1618 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command03 |
|
1619 COMMAND scrdev Construct |
|
1620 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-CreateContext_command05 |
|
1621 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command06 |
|
1622 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-Construct_command07 |
|
1623 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command08 |
|
1624 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-Construct_command09 |
|
1625 COMMAND win Activate |
|
1626 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-SetAutoFlush_command11 |
|
1627 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-Activate_command12 |
|
1628 COMMAND win BeginRedraw |
|
1629 COMMAND win EndRedraw |
|
1630 |
|
1631 COMMAND sprite1 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command15 |
|
1632 COMMAND sprite1 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-construct_command16 |
|
1633 COMMAND fbsbmp1 new |
|
1634 COMMAND fbsbmp1 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-loadmask_command18 |
|
1635 |
|
1636 COMMAND fbsbmp2 new |
|
1637 COMMAND fbsbmp2 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-load_command20 |
|
1638 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command21 |
|
1639 |
|
1640 COMMAND fbsbmp3 new |
|
1641 COMMAND fbsbmp3 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-load_command23 |
|
1642 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command24 |
|
1643 |
|
1644 COMMAND fbsbmp4 new |
|
1645 COMMAND fbsbmp4 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-load_command26 |
|
1646 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command27 |
|
1647 |
|
1648 COMMAND sprite1 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-SetPosition_command28 |
|
1649 |
|
1650 COMMAND sprite2 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command29 |
|
1651 COMMAND sprite2 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-construct_command30 |
|
1652 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command31 |
|
1653 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command32 |
|
1654 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command33 |
|
1655 |
|
1656 COMMAND sprite2 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-SetPosition_command34 |
|
1657 COMMAND sprite1 Activate |
|
1658 COMMAND sprite2 Activate |
|
1659 |
|
1660 COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-SetTextCursor_command37 |
|
1661 |
|
1662 DELAY 1000000 |
|
1663 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-RectCompare_command38 |
|
1664 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-RectCompare_command39 |
|
1665 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-RectCompare_command40 |
|
1666 |
|
1667 COMMAND fbsbmp1 ~ |
|
1668 COMMAND fbsbmp2 ~ |
|
1669 COMMAND fbsbmp3 ~ |
|
1670 COMMAND fbsbmp4 ~ |
|
1671 COMMAND wgc Deactivate |
|
1672 COMMAND win Close |
|
1673 COMMAND wingrp Close |
|
1674 COMMAND wgc ~ |
|
1675 COMMAND sprite1 Close |
|
1676 COMMAND sprite2 Close |
|
1677 COMMAND scrdev ~ |
|
1678 COMMAND ws Close |
|
1679 END_TEST_BLOCK |
|
1680 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0108 |
|
1681 |
|
1682 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0109 |
|
1683 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0109 |
|
1684 //! @SYMAPI CWsScreenDevice::GetScreenNumber() const |
|
1685 //! @SYMAuthor Allen CHANG |
|
1686 //! @SYMCreationDate 11/24/2007 |
|
1687 //! @SYMTestCaseDesc Get device's screen number |
|
1688 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
1689 //! 2. Creates a CWsScreenDevice attached to a RWsSession |
|
1690 //! 3. Completes the construction |
|
1691 //! 4. Gets the number of device's screen installed. |
|
1692 //! 5. Destructs the CWsScreenDevice object |
|
1693 //! 6. Closes the CWsScreenDevice object |
|
1694 //! @SYMTestStatus Implemented |
|
1695 //! @SYMTestPriority High |
|
1696 //! @SYMTestExpectedResults The number of screens of device is retrieved, the value is as expected. |
|
1697 //! @SYMTestType CIT |
|
1698 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1699 CREATE_OBJECT RWsSession ws |
|
1700 CREATE_OBJECT CWsScreenDevice scrdev |
|
1701 COMMAND ws new |
|
1702 COMMAND ws Connect |
|
1703 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0109-0001-new_command03 |
|
1704 COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0109-0001-Construct_command04 |
|
1705 COMMAND scrdev GetScreenNumber GRAPHICS-WSERV-WsScreenDevice-PublicApi-0109-0001-GetScreenNumber_command05 |
|
1706 COMMAND scrdev ~ |
|
1707 COMMAND ws Close |
|
1708 END_TEST_BLOCK |
|
1709 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0109 |
|
1710 |
|
1711 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0110 |
|
1712 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0110 |
|
1713 //! @SYMAPI CWsScreenDevice::SetBackLight(TBool) const |
|
1714 //! @SYMAuthor Allen CHANG |
|
1715 //! @SYMCreationDate 11/24/2007 |
|
1716 //! @SYMTestCaseDesc Set back light off, then on. |
|
1717 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
1718 //! 2. Creates a CWsScreenDevice attached to a RWsSession |
|
1719 //! 3. Completes the construction |
|
1720 //! 4. Turns backlight off |
|
1721 //! 5. Turns backlight on |
|
1722 //! 6. Destructs the CWsScreenDevice object |
|
1723 //! 7. Closes the CWsScreenDevice object |
|
1724 //! @SYMTestStatus Implemented |
|
1725 //! @SYMTestPriority High |
|
1726 //! @SYMTestExpectedResults No panic ocurred. |
|
1727 //! @SYMTestType CIT |
|
1728 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1729 CREATE_OBJECT RWsSession ws |
|
1730 CREATE_OBJECT CWsScreenDevice scrdev |
|
1731 COMMAND ws new |
|
1732 COMMAND ws Connect |
|
1733 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0110-0001-new_command03 |
|
1734 COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0110-0001-Construct_command04 |
|
1735 COMMAND scrdev SetBackLight GRAPHICS-WSERV-WsScreenDevice-PublicApi-0110-0001-SetBackLight_command05 |
|
1736 COMMAND scrdev SetBackLight GRAPHICS-WSERV-WsScreenDevice-PublicApi-0110-0001-SetBackLight_command06 |
|
1737 COMMAND scrdev ~ |
|
1738 COMMAND ws Close |
|
1739 END_TEST_BLOCK |
|
1740 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0110 |
|
1741 |
|
1742 |
|
1743 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0146 |
|
1744 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0146 |
|
1745 //! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInPixels(CFont {ptr}{ref}, const TFontSpec {ref}) |
|
1746 //! @SYMAuthor Kevin Zeng, Ray Liang |
|
1747 //! @SYMCreationDate 11/23/2007 |
|
1748 //! @SYMTestCaseDesc Get a font first, then release font, get another font, no panic occurs when case end. |
|
1749 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1750 //! 2. Creat a font. |
|
1751 //! 3. Create a CWsScreenDevice attached to RWsSession. |
|
1752 //! 4. Complete the construction. |
|
1753 //! 5. Call GetNearestFontToDesignHeightInPixels() to get a font. |
|
1754 //! 6. Call ReleaseFont() method. |
|
1755 //! 7. Call GetNearestFontToDesignHeightInPixels() to get a font again. |
|
1756 //! 8. Destruct the CWsScreenDevice object |
|
1757 //! 9. Close the RWsSession object |
|
1758 //! @SYMTestStatus Implemented |
|
1759 //! @SYMTestPriority High |
|
1760 //! @SYMTestExpectedResults No panic |
|
1761 //! @SYMTestType CIT |
|
1762 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1763 CREATE_OBJECT RWsSession ws |
|
1764 CREATE_OBJECT CWsScreenDevice scrdev |
|
1765 CREATE_OBJECT CFbsFont font |
|
1766 COMMAND ws new |
|
1767 COMMAND ws Connect |
|
1768 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0146-0001-new_command03 |
|
1769 COMMAND scrdev Construct |
|
1770 COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0146-0001-GetNearestFontToDesignHeightInPixels_command05 |
|
1771 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0146-0001-ReleaseFont_command06 |
|
1772 COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0146-0001-GetNearestFontToDesignHeightInPixels_command07 |
|
1773 COMMAND scrdev ~ |
|
1774 COMMAND ws Close |
|
1775 END_TEST_BLOCK |
|
1776 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0146 |
|
1777 |
|
1778 |
|
1779 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0150 |
|
1780 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0150 |
|
1781 //! @SYMAPI CWsScreenDevice::FontHeightInPixels(TInt, TInt) |
|
1782 //! @SYMAuthor Kevin Zeng |
|
1783 //! @SYMCreationDate 11/23/2007 |
|
1784 //! @SYMTestCaseDesc Gets the height of the specified font in pixels. |
|
1785 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1786 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
1787 //! 3. Complete the construction. |
|
1788 //! 4. Call FontHeightInPixels() method with different parameter values. |
|
1789 //! 5. Destruct and Close. |
|
1790 //! @SYMTestStatus Implemented |
|
1791 //! @SYMTestPriority High |
|
1792 //! @SYMTestExpectedResults FontHeightInPixels returns expected value. |
|
1793 //! @SYMTestType CIT |
|
1794 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1795 CREATE_OBJECT RWsSession ws |
|
1796 CREATE_OBJECT CWsScreenDevice scrdev |
|
1797 COMMAND ws new |
|
1798 COMMAND ws Connect |
|
1799 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-new_command03 |
|
1800 COMMAND scrdev Construct |
|
1801 COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-FontHeightInPixels_command05 |
|
1802 COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-FontHeightInPixels_command06 |
|
1803 COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-FontHeightInPixels_command07 |
|
1804 COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-FontHeightInPixels_command08 |
|
1805 COMMAND scrdev ~ |
|
1806 COMMAND ws Close |
|
1807 END_TEST_BLOCK |
|
1808 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0150 |
|
1809 |
|
1810 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0151 |
|
1811 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0151 |
|
1812 //! @SYMAPI CWsScreenDevice::::FontHeightInPixels(TInt, TInt) |
|
1813 //! @SYMAuthor Kevin Zeng |
|
1814 //! @SYMCreationDate 11/23/2007 |
|
1815 //! @SYMTestCaseDesc Negative test, using large numbers in the parameters. |
|
1816 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1817 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
1818 //! 3. Complete the construction. |
|
1819 //! 4. Call FontHeightInPixels() method with large parameter values. |
|
1820 //! 5. Destruct and Close. |
|
1821 //! @SYMTestStatus Implemented |
|
1822 //! @SYMTestPriority High |
|
1823 //! @SYMTestExpectedResults FontHeightInPixels returns 0 with no panic. |
|
1824 //! @SYMTestType CIT |
|
1825 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1826 CREATE_OBJECT RWsSession ws |
|
1827 CREATE_OBJECT CWsScreenDevice scrdev |
|
1828 COMMAND ws new |
|
1829 COMMAND ws Connect |
|
1830 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0151-0001-new_command03 |
|
1831 COMMAND scrdev Construct |
|
1832 COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0151-0001-FontHeightInPixels_command05 |
|
1833 COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0151-0001-FontHeightInPixels_command06 |
|
1834 COMMAND scrdev ~ |
|
1835 COMMAND ws Close |
|
1836 END_TEST_BLOCK |
|
1837 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0151 |
|
1838 |
|
1839 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0153 |
|
1840 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0153 |
|
1841 //! @SYMAPI CWsScreenDevice::PaletteAttributes(TBool {ref}, TInt {ref}) |
|
1842 //! @SYMAuthor Kevin Zeng |
|
1843 //! @SYMCreationDate 11/23/2007 |
|
1844 //! @SYMTestCaseDesc Gets the attributes of the device's palette. |
|
1845 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1846 //! 2. Creat a font. |
|
1847 //! 3. Create a CWsScreenDevice attached to RWsSession. |
|
1848 //! 4. Complete the construction. |
|
1849 //! 5. Call PaletteAttributes() method. |
|
1850 //! 6. Destruct and Close. |
|
1851 //! @SYMTestStatus Implemented |
|
1852 //! @SYMTestPriority High |
|
1853 //! @SYMTestExpectedResults PaletteAttributes retrieves expected values. |
|
1854 //! @SYMTestType CIT |
|
1855 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1856 CREATE_OBJECT RWsSession ws |
|
1857 CREATE_OBJECT CWsScreenDevice scrdev |
|
1858 COMMAND ws new |
|
1859 COMMAND ws Connect |
|
1860 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0153-0001-new_command03 |
|
1861 COMMAND scrdev Construct |
|
1862 COMMAND scrdev PaletteAttributes GRAPHICS-WSERV-WsScreenDevice-PublicApi-0153-0001-PaletteAttributes_command05 |
|
1863 COMMAND scrdev ~ |
|
1864 COMMAND ws Close |
|
1865 END_TEST_BLOCK |
|
1866 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0153 |
|
1867 |
|
1868 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0154 |
|
1869 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0154 |
|
1870 //! @SYMAPI CWsScreenDevice::SetCustomPalette(const CPalette {ptr}) |
|
1871 //! @SYMAuthor Kevin Zeng |
|
1872 //! @SYMCreationDate 11/23/2007 |
|
1873 //! @SYMTestCaseDesc Sets the custom palette. |
|
1874 //! Gets the screen device's palette. |
|
1875 //! Support for palette will depend on the screen driver implementation, it's not supported in techview. |
|
1876 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1877 //! 2. Creat a font. |
|
1878 //! 3. Create a Palette. |
|
1879 //! 3. Create a CWsScreenDevice attached to RWsSession. |
|
1880 //! 4. Complete the construction. |
|
1881 //! 5. Call SetCustomPalette() with the existing palette. |
|
1882 //! 6. Call GetPalette() to get the palette. |
|
1883 //! 7. Destruct and Close. |
|
1884 //! @SYMTestStatus Implemented |
|
1885 //! @SYMTestPriority High |
|
1886 //! @SYMTestExpectedResults SetCustomPalette returns KErrNone. GetPalette retrieves a palette as expected. |
|
1887 //! @SYMTestType CIT |
|
1888 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1889 CREATE_OBJECT RWsSession ws |
|
1890 CREATE_OBJECT CWsScreenDevice scrdev |
|
1891 CREATE_OBJECT CPalette palette |
|
1892 COMMAND palette NewL GRAPHICS-WSERV-WsScreenDevice-PublicApi-0154-0001-NewL_command01 |
|
1893 COMMAND ws new |
|
1894 COMMAND ws Connect |
|
1895 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0154-0001-new_command04 |
|
1896 COMMAND scrdev Construct |
|
1897 COMMAND scrdev SetCustomPalette GRAPHICS-WSERV-WsScreenDevice-PublicApi-0154-0001-SetCustomPalette_command06 |
|
1898 COMMAND scrdev GetPalette GRAPHICS-WSERV-WsScreenDevice-PublicApi-0154-0001-GetPalette_command07 |
|
1899 COMMAND palette ~ |
|
1900 COMMAND scrdev ~ |
|
1901 COMMAND ws Close |
|
1902 END_TEST_BLOCK |
|
1903 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0154 |
|
1904 |
|
1905 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0156 |
|
1906 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0156 |
|
1907 //! @SYMAPI CWsScreenDevice::GetFontById(CFont {ptr}{ref}, TUid, const TAlgStyle {ref}) |
|
1908 //! @SYMAuthor Kevin Zeng |
|
1909 //! @SYMCreationDate 11/23/2007 |
|
1910 //! @SYMTestCaseDesc Gets a font by its bitmap UID and check the font is got. |
|
1911 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1912 //! 2. Create a TAlgStyle. |
|
1913 //! 3. Create a CWsScreenDevice attached to RWsSession. |
|
1914 //! 4. Complete the construction. |
|
1915 //! 5. Call GetFontById() with the uid and algstyle to check the font got. |
|
1916 //! 6. Destruct and Close. |
|
1917 //! @SYMTestStatus Implemented |
|
1918 //! @SYMTestPriority High |
|
1919 //! @SYMTestExpectedResults 1. GetFontById returns KErrNone. |
|
1920 //! 2. HeightInPixels returns expected value. |
|
1921 //! @SYMTestType CIT |
|
1922 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1923 CREATE_OBJECT RWsSession ws |
|
1924 CREATE_OBJECT CWsScreenDevice scrdev |
|
1925 CREATE_OBJECT TAlgStyle algstyle |
|
1926 CREATE_OBJECT CFbsFont font |
|
1927 COMMAND algstyle new |
|
1928 COMMAND ws new |
|
1929 COMMAND ws Connect |
|
1930 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0156-0001-new_command04 |
|
1931 COMMAND scrdev Construct |
|
1932 COMMAND scrdev GetFontById GRAPHICS-WSERV-WsScreenDevice-PublicApi-0156-0001-GetFontById_command07 |
|
1933 COMMAND font HeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0156-0001-HeightInPixels_command08 |
|
1934 COMMAND algstyle ~ |
|
1935 COMMAND scrdev ~ |
|
1936 COMMAND ws Close |
|
1937 END_TEST_BLOCK |
|
1938 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0156 |
|
1939 |
|
1940 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0157 |
|
1941 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0157 |
|
1942 //! @SYMAPI CWsScreenDevice::GetFontById(CFont {ptr}{ref}, TUid, const TAlgStyle {ref}) |
|
1943 //! @SYMAuthor Kevin Zeng |
|
1944 //! @SYMCreationDate 11/23/2007 |
|
1945 //! @SYMTestCaseDesc Negative test, using an error UID. |
|
1946 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1947 //! 2. Cteaate a TAlgStyle. |
|
1948 //! 3. Create a CWsScreenDevice attached to RWsSession. |
|
1949 //! 4. Complete the construction. |
|
1950 //! 5. Call GetFontById() with a algstyle and a error uid. |
|
1951 //! 6. Destruct and Close. |
|
1952 //! @SYMTestStatus Implemented |
|
1953 //! @SYMTestPriority High |
|
1954 //! @SYMTestExpectedResults GetFontById returns a error. |
|
1955 //! @SYMTestType CIT |
|
1956 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
1957 CREATE_OBJECT RWsSession ws |
|
1958 CREATE_OBJECT CWsScreenDevice scrdev |
|
1959 CREATE_OBJECT TAlgStyle algstyle |
|
1960 CREATE_OBJECT CFbsFont font |
|
1961 COMMAND algstyle new |
|
1962 COMMAND ws new |
|
1963 COMMAND ws Connect |
|
1964 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0157-0001-new_command04 |
|
1965 COMMAND scrdev Construct |
|
1966 COMMAND !Error=-1 scrdev GetFontById GRAPHICS-WSERV-WsScreenDevice-PublicApi-0157-0001-GetFontById_command07 |
|
1967 COMMAND scrdev ~ |
|
1968 COMMAND algstyle ~ |
|
1969 COMMAND ws Close |
|
1970 END_TEST_BLOCK |
|
1971 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0157 |
|
1972 |
|
1973 |
|
1974 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0158 |
|
1975 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0158 |
|
1976 //! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap {ptr}) |
|
1977 //! @SYMAuthor Kevin Zeng |
|
1978 //! @SYMCreationDate 12/10/2007 |
|
1979 //! @SYMTestCaseDesc Set up and draw a 100*100 rect on white screen, inside of the rect is red and border is black. |
|
1980 //! Craete a screen size bitmap.Copy the entire screen to the bitmap and check the bitmap's pixel. |
|
1981 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
1982 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
1983 //! 3. Create a RWindowGroup attached RWsSession. |
|
1984 //! 4. Create a RWindow, setup it and activate. |
|
1985 //! 5. RWsSession SetAutoFlush. |
|
1986 //! 6. Setup and draw a rectangle(100*100 size,filled with red, border is black). |
|
1987 //! 7. Create a CFbsBitmap as the size of the screen. |
|
1988 //! 8. Call CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap *) to copy the whole screen to bitmap. |
|
1989 //! 9. GetPixel from the bitmap, check the rectangle(inside is red, border is black and outside is white). |
|
1990 //! 10. Destruct and Close. |
|
1991 //! @SYMTestStatus Implemented |
|
1992 //! @SYMTestPriority High |
|
1993 //! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. |
|
1994 //! 2. The bitmap which is copyed to is correct |
|
1995 //! 2.1 The pixels (0,0) is color TRgb(0,0,0); The border is black. |
|
1996 //! 2.2 The pixels (99,99) is color TRgb(0,0,0); The border is black. |
|
1997 //! 2.3 The pixels (50,99) is color TRgb(0,0,0); The border is black. |
|
1998 //! 2.4 The pixels (99,50) is color TRgb(0,0,0); The border is black. |
|
1999 //! 2.5 The pixels (50,100) is color TRgb(255,255,255); Outside is white. |
|
2000 //! 2.6 The pixels (100,50) is color TRgb(255,255,255); Outside is white. |
|
2001 //! 2.7 The pixels (1,1) is color TRgb(255,0,0); Inside is red. |
|
2002 //! 2.8 The pixels (98,98) is color TRgb(255,0,0); Inside is red. |
|
2003 //! @SYMTestType CIT |
|
2004 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2005 CREATE_OBJECT RWsSession ws |
|
2006 CREATE_OBJECT CWsScreenDevice scrdev |
|
2007 CREATE_OBJECT CWindowGc wgc |
|
2008 COMMAND ws new |
|
2009 COMMAND ws Connect |
|
2010 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-new_command03 |
|
2011 COMMAND scrdev Construct |
|
2012 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-CreateContext_command05 |
|
2013 CREATE_OBJECT RWindowGroup wingrp |
|
2014 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-new_command06 |
|
2015 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-Construct_command07 |
|
2016 CREATE_OBJECT RWindow win |
|
2017 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-new_command08 |
|
2018 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-Construct_command09 |
|
2019 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetRequiredDisplayMode_command10 |
|
2020 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetBackgroundColor_command11 |
|
2021 COMMAND win Activate |
|
2022 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetAutoFlush_command13 |
|
2023 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-Activate_command14 |
|
2024 COMMAND win BeginRedraw |
|
2025 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetBrushColor_command16 |
|
2026 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetBrushStyle_command17 |
|
2027 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetPenColor_command18 |
|
2028 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-DrawRect_command19 |
|
2029 COMMAND win EndRedraw |
|
2030 CREATE_OBJECT CFbsBitmap fbsbitmap |
|
2031 COMMAND fbsbitmap new |
|
2032 COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-Create_command22 |
|
2033 COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-CopyScreenToBitmap_command23 |
|
2034 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command24 |
|
2035 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command25 |
|
2036 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command26 |
|
2037 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command27 |
|
2038 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command28 |
|
2039 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command29 |
|
2040 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command30 |
|
2041 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command31 |
|
2042 COMMAND fbsbitmap ~ |
|
2043 COMMAND wgc Deactivate |
|
2044 COMMAND win Close |
|
2045 COMMAND wingrp Close |
|
2046 COMMAND wgc ~ |
|
2047 COMMAND scrdev ~ |
|
2048 COMMAND ws Close |
|
2049 END_TEST_BLOCK |
|
2050 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0158 |
|
2051 |
|
2052 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0159 |
|
2053 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0159 |
|
2054 //! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap {ptr}, const TRect {ref}) |
|
2055 //! @SYMAuthor Kevin Zeng |
|
2056 //! @SYMCreationDate 12/10/2007 |
|
2057 //! @SYMTestCaseDesc Set up and draw a 100*100 rect on white screen, inside of the rect is red and border is black. |
|
2058 //! Craete a 100*100 bitmap.Copy the 100*100 rect in the screen to the bitmap and check the bitmap's pixel. |
|
2059 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
2060 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
2061 //! 3. Create a RWindowGroup attached to RWsSession. |
|
2062 //! 4. Create a RWindow, setup it and activate. |
|
2063 //! 5. RWsSession SetAutoFlush. |
|
2064 //! 6. Setup and draw a rectangle(100*100 size,filled with red, border is black). |
|
2065 //! 7. Create a CFbsBitmap as the size of the screen. |
|
2066 //! 8. Call CWsScreenDevice::CopyScreenToBitmap((const CFbsBitmap *aBitmap,const TRect &aRect) to copy a 100*100 rect to a 100*100 bitmap. |
|
2067 //! 9. GetPixel from the bitmap, check the rectangle(inside is red, border is black). |
|
2068 //! 10. Destruct and Close. |
|
2069 //! @SYMTestStatus Implemented |
|
2070 //! @SYMTestPriority High |
|
2071 //! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. |
|
2072 //! 2. The bitmap which is copyed to is correct |
|
2073 //! 2.1 The pixels (0,0) is color TRgb(0,0,0); The border is black. |
|
2074 //! 2.2 The pixels (99,99) is color TRgb(0,0,0); The border is black. |
|
2075 //! 2.3 The pixels (50,99) is color TRgb(0,0,0); The border is black. |
|
2076 //! 2.4 The pixels (99,50) is color TRgb(0,0,0); The border is black. |
|
2077 //! 2.5 The pixels (1,1) is color TRgb(255,0,0); Inside is red. |
|
2078 //! 2.6 The pixels (98,98) is color TRgb(255,0,0); Inside is red. |
|
2079 //! @SYMTestType CIT |
|
2080 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2081 CREATE_OBJECT RWsSession ws |
|
2082 CREATE_OBJECT CWsScreenDevice scrdev |
|
2083 CREATE_OBJECT CWindowGc wgc |
|
2084 COMMAND ws new |
|
2085 COMMAND ws Connect |
|
2086 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-new_command03 |
|
2087 COMMAND scrdev Construct |
|
2088 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-CreateContext_command05 |
|
2089 CREATE_OBJECT RWindowGroup wingrp |
|
2090 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-new_command06 |
|
2091 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-Construct_command07 |
|
2092 CREATE_OBJECT RWindow win |
|
2093 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-new_command08 |
|
2094 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-Construct_command09 |
|
2095 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetRequiredDisplayMode_command10 |
|
2096 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetBackgroundColor_command11 |
|
2097 COMMAND win Activate |
|
2098 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetAutoFlush_command13 |
|
2099 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-Activate_command14 |
|
2100 COMMAND win BeginRedraw |
|
2101 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetBrushColor_command16 |
|
2102 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetBrushStyle_command17 |
|
2103 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetPenColor_command18 |
|
2104 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-DrawRect_command19 |
|
2105 COMMAND win EndRedraw |
|
2106 CREATE_OBJECT CFbsBitmap fbsbitmap |
|
2107 COMMAND fbsbitmap new |
|
2108 COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-Create_command22 |
|
2109 COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-CopyScreenToBitmap_command23 |
|
2110 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command24 |
|
2111 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command25 |
|
2112 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command26 |
|
2113 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command27 |
|
2114 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command28 |
|
2115 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command29 |
|
2116 COMMAND fbsbitmap ~ |
|
2117 COMMAND wgc Deactivate |
|
2118 COMMAND win Close |
|
2119 COMMAND wingrp Close |
|
2120 COMMAND wgc ~ |
|
2121 COMMAND scrdev ~ |
|
2122 COMMAND ws Close |
|
2123 END_TEST_BLOCK |
|
2124 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0159 |
|
2125 |
|
2126 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0160 |
|
2127 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0160 |
|
2128 //! @SYMAPI CWsScreenDevice::Construct(TInt) |
|
2129 //! @SYMAuthor Niandong Qiao |
|
2130 //! @SYMCreationDate 01/03/2008 |
|
2131 //! @SYMTestCaseDesc Negative test, uses invalid input values |
|
2132 //! @SYMTestActions 1. Create and connect a RWsSession |
|
2133 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
2134 //! 3. Complete the construction with aDefaultScreenNumber = 10000 |
|
2135 //! 4. Destruct the CWsScreenDevice object |
|
2136 //! 5. Close the RWsSession object |
|
2137 //! @SYMTestStatus Implemented |
|
2138 //! @SYMTestPriority High |
|
2139 //! @SYMTestExpectedResults WSERV 65 panic received at Test Action 3. |
|
2140 //! @SYMTestType CIT |
|
2141 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2142 CREATE_OBJECT RWsSession ws |
|
2143 CREATE_OBJECT CWsScreenDevice scrdev |
|
2144 COMMAND ws new |
|
2145 COMMAND ws Connect |
|
2146 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0160-0001-new_command03 |
|
2147 COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0160-0001-Construct_command04 |
|
2148 COMMAND scrdev ~ |
|
2149 COMMAND ws Close |
|
2150 END_TEST_BLOCK !PanicString=WSERV !PanicCode=65 |
|
2151 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
2152 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0160 |
|
2153 |
|
2154 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0161 |
|
2155 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0161 |
|
2156 //! @SYMAPI CWsScreenDevice::HorizontalTwipsToPixels(TInt) |
|
2157 //! @SYMAuthor Niandong Qiao |
|
2158 //! @SYMCreationDate 01/03/2008 |
|
2159 //! @SYMTestCaseDesc Uses big twips/0/small negative twips |
|
2160 //! @SYMTestActions 1. Create and connect a RWsSession |
|
2161 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
2162 //! 3. Complete the construction |
|
2163 //! 4. Translates three horizontal dimension in twips into pixels |
|
2164 //! 4.1 input twips = 762000000, return 64000000 for emulator and 54635895 for H4. |
|
2165 //! 4.2 input twips = 0, return 0. |
|
2166 //! 4.3 input twips = -762000000, return -63999999 for emulator and -54635894 for H4. |
|
2167 //! 5. Destruct the CWsScreenDevice object |
|
2168 //! 6. Close the RWsSession object |
|
2169 //! @SYMTestStatus Implemented |
|
2170 //! @SYMTestPriority Critical |
|
2171 //! @SYMTestExpectedResults No panic and the returned pixels are as expected |
|
2172 //! @SYMTestType CIT |
|
2173 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2174 CREATE_OBJECT RWsSession ws |
|
2175 CREATE_OBJECT CWsScreenDevice scrdev |
|
2176 COMMAND ws new |
|
2177 COMMAND ws Connect |
|
2178 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0161-0001-new_command03 |
|
2179 COMMAND scrdev Construct |
|
2180 COMMAND scrdev HorizontalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0161-0001-HorizontalTwipsToPixels_command05 |
|
2181 COMMAND scrdev HorizontalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0161-0001-HorizontalTwipsToPixels_command06 |
|
2182 COMMAND scrdev HorizontalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0161-0001-HorizontalTwipsToPixels_command07 |
|
2183 COMMAND scrdev ~ |
|
2184 COMMAND ws Close |
|
2185 END_TEST_BLOCK |
|
2186 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0161 |
|
2187 |
|
2188 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0162 |
|
2189 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0162 |
|
2190 //! @SYMAPI CWsScreenDevice::VerticalTwipsToPixels(TInt) |
|
2191 //! @SYMAuthor Niandong Qiao |
|
2192 //! @SYMCreationDate 01/03/2008 |
|
2193 //! @SYMTestCaseDesc Uses big twips/0/small negative twips |
|
2194 //! @SYMTestActions 1. Create and connect a RWsSession |
|
2195 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
2196 //! 3. Complete the construction |
|
2197 //! 4. Translates three vertical dimension in twips into pixels |
|
2198 //! 4.1 input twips = 285800000, return 24000000 for emulator and 22555738 for H4. |
|
2199 //! 4.2 input twips = 0, return 0. |
|
2200 //! 4.3 input twips = -285800000, return -23999999 for emulator and -22555737 for H4. |
|
2201 //! 5. Destruct the CWsScreenDevice object |
|
2202 //! 6. Close the RWsSession object |
|
2203 //! @SYMTestStatus Implemented |
|
2204 //! @SYMTestPriority Critical |
|
2205 //! @SYMTestExpectedResults No panic and the returned pixels are as expected |
|
2206 //! @SYMTestType CIT |
|
2207 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2208 CREATE_OBJECT RWsSession ws |
|
2209 CREATE_OBJECT CWsScreenDevice scrdev |
|
2210 COMMAND ws new |
|
2211 COMMAND ws Connect |
|
2212 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0162-0001-new_command03 |
|
2213 COMMAND scrdev Construct |
|
2214 COMMAND scrdev VerticalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0162-0001-VerticalTwipsToPixels_command05 |
|
2215 COMMAND scrdev VerticalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0162-0001-VerticalTwipsToPixels_command06 |
|
2216 COMMAND scrdev VerticalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0162-0001-VerticalTwipsToPixels_command07 |
|
2217 COMMAND scrdev ~ |
|
2218 COMMAND ws Close |
|
2219 END_TEST_BLOCK |
|
2220 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0162 |
|
2221 |
|
2222 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0163 |
|
2223 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0163 |
|
2224 //! @SYMAPI CWsScreenDevice::HorizontalPixelsToTwips(TInt) |
|
2225 //! @SYMAuthor Niandong Qiao |
|
2226 //! @SYMCreationDate 01/03/2008 |
|
2227 //! @SYMTestCaseDesc Uses big pixels/0/small negative pixels |
|
2228 //! @SYMTestActions 1. Create and connect a RWsSession |
|
2229 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
2230 //! 3. Complete the construction |
|
2231 //! 4. Translates three horizontal dimension in pixels into twips |
|
2232 //! 4.1 input pixel = 64000000, return 762000000 for emulator and 892600000 for H4. |
|
2233 //! 4.2 input pixel = 0, return 0. |
|
2234 //! 4.3 input pixel = -64000000, return -761999999 for emulator and -892599999 for H4. |
|
2235 //! 5. Destruct the CWsScreenDevice object |
|
2236 //! 6. Close the RWsSession object |
|
2237 //! @SYMTestStatus Implemented |
|
2238 //! @SYMTestPriority Critical |
|
2239 //! @SYMTestExpectedResults No panic and the returned twips are as expected |
|
2240 //! @SYMTestType CIT |
|
2241 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2242 CREATE_OBJECT RWsSession ws |
|
2243 CREATE_OBJECT CWsScreenDevice scrdev |
|
2244 COMMAND ws new |
|
2245 COMMAND ws Connect |
|
2246 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0163-0001-new_command03 |
|
2247 COMMAND scrdev Construct |
|
2248 COMMAND scrdev HorizontalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0163-0001-HorizontalPixelsToTwips_command05 |
|
2249 COMMAND scrdev HorizontalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0163-0001-HorizontalPixelsToTwips_command06 |
|
2250 COMMAND scrdev HorizontalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0163-0001-HorizontalPixelsToTwips_command07 |
|
2251 COMMAND scrdev ~ |
|
2252 COMMAND ws Close |
|
2253 END_TEST_BLOCK |
|
2254 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0163 |
|
2255 |
|
2256 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0164 |
|
2257 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0164 |
|
2258 //! @SYMAPI CWsScreenDevice::VerticalPixelsToTwips(TInt) |
|
2259 //! @SYMAuthor Niandong Qiao |
|
2260 //! @SYMCreationDate 01/03/2008 |
|
2261 //! @SYMTestCaseDesc Uses big pixels/0/small negative pixels |
|
2262 //! @SYMTestActions 1. Create and connect a RWsSession |
|
2263 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
2264 //! 3. Complete the construction |
|
2265 //! 4. Translates three vertical dimension in pixels into twips |
|
2266 //! 4.1 input pixel = 24000000, return 285800000 for emulator and 304100000 for H4. |
|
2267 //! 4.2 input pixel = 0, return 0. |
|
2268 //! 4.3 input pixel = -24000000, return -285799999 for emulator and -304099999 for H4. |
|
2269 //! 5. Destruct the CWsScreenDevice object |
|
2270 //! 6. Close the RWsSession object |
|
2271 //! @SYMTestStatus Implemented |
|
2272 //! @SYMTestPriority Critical |
|
2273 //! @SYMTestExpectedResults No panic and the returned twips are as expected |
|
2274 //! @SYMTestType CIT |
|
2275 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2276 CREATE_OBJECT RWsSession ws |
|
2277 CREATE_OBJECT CWsScreenDevice scrdev |
|
2278 COMMAND ws new |
|
2279 COMMAND ws Connect |
|
2280 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0164-0001-new_command03 |
|
2281 COMMAND scrdev Construct |
|
2282 COMMAND scrdev VerticalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0164-0001-VerticalPixelsToTwips_command05 |
|
2283 COMMAND scrdev VerticalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0164-0001-VerticalPixelsToTwips_command06 |
|
2284 COMMAND scrdev VerticalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0164-0001-VerticalPixelsToTwips_command07 |
|
2285 COMMAND scrdev ~ |
|
2286 COMMAND ws Close |
|
2287 END_TEST_BLOCK |
|
2288 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0164 |
|
2289 |
|
2290 //!START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0165 |
|
2291 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0165 |
|
2292 //! @SYMAPI CWsScreenDevice::CreateContext(CWindowGc{ptr}{ref}) |
|
2293 //! @SYMAuthor Niandong Qiao |
|
2294 //! @SYMCreationDate 01/03/2008 |
|
2295 //! @SYMTestCaseDesc Negative test. |
|
2296 //! Create a CWsScreenDevice object neither attached to a RWsSession nor complete the construction, then call the CreateContext with it. |
|
2297 //! @SYMTestActions 1.New a CWsScreenDevice without attached to a RWsSession |
|
2298 //! 2.Create a CWindowGc within the CWsScreenDevice by CreateContext |
|
2299 //! 3.Destruct and close all objects used |
|
2300 //! @SYMTestStatus Implemented |
|
2301 //! @SYMTestPriority High |
|
2302 //! @SYMTestExpectedResults KERN-EXEC 3 panic received at Test Action 2. |
|
2303 //! @SYMTestType CIT |
|
2304 //! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2305 //! CREATE_OBJECT CWsScreenDevice scrdev |
|
2306 //! CREATE_OBJECT CWindowGc wgc |
|
2307 //! COMMAND scrdev new |
|
2308 //! COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0165-0001-CreateContext_command02 |
|
2309 //! COMMAND wgc ~ |
|
2310 //! COMMAND scrdev ~ |
|
2311 //! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 |
|
2312 //! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
2313 //!END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0165 |
|
2314 |
|
2315 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180 |
|
2316 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180 |
|
2317 //! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}) |
|
2318 //! @SYMAuthor Dorothy Zhang |
|
2319 //! @SYMCreationDate 01/03/2008 |
|
2320 //! @SYMTestCaseDesc Negative test, gets an existent font name but too big/too small/negative size |
|
2321 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
2322 //! 2. Create a CWsScreenDevice attached to a RWsSession. |
|
2323 //! 3. Complete the construction. |
|
2324 //! 4. Get font in twips for DejaVu Sans Mono, 1000000 twips font. |
|
2325 //! 5. Check the returned font is expected |
|
2326 //! 6. Get font in twips for DejaVu Sans Mono, 0 twips font. |
|
2327 //! 7. Check the returned font is expected |
|
2328 //! 8. Get font in twips for DejaVu Sans Mono, -1 twips font. |
|
2329 //! 9. Check the returned font is expected |
|
2330 //! 10. Destruct and close all objects used. |
|
2331 //! @SYMTestStatus Implemented |
|
2332 //! @SYMTestPriority Low |
|
2333 //! @SYMTestExpectedResults 1. The function GetNearestFontToDesignHeightInTwips() call returns KErrNone and no panic. |
|
2334 //! 2. The returned font is as expected. |
|
2335 //! @SYMTestType CIT |
|
2336 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2337 CREATE_OBJECT RWsSession ws |
|
2338 CREATE_OBJECT CWsScreenDevice scrdev |
|
2339 CREATE_OBJECT CFbsFont font |
|
2340 COMMAND ws new |
|
2341 COMMAND ws Connect |
|
2342 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180-0001-new_command03 |
|
2343 COMMAND scrdev Construct |
|
2344 COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180-0001-GetNearestFontToDesignHeightInTwips_command05 |
|
2345 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0180-0001-FontSpecInTwips_command06 |
|
2346 COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180-0001-GetNearestFontToDesignHeightInTwips_command07 |
|
2347 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0180-0001-FontSpecInTwips_command08 |
|
2348 COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180-0001-GetNearestFontToDesignHeightInTwips_command09 |
|
2349 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0180-0001-FontSpecInTwips_command10 |
|
2350 COMMAND scrdev ~ |
|
2351 COMMAND ws Close |
|
2352 END_TEST_BLOCK |
|
2353 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180 |
|
2354 |
|
2355 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0181 |
|
2356 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0181 |
|
2357 //! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}) |
|
2358 //! @SYMAuthor Dorothy Zhang |
|
2359 //! @SYMCreationDate 01/03/2008 |
|
2360 //! @SYMTestCaseDesc Negative test, try to get a font by an empty font name. |
|
2361 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
2362 //! 2. Create a CWsScreenDevice attached to a RWsSession. |
|
2363 //! 3. Complete the construction. |
|
2364 //! 4. Get the font in twips for "" (empty name), 50 twips font. |
|
2365 //! 5. Check the returned font is expected |
|
2366 //! 6. Destruct and close all objects used. |
|
2367 //! @SYMTestStatus Implemented |
|
2368 //! @SYMTestPriority Low |
|
2369 //! @SYMTestExpectedResults 1. The function GetNearestFontToDesignHeightInTwips() call returns KErrNone and no panic. |
|
2370 //! 2. The returned font is as expected. |
|
2371 //! @SYMTestType CIT |
|
2372 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2373 CREATE_OBJECT RWsSession ws |
|
2374 CREATE_OBJECT CWsScreenDevice scrdev |
|
2375 CREATE_OBJECT CFbsFont font |
|
2376 COMMAND ws new |
|
2377 COMMAND ws Connect |
|
2378 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0181-0001-new_command03 |
|
2379 COMMAND scrdev Construct |
|
2380 COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0181-0001-GetNearestFontToDesignHeightInTwips_command05 |
|
2381 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0181-0001-FontSpecInTwips_command06 |
|
2382 COMMAND scrdev ~ |
|
2383 COMMAND ws Close |
|
2384 END_TEST_BLOCK |
|
2385 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0181 |
|
2386 |
|
2387 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182 |
|
2388 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182 |
|
2389 //! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}) |
|
2390 //! @SYMAuthor Dorothy Zhang |
|
2391 //! @SYMCreationDate 01/07/2008 |
|
2392 //! @SYMTestCaseDesc 1. Try to get a font before adding it to the typeface. |
|
2393 //! 2. Add the font and try to get it, verify the font is as expected. |
|
2394 //! 3. Remove the font and try to get it again. |
|
2395 //! @SYMTestActions 1. Create and connects a RWsSession. |
|
2396 //! 2. Create a CWsScreenDevice attached to a RWsSession. |
|
2397 //! 3. Complete the construction. |
|
2398 //! 4. Try to get a non-exist font "Acb14" and check it. |
|
2399 //! 5. Add the "Acb14" font file to the device's typeface store. |
|
2400 //! 6. Try to get the "Acb14" font and check the returned font. |
|
2401 //! 7. Remove the font file from device's typeface store |
|
2402 //! 8. Try to get the "Acb14" font again and check the returned font. |
|
2403 //! 9. Destruct and close all objects used. |
|
2404 //! @SYMTestStatus Implemented |
|
2405 //! @SYMTestPriority Low |
|
2406 //! @SYMTestExpectedResults 1. The FontSpecInTwips() call at Test Action 4 should not return the font name "Acb14". |
|
2407 //! 2. The FontSepcInTwips() call at Test Action 6 should not return the font name "Acb14" because wserv font system cached the first get. |
|
2408 //! 3. The FontSpecInTwips() call at Test Action 8 should not return the font name "Acb14" . |
|
2409 //! @SYMTestType CIT |
|
2410 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2411 CREATE_OBJECT RWsSession ws |
|
2412 CREATE_OBJECT CWsScreenDevice scrdev |
|
2413 CREATE_OBJECT CFbsFont font |
|
2414 COMMAND ws new |
|
2415 COMMAND ws Connect |
|
2416 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-new_command03 |
|
2417 COMMAND scrdev Construct |
|
2418 COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-GetNearestFontToDesignHeightInTwips_command05 |
|
2419 COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-FontSpecInTwips_command06 |
|
2420 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-ReleaseFont_command07 |
|
2421 COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-AddFile_command08 |
|
2422 COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-GetNearestFontToDesignHeightInTwips_command09 |
|
2423 COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-FontSpecInTwips_command10 |
|
2424 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-ReleaseFont_command11 |
|
2425 COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-RemoveFile_command12 |
|
2426 COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-GetNearestFontToDesignHeightInTwips_command13 |
|
2427 COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-FontSpecInTwips_command14 |
|
2428 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-ReleaseFont_command15 |
|
2429 COMMAND scrdev ~ |
|
2430 COMMAND ws Close |
|
2431 END_TEST_BLOCK |
|
2432 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182 |
|
2433 |
|
2434 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183 |
|
2435 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183 |
|
2436 //! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}, TInt) |
|
2437 //! @SYMAuthor Dorothy Zhang |
|
2438 //! @SYMCreationDate 01/07/2008 |
|
2439 //! @SYMTestCaseDesc Negative test, gets an existent font but too big/too small/negative size. |
|
2440 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
2441 //! 2. Create a CWsScreenDevice attached to a RWsSession. |
|
2442 //! 3. Complete the construction. |
|
2443 //! 4. Get the font for DejaVu Sans Mono, 1000000 twips font, specifying max height = 100. |
|
2444 //! 5. Check the returned font is as expected. |
|
2445 //! 6. Get the font for DejaVu Sans Mono, 0 twips font, specifying max height=100. |
|
2446 //! 7. Check the returned font is as expected. |
|
2447 //! 8. Get the font for DejaVu Sans Mono, -1 twips font, specifying max height=100. |
|
2448 //! 9. Check the returned font is as expected. |
|
2449 //! 10. Get the font for DejaVu Sans Mono, 72 twips font, specifying max height = 1000000. |
|
2450 //! 11. Check KErrTooBig error is returned. |
|
2451 //! 12. Get the font for DejaVu Sans Mono, 72 twips font, specifying max height = 0. |
|
2452 //! 13. Check the returned font is as expected. |
|
2453 //! 14. Get the font for DejaVu Sans Mono, 72 twips font, specifying max height = -1. |
|
2454 //! 15. Check the returned font is as expected. |
|
2455 //! 16. Get the font for DejaVu Sans Mono, 10000 twips font, specifying max height = -1. |
|
2456 //! 17. Check the returned font is as expected. |
|
2457 //! 18. Destruct and close all objects used. |
|
2458 //! @SYMTestStatus Implemented |
|
2459 //! @SYMTestPriority Low |
|
2460 //! @SYMTestExpectedResults 1. The GetNearestFontToMaxHeightInTwips() call at Test Action 7 returns KErrTooBig (Error=-40) and no panic. |
|
2461 //! 2. The Other GetNearestFontToMaxHeightInTwips() calls return KErrNone and no panic. |
|
2462 //! 3. The returned font is as expected. |
|
2463 //! @SYMTestType CIT |
|
2464 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2465 CREATE_OBJECT RWsSession ws |
|
2466 CREATE_OBJECT CWsScreenDevice scrdev |
|
2467 CREATE_OBJECT CFbsFont font |
|
2468 COMMAND ws new |
|
2469 COMMAND ws Connect |
|
2470 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-new_command03 |
|
2471 COMMAND scrdev Construct |
|
2472 COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command05 |
|
2473 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command06 |
|
2474 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command07 |
|
2475 COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command08 |
|
2476 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command09 |
|
2477 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command10 |
|
2478 COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command11 |
|
2479 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command12 |
|
2480 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command13 |
|
2481 COMMAND !Error=-40 scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command14 |
|
2482 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command15 |
|
2483 COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command16 |
|
2484 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command17 |
|
2485 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command18 |
|
2486 COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command19 |
|
2487 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command20 |
|
2488 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command21 |
|
2489 COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command22 |
|
2490 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command23 |
|
2491 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command24 |
|
2492 COMMAND scrdev ~ |
|
2493 COMMAND ws Close |
|
2494 END_TEST_BLOCK |
|
2495 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183 |
|
2496 |
|
2497 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184 |
|
2498 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184 |
|
2499 //! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}, TInt) |
|
2500 //! @SYMAuthor Dorothy Zhang |
|
2501 //! @SYMCreationDate 01/07/2008 |
|
2502 //! @SYMTestCaseDesc Negative test, try to get a font by an empty font name. |
|
2503 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
2504 //! 2. Create a CWsScreenDevice attached to a RWsSession. |
|
2505 //! 3. Complete the construction. |
|
2506 //! 4. Get the font in twips for "" (empty name), 50 twips font, 60 max font. |
|
2507 //! 5. Check the returned font is as expected. |
|
2508 //! 6. Destruct and close all objects used. |
|
2509 //! @SYMTestStatus Implemented |
|
2510 //! @SYMTestPriority Low |
|
2511 //! @SYMTestExpectedResults 1. The function GetNearestFontToMaxHeightInTwips() call returns KErrNone and no panic. |
|
2512 //! 2. The returned font is as expected. |
|
2513 //! @SYMTestType CIT |
|
2514 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2515 CREATE_OBJECT RWsSession ws |
|
2516 CREATE_OBJECT CWsScreenDevice scrdev |
|
2517 CREATE_OBJECT CFbsFont font |
|
2518 COMMAND ws new |
|
2519 COMMAND ws Connect |
|
2520 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184-0001-new_command03 |
|
2521 COMMAND scrdev Construct |
|
2522 COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184-0001-GetNearestFontToMaxHeightInTwips_command05 |
|
2523 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0184-0001-FontSpecInTwips_command06 |
|
2524 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184-0001-ReleaseFont_command07 |
|
2525 COMMAND scrdev ~ |
|
2526 COMMAND ws Close |
|
2527 END_TEST_BLOCK |
|
2528 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184 |
|
2529 |
|
2530 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185 |
|
2531 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185 |
|
2532 //! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}, TInt) |
|
2533 //! @SYMAuthor Dorothy Zhang |
|
2534 //! @SYMCreationDate 01/08/2008 |
|
2535 //! @SYMTestCaseDesc 1. Try to get a font before adding it to the typeface. |
|
2536 //! 2. Add the font and try to get it, verify the font is as expected. |
|
2537 //! 3. Remove the font and try to get it again. |
|
2538 //! @SYMTestActions 1. Create and connect a RWsSession |
|
2539 //! 2. Create a CWsScreenDevice attached to a RWsSession |
|
2540 //! 3. Complete the construction |
|
2541 //! 4. Get a non exist font in twips and then check it. |
|
2542 //! 5. Add a font file to the device's typeface store. |
|
2543 //! 6. Try to get the "Acb14" font and check the returned font. |
|
2544 //! 7. Remove the font file from device's typeface store |
|
2545 //! 8. Get the removed font again and check it. |
|
2546 //! 9. Destruct and close all ojects used. |
|
2547 //! @SYMTestStatus Implemented |
|
2548 //! @SYMTestPriority Low |
|
2549 //! @SYMTestExpectedResults 1. The FontSpecInTwips() call at Test Action 4 should not return the font "Acb14". |
|
2550 //! 2. The FontSepcInTwips() call at Test Action 6 should not return the font name "Acb14" because wserv font system cached the first get. |
|
2551 //! 3. The FontSpecInTwips() call at Test Action 8 should not return the font "Acb14". |
|
2552 //! @SYMTestType CIT |
|
2553 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2554 CREATE_OBJECT RWsSession ws |
|
2555 CREATE_OBJECT CWsScreenDevice scrdev |
|
2556 CREATE_OBJECT CFbsFont font |
|
2557 COMMAND ws new |
|
2558 COMMAND ws Connect |
|
2559 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-new_command03 |
|
2560 COMMAND scrdev Construct |
|
2561 COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-GetNearestFontToMaxHeightInTwips_command05 |
|
2562 COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-FontSpecInTwips_command06 |
|
2563 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-ReleaseFont_command07 |
|
2564 COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-AddFile_command08 |
|
2565 COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-GetNearestFontToMaxHeightInTwips_command09 |
|
2566 COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-FontSpecInTwips_command10 |
|
2567 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-ReleaseFont_command11 |
|
2568 COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-RemoveFile_command12 |
|
2569 COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-GetNearestFontToMaxHeightInTwips_command13 |
|
2570 COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-FontSpecInTwips_command14 |
|
2571 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-ReleaseFont_command15 |
|
2572 COMMAND scrdev ~ |
|
2573 COMMAND ws Close |
|
2574 END_TEST_BLOCK |
|
2575 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185 |
|
2576 |
|
2577 |
|
2578 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186 |
|
2579 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186 |
|
2580 //! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}) |
|
2581 //! @SYMAuthor Dorothy Zhang |
|
2582 //! @SYMCreationDate 01/07/2008 |
|
2583 //! @SYMTestCaseDesc Add the font and try to get it, verify the font is as expected. |
|
2584 //! @SYMTestActions 1. Create and connects a RWsSession. |
|
2585 //! 2. Create a CWsScreenDevice attached to a RWsSession. |
|
2586 //! 3. Complete the construction. |
|
2587 //! 4. Add the "Acb14" font file to the device's typeface store. |
|
2588 //! 5. Try to get the "Acb14" font and check the returned font. |
|
2589 //! 6. Remove the font file from device's typeface store |
|
2590 //! 7. Destruct and close all objects used. |
|
2591 //! @SYMTestStatus Implemented |
|
2592 //! @SYMTestPriority Low |
|
2593 //! @SYMTestExpectedResults The FontSpecInTwips() call should return the font name "Acb14". |
|
2594 //! @SYMTestType CIT |
|
2595 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2596 CREATE_OBJECT RWsSession ws |
|
2597 CREATE_OBJECT CWsScreenDevice scrdev |
|
2598 CREATE_OBJECT CFbsFont font |
|
2599 COMMAND ws new |
|
2600 COMMAND ws Connect |
|
2601 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-new_command03 |
|
2602 COMMAND scrdev Construct |
|
2603 COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-AddFile_command05 |
|
2604 COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-GetNearestFontToDesignHeightInTwips_command06 |
|
2605 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-FontSpecInTwips_command07 |
|
2606 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-ReleaseFont_command08 |
|
2607 COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-RemoveFile_command09 |
|
2608 COMMAND scrdev ~ |
|
2609 COMMAND ws Close |
|
2610 END_TEST_BLOCK |
|
2611 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186 |
|
2612 |
|
2613 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187 |
|
2614 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187 |
|
2615 //! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}, TInt) |
|
2616 //! @SYMAuthor Dorothy Zhang |
|
2617 //! @SYMCreationDate 01/08/2008 |
|
2618 //! @SYMTestCaseDesc Add the font and try to get it, verify the font is as expected. |
|
2619 //! @SYMTestActions 1. Create and connect a RWsSession |
|
2620 //! 2. Create a CWsScreenDevice attached to a RWsSession |
|
2621 //! 3. Complete the construction |
|
2622 //! 4. Add a font file to the device's typeface store. |
|
2623 //! 5. Check the expected font is added successfully. |
|
2624 //! 6. Remove the font file from device's typeface store |
|
2625 //! 7. Destruct and close all ojects used. |
|
2626 //! @SYMTestStatus Implemented |
|
2627 //! @SYMTestPriority Low |
|
2628 //! @SYMTestExpectedResults The FontSpecInTwips() call should return the font "Acb14". |
|
2629 //! @SYMTestType CIT |
|
2630 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2631 CREATE_OBJECT RWsSession ws |
|
2632 CREATE_OBJECT CWsScreenDevice scrdev |
|
2633 CREATE_OBJECT CFbsFont font |
|
2634 COMMAND ws new |
|
2635 COMMAND ws Connect |
|
2636 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-new_command03 |
|
2637 COMMAND scrdev Construct |
|
2638 COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-AddFile_command05 |
|
2639 COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-GetNearestFontToMaxHeightInTwips_command06 |
|
2640 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-FontSpecInTwips_command07 |
|
2641 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-ReleaseFont_command08 |
|
2642 COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-RemoveFile_command09 |
|
2643 COMMAND scrdev ~ |
|
2644 COMMAND ws Close |
|
2645 END_TEST_BLOCK |
|
2646 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187 |
|
2647 |
|
2648 |
|
2649 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0192 |
|
2650 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0192 |
|
2651 //! @SYMAPI CWsScreenDevice::TypefaceSupport(TTypefaceSupport{ref}, TInt) |
|
2652 //! @SYMAuthor Kevin Zeng |
|
2653 //! @SYMCreationDate 1/3/2008 |
|
2654 //! @SYMTestCaseDesc Negative test, uses -1 as faceindex parameter. |
|
2655 //! @SYMTestActions 1. Create and connect a RWsSession |
|
2656 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
2657 //! 3. Complete the construction |
|
2658 //! 4. Get typeface information for -1 as index number |
|
2659 //! 5. Destruct the CWsScreenDevice object |
|
2660 //! 6. Close the RWsSession object |
|
2661 //! @SYMTestStatus Implemented |
|
2662 //! @SYMTestPriority High |
|
2663 //! @SYMTestExpectedResults FBSCLI 26 panic received at Test Action 4. |
|
2664 //! @SYMTestType CIT |
|
2665 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2666 CREATE_OBJECT RWsSession ws |
|
2667 CREATE_OBJECT CWsScreenDevice scrdev |
|
2668 COMMAND ws new |
|
2669 COMMAND ws Connect |
|
2670 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0192-0001-new_command03 |
|
2671 COMMAND scrdev Construct |
|
2672 COMMAND scrdev TypefaceSupport GRAPHICS-WSERV-WsScreenDevice-PublicApi-0192-0001-TypefaceSupport_command05 |
|
2673 COMMAND scrdev ~ |
|
2674 COMMAND ws Close |
|
2675 END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=26 |
|
2676 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
2677 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0192 |
|
2678 |
|
2679 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0194 |
|
2680 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0194 |
|
2681 //! @SYMAPI CWsScreenDevice::FontHeightInTwips(TInt, TInt) |
|
2682 //! @SYMAuthor Kevin Zeng |
|
2683 //! @SYMCreationDate 1/3/2007 |
|
2684 //! @SYMTestCaseDesc Negative test, uses (0,-1),(10000,10000) and (0,10000) as the parameters. |
|
2685 //! @SYMTestActions 1. Create and connect a RWsSession |
|
2686 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
2687 //! 3. Complete the construction |
|
2688 //! 4. Get the height in twips of the specified font using FontHeightInTwips(), input is (0,-1). |
|
2689 //! 4. Get the height in twips of the specified font using FontHeightInTwips(), input is (10000,10000). |
|
2690 //! 4. Get the height in twips of the specified font using FontHeightInTwips(), input is (0,10000). |
|
2691 //! 5. Destruct the CWsScreenDevice object |
|
2692 //! 6. Close the RWsSession object |
|
2693 //! @SYMTestStatus Implemented |
|
2694 //! @SYMTestPriority High |
|
2695 //! @SYMTestExpectedResults No panic and the FontHeightInTwips() returns 0. |
|
2696 //! @SYMTestType CIT |
|
2697 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2698 CREATE_OBJECT RWsSession ws |
|
2699 CREATE_OBJECT CWsScreenDevice scrdev |
|
2700 COMMAND ws new |
|
2701 COMMAND ws Connect |
|
2702 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0194-0001-new_command03 |
|
2703 COMMAND scrdev Construct |
|
2704 COMMAND scrdev FontHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0194-0001-FontHeightInTwips_command05 |
|
2705 COMMAND scrdev FontHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0194-0001-FontHeightInTwips_command06 |
|
2706 COMMAND scrdev FontHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0194-0001-FontHeightInTwips_command07 |
|
2707 COMMAND scrdev ~ |
|
2708 COMMAND ws Close |
|
2709 END_TEST_BLOCK |
|
2710 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0194 |
|
2711 |
|
2712 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0195 |
|
2713 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0195 |
|
2714 //! @SYMAPI CWsScreenDevice::FontHeightInTwips(TInt, TInt) |
|
2715 //! @SYMAuthor Kevin Zeng |
|
2716 //! @SYMCreationDate 1/3/2007 |
|
2717 //! @SYMTestCaseDesc Negative test, uses (-1,0) as the parameters. |
|
2718 //! @SYMTestActions 1. Create and connect a RWsSession |
|
2719 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
2720 //! 3. Complete the construction |
|
2721 //! 4. Get the height in twips of the specified font using FontHeightInTwips(), input is (-1,0) |
|
2722 //! 5. Destruct the CWsScreenDevice object |
|
2723 //! 6. Close the RWsSession object |
|
2724 //! @SYMTestStatus Implemented |
|
2725 //! @SYMTestPriority High |
|
2726 //! @SYMTestExpectedResults FBSCLI 26 panic received at Test Action 4. |
|
2727 //! @SYMTestType CIT |
|
2728 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2729 CREATE_OBJECT RWsSession ws |
|
2730 CREATE_OBJECT CWsScreenDevice scrdev |
|
2731 COMMAND ws new |
|
2732 COMMAND ws Connect |
|
2733 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0195-0001-new_command03 |
|
2734 COMMAND scrdev Construct |
|
2735 COMMAND scrdev FontHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0195-0001-FontHeightInTwips_command05 |
|
2736 COMMAND scrdev ~ |
|
2737 COMMAND ws Close |
|
2738 END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=26 |
|
2739 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
2740 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0195 |
|
2741 |
|
2742 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0200 |
|
2743 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0200 |
|
2744 //! @SYMAPI CWsScreenDevice::GetPixel(TRgb {ref}, const TPoint {ref}) |
|
2745 //! @SYMAuthor Allen CHANG |
|
2746 //! @SYMCreationDate 28/12/2007 |
|
2747 //! @SYMTestCaseDesc Test for negative x- and y-coordinate/too big x- and y-coordinate. |
|
2748 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
2749 //! 2. Creates a CWsScreenDevice attached to a RWsSession |
|
2750 //! 3. Completes the construction |
|
2751 //! 4. Gets pixel at point(-1, 0) and check the RGB color is white. |
|
2752 //! 5. Gets pixel at point(0, -1) and check the RGB color is white. |
|
2753 //! 6. Gets pixel at point(-1, -1) and check the RGB color is white. |
|
2754 //! 7. Gets pixel at point(10000, 0) and check the RGB color is white. |
|
2755 //! 8. Gets pixel at point(0, 10000) and check the RGB color is white. |
|
2756 //! 9. Gets pixel at point(10000, 10000) and check the RGB color is white. |
|
2757 //! 10. Destruct and close all objects used. |
|
2758 //! @SYMTestStatus Implemented |
|
2759 //! @SYMTestPriority High |
|
2760 //! @SYMTestExpectedResults GetPixel doesn't cause panic |
|
2761 //! @SYMTestType CIT |
|
2762 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2763 CREATE_OBJECT RWsSession ws |
|
2764 CREATE_OBJECT CWsScreenDevice scrdev |
|
2765 COMMAND ws new |
|
2766 COMMAND ws Connect |
|
2767 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-new_command03 |
|
2768 COMMAND scrdev Construct |
|
2769 COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command05 |
|
2770 COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command06 |
|
2771 COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command07 |
|
2772 COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command08 |
|
2773 COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command09 |
|
2774 COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command10 |
|
2775 COMMAND scrdev ~ |
|
2776 COMMAND ws Close |
|
2777 END_TEST_BLOCK |
|
2778 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0200 |
|
2779 |
|
2780 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0201 |
|
2781 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0201 |
|
2782 //! @SYMAPI CWsScreenDevice::AddFile(const TDesC {ref}, TInt) |
|
2783 //! @SYMAuthor Allen CHANG |
|
2784 //! @SYMCreationDate 02/01/2008 |
|
2785 //! @SYMTestCaseDesc Negative test, adds non-existent file. |
|
2786 //! @SYMTestActions 1. Creates a RWsSession object and connects to window server. |
|
2787 //! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. |
|
2788 //! 3. Completes the construction. |
|
2789 //! 4. Adds a font file which does not exist to the device's typeface store. |
|
2790 //! 5. Destructs and closes all objects used. |
|
2791 //! @SYMTestStatus Implemented |
|
2792 //! @SYMTestPriority High |
|
2793 //! @SYMTestExpectedResults The function AddFile() call returns error code -1. |
|
2794 //! @SYMTestType CIT |
|
2795 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2796 CREATE_OBJECT RWsSession ws |
|
2797 CREATE_OBJECT CWsScreenDevice scrdev |
|
2798 COMMAND ws new |
|
2799 COMMAND ws Connect |
|
2800 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0201-0001-new_command03 |
|
2801 COMMAND scrdev Construct |
|
2802 COMMAND !Error=-1 scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0201-0001-AddFile_command05 |
|
2803 COMMAND scrdev ~ |
|
2804 COMMAND ws Close |
|
2805 END_TEST_BLOCK |
|
2806 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0201 |
|
2807 |
|
2808 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0202 |
|
2809 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0202 |
|
2810 //! @SYMAPI CWsScreenDevice::AddFile(const TDesC {ref}, TInt) |
|
2811 //! @SYMAuthor Allen CHANG |
|
2812 //! @SYMCreationDate 02/01/2008 |
|
2813 //! @SYMTestCaseDesc Negative test, adds invalid symbian font file. |
|
2814 //! @SYMTestActions 1. Creates a RWsSession object and connects to window server. |
|
2815 //! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. |
|
2816 //! 3. Completes the construction. |
|
2817 //! 4. Adds a font file which is invalid to the device's typeface store. |
|
2818 //! 5. Destructs and closes all objects used. |
|
2819 //! @SYMTestStatus Implemented |
|
2820 //! @SYMTestPriority High |
|
2821 //! @SYMTestExpectedResults The function AddFile() call returns error code -5. |
|
2822 //! @SYMTestType CIT |
|
2823 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2824 CREATE_OBJECT RWsSession ws |
|
2825 CREATE_OBJECT CWsScreenDevice scrdev |
|
2826 COMMAND ws new |
|
2827 COMMAND ws Connect |
|
2828 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0202-0001-new_command03 |
|
2829 COMMAND scrdev Construct |
|
2830 COMMAND !Error=-5 scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0202-0001-AddFile_command05 |
|
2831 COMMAND scrdev ~ |
|
2832 COMMAND ws Close |
|
2833 END_TEST_BLOCK |
|
2834 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0202 |
|
2835 |
|
2836 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0203 |
|
2837 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0203 |
|
2838 //! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInPixels(CFont {ptr}{ref}, const TFontSpec {ref}) |
|
2839 //! @SYMAuthor Allen CHANG |
|
2840 //! @SYMCreationDate 02/01/2008 |
|
2841 //! @SYMTestCaseDesc Negative test, gets an existent font name but negative/too big/too small size |
|
2842 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
2843 //! 2. Creates a CWsScreenDevice attached to a RWsSession |
|
2844 //! 3. Completes the construction |
|
2845 //! 4. Gets font in pixels for font DejaVu Sans Mono whose height is -1. |
|
2846 //! 5. Check the returned font is as expected. |
|
2847 //! 6. Gets font in pixels for font DejaVu Sans Mono whose height is 10000. |
|
2848 //! 7. Check the returned font is as expected. |
|
2849 //! 8. Gets font in pixels for font DejaVu Sans Mono whose height is 0. |
|
2850 //! 9. Check the returned font is as expected. |
|
2851 //! 10. Destructs the CWsScreenDevice object. |
|
2852 //! 11. Closes the CWsScreenDevice object. |
|
2853 //! @SYMTestStatus Implemented |
|
2854 //! @SYMTestPriority High |
|
2855 //! @SYMTestExpectedResults 1. The function GetNearestFontToDesignHeightInPixels() call returns KErrNone and no panic. |
|
2856 //! 2. The returned font is as expected. |
|
2857 //! @SYMTestType CIT |
|
2858 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2859 CREATE_OBJECT RWsSession ws |
|
2860 CREATE_OBJECT CWsScreenDevice scrdev |
|
2861 CREATE_OBJECT CFbsFont font |
|
2862 COMMAND ws new |
|
2863 COMMAND ws Connect |
|
2864 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-new_command03 |
|
2865 COMMAND scrdev Construct |
|
2866 COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-GetNearestFontToDesignHeightInPixels_command05 |
|
2867 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-FontSpecInTwips_command06 |
|
2868 COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-GetNearestFontToDesignHeightInPixels_command07 |
|
2869 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-FontSpecInTwips_command08 |
|
2870 COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-GetNearestFontToDesignHeightInPixels_command09 |
|
2871 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-FontSpecInTwips_command10 |
|
2872 COMMAND scrdev ~ |
|
2873 COMMAND ws Close |
|
2874 END_TEST_BLOCK |
|
2875 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0203 |
|
2876 |
|
2877 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0204 |
|
2878 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0204 |
|
2879 //! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInPixels(CFont {prt}{ref}, const TFontSpec {ref}) |
|
2880 //! @SYMAuthor Allen CHANG |
|
2881 //! @SYMCreationDate 01/07/2008 |
|
2882 //! @SYMTestCaseDesc Negative test, gets an empty font name |
|
2883 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
2884 //! 2. Create a CWsScreenDevice attached to a RWsSession. |
|
2885 //! 3. Complete the construction. |
|
2886 //! 4. Get the font in pixels for "" (empty name), 50 pixels font. |
|
2887 //! 5. Check the returned font is as expected. |
|
2888 //! 6. Destruct and close all objects used. |
|
2889 //! @SYMTestStatus Implemented |
|
2890 //! @SYMTestPriority Low |
|
2891 //! @SYMTestExpectedResults 1. The function GetNearestFontToDesignHeightInPixels() call returns KErrNone and no panic. |
|
2892 //! 2. The returned font is as expected. |
|
2893 //! @SYMTestType CIT |
|
2894 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2895 CREATE_OBJECT RWsSession ws |
|
2896 CREATE_OBJECT CWsScreenDevice scrdev |
|
2897 CREATE_OBJECT CFbsFont font |
|
2898 COMMAND ws new |
|
2899 COMMAND ws Connect |
|
2900 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0204-0001-new_command03 |
|
2901 COMMAND scrdev Construct |
|
2902 COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0204-0001-GetNearestFontToDesignHeightInPixels_command05 |
|
2903 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0204-0001-FontSpecInTwips_command06 |
|
2904 COMMAND scrdev ~ |
|
2905 COMMAND ws Close |
|
2906 END_TEST_BLOCK |
|
2907 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0204 |
|
2908 |
|
2909 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0206 |
|
2910 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0206 |
|
2911 //! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInPixels(CFont {ptr}{ref}, const TFontSpec {ref}) |
|
2912 //! @SYMAuthor Allen CHANG |
|
2913 //! @SYMCreationDate 11/23/2007 |
|
2914 //! @SYMTestCaseDesc 1. Try to get a font before adding it to the typeface, |
|
2915 //! 2. Add the font and try to get it, verify the font is as expected |
|
2916 //! 3. Remove the font and try to get it again |
|
2917 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
2918 //! 2. Creates a CWsScreenDevice attached to a RWsSession |
|
2919 //! 3. Completes the construction |
|
2920 //! 4. Try to get a font before adding it to the typeface. |
|
2921 //! 5. Add the font and try to get it, verify the font is as expected. |
|
2922 //! 6. Remove the font and try to get it again |
|
2923 //! 7. Destructs the CWsScreenDevice object |
|
2924 //! 8. Closes the CWsScreenDevice object |
|
2925 //! @SYMTestStatus Implemented |
|
2926 //! @SYMTestPriority High |
|
2927 //! @SYMTestExpectedResults 1. The function GetNearestFontToDesignHeightInPixels() calls return KErrNone and no panic. |
|
2928 //! 2. The first FontSpecInTwips() call should not return the font name "Acb14". |
|
2929 //! 3. The second FontSepcInTwips() call returns font name "Acb14" |
|
2930 //! 4. The third FontSpecInTwips() call should not return the font name "Acb14" . |
|
2931 //! @SYMTestType CIT |
|
2932 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2933 CREATE_OBJECT RWsSession ws |
|
2934 CREATE_OBJECT CWsScreenDevice scrdev |
|
2935 CREATE_OBJECT CFbsFont font |
|
2936 COMMAND ws new |
|
2937 COMMAND ws Connect |
|
2938 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-new_command03 |
|
2939 COMMAND scrdev Construct |
|
2940 COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-GetNearestFontToDesignHeightInPixels_command05 |
|
2941 COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-FontSpecInTwips_command06 |
|
2942 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-ReleaseFont_command07 |
|
2943 COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-AddFile_command08 |
|
2944 COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-GetNearestFontToDesignHeightInPixels_command09 |
|
2945 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-FontSpecInTwips_command10 |
|
2946 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-ReleaseFont_command11 |
|
2947 COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-RemoveFile_command12 |
|
2948 COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-GetNearestFontToDesignHeightInPixels_command13 |
|
2949 COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-FontSpecInTwips_command14 |
|
2950 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-ReleaseFont_command15 |
|
2951 COMMAND scrdev ~ |
|
2952 COMMAND ws Close |
|
2953 END_TEST_BLOCK |
|
2954 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0206 |
|
2955 |
|
2956 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207 |
|
2957 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207 |
|
2958 //! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInPixels(CFont {prt}{ref}, const TFontSpec {ref}, TInt) |
|
2959 //! @SYMAuthor Allen CHANG |
|
2960 //! @SYMCreationDate 01/07/2008 |
|
2961 //! @SYMTestCaseDesc Negative test, gets an existent font but too small/negative size. |
|
2962 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
2963 //! 2. Create a CWsScreenDevice attached to a RWsSession. |
|
2964 //! 3. Complete the construction. |
|
2965 //! 4. Get the font for DejaVu Sans Mono, 1000000 pixels font, specifying max size=1000. |
|
2966 //! 5. Check the returned font is as expected. |
|
2967 //! 6. Get the font for DejaVu Sans Mono, 0 pixels font, specifying max size=1000. |
|
2968 //! 7. Check the returned font is as expected. |
|
2969 //! 8. Get the font for DejaVu Sans Mono, -1 pixels font, specifying max size=1000. |
|
2970 //! 9. Check the returned font is as expected. |
|
2971 //! 10. Get the font for DejaVu Sans Mono, 1000 pixels font, specifying max size = 1000000. |
|
2972 //! 11. Check KErrTooBig error is returned. |
|
2973 //! 12. Get the font for DejaVu Sans Mono, 1000 pixels font, specifying max size = 0. |
|
2974 //! 13. Check the returned font is as expected. |
|
2975 //! 14. Get the font for DejaVu Sans Mono, 1000 pixels font, specifying max size = -1(halt the emulator, defect). |
|
2976 //! 15. Check the returned font is as expected. |
|
2977 //! 16. Destruct and close all objects used. |
|
2978 //! @SYMTestStatus Implemented |
|
2979 //! @SYMTestPriority Low |
|
2980 //! @SYMTestExpectedResults 1. The GetNearestFontToMaxHeightInTwips() call at Test Action 10 returns KErrTooBig (Error=-40) and no panic. |
|
2981 //! 2. The Other GetNearestFontToMaxHeightInTwips() calls return KErrNone and no panic. |
|
2982 //! 3. The returned font is as expected. |
|
2983 //! @SYMTestType CIT |
|
2984 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
2985 CREATE_OBJECT RWsSession ws |
|
2986 CREATE_OBJECT CWsScreenDevice scrdev |
|
2987 CREATE_OBJECT CFbsFont font |
|
2988 COMMAND ws new |
|
2989 COMMAND ws Connect |
|
2990 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-new_command03 |
|
2991 COMMAND scrdev Construct |
|
2992 COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command05 |
|
2993 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command06 |
|
2994 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command07 |
|
2995 COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command08 |
|
2996 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command09 |
|
2997 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command10 |
|
2998 COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command11 |
|
2999 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command12 |
|
3000 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command13 |
|
3001 COMMAND !Error=-40 scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command14 |
|
3002 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command15 |
|
3003 COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command16 |
|
3004 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command17 |
|
3005 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command18 |
|
3006 //! COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command19 |
|
3007 //! COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command20 |
|
3008 //! COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command21 |
|
3009 COMMAND scrdev ~ |
|
3010 COMMAND ws Close |
|
3011 END_TEST_BLOCK |
|
3012 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207 |
|
3013 |
|
3014 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0208 |
|
3015 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0208 |
|
3016 //! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInPixels(CFont {prt}{ref}, const TFontSpec {ref}, TInt) |
|
3017 //! @SYMAuthor Allen CHANG |
|
3018 //! @SYMCreationDate 01/07/2008 |
|
3019 //! @SYMTestCaseDesc Negative test, try to get a font by an empty font name. |
|
3020 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
3021 //! 2. Create a CWsScreenDevice attached to a RWsSession. |
|
3022 //! 3. Complete the construction. |
|
3023 //! 4. Get the font in pixels for "" (empty name), 50 pixels font, 60 max font. |
|
3024 //! 5. Check the returned font is as expected. |
|
3025 //! 6. Destruct and close all objects used. |
|
3026 //! @SYMTestStatus Implemented |
|
3027 //! @SYMTestPriority Low |
|
3028 //! @SYMTestExpectedResults 1. The function GetNearestFontToMaxHeightInPixels() call returns KErrNone and no panic. |
|
3029 //! 2. The returned font is as expected. |
|
3030 //! @SYMTestType CIT |
|
3031 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3032 CREATE_OBJECT RWsSession ws |
|
3033 CREATE_OBJECT CWsScreenDevice scrdev |
|
3034 CREATE_OBJECT CFbsFont font |
|
3035 COMMAND ws new |
|
3036 COMMAND ws Connect |
|
3037 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0208-0001-new_command03 |
|
3038 COMMAND scrdev Construct |
|
3039 COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0208-0001-GetNearestFontToMaxHeightInPixels_command05 |
|
3040 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0208-0001-FontSpecInTwips_command06 |
|
3041 COMMAND scrdev ~ |
|
3042 COMMAND ws Close |
|
3043 END_TEST_BLOCK |
|
3044 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0208 |
|
3045 |
|
3046 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0210 |
|
3047 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0210 |
|
3048 //! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInPixels(CFont {ptr}{ref}, const TFontSpec {ref}) |
|
3049 //! @SYMAuthor Allen CHANG |
|
3050 //! @SYMCreationDate 11/23/2007 |
|
3051 //! @SYMTestCaseDesc 1. Try to get a font before adding it to the typeface, |
|
3052 //! 2. Add the font and try to get it, verify the font is as expected |
|
3053 //! 3. Remove the font and try to get it again |
|
3054 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
3055 //! 2. Creates a CWsScreenDevice attached to a RWsSession |
|
3056 //! 3. Completes the construction |
|
3057 //! 4. Creates a CFont object |
|
3058 //! 5. Try to get a font before adding it to the typeface. |
|
3059 //! 6. Add the font and try to get it, verify the font is as expected. |
|
3060 //! 7. Remove the font and try to get it again. |
|
3061 //! 8. Destructs the CWsScreenDevice object |
|
3062 //! 9. Closes the CWsScreenDevice object |
|
3063 //! @SYMTestStatus Implemented |
|
3064 //! @SYMTestPriority High |
|
3065 //! @SYMTestExpectedResults 1. The function GetNearestFontToMaxHeightInPixels() calls return KErrNone and no panic. |
|
3066 //! 2. The first FontSpecInTwips() call should not return the font name "Acb14". |
|
3067 //! 3. The second FontSepcInTwips() call returns font name "Acb14" |
|
3068 //! 4. The third FontSpecInTwips() call should not return the font name "Acb14" . |
|
3069 //! @SYMTestType CIT |
|
3070 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3071 CREATE_OBJECT RWsSession ws |
|
3072 CREATE_OBJECT CWsScreenDevice scrdev |
|
3073 CREATE_OBJECT CFbsFont font |
|
3074 COMMAND ws new |
|
3075 COMMAND ws Connect |
|
3076 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-new_command03 |
|
3077 COMMAND scrdev Construct |
|
3078 COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-GetNearestFontToMaxHeightInPixels_command05 |
|
3079 COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-FontSpecInTwips_command06 |
|
3080 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-ReleaseFont_command07 |
|
3081 COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-AddFile_command08 |
|
3082 COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-GetNearestFontToMaxHeightInPixels_command09 |
|
3083 COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-FontSpecInTwips_command10 |
|
3084 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-ReleaseFont_command11 |
|
3085 COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-RemoveFile_command12 |
|
3086 COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-GetNearestFontToMaxHeightInPixels_command13 |
|
3087 COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-FontSpecInTwips_command14 |
|
3088 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-ReleaseFont_command15 |
|
3089 COMMAND scrdev ~ |
|
3090 COMMAND ws Close |
|
3091 END_TEST_BLOCK |
|
3092 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0210 |
|
3093 |
|
3094 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0211 |
|
3095 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0211 |
|
3096 //! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) |
|
3097 //! @SYMAuthor Allen CHANG |
|
3098 //! @SYMCreationDate 02/01/2008 |
|
3099 //! @SYMTestCaseDesc Negative test, uses a zero-length buffer. |
|
3100 //! @SYMTestActions 1. Creates a RWsSession object and connects to window server. |
|
3101 //! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. |
|
3102 //! 3. Creates a CWindowGc object. |
|
3103 //! 4. Completes the construction. |
|
3104 //! 5. Creates a RWindowGroup object attached to the RWsSession object created before. |
|
3105 //! 6. Creates a RWindow object attached to the RWindowGroup object created before. |
|
3106 //! 7. Initializes the display mode of the screen. |
|
3107 //! 8. Sets background color of screen to red. |
|
3108 //! 9. Flushes the buffer to screen. |
|
3109 //! 10. Begins to draw screen, then end to draw screen. |
|
3110 //! 11. Gets scanline from screen. |
|
3111 //! 12. Deactives RWindow, destructs and closes all objects used. |
|
3112 //! @SYMTestStatus Implemented |
|
3113 //! @SYMTestPriority High |
|
3114 //! @SYMTestExpectedResults WSERV 37 panic received at Test Action 11. |
|
3115 //! @SYMTestType CIT |
|
3116 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3117 CREATE_OBJECT RWsSession ws |
|
3118 CREATE_OBJECT CWsScreenDevice scrdev |
|
3119 CREATE_OBJECT CWindowGc wgc |
|
3120 CREATE_OBJECT RWindowGroup wingrp |
|
3121 CREATE_OBJECT RWindow win |
|
3122 COMMAND ws new |
|
3123 COMMAND ws Connect |
|
3124 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-new_command03 |
|
3125 COMMAND scrdev Construct |
|
3126 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-CreateContext_command05 |
|
3127 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-new_command06 |
|
3128 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-Construct_command07 |
|
3129 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-new_command08 |
|
3130 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-Construct_command09 |
|
3131 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-SetRequiredDisplayMode_command10 |
|
3132 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-SetBackgroundColor_command11 |
|
3133 COMMAND win Activate |
|
3134 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-SetAutoFlush_command13 |
|
3135 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-Activate_command14 |
|
3136 COMMAND win BeginRedraw |
|
3137 COMMAND win EndRedraw |
|
3138 COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-GetScanLine_command17 |
|
3139 COMMAND wgc Deactivate |
|
3140 COMMAND win Close |
|
3141 COMMAND wingrp Close |
|
3142 COMMAND wgc ~ |
|
3143 COMMAND scrdev ~ |
|
3144 COMMAND ws Close |
|
3145 END_TEST_BLOCK !PanicString=WSERV !PanicCode=80 |
|
3146 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
3147 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0211 |
|
3148 |
|
3149 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0214 |
|
3150 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0214 |
|
3151 //! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) |
|
3152 //! @SYMAuthor Allen CHANG |
|
3153 //! @SYMCreationDate 02/01/2008 |
|
3154 //! @SYMTestCaseDesc Test for a zero-length scanline. |
|
3155 //! @SYMTestActions 1. Creates a RWsSession object and connects to window server. |
|
3156 //! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. |
|
3157 //! 3. Creates a CWindowGc object. |
|
3158 //! 4. Completes the construction. |
|
3159 //! 5. Creates a RWindowGroup object attached to the RWsSession object created before. |
|
3160 //! 6. Creates a RWindow object attached to the RWindowGroup object created before. |
|
3161 //! 7. Initializes the display mode of the screen. |
|
3162 //! 8. Sets background color of screen to red. |
|
3163 //! 9. Flushes the buffer to screen. |
|
3164 //! 10. Begins to draw screen, then end to draw screen. |
|
3165 //! 11. Gets scanline from screen. |
|
3166 //! @SYMTestStatus Implemented |
|
3167 //! @SYMTestPriority High |
|
3168 //! @SYMTestExpectedResults No panic received at Test Action 11. |
|
3169 //! |
|
3170 //! @SYMTestType CIT |
|
3171 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3172 CREATE_OBJECT RWsSession ws |
|
3173 CREATE_OBJECT CWsScreenDevice scrdev |
|
3174 CREATE_OBJECT CWindowGc wgc |
|
3175 CREATE_OBJECT RWindowGroup wingrp |
|
3176 CREATE_OBJECT RWindow win |
|
3177 COMMAND ws new |
|
3178 COMMAND ws Connect |
|
3179 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-new_command03 |
|
3180 COMMAND scrdev Construct |
|
3181 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-CreateContext_command05 |
|
3182 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-new_command06 |
|
3183 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-Construct_command07 |
|
3184 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-new_command08 |
|
3185 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-Construct_command09 |
|
3186 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-SetRequiredDisplayMode_command10 |
|
3187 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-SetBackgroundColor_command11 |
|
3188 COMMAND win Activate |
|
3189 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-SetAutoFlush_command13 |
|
3190 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-Activate_command14 |
|
3191 COMMAND win BeginRedraw |
|
3192 COMMAND win EndRedraw |
|
3193 COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-GetScanLine_command17 |
|
3194 |
|
3195 END_TEST_BLOCK |
|
3196 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
3197 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0214 |
|
3198 |
|
3199 //! START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0215 |
|
3200 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0215 |
|
3201 //! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) |
|
3202 //! @SYMAuthor Allen CHANG |
|
3203 //! @SYMCreationDate 02/01/2008 |
|
3204 //! @SYMTestCaseDesc Test for a negative-length scanline. |
|
3205 //! This case is used for regression test. |
|
3206 //! The function GetScanLine() call causes FAULT: KERN 0x00000004 (4), the emulator is forced to exit.(Defect) |
|
3207 //! @SYMTestActions 1. Creates a RWsSession object and connects to window server. |
|
3208 //! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. |
|
3209 //! 3. Creates a CWindowGc object. |
|
3210 //! 4. Completes the construction. |
|
3211 //! 5. Creates a RWindowGroup object attached to the RWsSession object created before. |
|
3212 //! 6. Creates a RWindow object attached to the RWindowGroup object created before. |
|
3213 //! 7. Initializes the display mode of the screen. |
|
3214 //! 8. Sets background color of screen to red. |
|
3215 //! 9. Flushes the buffer to screen. |
|
3216 //! 10. Begins to draw screen, then end to draw screen. |
|
3217 //! 11. Gets scanline from screen. |
|
3218 //! 12. Deactives RWindow, destructs and closes all objects used. |
|
3219 //! @SYMTestStatus Implemented |
|
3220 //! @SYMTestPriority High |
|
3221 //! @SYMTestExpectedResults 1. USER 23 panic received at Test Action 11. |
|
3222 //! @SYMTestType CIT |
|
3223 //! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3224 //! CREATE_OBJECT RWsSession ws |
|
3225 //! CREATE_OBJECT CWsScreenDevice scrdev |
|
3226 //! CREATE_OBJECT CWindowGc wgc |
|
3227 //! CREATE_OBJECT RWindowGroup wingrp |
|
3228 //! CREATE_OBJECT RWindow win |
|
3229 //! COMMAND ws new |
|
3230 //! COMMAND ws Connect |
|
3231 //! COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-new_command03 |
|
3232 //! COMMAND scrdev Construct |
|
3233 //! COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-CreateContext_command05 |
|
3234 //! COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-new_command06 |
|
3235 //! COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-Construct_command07 |
|
3236 //! COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-new_command08 |
|
3237 //! COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-Construct_command09 |
|
3238 //! COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-SetRequiredDisplayMode_command10 |
|
3239 //! COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-SetBackgroundColor_command11 |
|
3240 //! COMMAND win Activate |
|
3241 //! COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-SetAutoFlush_command13 |
|
3242 //! COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-Activate_command14 |
|
3243 //! COMMAND win BeginRedraw |
|
3244 //! COMMAND win EndRedraw |
|
3245 //! COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-GetScanLine_command17 |
|
3246 //! COMMAND wgc Deactivate |
|
3247 //! COMMAND win Close |
|
3248 //! COMMAND wingrp Close |
|
3249 //! COMMAND wgc ~ |
|
3250 //! COMMAND scrdev ~ |
|
3251 //! COMMAND ws Close |
|
3252 //! END_TEST_BLOCK !PanicString=USER !PanicCode=23 |
|
3253 //! END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0215 |
|
3254 |
|
3255 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0216 |
|
3256 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0216 |
|
3257 //! @SYMAPI CWsScreenDevice::FontHeightInPixels(TInt, TInt) const |
|
3258 //! @SYMAuthor Allen CHANG |
|
3259 //! @SYMCreationDate 07/01/2008 |
|
3260 //! @SYMTestCaseDesc Negative test, gets the height of the specified font by specifying a negative typeface index number. |
|
3261 //! @SYMTestActions 1. Create and connect a RWsSession |
|
3262 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
3263 //! 3. Complete the construction. |
|
3264 //! 4. Gets font height with typeface index = -1 and height index = 0 |
|
3265 //! 5. Destruct and Close. |
|
3266 //! @SYMTestStatus Implemented |
|
3267 //! @SYMTestPriority High |
|
3268 //! @SYMTestExpectedResults FBSCLI 26 panic received at Test Action 4. |
|
3269 //! @SYMTestType CIT |
|
3270 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3271 CREATE_OBJECT RWsSession ws |
|
3272 CREATE_OBJECT CWsScreenDevice scrdev |
|
3273 COMMAND ws new |
|
3274 COMMAND ws Connect |
|
3275 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0216-0001-new_command03 |
|
3276 COMMAND scrdev Construct |
|
3277 COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0216-0001-FontHeightInPixels_command05 |
|
3278 COMMAND scrdev ~ |
|
3279 COMMAND ws Close |
|
3280 END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=26 |
|
3281 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
3282 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0216 |
|
3283 |
|
3284 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0217 |
|
3285 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0217 |
|
3286 //! @SYMAPI CWsScreenDevice::FontHeightInPixels(TInt, TInt) const |
|
3287 //! @SYMAuthor Allen CHANG |
|
3288 //! @SYMCreationDate 07/01/2008 |
|
3289 //! @SYMTestCaseDesc Negative test, gets the height of the specified font by specifying a negative font height index number. |
|
3290 //! @SYMTestActions 1. Create and connect a RWsSession |
|
3291 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
3292 //! 3. Complete the construction. |
|
3293 //! 4. Gets font height with typeface index = 0 and height index = -1 |
|
3294 //! 5. Destruct and Close. |
|
3295 //! @SYMTestStatus Implemented |
|
3296 //! @SYMTestPriority High |
|
3297 //! @SYMTestExpectedResults The FontHeightInPixels call doesn't cause panic |
|
3298 //! @SYMTestType CIT |
|
3299 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3300 CREATE_OBJECT RWsSession ws |
|
3301 CREATE_OBJECT CWsScreenDevice scrdev |
|
3302 COMMAND ws new |
|
3303 COMMAND ws Connect |
|
3304 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0217-0001-new_command03 |
|
3305 COMMAND scrdev Construct |
|
3306 COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0217-0001-FontHeightInPixels_command05 |
|
3307 COMMAND scrdev ~ |
|
3308 COMMAND ws Close |
|
3309 END_TEST_BLOCK |
|
3310 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0217 |
|
3311 |
|
3312 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0218 |
|
3313 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0218 |
|
3314 //! @SYMAPI CWsScreenDevice::FontHeightInPixels(TInt, TInt) const |
|
3315 //! @SYMAuthor Allen CHANG |
|
3316 //! @SYMCreationDate 07/01/2008 |
|
3317 //! @SYMTestCaseDesc Negative test, gets the height of the specified font by specifying large typeface index and font height index numbers. |
|
3318 //! @SYMTestActions 1. Create and connect a RWsSession |
|
3319 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
3320 //! 3. Complete the construction. |
|
3321 //! 4. Gets font height with typeface index = 10000 and height index = 10000 |
|
3322 //! 5. Destruct and Close. |
|
3323 //! @SYMTestStatus Implemented |
|
3324 //! @SYMTestPriority High |
|
3325 //! @SYMTestExpectedResults The FontHeightInPixels call doesn't cause panic |
|
3326 //! @SYMTestType CIT |
|
3327 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3328 CREATE_OBJECT RWsSession ws |
|
3329 CREATE_OBJECT CWsScreenDevice scrdev |
|
3330 COMMAND ws new |
|
3331 COMMAND ws Connect |
|
3332 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0218-0001-new_command03 |
|
3333 COMMAND scrdev Construct |
|
3334 COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0218-0001-FontHeightInPixels_command05 |
|
3335 COMMAND scrdev ~ |
|
3336 COMMAND ws Close |
|
3337 END_TEST_BLOCK |
|
3338 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0218 |
|
3339 |
|
3340 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0219 |
|
3341 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0219 |
|
3342 //! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) |
|
3343 //! @SYMAuthor Allen CHANG |
|
3344 //! @SYMCreationDate 02/01/2008 |
|
3345 //! @SYMTestCaseDesc Test for a 99999-length scanline with starting point (0, 0). |
|
3346 //! @SYMTestActions 1. Creates a RWsSession object and connects to window server. |
|
3347 //! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. |
|
3348 //! 3. Creates a CWindowGc object. |
|
3349 //! 4. Completes the construction. |
|
3350 //! 5. Creates a RWindowGroup object attached to the RWsSession object created before. |
|
3351 //! 6. Creates a RWindow object attached to the RWindowGroup object created before. |
|
3352 //! 7. Initializes the display mode of the screen. |
|
3353 //! 8. Sets background color of screen to red. |
|
3354 //! 9. Flushes the buffer to screen. |
|
3355 //! 10. Begins to draw screen, then end to draw screen. |
|
3356 //! 11. Gets scanline from screen. |
|
3357 //! 12. Deactives RWindow, destructs and closes all objects used. |
|
3358 //! @SYMTestStatus Implemented |
|
3359 //! @SYMTestPriority High |
|
3360 //! @SYMTestExpectedResults WSERV 37 panic received at Test Action 11. |
|
3361 //! @SYMTestType CIT |
|
3362 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3363 CREATE_OBJECT RWsSession ws |
|
3364 CREATE_OBJECT CWsScreenDevice scrdev |
|
3365 CREATE_OBJECT CWindowGc wgc |
|
3366 CREATE_OBJECT RWindowGroup wingrp |
|
3367 CREATE_OBJECT RWindow win |
|
3368 COMMAND ws new |
|
3369 COMMAND ws Connect |
|
3370 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-new_command03 |
|
3371 COMMAND scrdev Construct |
|
3372 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-CreateContext_command05 |
|
3373 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-new_command06 |
|
3374 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-Construct_command07 |
|
3375 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-new_command08 |
|
3376 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-Construct_command09 |
|
3377 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-SetRequiredDisplayMode_command10 |
|
3378 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-SetBackgroundColor_command11 |
|
3379 COMMAND win Activate |
|
3380 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-SetAutoFlush_command13 |
|
3381 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-Activate_command14 |
|
3382 COMMAND win BeginRedraw |
|
3383 COMMAND win EndRedraw |
|
3384 COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-GetScanLine_command17 |
|
3385 COMMAND wgc Deactivate |
|
3386 COMMAND win Close |
|
3387 COMMAND wingrp Close |
|
3388 COMMAND wgc ~ |
|
3389 COMMAND scrdev ~ |
|
3390 COMMAND ws Close |
|
3391 END_TEST_BLOCK !PanicString=WSERV !PanicCode=80 |
|
3392 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
3393 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0219 |
|
3394 |
|
3395 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0220 |
|
3396 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0220 |
|
3397 //! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) |
|
3398 //! @SYMAuthor Allen CHANG |
|
3399 //! @SYMCreationDate 02/01/2008 |
|
3400 //! @SYMTestCaseDesc Test for a 10-length scanline with negative starting point (-1, -1). |
|
3401 //! @SYMTestActions 1. Creates a RWsSession object and connects to window server. |
|
3402 //! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. |
|
3403 //! 3. Creates a CWindowGc object. |
|
3404 //! 4. Completes the construction. |
|
3405 //! 5. Creates a RWindowGroup object attached to the RWsSession object created before. |
|
3406 //! 6. Creates a RWindow object attached to the RWindowGroup object created before. |
|
3407 //! 7. Initializes the display mode of the screen. |
|
3408 //! 8. Sets background color of screen to red. |
|
3409 //! 9. Flushes the buffer to screen. |
|
3410 //! 10. Begins to draw screen, then end to draw screen. |
|
3411 //! 11. Gets scanline from screen. |
|
3412 //! 12. Deactives RWindow, destructs and closes all objects used. |
|
3413 //! @SYMTestStatus Implemented |
|
3414 //! @SYMTestPriority High |
|
3415 //! @SYMTestExpectedResults 1. GetScanLine doesn't cause panic. |
|
3416 //! 2. The length of the scanline buffer is as expected. The scanline data in the buffer is as expected. |
|
3417 //! @SYMTestType CIT |
|
3418 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3419 CREATE_OBJECT RWsSession ws |
|
3420 CREATE_OBJECT CWsScreenDevice scrdev |
|
3421 CREATE_OBJECT CWindowGc wgc |
|
3422 CREATE_OBJECT RWindowGroup wingrp |
|
3423 CREATE_OBJECT RWindow win |
|
3424 COMMAND ws new |
|
3425 COMMAND ws Connect |
|
3426 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-new_command03 |
|
3427 COMMAND scrdev Construct |
|
3428 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-CreateContext_command05 |
|
3429 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-new_command06 |
|
3430 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-Construct_command07 |
|
3431 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-new_command08 |
|
3432 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-Construct_command09 |
|
3433 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-SetRequiredDisplayMode_command10 |
|
3434 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-SetBackgroundColor_command11 |
|
3435 COMMAND win Activate |
|
3436 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-SetAutoFlush_command13 |
|
3437 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-Activate_command14 |
|
3438 COMMAND win BeginRedraw |
|
3439 COMMAND win EndRedraw |
|
3440 COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-GetScanLine_command17 |
|
3441 COMMAND wgc Deactivate |
|
3442 COMMAND win Close |
|
3443 COMMAND wingrp Close |
|
3444 COMMAND wgc ~ |
|
3445 COMMAND scrdev ~ |
|
3446 COMMAND ws Close |
|
3447 END_TEST_BLOCK |
|
3448 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0220 |
|
3449 |
|
3450 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0221 |
|
3451 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0221 |
|
3452 //! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) |
|
3453 //! @SYMAuthor Allen CHANG |
|
3454 //! @SYMCreationDate 02/01/2008 |
|
3455 //! @SYMTestCaseDesc Test for a 10-length scanline with starting point (10000, 10000). |
|
3456 //! @SYMTestActions 1. Creates a RWsSession object and connects to window server. |
|
3457 //! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. |
|
3458 //! 3. Creates a CWindowGc object. |
|
3459 //! 4. Completes the construction. |
|
3460 //! 5. Creates a RWindowGroup object attached to the RWsSession object created before. |
|
3461 //! 6. Creates a RWindow object attached to the RWindowGroup object created before. |
|
3462 //! 7. Initializes the display mode of the screen. |
|
3463 //! 8. Sets background color of screen to red. |
|
3464 //! 9. Flushes the buffer to screen. |
|
3465 //! 10. Begins to draw screen, then end to draw screen. |
|
3466 //! 11. Gets scanline from screen. |
|
3467 //! 12. Deactives RWindow, destructs and closes all objects used. |
|
3468 //! @SYMTestStatus Implemented |
|
3469 //! @SYMTestPriority High |
|
3470 //! @SYMTestExpectedResults GetScanLine doesn't cause panic. |
|
3471 //! @SYMTestType CIT |
|
3472 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3473 CREATE_OBJECT RWsSession ws |
|
3474 CREATE_OBJECT CWsScreenDevice scrdev |
|
3475 CREATE_OBJECT CWindowGc wgc |
|
3476 CREATE_OBJECT RWindowGroup wingrp |
|
3477 CREATE_OBJECT RWindow win |
|
3478 COMMAND ws new |
|
3479 COMMAND ws Connect |
|
3480 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-new_command03 |
|
3481 COMMAND scrdev Construct |
|
3482 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-CreateContext_command05 |
|
3483 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-new_command06 |
|
3484 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-Construct_command07 |
|
3485 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-new_command08 |
|
3486 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-Construct_command09 |
|
3487 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-SetRequiredDisplayMode_command10 |
|
3488 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-SetBackgroundColor_command11 |
|
3489 COMMAND win Activate |
|
3490 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-SetAutoFlush_command13 |
|
3491 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-Activate_command14 |
|
3492 COMMAND win BeginRedraw |
|
3493 COMMAND win EndRedraw |
|
3494 COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-GetScanLine_command17 |
|
3495 COMMAND wgc Deactivate |
|
3496 COMMAND win Close |
|
3497 COMMAND wingrp Close |
|
3498 COMMAND wgc ~ |
|
3499 COMMAND scrdev ~ |
|
3500 COMMAND ws Close |
|
3501 END_TEST_BLOCK |
|
3502 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0221 |
|
3503 |
|
3504 //! START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0222 |
|
3505 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0222 |
|
3506 //! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) |
|
3507 //! @SYMAuthor Allen CHANG |
|
3508 //! @SYMCreationDate 02/01/2008 |
|
3509 //! @SYMTestCaseDesc Test for a 10-length scanline with starting point (0, 0). |
|
3510 //! Sets the display mode to -1 within the GetScanLine call. |
|
3511 //! This case is used for regression test. |
|
3512 //! The function GetScanLine() call causes FAULT: KERN 0x00000004 (4), the emulator is forced to exit.(Defect) |
|
3513 //! @SYMTestActions 1. Creates a RWsSession object and connects to window server. |
|
3514 //! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. |
|
3515 //! 3. Creates a CWindowGc object. |
|
3516 //! 4. Completes the construction. |
|
3517 //! 5. Creates a RWindowGroup object attached to the RWsSession object created before. |
|
3518 //! 6. Creates a RWindow object attached to the RWindowGroup object created before. |
|
3519 //! 7. Initializes the display mode of the screen. |
|
3520 //! 8. Sets background color of screen to red. |
|
3521 //! 9. Flushes the buffer to screen. |
|
3522 //! 10. Begins to draw screen, then end to draw screen. |
|
3523 //! 11. Gets scanline from screen. |
|
3524 //! 12. Deactives RWindow, destructs and closes all objects used. |
|
3525 //! @SYMTestStatus Implemented |
|
3526 //! @SYMTestPriority High |
|
3527 //! @SYMTestExpectedResults 1. USER 23 panic received at Test Action 11. |
|
3528 //! 2. The length of the scanline buffer is as expected. The scanline data in the buffer is as expected. |
|
3529 //! @SYMTestType CIT |
|
3530 //! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3531 //! CREATE_OBJECT RWsSession ws |
|
3532 //! CREATE_OBJECT CWsScreenDevice scrdev |
|
3533 //! CREATE_OBJECT CWindowGc wgc |
|
3534 //! CREATE_OBJECT RWindowGroup wingrp |
|
3535 //! CREATE_OBJECT RWindow win |
|
3536 //! COMMAND ws new |
|
3537 //! COMMAND ws Connect |
|
3538 //! COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-new_command03 |
|
3539 //! COMMAND scrdev Construct |
|
3540 //! COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-CreateContext_command05 |
|
3541 //! COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-new_command06 |
|
3542 //! COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-Construct_command07 |
|
3543 //! COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-new_command08 |
|
3544 //! COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-Construct_command09 |
|
3545 //! COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-SetRequiredDisplayMode_command10 |
|
3546 //! COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-SetBackgroundColor_command11 |
|
3547 //! COMMAND win Activate |
|
3548 //! COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-SetAutoFlush_command13 |
|
3549 //! COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-Activate_command14 |
|
3550 //! COMMAND win BeginRedraw |
|
3551 //! COMMAND win EndRedraw |
|
3552 //! COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-GetScanLine_command17 |
|
3553 //! COMMAND wgc Deactivate |
|
3554 //! COMMAND win Close |
|
3555 //! COMMAND wingrp Close |
|
3556 //! COMMAND wgc ~ |
|
3557 //! COMMAND scrdev ~ |
|
3558 //! COMMAND ws Close |
|
3559 //! END_TEST_BLOCK !PanicString=USER !PanicCode=23 |
|
3560 //! END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0222 |
|
3561 |
|
3562 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0223 |
|
3563 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0223 |
|
3564 //! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) |
|
3565 //! @SYMAuthor Allen CHANG |
|
3566 //! @SYMCreationDate 02/01/2008 |
|
3567 //! @SYMTestCaseDesc Test for a 0-length scanline with starting point (0, 0). |
|
3568 //! @SYMTestActions 1. Creates a RWsSession object and connects to window server. |
|
3569 //! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. |
|
3570 //! 3. Creates a CWindowGc object. |
|
3571 //! 4. Completes the construction. |
|
3572 //! 5. Creates a RWindowGroup object attached to the RWsSession object created before. |
|
3573 //! 6. Creates a RWindow object attached to the RWindowGroup object created before. |
|
3574 //! 7. Initializes the display mode of the screen. |
|
3575 //! 8. Sets background color of screen to red. |
|
3576 //! 9. Flushes the buffer to screen. |
|
3577 //! 10. Begins to draw screen, then end to draw screen. |
|
3578 //! 11. Gets scanline from screen. |
|
3579 //! @SYMTestStatus Implemented |
|
3580 //! @SYMTestPriority High |
|
3581 //! @SYMTestExpectedResults No panic received at Test Action 11. |
|
3582 //! @SYMTestType CIT |
|
3583 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3584 CREATE_OBJECT RWsSession ws |
|
3585 CREATE_OBJECT CWsScreenDevice scrdev |
|
3586 CREATE_OBJECT CWindowGc wgc |
|
3587 CREATE_OBJECT RWindowGroup wingrp |
|
3588 CREATE_OBJECT RWindow win |
|
3589 COMMAND ws new |
|
3590 COMMAND ws Connect |
|
3591 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-new_command03 |
|
3592 COMMAND scrdev Construct |
|
3593 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-CreateContext_command05 |
|
3594 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-new_command06 |
|
3595 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-Construct_command07 |
|
3596 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-new_command08 |
|
3597 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-Construct_command09 |
|
3598 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-SetRequiredDisplayMode_command10 |
|
3599 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-SetBackgroundColor_command11 |
|
3600 COMMAND win Activate |
|
3601 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-SetAutoFlush_command13 |
|
3602 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-Activate_command14 |
|
3603 COMMAND win BeginRedraw |
|
3604 COMMAND win EndRedraw |
|
3605 COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-GetScanLine_command17 |
|
3606 END_TEST_BLOCK |
|
3607 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
3608 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0223 |
|
3609 |
|
3610 |
|
3611 |
|
3612 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0230 |
|
3613 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0230 |
|
3614 //! @SYMAPI CWsScreenDevice::ReleaseFont(CFont{ptr}) |
|
3615 //! @SYMAuthor Ray Liang |
|
3616 //! @SYMCreationDate 2/13/2008 |
|
3617 //! @SYMTestCaseDesc Verify the behaviour of ReleaseFont. |
|
3618 //! Get font and draw text use it, then release font, then use font to draw again, a panic will arise. |
|
3619 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3620 //! 1.1 New and connect a RWsSession |
|
3621 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3622 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3623 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3624 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3625 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow |
|
3626 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3627 //! 1.7 Activate the CWindowGc to the RWindow |
|
3628 //! 2. Start a redraw cycle |
|
3629 //! 3. Set Gc pen color to TRgb(255,0,255) |
|
3630 //! 4. Get font in pixels for Arial, 30 pixels font. |
|
3631 //! 5. Use font to draw text. |
|
3632 //! 5.1 Gc uses font. |
|
3633 //! 5.2 Draw text at (50,100). |
|
3634 //! 5.3 Gc discard font. |
|
3635 //! 6. Release font. |
|
3636 //! 7. Use font to draw text. |
|
3637 //! 7.1 Gc uses font. |
|
3638 //! 7.2 Draw text at (50,100). |
|
3639 //! 7.3 Gc discard font. |
|
3640 //! 8. End a redraw cycle |
|
3641 //! 9.Deactive RWindow, destruct and close all objects used |
|
3642 //! @SYMTestStatus Implemented |
|
3643 //! @SYMTestPriority High |
|
3644 //! @SYMTestExpectedResults WSERV 14(13 for emulator DEBUG) panic received at Test Action 5.1. |
|
3645 //! @SYMTestType CIT |
|
3646 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3647 CREATE_OBJECT RWsSession ws |
|
3648 CREATE_OBJECT CWsScreenDevice scrdev |
|
3649 CREATE_OBJECT CWindowGc wgc |
|
3650 CREATE_OBJECT RWindowGroup wingrp |
|
3651 CREATE_OBJECT RWindow win |
|
3652 CREATE_OBJECT CFbsFont font |
|
3653 COMMAND ws new |
|
3654 COMMAND ws Connect |
|
3655 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-new_command03 |
|
3656 COMMAND scrdev Construct |
|
3657 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-CreateContext_command05 |
|
3658 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-new_command06 |
|
3659 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-Construct_command07 |
|
3660 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-new_command08 |
|
3661 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-Construct_command09 |
|
3662 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-SetRequiredDisplayMode_command10 |
|
3663 COMMAND win Activate |
|
3664 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-SetAutoFlush_command12 |
|
3665 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-Activate_command13 |
|
3666 COMMAND win BeginRedraw |
|
3667 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-SetPenColor_command015 |
|
3668 COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-GetNearestFontToDesignHeightInPixels_command016 |
|
3669 COMMAND wgc UseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-UseFont_command017 |
|
3670 COMMAND wgc DrawText GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-DrawText_command018 |
|
3671 COMMAND wgc DiscardFont |
|
3672 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-ReleaseFont_command19 |
|
3673 COMMAND wgc UseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-UseFont_command020 |
|
3674 COMMAND wgc DrawText GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-DrawText_command021 |
|
3675 COMMAND wgc DiscardFont |
|
3676 COMMAND win EndRedraw |
|
3677 COMMAND wgc Deactivate |
|
3678 COMMAND win Close |
|
3679 COMMAND wingrp Close |
|
3680 COMMAND wgc ~ |
|
3681 COMMAND scrdev ~ |
|
3682 COMMAND ws Close |
|
3683 END_TEST_BLOCK !panicstring=WSERV !paniccode=14 |
|
3684 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
3685 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0230 |
|
3686 |
|
3687 |
|
3688 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0231 |
|
3689 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0231 |
|
3690 //! @SYMAPI CWsScreenDevice::ReleaseFont(CFont{ptr}) |
|
3691 //! @SYMAuthor Ray Liang |
|
3692 //! @SYMCreationDate 2/13/2008 |
|
3693 //! @SYMTestCaseDesc Negative test for NULL CFont. |
|
3694 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
3695 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
3696 //! 3. Release font with NULL CFont pointer. |
|
3697 //! 4. Destruct the CWsScreenDevice object |
|
3698 //! 5. Close the RWsSession object |
|
3699 //! @SYMTestStatus Implemented |
|
3700 //! @SYMTestPriority High |
|
3701 //! @SYMTestExpectedResults No panic. |
|
3702 //! @SYMTestType CIT |
|
3703 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3704 CREATE_OBJECT RWsSession ws |
|
3705 CREATE_OBJECT CWsScreenDevice scrdev |
|
3706 CREATE_OBJECT CFbsFont font |
|
3707 COMMAND ws new |
|
3708 COMMAND ws Connect |
|
3709 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0231-0001-new_command03 |
|
3710 COMMAND scrdev Construct |
|
3711 COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0231-0001-ReleaseFont_command05 |
|
3712 COMMAND scrdev ~ |
|
3713 COMMAND ws Close |
|
3714 END_TEST_BLOCK |
|
3715 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0231 |
|
3716 |
|
3717 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0279 |
|
3718 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0279 |
|
3719 //! @SYMAPI CWsScreenDevice::RectCompare(const TRect{ref}, const TRect{ref}) |
|
3720 //! @SYMAuthor Niandong Qiao |
|
3721 //! @SYMCreationDate 01/18/2007 |
|
3722 //! @SYMTestCaseDesc Compare two areas with sprite or text cursor over them. |
|
3723 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
3724 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
3725 //! 3. Create a CWindowGc attached to CWsScreenDevice. |
|
3726 //! 4. Create a RWindowGroup attached to RWsSession. |
|
3727 //! 5. Create a RWindow, setup it and activate. |
|
3728 //! 6. SetAutoFlush to TRUE for the RWsSession. |
|
3729 //! 7. Active CWindowGc. |
|
3730 //! 8. Setup and draw 2 rectangles(60*60 size,filled with red, border is black)in 2 different regions with same content. |
|
3731 //! 9. Create 2 RWsSprite attached to RWsSession by using RWsSprite(RWsSession &aWs) and construct. |
|
3732 //! 10. Create 4 CFbsBitmap objects and load bitmaps. |
|
3733 //! 11. Append these CFbsBitmaps to RWsSprites. |
|
3734 //! 12. Set RWsSprites's position using SetPosition(). |
|
3735 //! 13. Compare 2 rectangles with sprites over them. |
|
3736 //! 13.1. Compare 2 rectangles with same graphics and a sprite over one of them. |
|
3737 //! 13.2. Compare 2 rectangles with different graphics and same sprites. |
|
3738 //! 14. Destruct CFbsBitmaps objects and close RWsSprite objects. |
|
3739 //! 15. Set a text cursor using RWindowGroup::SetTextCursor(). |
|
3740 //! 16. Compare 2 rectangles with a text cursor over one of them. |
|
3741 //! 16.1. Compare 2 rectangles with same graphics and a text cursor over one of them. |
|
3742 //! 16.2. Compare 2 rectangles with different graphics and a text cursor over one of them. |
|
3743 //! 17. Deactive RWindow, destruct and close all objects used. |
|
3744 //! @SYMTestStatus Implemented |
|
3745 //! @SYMTestPriority High |
|
3746 //! @SYMTestExpectedResults 1. No panic |
|
3747 //! 2. Result of comparing 2 rectangles with sprites |
|
3748 //! 2.1. Step 13.1 return ETrue |
|
3749 //! 2.2. Step 13.2 return EFalse |
|
3750 //! 3. Result of comparing 2 rectangles with a text cursor |
|
3751 //! 3.1. Step 16.1 return ETrue |
|
3752 //! 3.2. Step 16.2 return EFalse |
|
3753 //! @SYMTestType CIT |
|
3754 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3755 CREATE_OBJECT RWsSession ws |
|
3756 CREATE_OBJECT CWsScreenDevice scrdev |
|
3757 CREATE_OBJECT CWindowGc wgc |
|
3758 CREATE_OBJECT CFbsBitmap fbsbmp1 |
|
3759 CREATE_OBJECT CFbsBitmap fbsbmp2 |
|
3760 CREATE_OBJECT CFbsBitmap fbsbmp3 |
|
3761 CREATE_OBJECT CFbsBitmap fbsbmp4 |
|
3762 CREATE_OBJECT RWindowGroup wingrp |
|
3763 CREATE_OBJECT RWindow win |
|
3764 CREATE_OBJECT RWsSprite sprite1 |
|
3765 CREATE_OBJECT RWsSprite sprite2 |
|
3766 CREATE_OBJECT RWsSprite sprite3 |
|
3767 COMMAND ws new |
|
3768 COMMAND ws Connect |
|
3769 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command03 |
|
3770 COMMAND scrdev Construct |
|
3771 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-CreateContext_command05 |
|
3772 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command06 |
|
3773 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-Construct_command07 |
|
3774 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command08 |
|
3775 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-Construct_command09 |
|
3776 COMMAND win Activate |
|
3777 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetAutoFlush_command11 |
|
3778 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-Activate_command12 |
|
3779 COMMAND win BeginRedraw |
|
3780 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetBrushColor_command14 |
|
3781 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetBrushStyle_command15 |
|
3782 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetPenColor_command16 |
|
3783 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-DrawRect_command17 |
|
3784 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-DrawRect_command18 |
|
3785 COMMAND win EndRedraw |
|
3786 COMMAND sprite1 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command20 |
|
3787 COMMAND sprite1 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-construct_command21 |
|
3788 COMMAND fbsbmp1 new |
|
3789 COMMAND fbsbmp1 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-loadmask_command23 |
|
3790 |
|
3791 COMMAND fbsbmp2 new |
|
3792 COMMAND fbsbmp2 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-load_command25 |
|
3793 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command26 |
|
3794 |
|
3795 COMMAND fbsbmp3 new |
|
3796 COMMAND fbsbmp3 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-load_command28 |
|
3797 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command29 |
|
3798 |
|
3799 COMMAND fbsbmp4 new |
|
3800 COMMAND fbsbmp4 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-load_command31 |
|
3801 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command32 |
|
3802 COMMAND sprite1 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetPosition_command33 |
|
3803 |
|
3804 COMMAND sprite2 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command34 |
|
3805 COMMAND sprite2 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-construct_command35 |
|
3806 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command36 |
|
3807 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command37 |
|
3808 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command38 |
|
3809 COMMAND sprite2 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetPosition_command39 |
|
3810 |
|
3811 COMMAND sprite1 Activate |
|
3812 COMMAND sprite2 Activate |
|
3813 |
|
3814 DELAY 1000000 |
|
3815 |
|
3816 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-RectCompare_command43 |
|
3817 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-RectCompare_command44 |
|
3818 |
|
3819 COMMAND fbsbmp1 ~ |
|
3820 COMMAND fbsbmp2 ~ |
|
3821 COMMAND fbsbmp3 ~ |
|
3822 COMMAND fbsbmp4 ~ |
|
3823 COMMAND sprite1 Close |
|
3824 COMMAND sprite2 Close |
|
3825 |
|
3826 COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetTextCursor_command51 |
|
3827 |
|
3828 DELAY 1000000 |
|
3829 |
|
3830 //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-RectCompare_command53 |
|
3831 //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-RectCompare_command54 |
|
3832 |
|
3833 COMMAND wgc Deactivate |
|
3834 COMMAND win Close |
|
3835 COMMAND wingrp Close |
|
3836 COMMAND wgc ~ |
|
3837 COMMAND scrdev ~ |
|
3838 COMMAND ws Close |
|
3839 END_TEST_BLOCK |
|
3840 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0279 |
|
3841 |
|
3842 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0280 |
|
3843 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0280 |
|
3844 //! @SYMAPI CWsScreenDevice::RectCompare(const TRect{ref}, const TRect{ref}) |
|
3845 //! @SYMAuthor Niandong Qiao |
|
3846 //! @SYMCreationDate 01/07/2008 |
|
3847 //! @SYMTestCaseDesc Compare rectangles which are outside the screen. |
|
3848 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
3849 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
3850 //! 3. Create a RWindowGroup attached to RWsSession. |
|
3851 //! 4. Create a RWindow, setup it and activate. |
|
3852 //! 5. RWsSession SetAutoFlush. |
|
3853 //! 6. Refresh window with white color. |
|
3854 //! 7. Compare two regions (rect1 (0,-50)-(50,50) & rect2 (50,-50)-(100,50)). |
|
3855 //! 8. Compare two regions (rect1 (-50,0)-(50,50) & rect2 (-50,50)-(50,100)). |
|
3856 //! 9. Compare two big regions (rect1 (-10000,-10000)-(0,0) & rect2 (0,0)-(10000,10000)). |
|
3857 //! 10. Destruct and Close. |
|
3858 //! @SYMTestStatus Implemented |
|
3859 //! @SYMTestPriority High |
|
3860 //! @SYMTestExpectedResults 1. Action 7 return EFalse. |
|
3861 //! 2. Action 8 return EFalse. |
|
3862 //! 3. Action 9 return EFalse. |
|
3863 //! @SYMTestType CIT |
|
3864 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3865 CREATE_OBJECT RWsSession ws |
|
3866 CREATE_OBJECT CWsScreenDevice scrdev |
|
3867 CREATE_OBJECT CWindowGc wgc |
|
3868 CREATE_OBJECT RWindowGroup wingrp |
|
3869 CREATE_OBJECT RWindow win |
|
3870 COMMAND ws new |
|
3871 COMMAND ws Connect |
|
3872 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-new_command03 |
|
3873 COMMAND scrdev Construct |
|
3874 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-CreateContext_command05 |
|
3875 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-new_command06 |
|
3876 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-Construct_command07 |
|
3877 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-new_command08 |
|
3878 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-Construct_command09 |
|
3879 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-SetRequiredDisplayMode_command10 |
|
3880 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-SetBackgroundColor_command11 |
|
3881 COMMAND win Activate |
|
3882 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-SetAutoFlush_command13 |
|
3883 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-Activate_command14 |
|
3884 COMMAND win BeginRedraw |
|
3885 COMMAND win EndRedraw |
|
3886 COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-RectCompare_command23 |
|
3887 COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-RectCompare_command24 |
|
3888 COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-RectCompare_command25 |
|
3889 COMMAND wgc Deactivate |
|
3890 COMMAND win Close |
|
3891 COMMAND wingrp Close |
|
3892 COMMAND wgc ~ |
|
3893 COMMAND scrdev ~ |
|
3894 COMMAND ws Close |
|
3895 END_TEST_BLOCK |
|
3896 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0280 |
|
3897 |
|
3898 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0281 |
|
3899 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0281 |
|
3900 //! @SYMAPI CWsScreenDevice::RectCompare(const TRect{ref}, const TRect{ref}, TUint) |
|
3901 //! @SYMAuthor Wekey Weng |
|
3902 //! @SYMCreationDate 01/07/2007 |
|
3903 //! @SYMTestCaseDesc Compares two areas of the screen to see if they have the same content with flag ERemoveSprite, EIncludeSprite or EIncludeTextCursor |
|
3904 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
3905 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
3906 //! 3. Create a CWindowGc attached to CWsScreenDevice. |
|
3907 //! 4. Create a RWindowGroup attached to RWsSession. |
|
3908 //! 5. Create a RWindow, setup it and activate. |
|
3909 //! 6. SetAutoFlush to TRUE for the RWsSession. |
|
3910 //! 7. Active CWindowGc. |
|
3911 //! 8. Setup and draw 2 rectangles(60*60 size,filled with red, border is black)in 2 different regions with same content. |
|
3912 //! 9. Create 3 RWsSprite attached to RWsSession by using RWsSprite(RWsSession &aWs) and construct. |
|
3913 //! 10. Create 4 CFbsBitmap objects and load bitmaps. |
|
3914 //! 11. Append these CFbsBitmaps to RWsSprites. |
|
3915 //! 12. Set RWsSprites's position using SetPosition(). |
|
3916 //! 13. Compare 2 rectangles with sprites. |
|
3917 //! 13.1. Compare 2 rectangles with same graphics and different sprites using flag ERemoveSprite. |
|
3918 //! 13.2. Compare 2 rectangles with different graphics and same sprites using flag ERemoveSprite. |
|
3919 //! 13.3. Compare 2 rectangles with same graphics and different sprites using flag EIncludeSprite. |
|
3920 //! 13.4. Compare 2 rectangles with different graphics and same sprites using flag EIncludeSprite. |
|
3921 //! 13.5. Compare 2 rectangles with same graphics and sprites using flag EIncludeSprite. |
|
3922 //! 14. Destruct CFbsBitmaps objects and close RWsSprite objects. |
|
3923 //! 15. Set a text cursor using RWindowGroup::SetTextCursor(). |
|
3924 //! 16. Compare 2 rectangles with a text cursor. |
|
3925 //! 16.1. Compare 2 rectangles with same graphics and a text cursor over one of them using flag ERemoveSprite. |
|
3926 //! 16.2. Compare 2 rectangles with different graphics and a text cursor over one of them using flag ERemoveSprite. |
|
3927 //! 16.3. Compare 2 rectangles with same graphics and a text cursor over one of them using flag EIncludeTextCursor. |
|
3928 //! 16.4. Compare 2 rectangles with different graphics and a text cursor over one of them using flag EIncludeTextCursor. |
|
3929 //! 16.5. Compare 2 rectangles with same graphics and no cursors using flag EIncludeTextCursor. |
|
3930 //! 17. Deactive RWindow, destruct and close all objects used. |
|
3931 //! @SYMTestStatus Implemented |
|
3932 //! @SYMTestPriority High |
|
3933 //! @SYMTestExpectedResults 1. No panic |
|
3934 //! 2. Result of comparing 2 rectangles with sprites |
|
3935 //! 2.1. Step 13.1 returns ETrue |
|
3936 //! 2.2. Step 13.2 returns EFalse |
|
3937 //! 2.3. Step 13.3 returns EFalse |
|
3938 //! 2.4. Step 13.4 returns EFalse |
|
3939 //! 2.5. Step 13.5 returns ETrue |
|
3940 //! 3. Result of comparing 2 rectangles with a text cursor |
|
3941 //! 3.1. Step 16.1 returns ETrue |
|
3942 //! 3.2. Step 16.2 returns EFalse |
|
3943 //! 3.3. Step 16.3 returns EFalse |
|
3944 //! 3.4. Step 16.4 returns EFalse |
|
3945 //! 3.5. Step 16.5 returns ETrue |
|
3946 //! @SYMTestType CIT |
|
3947 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
3948 CREATE_OBJECT RWsSession ws |
|
3949 CREATE_OBJECT CWsScreenDevice scrdev |
|
3950 CREATE_OBJECT CWindowGc wgc |
|
3951 CREATE_OBJECT CFbsBitmap fbsbmp1 |
|
3952 CREATE_OBJECT CFbsBitmap fbsbmp2 |
|
3953 CREATE_OBJECT CFbsBitmap fbsbmp3 |
|
3954 CREATE_OBJECT CFbsBitmap fbsbmp4 |
|
3955 CREATE_OBJECT RWindowGroup wingrp |
|
3956 CREATE_OBJECT RWindow win |
|
3957 CREATE_OBJECT RWsSprite sprite1 |
|
3958 CREATE_OBJECT RWsSprite sprite2 |
|
3959 CREATE_OBJECT RWsSprite sprite3 |
|
3960 COMMAND ws new |
|
3961 COMMAND ws Connect |
|
3962 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command03 |
|
3963 COMMAND scrdev Construct |
|
3964 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-CreateContext_command05 |
|
3965 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command06 |
|
3966 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-Construct_command07 |
|
3967 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command08 |
|
3968 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-Construct_command09 |
|
3969 COMMAND win Activate |
|
3970 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetAutoFlush_command11 |
|
3971 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-Activate_command12 |
|
3972 COMMAND win BeginRedraw |
|
3973 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetBrushColor_command14 |
|
3974 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetBrushStyle_command15 |
|
3975 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetPenColor_command16 |
|
3976 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-DrawRect_command17 |
|
3977 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-DrawRect_command18 |
|
3978 COMMAND win EndRedraw |
|
3979 COMMAND sprite1 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command19 |
|
3980 COMMAND sprite1 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-construct_command20 |
|
3981 COMMAND fbsbmp1 new |
|
3982 COMMAND fbsbmp1 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-loadmask_command22 |
|
3983 |
|
3984 COMMAND fbsbmp2 new |
|
3985 COMMAND fbsbmp2 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-load_command24 |
|
3986 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command25 |
|
3987 |
|
3988 COMMAND fbsbmp3 new |
|
3989 COMMAND fbsbmp3 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-load_command27 |
|
3990 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command28 |
|
3991 |
|
3992 COMMAND fbsbmp4 new |
|
3993 COMMAND fbsbmp4 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-load_command30 |
|
3994 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command31 |
|
3995 COMMAND sprite1 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetPosition_command32 |
|
3996 |
|
3997 COMMAND sprite2 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command33 |
|
3998 COMMAND sprite2 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-construct_command34 |
|
3999 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command35 |
|
4000 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command36 |
|
4001 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command37 |
|
4002 COMMAND sprite2 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetPosition_command38 |
|
4003 |
|
4004 COMMAND sprite3 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command39 |
|
4005 COMMAND sprite3 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-construct_command40 |
|
4006 COMMAND sprite3 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command41 |
|
4007 COMMAND sprite3 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command42 |
|
4008 COMMAND sprite3 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command43 |
|
4009 COMMAND sprite3 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetPosition_command44 |
|
4010 |
|
4011 COMMAND sprite1 Activate |
|
4012 COMMAND sprite2 Activate |
|
4013 COMMAND sprite3 Activate |
|
4014 |
|
4015 DELAY 1000000 |
|
4016 |
|
4017 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command49 |
|
4018 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command50 |
|
4019 |
|
4020 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command51 |
|
4021 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command52 |
|
4022 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command53 |
|
4023 |
|
4024 COMMAND fbsbmp1 ~ |
|
4025 COMMAND fbsbmp2 ~ |
|
4026 COMMAND fbsbmp3 ~ |
|
4027 COMMAND fbsbmp4 ~ |
|
4028 COMMAND sprite1 Close |
|
4029 COMMAND sprite2 Close |
|
4030 COMMAND sprite3 Close |
|
4031 |
|
4032 COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetTextCursor_command61 |
|
4033 |
|
4034 DELAY 1000000 |
|
4035 |
|
4036 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command63 |
|
4037 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command64 |
|
4038 |
|
4039 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command65 |
|
4040 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command66 |
|
4041 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command67 |
|
4042 |
|
4043 COMMAND wgc Deactivate |
|
4044 COMMAND win Close |
|
4045 COMMAND wingrp Close |
|
4046 COMMAND wgc ~ |
|
4047 COMMAND scrdev ~ |
|
4048 COMMAND ws Close |
|
4049 END_TEST_BLOCK |
|
4050 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0281 |
|
4051 |
|
4052 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0282 |
|
4053 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0282 |
|
4054 //! @SYMAPI CWsScreenDevice::RectCompare(const TRect{ref}, const TRect{ref}, TUint) |
|
4055 //! @SYMAuthor Wekey Weng |
|
4056 //! @SYMCreationDate 01/07/2007 |
|
4057 //! @SYMTestCaseDesc Compares two areas beyonding the screen to see if they have the same content with flag ERemoveSprite, EIncludeSprite or EIncludeTextCursor |
|
4058 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
4059 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
4060 //! 3. Create a CWindowGc attached to CWsScreenDevice. |
|
4061 //! 4. Create a RWindowGroup attached to RWsSession. |
|
4062 //! 5. Create a RWindow, setup it and activate. |
|
4063 //! 6. SetAutoFlush to TRUE for the RWsSession. |
|
4064 //! 7. Active CWindowGc. |
|
4065 //! 8. Setup and draw 2 rectangles(60*60 size,filled with red, border is black)in 2 different regions with same content. |
|
4066 //! 9. Create 3 RWsSprite attached to RWsSession by using RWsSprite(RWsSession &aWs) and construct. |
|
4067 //! 10. Create 4 CFbsBitmap objects and load bitmaps. |
|
4068 //! 11. Append these CFbsBitmaps to RWsSprites. |
|
4069 //! 12. Set RWsSprites's position using SetPosition(). |
|
4070 //! 13. Compare 2 rectangles beyonding the screen with sprites. |
|
4071 //! 13.1. Compare 2 rectangles beyonding the screen with same graphics and different sprites using flag ERemoveSprite. |
|
4072 //! 13.2. Compare 2 rectangles beyonding the screen with same graphics and sprites using flag EIncludeSprite. |
|
4073 //! 14. Destruct CFbsBitmaps objects and close RWsSprite objects. |
|
4074 //! 15. Set a text cursor using RWindowGroup::SetTextCursor(). |
|
4075 //! 16. Compare 2 rectangles beyonding the screen with a text cursor. |
|
4076 //! 16.1. Compare 2 rectangles beyonding the screen with same graphics and a text cursor over one of them using flag ERemoveSprite. |
|
4077 //! 16.2. Compare 2 rectangles beyonding the screen with same graphics and no cursors using flag EIncludeTextCursor. |
|
4078 //! 17. Deactive RWindow, destruct and close all objects used. |
|
4079 //! @SYMTestStatus Implemented |
|
4080 //! @SYMTestPriority High |
|
4081 //! @SYMTestExpectedResults 1. No panic |
|
4082 //! 2. Result of comparing 2 rectangles beyonding the screen with sprites |
|
4083 //! 2.1. Step 13.1 returns EFalse |
|
4084 //! 2.2. Step 13.2 returns EFalse |
|
4085 //! 3. Result of comparing 2 rectangles beyonding the screen with a text cursor |
|
4086 //! 3.1. Step 16.1 returns EFalse |
|
4087 //! 3.2. Step 16.2 returns EFalse |
|
4088 //! @SYMTestType CIT |
|
4089 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4090 CREATE_OBJECT RWsSession ws |
|
4091 CREATE_OBJECT CWsScreenDevice scrdev |
|
4092 CREATE_OBJECT CWindowGc wgc |
|
4093 CREATE_OBJECT CFbsBitmap fbsbmp1 |
|
4094 CREATE_OBJECT CFbsBitmap fbsbmp2 |
|
4095 CREATE_OBJECT CFbsBitmap fbsbmp3 |
|
4096 CREATE_OBJECT CFbsBitmap fbsbmp4 |
|
4097 CREATE_OBJECT RWindowGroup wingrp |
|
4098 CREATE_OBJECT RWindow win |
|
4099 CREATE_OBJECT RWsSprite sprite1 |
|
4100 CREATE_OBJECT RWsSprite sprite2 |
|
4101 CREATE_OBJECT RWsSprite sprite3 |
|
4102 COMMAND ws new |
|
4103 COMMAND ws Connect |
|
4104 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command03 |
|
4105 COMMAND scrdev Construct |
|
4106 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-CreateContext_command05 |
|
4107 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command06 |
|
4108 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-Construct_command07 |
|
4109 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command08 |
|
4110 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-Construct_command09 |
|
4111 COMMAND win Activate |
|
4112 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetAutoFlush_command11 |
|
4113 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-Activate_command12 |
|
4114 COMMAND win BeginRedraw |
|
4115 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetBrushColor_command14 |
|
4116 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetBrushStyle_command15 |
|
4117 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetPenColor_command16 |
|
4118 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-DrawRect_command17 |
|
4119 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-DrawRect_command18 |
|
4120 COMMAND win EndRedraw |
|
4121 |
|
4122 COMMAND sprite1 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command19 |
|
4123 COMMAND sprite1 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-construct_command20 |
|
4124 COMMAND fbsbmp1 new |
|
4125 COMMAND fbsbmp1 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-loadmask_command22 |
|
4126 |
|
4127 COMMAND fbsbmp2 new |
|
4128 COMMAND fbsbmp2 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-load_command24 |
|
4129 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command25 |
|
4130 |
|
4131 COMMAND fbsbmp3 new |
|
4132 COMMAND fbsbmp3 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-load_command27 |
|
4133 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command28 |
|
4134 |
|
4135 COMMAND fbsbmp4 new |
|
4136 COMMAND fbsbmp4 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-load_command30 |
|
4137 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command31 |
|
4138 COMMAND sprite1 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetPosition_command32 |
|
4139 |
|
4140 COMMAND sprite2 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command33 |
|
4141 COMMAND sprite2 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-construct_command34 |
|
4142 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command35 |
|
4143 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command36 |
|
4144 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command37 |
|
4145 COMMAND sprite2 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetPosition_command38 |
|
4146 |
|
4147 COMMAND sprite3 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command39 |
|
4148 COMMAND sprite3 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-construct_command40 |
|
4149 COMMAND sprite3 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command41 |
|
4150 COMMAND sprite3 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command42 |
|
4151 COMMAND sprite3 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command43 |
|
4152 COMMAND sprite3 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetPosition_command44 |
|
4153 |
|
4154 COMMAND sprite1 Activate |
|
4155 COMMAND sprite2 Activate |
|
4156 COMMAND sprite3 Activate |
|
4157 |
|
4158 DELAY 1000000 |
|
4159 |
|
4160 COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-RectCompare_command49 |
|
4161 COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-RectCompare_command50 |
|
4162 |
|
4163 COMMAND fbsbmp1 ~ |
|
4164 COMMAND fbsbmp2 ~ |
|
4165 COMMAND fbsbmp3 ~ |
|
4166 COMMAND fbsbmp4 ~ |
|
4167 COMMAND sprite1 Close |
|
4168 COMMAND sprite2 Close |
|
4169 COMMAND sprite3 Close |
|
4170 |
|
4171 COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetTextCursor_command58 |
|
4172 |
|
4173 DELAY 1000000 |
|
4174 |
|
4175 COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-RectCompare_command60 |
|
4176 COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-RectCompare_command61 |
|
4177 |
|
4178 COMMAND wgc Deactivate |
|
4179 COMMAND win Close |
|
4180 COMMAND wingrp Close |
|
4181 COMMAND wgc ~ |
|
4182 COMMAND scrdev ~ |
|
4183 COMMAND ws Close |
|
4184 END_TEST_BLOCK |
|
4185 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0282 |
|
4186 |
|
4187 |
|
4188 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283 |
|
4189 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283 |
|
4190 //! @SYMAPI CWsScreenDevice::RectCompare(const TRect{ref}, const TRect{ref}, TUint) |
|
4191 //! @SYMAuthor Wekey Weng |
|
4192 //! @SYMCreationDate 01/07/2007 |
|
4193 //! @SYMTestCaseDesc Compares two areas with different sprite to see if they have the same content with flag ERemoveSprite and EIncludeSprite |
|
4194 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
4195 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
4196 //! 3. Create a CWindowGc attached to CWsScreenDevice. |
|
4197 //! 4. Create a RWindowGroup attached to RWsSession. |
|
4198 //! 5. Create a RWindow, setup it and activate. |
|
4199 //! 6. SetAutoFlush to TRUE for the RWsSession. |
|
4200 //! 7. Active CWindowGc. |
|
4201 //! 8. Create 2 RWsSprite attached to RWsSession by using RWsSprite(RWsSession &aWs) and construct. |
|
4202 //! 9. Create 4 CFbsBitmap objects and load bitmaps. |
|
4203 //! 10. Append these CFbsBitmaps to RWsSprites. |
|
4204 //! 11. Set RWsSprites's position using SetPosition(). |
|
4205 //! 12. Compare 2 rectangles. |
|
4206 //! 12.1. Compare 2 rectangles with same graphics and different sprite using flag ERemoveSprite. |
|
4207 //! 12.2. Compare 2 rectangles with same graphics and different sprite using flag EIncludeSprite. |
|
4208 //! 13. Deactive RWindow, destruct and close all objects used. |
|
4209 //! @SYMTestStatus Implemented |
|
4210 //! @SYMTestPriority High |
|
4211 //! @SYMTestExpectedResults 1. No panic |
|
4212 //! 2. Result of comparing 2 rectangles with different sprite |
|
4213 //! 2.1. Step 12.1 returns EFalse |
|
4214 //! 2.2. Step 12.2 returns EFalse |
|
4215 //! @SYMTestType CIT |
|
4216 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4217 CREATE_OBJECT RWsSession ws |
|
4218 CREATE_OBJECT CWsScreenDevice scrdev |
|
4219 CREATE_OBJECT CWindowGc wgc |
|
4220 CREATE_OBJECT CFbsBitmap fbsbmp1 |
|
4221 CREATE_OBJECT CFbsBitmap fbsbmp2 |
|
4222 CREATE_OBJECT CFbsBitmap fbsbmp3 |
|
4223 CREATE_OBJECT CFbsBitmap fbsbmp4 |
|
4224 CREATE_OBJECT RWindowGroup wingrp |
|
4225 CREATE_OBJECT RWindow win |
|
4226 CREATE_OBJECT RWsSprite sprite1 |
|
4227 CREATE_OBJECT RWsSprite sprite2 |
|
4228 COMMAND ws new |
|
4229 COMMAND ws Connect |
|
4230 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command03 |
|
4231 COMMAND scrdev Construct |
|
4232 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-CreateContext_command05 |
|
4233 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command06 |
|
4234 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-Construct_command07 |
|
4235 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command08 |
|
4236 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-Construct_command09 |
|
4237 COMMAND win Activate |
|
4238 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-SetAutoFlush_command11 |
|
4239 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-Activate_command12 |
|
4240 COMMAND win BeginRedraw |
|
4241 COMMAND win EndRedraw |
|
4242 |
|
4243 COMMAND sprite1 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command15 |
|
4244 COMMAND sprite1 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-construct_command16 |
|
4245 COMMAND fbsbmp1 new |
|
4246 COMMAND fbsbmp1 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-loadmask_command18 |
|
4247 |
|
4248 COMMAND fbsbmp2 new |
|
4249 COMMAND fbsbmp2 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-load_command20 |
|
4250 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-appendmember_command21 |
|
4251 |
|
4252 COMMAND fbsbmp3 new |
|
4253 COMMAND fbsbmp3 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-load_command23 |
|
4254 COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-appendmember_command24 |
|
4255 |
|
4256 COMMAND sprite1 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-SetPosition_command25 |
|
4257 |
|
4258 COMMAND sprite2 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command26 |
|
4259 COMMAND sprite2 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-construct_command27 |
|
4260 |
|
4261 COMMAND fbsbmp4 new |
|
4262 COMMAND fbsbmp4 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-load_command29 |
|
4263 COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-appendmember_command30 |
|
4264 COMMAND sprite2 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-SetPosition_command31 |
|
4265 |
|
4266 |
|
4267 COMMAND sprite1 Activate |
|
4268 COMMAND sprite2 Activate |
|
4269 |
|
4270 DELAY 1000000 |
|
4271 |
|
4272 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-RectCompare_command34 |
|
4273 //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-RectCompare_command35 |
|
4274 |
|
4275 COMMAND fbsbmp1 ~ |
|
4276 COMMAND fbsbmp2 ~ |
|
4277 COMMAND fbsbmp3 ~ |
|
4278 COMMAND fbsbmp4 ~ |
|
4279 COMMAND sprite1 Close |
|
4280 COMMAND sprite2 Close |
|
4281 COMMAND wgc Deactivate |
|
4282 COMMAND win Close |
|
4283 COMMAND wingrp Close |
|
4284 COMMAND wgc ~ |
|
4285 COMMAND scrdev ~ |
|
4286 COMMAND ws Close |
|
4287 END_TEST_BLOCK |
|
4288 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283 |
|
4289 |
|
4290 //!START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0291 |
|
4291 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0291 |
|
4292 //! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap {ptr}) |
|
4293 //! @SYMAuthor Dorothy Zhang |
|
4294 //! @SYMCreationDate 01/09/2007 |
|
4295 //! @SYMTestCaseDesc Negative test, uses the bitmap of NULL pointer. |
|
4296 //! Copy the entire screen which has a rectangle to the bitmap of NULL pointer. |
|
4297 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
4298 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
4299 //! 3. Create a RWindowGroup attached to RWsSession. |
|
4300 //! 4. Create a RWindow and set its displaymode and background color and then activate it. |
|
4301 //! 5. RWsSession SetAutoFlush |
|
4302 //! 6. Draw a rectangle(100*100, filled with red, border is black). |
|
4303 //! 7. Copy the entire screen to a bitmap of NULL pointer. |
|
4304 //! 8. Destruct and close objects used. |
|
4305 //! @SYMTestExpectedResults KERN-EXEC 3 panic received at Test Action 7. |
|
4306 //! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4307 //! CREATE_OBJECT RWsSession ws |
|
4308 //! CREATE_OBJECT CWsScreenDevice scrdev |
|
4309 //! CREATE_OBJECT CWindowGc wgc |
|
4310 //! CREATE_OBJECT CFbsBitmap fbsbitmap |
|
4311 //! CREATE_OBJECT RWindowGroup wingrp |
|
4312 //! CREATE_OBJECT RWindow win |
|
4313 //! COMMAND ws new |
|
4314 //! COMMAND ws Connect |
|
4315 //! COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-new_command03 |
|
4316 //! COMMAND scrdev Construct |
|
4317 //! COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-CreateContext_command05 |
|
4318 //! COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-new_command06 |
|
4319 //! COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-Construct_command07 |
|
4320 //! COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-new_command08 |
|
4321 //! COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-Construct_command09 |
|
4322 //! COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetRequiredDisplayMode_command10 |
|
4323 //! COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetBackgroundColor_command11 |
|
4324 //! COMMAND win Activate |
|
4325 //! COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetAutoFlush_command13 |
|
4326 //! COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-Activate_command14 |
|
4327 //! COMMAND win BeginRedraw |
|
4328 //! COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetBrushColor_command16 |
|
4329 //! COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetBrushStyle_command17 |
|
4330 //! COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetPenColor_command18 |
|
4331 //! COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-DrawRect_command19 |
|
4332 //! COMMAND win EndRedraw |
|
4333 //! COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-CopyScreenToBitmap_command20 |
|
4334 //! COMMAND fbsbitmap ~ |
|
4335 //! COMMAND wgc Deactivate |
|
4336 //! COMMAND win Close |
|
4337 //! COMMAND wingrp Close |
|
4338 //! COMMAND wgc ~ |
|
4339 //! COMMAND scrdev ~ |
|
4340 //! COMMAND ws Close |
|
4341 //! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 |
|
4342 //! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
4343 //!END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0291 |
|
4344 |
|
4345 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0293 |
|
4346 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0293 |
|
4347 //! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) |
|
4348 //! @SYMAuthor Kevin Zeng |
|
4349 //! @SYMCreationDate 1/8/2007 |
|
4350 //! @SYMTestCaseDesc Negative test, copies a rect which is half in screen and half out of screen to a bitmap. |
|
4351 //! Set up and draw a 100*100 rect half in screen and half out of screen, copy the 100*100 rect to a 100*100 bitmap. |
|
4352 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
4353 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
4354 //! 3. Create a RWindowGroup attached to RWsSession. |
|
4355 //! 4. Create a RWindow, setup it and activate. |
|
4356 //! 5. RWsSession SetAutoFlush. |
|
4357 //! 6. Setup and draw a rectangle(100*100 size, filled with red, border is black). The rectangle is half in the screen and half out of the screen. |
|
4358 //! 7. Create a CFbsBitmap which size is 100*100. |
|
4359 //! 8. Copy the rect to the bitmap. |
|
4360 //! 9. GetPixel from the bitmap, check the rectangle(inside is red, border is black, ouside is white). |
|
4361 //! 10. Destruct and Close. |
|
4362 //! @SYMTestStatus Implemented |
|
4363 //! @SYMTestPriority High |
|
4364 //! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. |
|
4365 //! 2. The bitmap which is copyed to is correct(The bitmap's upper half is white, below half is painted). |
|
4366 //! 2.1 The pixels (0,0) is color TRgb(255,255,255); The upper half is white. |
|
4367 //! 2.2 The pixels (99,99) is color TRgb(0,0,0); The border is black. |
|
4368 //! 2.3 The pixels (0,49) is color TRgb(255,255,255); The upper half is white. |
|
4369 //! 2.4 The pixels (99,49) is color TRgb(255,255,255); The upper half is white. |
|
4370 //! 2.5 The pixels (1,1) is color TRgb(255,255,255); The upper half is white. |
|
4371 //! 2.6 The pixels (0,99) is color TRgb(0,0,0); The border is black. |
|
4372 //! 2.7 The pixels (1,50) is color TRgb(255,0,0); below half, inside is red. |
|
4373 //! 2.8 The pixels (98,98) is color TRgb(255,0,0); below half, inside is red. |
|
4374 //! @SYMTestType CIT |
|
4375 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4376 CREATE_OBJECT RWsSession ws |
|
4377 CREATE_OBJECT CWsScreenDevice scrdev |
|
4378 CREATE_OBJECT CWindowGc wgc |
|
4379 CREATE_OBJECT RWindowGroup wingrp |
|
4380 CREATE_OBJECT RWindow win |
|
4381 CREATE_OBJECT CFbsBitmap fbsbitmap |
|
4382 COMMAND ws new |
|
4383 COMMAND ws Connect |
|
4384 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-new_command03 |
|
4385 COMMAND scrdev Construct |
|
4386 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-CreateContext_command05 |
|
4387 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-new_command06 |
|
4388 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-Construct_command07 |
|
4389 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-new_command08 |
|
4390 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-Construct_command09 |
|
4391 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetRequiredDisplayMode_command10 |
|
4392 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetBackgroundColor_command11 |
|
4393 COMMAND win Activate |
|
4394 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetAutoFlush_command13 |
|
4395 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-Activate_command14 |
|
4396 COMMAND win BeginRedraw |
|
4397 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetBrushColor_command16 |
|
4398 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetBrushStyle_command17 |
|
4399 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetPenColor_command18 |
|
4400 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-DrawRect_command19 |
|
4401 COMMAND win EndRedraw |
|
4402 COMMAND fbsbitmap new |
|
4403 COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-Create_command22 |
|
4404 COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-CopyScreenToBitmap_command23 |
|
4405 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command24 |
|
4406 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command25 |
|
4407 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command26 |
|
4408 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command27 |
|
4409 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command28 |
|
4410 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command29 |
|
4411 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command30 |
|
4412 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command31 |
|
4413 COMMAND fbsbitmap ~ |
|
4414 COMMAND wgc Deactivate |
|
4415 COMMAND win Close |
|
4416 COMMAND wingrp Close |
|
4417 COMMAND wgc ~ |
|
4418 COMMAND scrdev ~ |
|
4419 COMMAND ws Close |
|
4420 END_TEST_BLOCK |
|
4421 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0293 |
|
4422 |
|
4423 |
|
4424 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0294 |
|
4425 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0294 |
|
4426 //! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) |
|
4427 //! @SYMAuthor Kevin Zeng |
|
4428 //! @SYMCreationDate 1/8/2007 |
|
4429 //! @SYMTestCaseDesc Negative test, copies a very large rect to a very large bitmap. |
|
4430 //! Set up and draw a 100*100 rect on white screen, and copy a 1000*2000 rect to a 1000*2000 bitmap. |
|
4431 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
4432 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
4433 //! 3. Create a RWindowGroup attached to RWsSession. |
|
4434 //! 4. Create a RWindow, setup it and activate. |
|
4435 //! 5. RWsSession SetAutoFlush. |
|
4436 //! 6. Setup and draw a rectangle(100*100 size,filled with red, border is black). |
|
4437 //! 7. Create a CFbsBitmap which size is 1000*2000. |
|
4438 //! 8. Copy the 1000*2000 rect to the 1000*2000 bitmap. |
|
4439 //! 9. GetPixel from the bitmap, check the rectangle(inside is red, border is black, ouside is white). |
|
4440 //! 10. Destruct and Close. |
|
4441 //! @SYMTestStatus Implemented |
|
4442 //! @SYMTestPriority High |
|
4443 //! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. |
|
4444 //! 2. The bitmap which is copyed to is correct. |
|
4445 //! 2.1 The pixels (0,0) is color TRgb(0,0,0); The border is black. |
|
4446 //! 2.2 The pixels (99,99) is color TRgb(0,0,0); The border is black. |
|
4447 //! 2.3 The pixels (50,99) is color TRgb(0,0,0); The border is black. |
|
4448 //! 2.4 The pixels (99,50) is color TRgb(0,0,0); The border is black. |
|
4449 //! 2.5 The pixels (1,1) is color TRgb(255,0,0); Inside is red. |
|
4450 //! 2.6 The pixels (98,98) is color TRgb(255,0,0); Inside is red. |
|
4451 //! 2.7 The pixels (100,100) is color TRgb(255,255,255); Outside is white. |
|
4452 //! 2.8 The pixels (999,1999) is color TRgb(255,255,255); Outside is white. |
|
4453 //! @SYMTestType CIT |
|
4454 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4455 CREATE_OBJECT RWsSession ws |
|
4456 CREATE_OBJECT CWsScreenDevice scrdev |
|
4457 CREATE_OBJECT CWindowGc wgc |
|
4458 CREATE_OBJECT RWindowGroup wingrp |
|
4459 CREATE_OBJECT RWindow win |
|
4460 CREATE_OBJECT CFbsBitmap fbsbitmap |
|
4461 COMMAND ws new |
|
4462 COMMAND ws Connect |
|
4463 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-new_command03 |
|
4464 COMMAND scrdev Construct |
|
4465 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-CreateContext_command05 |
|
4466 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-new_command06 |
|
4467 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-Construct_command07 |
|
4468 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-new_command08 |
|
4469 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-Construct_command09 |
|
4470 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetRequiredDisplayMode_command10 |
|
4471 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetBackgroundColor_command11 |
|
4472 COMMAND win Activate |
|
4473 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetAutoFlush_command13 |
|
4474 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-Activate_command14 |
|
4475 COMMAND win BeginRedraw |
|
4476 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetBrushColor_command16 |
|
4477 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetBrushStyle_command17 |
|
4478 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetPenColor_command18 |
|
4479 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-DrawRect_command19 |
|
4480 COMMAND win EndRedraw |
|
4481 COMMAND fbsbitmap new |
|
4482 COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-Create_command22 |
|
4483 COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-CopyScreenToBitmap_command23 |
|
4484 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command24 |
|
4485 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command25 |
|
4486 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command26 |
|
4487 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command27 |
|
4488 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command28 |
|
4489 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command29 |
|
4490 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command30 |
|
4491 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command31 |
|
4492 COMMAND fbsbitmap ~ |
|
4493 COMMAND wgc Deactivate |
|
4494 COMMAND win Close |
|
4495 COMMAND wingrp Close |
|
4496 COMMAND wgc ~ |
|
4497 COMMAND scrdev ~ |
|
4498 COMMAND ws Close |
|
4499 END_TEST_BLOCK |
|
4500 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0294 |
|
4501 |
|
4502 //!START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0295 |
|
4503 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0295 |
|
4504 //! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) |
|
4505 //! @SYMAuthor Kevin Zeng |
|
4506 //! @SYMCreationDate 1/8/2007 |
|
4507 //! @SYMTestCaseDesc Negative test, copies a rect to a bitmap pointer which is NULL. |
|
4508 //! Set up and draw a 100*100 rect on white screen and copy the 100*100 rect in the screen to a bitmap, but the bitmap pointer is NULL. |
|
4509 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
4510 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
4511 //! 3. Create a RWindowGroup attached to RWsSession. |
|
4512 //! 4. Create a RWindow, setup it and activate. |
|
4513 //! 5. RWsSession SetAutoFlush. |
|
4514 //! 6. Setup and draw a rectangle(100*100 size,filled with red, border is black). |
|
4515 //! 7. Create a CFbsBitmap wrapper, which's object pointer is NULL. |
|
4516 //! 8. Copy a 100*100 rect to a bitmap pointer which is NULL. |
|
4517 //! 9. Destruct and Close. |
|
4518 //! @SYMTestStatus Implemented |
|
4519 //! @SYMTestPriority High |
|
4520 //! @SYMTestExpectedResults KERN-EXEC 3 panic received at Test Action 8. |
|
4521 //! @SYMTestType CIT |
|
4522 //! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4523 //! CREATE_OBJECT RWsSession ws |
|
4524 //! CREATE_OBJECT CWsScreenDevice scrdev |
|
4525 //! CREATE_OBJECT CWindowGc wgc |
|
4526 //! CREATE_OBJECT RWindowGroup wingrp |
|
4527 //! CREATE_OBJECT RWindow win |
|
4528 //! CREATE_OBJECT CFbsBitmap fbsbitmap |
|
4529 //! COMMAND ws new |
|
4530 //! COMMAND ws Connect |
|
4531 //! COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-new_command03 |
|
4532 //! COMMAND scrdev Construct |
|
4533 //! COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-CreateContext_command05 |
|
4534 //! COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-new_command06 |
|
4535 //! COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-Construct_command07 |
|
4536 //! COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-new_command08 |
|
4537 //! COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-Construct_command09 |
|
4538 //! COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetRequiredDisplayMode_command10 |
|
4539 //! COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetBackgroundColor_command11 |
|
4540 //! COMMAND win Activate |
|
4541 //! COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetAutoFlush_command13 |
|
4542 //! COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-Activate_command14 |
|
4543 //! COMMAND win BeginRedraw |
|
4544 //! COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetBrushColor_command16 |
|
4545 //! COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetBrushStyle_command17 |
|
4546 //! COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetPenColor_command18 |
|
4547 //! COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-DrawRect_command19 |
|
4548 //! COMMAND win EndRedraw |
|
4549 //! COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-CopyScreenToBitmap_command20 |
|
4550 //! COMMAND wgc Deactivate |
|
4551 //! COMMAND win Close |
|
4552 //! COMMAND wingrp Close |
|
4553 //! COMMAND wgc ~ |
|
4554 //! COMMAND scrdev ~ |
|
4555 //! COMMAND ws Close |
|
4556 //! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 |
|
4557 //! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
4558 //!END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0295 |
|
4559 |
|
4560 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0296 |
|
4561 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0296 |
|
4562 //! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) |
|
4563 //! @SYMAuthor Kevin Zeng |
|
4564 //! @SYMCreationDate 1/8/2007 |
|
4565 //! @SYMTestCaseDesc Negative test, copies a rect to a bigger bitmap. |
|
4566 //! Set up and draw a 100*100 rect on white screen, and copy the 100*100 rect to a 200*200 bitmap. |
|
4567 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
4568 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
4569 //! 3. Create a RWindowGroup attached to RWsSession. |
|
4570 //! 4. Create a RWindow, setup it and activate. |
|
4571 //! 5. RWsSession SetAutoFlush. |
|
4572 //! 6. Setup and draw a rectangle(100*100 size,filled with red, border is black). |
|
4573 //! 7. Create a CFbsBitmap which size is 200*200. |
|
4574 //! 8. Copy a 100*100 rect to the 200*200 bitmap. |
|
4575 //! 9. GetPixel from the bitmap, check the rectangle(inside is red, border is black, ouside is white). |
|
4576 //! 10. Destruct and Close. |
|
4577 //! @SYMTestStatus Implemented |
|
4578 //! @SYMTestPriority High |
|
4579 //! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. |
|
4580 //! 2. The bitmap which is copyed to is correct. |
|
4581 //! 2.1 The pixels (0,0) is color TRgb(0,0,0); The border is black. |
|
4582 //! 2.2 The pixels (99,99) is color TRgb(0,0,0); The border is black. |
|
4583 //! 2.3 The pixels (50,99) is color TRgb(0,0,0); The border is black. |
|
4584 //! 2.4 The pixels (99,50) is color TRgb(0,0,0); The border is black. |
|
4585 //! 2.5 The pixels (1,1) is color TRgb(255,0,0); Inside is red. |
|
4586 //! 2.6 The pixels (98,98) is color TRgb(255,0,0); Inside is red. |
|
4587 //! 2.7 The pixels (100,100) is color TRgb(255,255,255); Outside is white. |
|
4588 //! @SYMTestType CIT |
|
4589 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4590 CREATE_OBJECT RWsSession ws |
|
4591 CREATE_OBJECT CWsScreenDevice scrdev |
|
4592 CREATE_OBJECT CWindowGc wgc |
|
4593 CREATE_OBJECT RWindowGroup wingrp |
|
4594 CREATE_OBJECT RWindow win |
|
4595 CREATE_OBJECT CFbsBitmap fbsbitmap |
|
4596 COMMAND ws new |
|
4597 COMMAND ws Connect |
|
4598 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-new_command03 |
|
4599 COMMAND scrdev Construct |
|
4600 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-CreateContext_command05 |
|
4601 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-new_command06 |
|
4602 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-Construct_command07 |
|
4603 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-new_command08 |
|
4604 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-Construct_command09 |
|
4605 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetRequiredDisplayMode_command10 |
|
4606 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetBackgroundColor_command11 |
|
4607 COMMAND win Activate |
|
4608 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetAutoFlush_command13 |
|
4609 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-Activate_command14 |
|
4610 COMMAND win BeginRedraw |
|
4611 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetBrushColor_command16 |
|
4612 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetBrushStyle_command17 |
|
4613 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetPenColor_command18 |
|
4614 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-DrawRect_command19 |
|
4615 COMMAND win EndRedraw |
|
4616 COMMAND fbsbitmap new |
|
4617 COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-Create_command22 |
|
4618 COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-CopyScreenToBitmap_command23 |
|
4619 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command24 |
|
4620 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command25 |
|
4621 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command26 |
|
4622 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command27 |
|
4623 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command28 |
|
4624 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command29 |
|
4625 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command30 |
|
4626 COMMAND fbsbitmap ~ |
|
4627 COMMAND wgc Deactivate |
|
4628 COMMAND win Close |
|
4629 COMMAND wingrp Close |
|
4630 COMMAND wgc ~ |
|
4631 COMMAND scrdev ~ |
|
4632 COMMAND ws Close |
|
4633 END_TEST_BLOCK |
|
4634 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0296 |
|
4635 |
|
4636 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0297 |
|
4637 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0297 |
|
4638 //! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) |
|
4639 //! @SYMAuthor Kevin Zeng |
|
4640 //! @SYMCreationDate 1/8/2007 |
|
4641 //! @SYMTestCaseDesc Negative test, copies a rect to a smaller bitmap. |
|
4642 //! Set up and draw a 100*100 rect on white screen, and copy the 100*100 rect to a 10*10 bitmap. |
|
4643 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
4644 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
4645 //! 3. Create a RWindowGroup attached to RWsSession. |
|
4646 //! 4. Create a RWindow, setup it and activate. |
|
4647 //! 5. RWsSession SetAutoFlush. |
|
4648 //! 6. Setup and draw a rectangle(100*100 size,filled with red, border is black). |
|
4649 //! 7. Create a CFbsBitmap which size is 10*10. |
|
4650 //! 8. Copy a 100*100 rect to the 10*10 bitmap. |
|
4651 //! 9. GetPixel from the bitmap, check the rectangle(inside is red, border is black). |
|
4652 //! 10. Destruct and Close. |
|
4653 //! @SYMTestStatus Implemented |
|
4654 //! @SYMTestPriority High |
|
4655 //! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. |
|
4656 //! 2. The bitmap which is copyed to is correct. |
|
4657 //! 2.1 The pixels (0,0) is color TRgb(0,0,0); The border is black. |
|
4658 //! 2.2 The pixels (9,0) is color TRgb(0,0,0); The border is black. |
|
4659 //! 2.3 The pixels (0,9) is color TRgb(0,0,0); The border is black. |
|
4660 //! 2.4 The pixels (1,1) is color TRgb(255,0,0); Inside is red. |
|
4661 //! 2.5 The pixels (9,9) is color TRgb(255,0,0); Inside is red. |
|
4662 //! @SYMTestType CIT |
|
4663 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4664 CREATE_OBJECT RWsSession ws |
|
4665 CREATE_OBJECT CWsScreenDevice scrdev |
|
4666 CREATE_OBJECT CWindowGc wgc |
|
4667 CREATE_OBJECT RWindowGroup wingrp |
|
4668 CREATE_OBJECT RWindow win |
|
4669 CREATE_OBJECT CFbsBitmap fbsbitmap |
|
4670 COMMAND ws new |
|
4671 COMMAND ws Connect |
|
4672 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-new_command03 |
|
4673 COMMAND scrdev Construct |
|
4674 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-CreateContext_command05 |
|
4675 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-new_command06 |
|
4676 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-Construct_command07 |
|
4677 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-new_command08 |
|
4678 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-Construct_command09 |
|
4679 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetRequiredDisplayMode_command10 |
|
4680 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetBackgroundColor_command11 |
|
4681 COMMAND win Activate |
|
4682 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetAutoFlush_command13 |
|
4683 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-Activate_command14 |
|
4684 COMMAND win BeginRedraw |
|
4685 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetBrushColor_command16 |
|
4686 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetBrushStyle_command17 |
|
4687 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetPenColor_command18 |
|
4688 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-DrawRect_command19 |
|
4689 COMMAND win EndRedraw |
|
4690 COMMAND fbsbitmap new |
|
4691 COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-Create_command22 |
|
4692 COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-CopyScreenToBitmap_command23 |
|
4693 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command24 |
|
4694 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command25 |
|
4695 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command26 |
|
4696 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command27 |
|
4697 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command28 |
|
4698 COMMAND fbsbitmap ~ |
|
4699 COMMAND wgc Deactivate |
|
4700 COMMAND win Close |
|
4701 COMMAND wingrp Close |
|
4702 COMMAND wgc ~ |
|
4703 COMMAND scrdev ~ |
|
4704 COMMAND ws Close |
|
4705 END_TEST_BLOCK |
|
4706 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0297 |
|
4707 |
|
4708 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0298 |
|
4709 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0298 |
|
4710 //! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) |
|
4711 //! @SYMAuthor Kevin Zeng |
|
4712 //! @SYMCreationDate 1/8/2007 |
|
4713 //! @SYMTestCaseDesc Negative test, copies a rect which is out of screen to a same size bitmap. |
|
4714 //! Set up and draw a 100*100 rect out of the screen, and copy the 100*100 rect to a 100*100 bitmap. |
|
4715 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
4716 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
4717 //! 3. Create a RWindowGroup attached to RWsSession. |
|
4718 //! 4. Create a RWindow, setup it and activate. |
|
4719 //! 5. RWsSession SetAutoFlush. |
|
4720 //! 6. Setup and draw a rectangle out of the screen(100*100 size,filled with red, border is black). |
|
4721 //! 7. Create a CFbsBitmap which size is 100*100. |
|
4722 //! 8. Copy the 100*100 rect to the 100*100 bitmap. |
|
4723 //! 9. GetPixel from the bitmap, check the rectangle.(The whole bitmap is white). |
|
4724 //! 10. Destruct and Close. |
|
4725 //! @SYMTestStatus Implemented |
|
4726 //! @SYMTestPriority High |
|
4727 //! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. |
|
4728 //! 2. The bitmap which is copyed to is correct. |
|
4729 //! 2.1 The pixels (0,0) is color TRgb(255,255,255). |
|
4730 //! 2.2 The pixels (99,99) is color TRgb(255,255,255). |
|
4731 //! 2.3 The pixels (50,99) is color TRgb(255,255,255). |
|
4732 //! 2.4 The pixels (99,50) is color TRgb(255,255,255). |
|
4733 //! 2.5 The pixels (1,1) is color TRgb(255,255,255). |
|
4734 //! 2.6 The pixels (98,98) is color TRgb(255,255,255). |
|
4735 //! @SYMTestType CIT |
|
4736 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4737 CREATE_OBJECT RWsSession ws |
|
4738 CREATE_OBJECT CWsScreenDevice scrdev |
|
4739 CREATE_OBJECT CWindowGc wgc |
|
4740 CREATE_OBJECT RWindowGroup wingrp |
|
4741 CREATE_OBJECT RWindow win |
|
4742 CREATE_OBJECT CFbsBitmap fbsbitmap |
|
4743 COMMAND ws new |
|
4744 COMMAND ws Connect |
|
4745 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-new_command03 |
|
4746 COMMAND scrdev Construct |
|
4747 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-CreateContext_command05 |
|
4748 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-new_command06 |
|
4749 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-Construct_command07 |
|
4750 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-new_command08 |
|
4751 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-Construct_command09 |
|
4752 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetRequiredDisplayMode_command10 |
|
4753 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetBackgroundColor_command11 |
|
4754 COMMAND win Activate |
|
4755 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetAutoFlush_command13 |
|
4756 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-Activate_command14 |
|
4757 COMMAND win BeginRedraw |
|
4758 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetBrushColor_command16 |
|
4759 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetBrushStyle_command17 |
|
4760 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetPenColor_command18 |
|
4761 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-DrawRect_command19 |
|
4762 COMMAND win EndRedraw |
|
4763 COMMAND fbsbitmap new |
|
4764 COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-Create_command22 |
|
4765 COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-CopyScreenToBitmap_command23 |
|
4766 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command24 |
|
4767 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command25 |
|
4768 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command26 |
|
4769 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command27 |
|
4770 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command28 |
|
4771 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command29 |
|
4772 COMMAND fbsbitmap ~ |
|
4773 COMMAND wgc Deactivate |
|
4774 COMMAND win Close |
|
4775 COMMAND wingrp Close |
|
4776 COMMAND wgc ~ |
|
4777 COMMAND scrdev ~ |
|
4778 COMMAND ws Close |
|
4779 END_TEST_BLOCK |
|
4780 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0298 |
|
4781 |
|
4782 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0299 |
|
4783 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0299 |
|
4784 //! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) |
|
4785 //! @SYMAuthor Kevin Zeng |
|
4786 //! @SYMCreationDate 1/8/2007 |
|
4787 //! @SYMTestCaseDesc Negative test, copies a rect(-100,-100,0,0) to a same size bitmap. |
|
4788 //! Set up and draw a rect(-100,-100,0,0), and copy the 100*100 rect to a 100*100 bitmap. |
|
4789 //! @SYMTestActions 1. Create and connect a RWsSession. |
|
4790 //! 2. Create a CWsScreenDevice attached to RWsSession. |
|
4791 //! 3. Create a RWindowGroup attached to RWsSession. |
|
4792 //! 4. Create a RWindow, setup it and activate. |
|
4793 //! 5. RWsSession SetAutoFlush. |
|
4794 //! 6. Setup and draw a rectangle( at rect(-100,-100,0,0), filled with red, border is black). |
|
4795 //! 7. Create a CFbsBitmap which size is 100*100. |
|
4796 //! 8. Copy the 100*100 rect to the 100*100 bitmap. |
|
4797 //! 9. GetPixel from the bitmap, check the rectangle.(The whole bitmap is white). |
|
4798 //! 10. Destruct and Close. |
|
4799 //! @SYMTestStatus Implemented |
|
4800 //! @SYMTestPriority High |
|
4801 //! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. |
|
4802 //! 2. The bitmap which is copyed to is correct. |
|
4803 //! 2.1 The pixels (0,0) is color TRgb(255,255,255). |
|
4804 //! 2.2 The pixels (99,99) is color TRgb(255,255,255). |
|
4805 //! 2.3 The pixels (50,99) is color TRgb(255,255,255). |
|
4806 //! 2.4 The pixels (99,50) is color TRgb(255,255,255). |
|
4807 //! 2.5 The pixels (1,1) is color TRgb(255,255,255). |
|
4808 //! 2.6 The pixels (98,98) is color TRgb(255,255,255). |
|
4809 //! @SYMTestType CIT |
|
4810 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4811 CREATE_OBJECT RWsSession ws |
|
4812 CREATE_OBJECT CWsScreenDevice scrdev |
|
4813 CREATE_OBJECT CWindowGc wgc |
|
4814 CREATE_OBJECT RWindowGroup wingrp |
|
4815 CREATE_OBJECT RWindow win |
|
4816 CREATE_OBJECT CFbsBitmap fbsbitmap |
|
4817 COMMAND ws new |
|
4818 COMMAND ws Connect |
|
4819 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-new_command03 |
|
4820 COMMAND scrdev Construct |
|
4821 COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-CreateContext_command05 |
|
4822 COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-new_command06 |
|
4823 COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-Construct_command07 |
|
4824 COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-new_command08 |
|
4825 COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-Construct_command09 |
|
4826 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetRequiredDisplayMode_command10 |
|
4827 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetBackgroundColor_command11 |
|
4828 COMMAND win Activate |
|
4829 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetAutoFlush_command13 |
|
4830 COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-Activate_command14 |
|
4831 COMMAND win BeginRedraw |
|
4832 COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetBrushColor_command16 |
|
4833 COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetBrushStyle_command17 |
|
4834 COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetPenColor_command18 |
|
4835 COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-DrawRect_command19 |
|
4836 COMMAND win EndRedraw |
|
4837 COMMAND fbsbitmap new |
|
4838 COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-Create_command22 |
|
4839 COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-CopyScreenToBitmap_command23 |
|
4840 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command24 |
|
4841 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command25 |
|
4842 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command26 |
|
4843 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command27 |
|
4844 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command28 |
|
4845 COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command29 |
|
4846 COMMAND fbsbitmap ~ |
|
4847 COMMAND wgc Deactivate |
|
4848 COMMAND win Close |
|
4849 COMMAND wingrp Close |
|
4850 COMMAND wgc ~ |
|
4851 COMMAND scrdev ~ |
|
4852 COMMAND ws Close |
|
4853 END_TEST_BLOCK |
|
4854 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0299 |
|
4855 |
|
4856 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0300 |
|
4857 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0300 |
|
4858 //! @SYMAPI CWsScreenDevice::GetScreenModeSizeAndRotation(TInt, TPixelsAndRotation{ref}) |
|
4859 //! @SYMAuthor Wekey Weng |
|
4860 //! @SYMCreationDate 12/29/2007 |
|
4861 //! @SYMTestCaseDesc Negative test, gets the screen rotation and size(in pixels) using mode -1 |
|
4862 //! @SYMTestActions 1. Create and connect a RWsSession |
|
4863 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
4864 //! 3. Complete the construction |
|
4865 //! 4. Get the screen size(in pixels) and rotation with mode -1 |
|
4866 //! 5. Destruct and close all objects used |
|
4867 //! @SYMTestStatus Implemented |
|
4868 //! @SYMTestPriority High |
|
4869 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
4870 //! @SYMTestType CIT |
|
4871 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4872 CREATE_OBJECT RWsSession ws |
|
4873 CREATE_OBJECT CWsScreenDevice scrdev |
|
4874 COMMAND ws new |
|
4875 COMMAND ws Connect |
|
4876 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0300-0001-new_command03 |
|
4877 COMMAND scrdev Construct |
|
4878 COMMAND scrdev GetScreenModeSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0300-0001-GetScreenModeSizeAndRotation_command05 |
|
4879 COMMAND scrdev ~ |
|
4880 COMMAND ws Close |
|
4881 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
4882 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
4883 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0300 |
|
4884 |
|
4885 |
|
4886 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0301 |
|
4887 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0301 |
|
4888 //! @SYMAPI CWsScreenDevice::GetScreenModeSizeAndRotation(TInt, TPixelsTwipsAndRotation{ref}) |
|
4889 //! @SYMAuthor Wekey Weng |
|
4890 //! @SYMCreationDate 12/29/2007 |
|
4891 //! @SYMTestCaseDesc Negative test, gets the screen rotation and size(both in pixels and twips) using mode -1 |
|
4892 //! @SYMTestActions 1. Create and connect a RWsSession |
|
4893 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
4894 //! 3. Complete the construction |
|
4895 //! 4. Get the screen size(both in pixels and twips) and rotation with mode -1 |
|
4896 //! 5. Destruct and close all objects used |
|
4897 //! @SYMTestStatus Implemented |
|
4898 //! @SYMTestPriority High |
|
4899 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
4900 //! @SYMTestType CIT |
|
4901 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4902 CREATE_OBJECT RWsSession ws |
|
4903 CREATE_OBJECT CWsScreenDevice scrdev |
|
4904 COMMAND ws new |
|
4905 COMMAND ws Connect |
|
4906 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0301-0001-new_command03 |
|
4907 COMMAND scrdev Construct |
|
4908 COMMAND scrdev GetScreenModeSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0301-0001-GetScreenModeSizeAndRotation_command05 |
|
4909 COMMAND scrdev ~ |
|
4910 COMMAND ws Close |
|
4911 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
4912 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
4913 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0301 |
|
4914 |
|
4915 |
|
4916 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0302 |
|
4917 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0302 |
|
4918 //! @SYMAPI CWsScreenDevice::GetRotationsList(TInt, CArrayFixFlat<TInt>{ptr}) |
|
4919 //! @SYMAuthor Wekey Weng |
|
4920 //! @SYMCreationDate 12/29/2007 |
|
4921 //! @SYMTestCaseDesc Negative test, gets the list of valid rotations using mode -1 |
|
4922 //! @SYMTestActions 1. Create and connect a RWsSession |
|
4923 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
4924 //! 3. Complete the construction |
|
4925 //! 4. Get the list of valid rotations for mode -1 |
|
4926 //! 5. Destruct and close all objects used |
|
4927 //! @SYMTestStatus Implemented |
|
4928 //! @SYMTestPriority High |
|
4929 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
4930 //! @SYMTestType CIT |
|
4931 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4932 CREATE_OBJECT RWsSession ws |
|
4933 CREATE_OBJECT CWsScreenDevice scrdev |
|
4934 COMMAND ws new |
|
4935 COMMAND ws Connect |
|
4936 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0302-0001-new_command03 |
|
4937 COMMAND scrdev Construct |
|
4938 COMMAND scrdev GetRotationsList GRAPHICS-WSERV-WsScreenDevice-PublicApi-0302-0001-GetRotationsList_command05 |
|
4939 COMMAND scrdev ~ |
|
4940 COMMAND ws Close |
|
4941 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
4942 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
4943 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0302 |
|
4944 |
|
4945 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0303 |
|
4946 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0303 |
|
4947 //! @SYMAPI CWsScreenDevice::SetAppScreenMode(TInt) |
|
4948 //! @SYMAuthor Wekey Weng |
|
4949 //! @SYMCreationDate 12/29/2007 |
|
4950 //! @SYMTestCaseDesc Negative test, sets the application screen mode with mode -1 |
|
4951 //! @SYMTestActions 1. Create and connect a RWsSession |
|
4952 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
4953 //! 3. Complete the construction |
|
4954 //! 4. Set the application with mode -1 |
|
4955 //! 5. Destruct and close all objects used |
|
4956 //! @SYMTestStatus Implemented |
|
4957 //! @SYMTestPriority High |
|
4958 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
4959 //! @SYMTestType CIT |
|
4960 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4961 CREATE_OBJECT RWsSession ws |
|
4962 CREATE_OBJECT CWsScreenDevice scrdev |
|
4963 COMMAND ws new |
|
4964 COMMAND ws Connect |
|
4965 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0303-0001-new_command03 |
|
4966 COMMAND scrdev Construct |
|
4967 COMMAND scrdev SetAppScreenMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0303-0001-SetAppScreenMode_command05 |
|
4968 COMMAND scrdev ~ |
|
4969 COMMAND ws Close |
|
4970 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
4971 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
4972 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0303 |
|
4973 |
|
4974 |
|
4975 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0304 |
|
4976 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0304 |
|
4977 //! @SYMAPI CWsScreenDevice::GetScreenModeOrigin(TInt) |
|
4978 //! @SYMAuthor Wekey Weng |
|
4979 //! @SYMCreationDate 12/29/2007 |
|
4980 //! @SYMTestCaseDesc Negative test,gets the origin of the screen using mode -1 |
|
4981 //! @SYMTestActions 1. Create and connect a RWsSession |
|
4982 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
4983 //! 3. Complete the construction |
|
4984 //! 4. Get the origin of the screen for mode -1 |
|
4985 //! 5. Destruct and close all objects used |
|
4986 //! @SYMTestStatus Implemented |
|
4987 //! @SYMTestPriority High |
|
4988 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
4989 //! @SYMTestType CIT |
|
4990 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
4991 CREATE_OBJECT RWsSession ws |
|
4992 CREATE_OBJECT CWsScreenDevice scrdev |
|
4993 COMMAND ws new |
|
4994 COMMAND ws Connect |
|
4995 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0304-0001-new_command03 |
|
4996 COMMAND scrdev Construct |
|
4997 COMMAND scrdev GetScreenModeOrigin GRAPHICS-WSERV-WsScreenDevice-PublicApi-0304-0001-GetScreenModeOrigin_command05 |
|
4998 COMMAND scrdev ~ |
|
4999 COMMAND ws Close |
|
5000 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
5001 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5002 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0304 |
|
5003 |
|
5004 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0305 |
|
5005 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0305 |
|
5006 //! @SYMAPI CWsScreenDevice::GetScreenModeScale(TInt) |
|
5007 //! @SYMAuthor Wekey Weng |
|
5008 //! @SYMCreationDate 12/29/2007 |
|
5009 //! @SYMTestCaseDesc Negative test, gets the scale using mode -1 |
|
5010 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5011 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5012 //! 3. Complete the construction |
|
5013 //! 4. Get the scale for mode -1 |
|
5014 //! 5. Destruct and close all objects used |
|
5015 //! @SYMTestStatus Implemented |
|
5016 //! @SYMTestPriority High |
|
5017 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
5018 //! @SYMTestType CIT |
|
5019 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5020 CREATE_OBJECT RWsSession ws |
|
5021 CREATE_OBJECT CWsScreenDevice scrdev |
|
5022 COMMAND ws new |
|
5023 COMMAND ws Connect |
|
5024 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0305-0001-new_command03 |
|
5025 COMMAND scrdev Construct |
|
5026 COMMAND scrdev GetScreenModeScale GRAPHICS-WSERV-WsScreenDevice-PublicApi-0305-0001-GetScreenModeScale_command05 |
|
5027 COMMAND scrdev ~ |
|
5028 COMMAND ws Close |
|
5029 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
5030 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5031 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0305 |
|
5032 |
|
5033 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0306 |
|
5034 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0306 |
|
5035 //! @SYMAPI CWsScreenDevice::GetScreenModeScaledOrigin(TInt) |
|
5036 //! @SYMAuthor Wekey Weng |
|
5037 //! @SYMCreationDate 12/29/2007 |
|
5038 //! @SYMTestCaseDesc Negative test, gets the scaled origin for mode -1 |
|
5039 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5040 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5041 //! 3. Complete the construction |
|
5042 //! 4. Get the scaled origin for mode -1 |
|
5043 //! 5. Destruct and close all objects used |
|
5044 //! @SYMTestStatus Implemented |
|
5045 //! @SYMTestPriority High |
|
5046 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
5047 //! @SYMTestType CIT |
|
5048 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5049 CREATE_OBJECT RWsSession ws |
|
5050 CREATE_OBJECT CWsScreenDevice scrdev |
|
5051 COMMAND ws new |
|
5052 COMMAND ws Connect |
|
5053 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0306-0001-new_command03 |
|
5054 COMMAND scrdev Construct |
|
5055 COMMAND scrdev GetScreenModeScaledOrigin GRAPHICS-WSERV-WsScreenDevice-PublicApi-0306-0001-GetScreenModeScaledOrigin_command05 |
|
5056 COMMAND scrdev ~ |
|
5057 COMMAND ws Close |
|
5058 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
5059 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5060 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0306 |
|
5061 |
|
5062 |
|
5063 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0307 |
|
5064 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0307 |
|
5065 //! @SYMAPI CWsScreenDevice::GetScreenModeDisplayMode(TInt) |
|
5066 //! @SYMAuthor Wekey Weng |
|
5067 //! @SYMCreationDate 12/29/2007 |
|
5068 //! @SYMTestCaseDesc Negative test, gets the display mode for mode -1 |
|
5069 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5070 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5071 //! 3. Complete the construction |
|
5072 //! 4. Get the display mode for mode -1 |
|
5073 //! 5. Destruct and close all objects used |
|
5074 //! @SYMTestStatus Implemented |
|
5075 //! @SYMTestPriority High |
|
5076 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
5077 //! @SYMTestType CIT |
|
5078 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5079 CREATE_OBJECT RWsSession ws |
|
5080 CREATE_OBJECT CWsScreenDevice scrdev |
|
5081 COMMAND ws new |
|
5082 COMMAND ws Connect |
|
5083 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0307-0001-new_command03 |
|
5084 COMMAND scrdev Construct |
|
5085 COMMAND scrdev GetScreenModeDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0307-0001-GetScreenModeDisplayMode_command05 |
|
5086 COMMAND scrdev ~ |
|
5087 COMMAND ws Close |
|
5088 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
5089 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5090 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0307 |
|
5091 |
|
5092 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0308 |
|
5093 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0308 |
|
5094 //! @SYMAPI CWsScreenDevice::SetScreenSizeAndRotation(const TPixelsAndRotation{ref}) |
|
5095 //! @SYMAuthor Niandong Qiao |
|
5096 //! @SYMCreationDate 12/29/2007 |
|
5097 //! @SYMTestCaseDesc Negative test, uses invalid input values |
|
5098 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5099 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5100 //! 3. Complete the construction |
|
5101 //! 4. Get the current screen size and rotation, and check them to be same as default value |
|
5102 //! 5. Set the current screen size in pixels and the rotation for the screen device with invalide values multi times |
|
5103 //! 5.1 Set screen size to (10000,10000), set rotation to EGraphicsOrientationNormal |
|
5104 //! 5.2 Set screen size to (1,1), set rotation to EGraphicsOrientationRotated90 |
|
5105 //! 5.3 Set screen size to (0,0), set rotation to EGraphicsOrientationRotated180 |
|
5106 //! 5.4 Set screen size to (-1,-1), set rotation to EGraphicsOrientationRotated270 |
|
5107 //! 5.5 Set screen size to (-10000,-10000), set rotation to EGraphicsOrientationNormal |
|
5108 //! 5.6 Set screen size to (240,640) for Emulator or (240, 320) for H4 board, set rotation to EGraphicsOrientationNormal |
|
5109 //! 5.7 Set screen size to (10000,640) for Emulator or (10000, 320) for H4 board, set rotation to EGraphicsOrientationNormal |
|
5110 //! 6. Get the current screen size and rotation, and check them to be same as default value |
|
5111 //! 7. Destruct and close all objects used |
|
5112 //! @SYMTestStatus Implemented |
|
5113 //! @SYMTestPriority Critical |
|
5114 //! @SYMTestExpectedResults No panic with invalid values and anything should not be changed. |
|
5115 //! @SYMTestType CIT |
|
5116 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5117 CREATE_OBJECT RWsSession ws |
|
5118 CREATE_OBJECT CWsScreenDevice scrdev |
|
5119 COMMAND ws new |
|
5120 COMMAND ws Connect |
|
5121 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-new_command03 |
|
5122 COMMAND scrdev Construct |
|
5123 COMMAND scrdev GetDefaultScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-GetDefaultScreenSizeAndRotation_command05 |
|
5124 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command06 |
|
5125 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command07 |
|
5126 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command08 |
|
5127 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command09 |
|
5128 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command10 |
|
5129 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command11 |
|
5130 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command12 |
|
5131 COMMAND scrdev GetDefaultScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-GetDefaultScreenSizeAndRotation_command13 |
|
5132 COMMAND scrdev ~ |
|
5133 COMMAND ws Close |
|
5134 END_TEST_BLOCK |
|
5135 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0308 |
|
5136 |
|
5137 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0309 |
|
5138 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0309 |
|
5139 //! @SYMAPI CWsScreenDevice::SetScreenSizeAndRotation(const TPixelsTwipsAndRotation{ref}) |
|
5140 //! @SYMAuthor Niandong Qiao |
|
5141 //! @SYMCreationDate 12/29/2007 |
|
5142 //! @SYMTestCaseDesc Negative test, uses invalid input values |
|
5143 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5144 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5145 //! 3. Complete the construction |
|
5146 //! 4. Get the current screen size and rotation, and check them to be same as default value |
|
5147 //! 5. Set the current screen size(in both twips and pixels) and the rotation for the screen device with invalide values multi times |
|
5148 //! 5.1 Set screen size in twips to (100000,100000), in pixels to(10000,10000), set rotation to EGraphicsOrientationNormal |
|
5149 //! 5.2 Set screen size in twips to (1,1), in pixels to(1,1), set rotation to EGraphicsOrientationRotated90 |
|
5150 //! 5.3 Set screen size in twips to (0,0), in pixels to(0,0), set rotation to EGraphicsOrientationRotated180 |
|
5151 //! 5.4 Set screen size in twips to (-1,-1), in pixels to(-1,-1), set rotation to EGraphicsOrientationRotated270 |
|
5152 //! 5.5 Set screen size in twips to (-100000,-100000), in pixels to(-10000,-10000), set rotation to EGraphicsOrientationNormal |
|
5153 //! 5.6 Set screen size in twips to (7620,2000) for Emulator or (4463, 2000) for H4 board, in pixels to (640,200) for Emulator or (340,200) for H4 board, set rotation to EGraphicsOrientationNormal |
|
5154 //! 5.7 Set screen size in twips to (2858,7620) for Emulator or (3041,4463) for H4 board, in pixels to (240,640) for Emulator or (240, 320) for H4 board, set rotation to EGraphicsOrientationNormal |
|
5155 //! 5.8 Set screen size in twips to (2858,2000) for Emulator or (3041,2000) for H4 board, in pixels to (240,640) for Emulator or (240, 320) for H4 board, set rotation to EGraphicsOrientationNormal |
|
5156 //! 5.9 Set screen size in twips to (2000,2000) for Emulator or (2000,2000) for H4 board, in pixels to (240,640) for Emulator or (240, 320) for H4 board, set rotation to EGraphicsOrientationNormal |
|
5157 //! 5.10 Set screen size in twips to (2000,2000) for Emulator or (2000,2000) for H4 board, in pixels to (240,200) for Emulator or (240, 200) for H4 board, set rotation to EGraphicsOrientationNormal |
|
5158 //! 6. Get the current screen size and rotation, and check them to be same as default value |
|
5159 //! 7. Destruct and close all objects used |
|
5160 //! @SYMTestStatus Implemented |
|
5161 //! @SYMTestPriority Critical |
|
5162 //! @SYMTestExpectedResults No panic with invalid values and anything should not be changed. |
|
5163 //! @SYMTestType CIT |
|
5164 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5165 CREATE_OBJECT RWsSession ws |
|
5166 CREATE_OBJECT CWsScreenDevice scrdev |
|
5167 COMMAND ws new |
|
5168 COMMAND ws Connect |
|
5169 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-new_command03 |
|
5170 COMMAND scrdev Construct |
|
5171 COMMAND scrdev GetDefaultScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-GetDefaultScreenSizeAndRotation_command05 |
|
5172 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command06 |
|
5173 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command07 |
|
5174 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command08 |
|
5175 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command09 |
|
5176 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command10 |
|
5177 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command11 |
|
5178 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command12 |
|
5179 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command13 |
|
5180 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command14 |
|
5181 COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command15 |
|
5182 COMMAND scrdev GetDefaultScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-GetDefaultScreenSizeAndRotation_command16 |
|
5183 COMMAND scrdev ~ |
|
5184 COMMAND ws Close |
|
5185 END_TEST_BLOCK |
|
5186 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0309 |
|
5187 |
|
5188 |
|
5189 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310 |
|
5190 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310 |
|
5191 //! @SYMAPI CWsScreenDevice::GetScreenModeSizeAndRotation(TInt, TPixelsAndRotation{ref}) |
|
5192 //! @SYMAuthor Wekey Weng |
|
5193 //! @SYMCreationDate 12/29/2007 |
|
5194 //! @SYMTestCaseDesc Negative test, gets the screen rotation and size(in pixels) using mode 1000(too big) |
|
5195 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5196 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5197 //! 3. Complete the construction |
|
5198 //! 4. Get the screen size(in pixels) and rotation with mode 1000(too big) |
|
5199 //! 5. Destruct and close all objects used |
|
5200 //! @SYMTestStatus Implemented |
|
5201 //! @SYMTestPriority High |
|
5202 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
5203 //! @SYMTestType CIT |
|
5204 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5205 CREATE_OBJECT RWsSession ws |
|
5206 CREATE_OBJECT CWsScreenDevice scrdev |
|
5207 COMMAND ws new |
|
5208 COMMAND ws Connect |
|
5209 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310-0001-new_command03 |
|
5210 COMMAND scrdev Construct |
|
5211 COMMAND scrdev GetScreenModeSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310-0001-GetScreenModeSizeAndRotation_command05 |
|
5212 COMMAND scrdev ~ |
|
5213 COMMAND ws Close |
|
5214 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
5215 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5216 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310 |
|
5217 |
|
5218 |
|
5219 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0311 |
|
5220 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0311 |
|
5221 //! @SYMAPI CWsScreenDevice::GetScreenModeSizeAndRotation(TInt, TPixelsTwipsAndRotation{ref}) |
|
5222 //! @SYMAuthor Wekey Weng |
|
5223 //! @SYMCreationDate 12/29/2007 |
|
5224 //! @SYMTestCaseDesc Negative test, gets the screen rotation and size(both in pixels and twips) using mode 1000(too big) |
|
5225 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5226 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5227 //! 3. Complete the construction |
|
5228 //! 4. Get the screen size(both in pixels and twips) and rotation with mode 1000(too big) |
|
5229 //! 5. Destruct and close all objects used |
|
5230 //! @SYMTestStatus Implemented |
|
5231 //! @SYMTestPriority High |
|
5232 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
5233 //! @SYMTestType CIT |
|
5234 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5235 CREATE_OBJECT RWsSession ws |
|
5236 CREATE_OBJECT CWsScreenDevice scrdev |
|
5237 COMMAND ws new |
|
5238 COMMAND ws Connect |
|
5239 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0311-0001-new_command03 |
|
5240 COMMAND scrdev Construct |
|
5241 COMMAND scrdev GetScreenModeSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0311-0001-GetScreenModeSizeAndRotation_command05 |
|
5242 COMMAND scrdev ~ |
|
5243 COMMAND ws Close |
|
5244 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
5245 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5246 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0311 |
|
5247 |
|
5248 |
|
5249 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0312 |
|
5250 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0312 |
|
5251 //! @SYMAPI CWsScreenDevice::GetRotationsList(TInt, CArrayFixFlat<TInt>{ptr}) |
|
5252 //! @SYMAuthor Wekey Weng |
|
5253 //! @SYMCreationDate 12/29/2007 |
|
5254 //! @SYMTestCaseDesc Negative test, gets the list of valid rotations using mode 1000(too big) |
|
5255 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5256 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5257 //! 3. Complete the construction |
|
5258 //! 4. Get the list of valid rotations for mode 1000(too big) |
|
5259 //! 5. Destruct and close all objects used |
|
5260 //! @SYMTestStatus Implemented |
|
5261 //! @SYMTestPriority High |
|
5262 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
5263 //! @SYMTestType CIT |
|
5264 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5265 CREATE_OBJECT RWsSession ws |
|
5266 CREATE_OBJECT CWsScreenDevice scrdev |
|
5267 COMMAND ws new |
|
5268 COMMAND ws Connect |
|
5269 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0312-0001-new_command03 |
|
5270 COMMAND scrdev Construct |
|
5271 COMMAND scrdev GetRotationsList GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0312-0001-GetRotationsList_command05 |
|
5272 COMMAND scrdev ~ |
|
5273 COMMAND ws Close |
|
5274 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
5275 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5276 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0312 |
|
5277 |
|
5278 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0313 |
|
5279 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0313 |
|
5280 //! @SYMAPI CWsScreenDevice::SetAppScreenMode(TInt) |
|
5281 //! @SYMAuthor Wekey Weng |
|
5282 //! @SYMCreationDate 12/29/2007 |
|
5283 //! @SYMTestCaseDesc Negative test, sets the application screen mode with mode 1000(too big) |
|
5284 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5285 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5286 //! 3. Complete the construction |
|
5287 //! 4. Set the application with mode 1000(too big) |
|
5288 //! 5. Destruct and close all objects used |
|
5289 //! @SYMTestStatus Implemented |
|
5290 //! @SYMTestPriority High |
|
5291 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
5292 //! @SYMTestType CIT |
|
5293 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5294 CREATE_OBJECT RWsSession ws |
|
5295 CREATE_OBJECT CWsScreenDevice scrdev |
|
5296 COMMAND ws new |
|
5297 COMMAND ws Connect |
|
5298 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0313-0001-new_command03 |
|
5299 COMMAND scrdev Construct |
|
5300 COMMAND scrdev SetAppScreenMode GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0313-0001-SetAppScreenMode_command05 |
|
5301 COMMAND scrdev ~ |
|
5302 COMMAND ws Close |
|
5303 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
5304 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5305 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0313 |
|
5306 |
|
5307 |
|
5308 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0314 |
|
5309 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0314 |
|
5310 //! @SYMAPI CWsScreenDevice::GetScreenModeOrigin(TInt) |
|
5311 //! @SYMAuthor Wekey Weng |
|
5312 //! @SYMCreationDate 12/29/2007 |
|
5313 //! @SYMTestCaseDesc Negative test,gets the origin of the screen using mode 1000(too big) |
|
5314 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5315 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5316 //! 3. Complete the construction |
|
5317 //! 4. Get the origin of the screen for mode 1000(too big) |
|
5318 //! 5. Destruct and close all objects used |
|
5319 //! @SYMTestStatus Implemented |
|
5320 //! @SYMTestPriority High |
|
5321 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
5322 //! @SYMTestType CIT |
|
5323 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5324 CREATE_OBJECT RWsSession ws |
|
5325 CREATE_OBJECT CWsScreenDevice scrdev |
|
5326 COMMAND ws new |
|
5327 COMMAND ws Connect |
|
5328 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0314-0001-new_command03 |
|
5329 COMMAND scrdev Construct |
|
5330 COMMAND scrdev GetScreenModeOrigin GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0314-0001-GetScreenModeOrigin_command05 |
|
5331 COMMAND scrdev ~ |
|
5332 COMMAND ws Close |
|
5333 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
5334 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5335 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0314 |
|
5336 |
|
5337 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0315 |
|
5338 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0315 |
|
5339 //! @SYMAPI CWsScreenDevice::GetScreenModeScale(TInt) |
|
5340 //! @SYMAuthor Wekey Weng |
|
5341 //! @SYMCreationDate 12/29/2007 |
|
5342 //! @SYMTestCaseDesc Negative test, gets the scale using mode 1000(too big) |
|
5343 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5344 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5345 //! 3. Complete the construction |
|
5346 //! 4. Get the scale for mode 1000(too big) |
|
5347 //! 5. Destruct and close all objects used |
|
5348 //! @SYMTestStatus Implemented |
|
5349 //! @SYMTestPriority High |
|
5350 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
5351 //! @SYMTestType CIT |
|
5352 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5353 CREATE_OBJECT RWsSession ws |
|
5354 CREATE_OBJECT CWsScreenDevice scrdev |
|
5355 COMMAND ws new |
|
5356 COMMAND ws Connect |
|
5357 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0315-0001-new_command03 |
|
5358 COMMAND scrdev Construct |
|
5359 COMMAND scrdev GetScreenModeScale GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0315-0001-GetScreenModeScale_command05 |
|
5360 COMMAND scrdev ~ |
|
5361 COMMAND ws Close |
|
5362 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
5363 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5364 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0315 |
|
5365 |
|
5366 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0316 |
|
5367 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0316 |
|
5368 //! @SYMAPI CWsScreenDevice::GetScreenModeScaledOrigin(TInt) |
|
5369 //! @SYMAuthor Wekey Weng |
|
5370 //! @SYMCreationDate 12/29/2007 |
|
5371 //! @SYMTestCaseDesc Negative test, gets the scaled origin for mode 1000(too big) |
|
5372 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5373 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5374 //! 3. Complete the construction |
|
5375 //! 4. Get the scaled origin for mode 1000(too big) |
|
5376 //! 5. Destruct and close all objects used |
|
5377 //! @SYMTestStatus Implemented |
|
5378 //! @SYMTestPriority High |
|
5379 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
5380 //! @SYMTestType CIT |
|
5381 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5382 CREATE_OBJECT RWsSession ws |
|
5383 CREATE_OBJECT CWsScreenDevice scrdev |
|
5384 COMMAND ws new |
|
5385 COMMAND ws Connect |
|
5386 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0316-0001-new_command03 |
|
5387 COMMAND scrdev Construct |
|
5388 COMMAND scrdev GetScreenModeScaledOrigin GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0316-0001-GetScreenModeScaledOrigin_command05 |
|
5389 COMMAND scrdev ~ |
|
5390 COMMAND ws Close |
|
5391 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
5392 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5393 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0316 |
|
5394 |
|
5395 |
|
5396 START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317 |
|
5397 //! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317 |
|
5398 //! @SYMAPI CWsScreenDevice::GetScreenModeDisplayMode(TInt) |
|
5399 //! @SYMAuthor Wekey Weng |
|
5400 //! @SYMCreationDate 12/29/2007 |
|
5401 //! @SYMTestCaseDesc Negative test, gets the display mode for mode 1000(too big) |
|
5402 //! @SYMTestActions 1. Create and connect a RWsSession |
|
5403 //! 2. Create a CWsScreenDevice attached to RWsSession |
|
5404 //! 3. Complete the construction |
|
5405 //! 4. Get the display mode for mode 1000(too big) |
|
5406 //! 5. Destruct and close all objects used |
|
5407 //! @SYMTestStatus Implemented |
|
5408 //! @SYMTestPriority High |
|
5409 //! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 |
|
5410 //! @SYMTestType CIT |
|
5411 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini |
|
5412 CREATE_OBJECT RWsSession ws |
|
5413 CREATE_OBJECT CWsScreenDevice scrdev |
|
5414 COMMAND ws new |
|
5415 COMMAND ws Connect |
|
5416 COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317-0001-new_command03 |
|
5417 COMMAND scrdev Construct |
|
5418 COMMAND scrdev GetScreenModeDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317-0001-GetScreenModeDisplayMode_command05 |
|
5419 COMMAND scrdev ~ |
|
5420 COMMAND ws Close |
|
5421 END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 |
|
5422 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5423 END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317 |