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-WindowGc-PublicApi |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
|
20 /////////////////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-WSERV-WindowGc-PublicApi.script |
|
22 // |
|
23 // Tests all public elements of the CWindowGc class |
|
24 // as a means of confidence that the API works as expected. |
|
25 // |
|
26 // The purpose is to provide a regression test suite of PublishedAll APIs for |
|
27 // CWindowGc related classes. |
|
28 // Negative testing is performed to confirm that correct errors are returned |
|
29 // when incorrect parameters are given. |
|
30 // |
|
31 // The tests are fully automated. |
|
32 /////////////////////////////////////////////////////////////////////////////// |
|
33 |
|
34 |
|
35 LOAD_SUITE T_GraphicsWservAPI |
|
36 |
|
37 |
|
38 // **************************************************************************** |
|
39 // CWindowGc |
|
40 // **************************************************************************** |
|
41 |
|
42 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0001 |
|
43 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0001 |
|
44 //! @SYMAPI CWindowGc |
|
45 //! @SYMAuthor Victor Liu |
|
46 //! @SYMCreationDate 20/12/2006 |
|
47 //! @SYMTestCaseDesc CWindowGc(CWsScreenDevice *aDevice): create but not initialise a graphics context |
|
48 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct |
|
49 //! @SYMTestActions 1. Create and connect a RWsSession |
|
50 //! 2. Create and construct a CWsScreenDevice within the RWsSession |
|
51 //! 3. Execute CWindowGc constructor to create a CWindowGc within the CWsScreenDevice |
|
52 //! @SYMTestStatus Implemented |
|
53 //! @SYMTestPriority High |
|
54 //! @SYMTestExpectedResults CWindowGc object was created without causing panic |
|
55 //! @SYMTestType CIT |
|
56 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
57 CREATE_OBJECT RWsSession ws |
|
58 CREATE_OBJECT CWsScreenDevice scrdev |
|
59 CREATE_OBJECT CWindowGc wingc |
|
60 COMMAND ws new |
|
61 COMMAND ws Connect |
|
62 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-0001-0001-new_command004 |
|
63 COMMAND scrdev Construct |
|
64 COMMAND wingc new GRAPHICS-WSERV-WindowGc-PublicApi-0001-0001-new_command007 |
|
65 |
|
66 COMMAND scrdev ~ |
|
67 COMMAND ws Close |
|
68 END_TEST_BLOCK |
|
69 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0001 |
|
70 |
|
71 |
|
72 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0002 |
|
73 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0002 |
|
74 //! @SYMAPI CWindowGc |
|
75 //! @SYMAuthor Victor Liu |
|
76 //! @SYMCreationDate 20/12/2006 |
|
77 //! @SYMTestCaseDesc ~CWindowGc(): destruct a CWindowGc object |
|
78 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct |
|
79 //! @SYMTestActions 1. Create and connect a RWsSession |
|
80 //! 2. Create and construct a CWsScreenDevice within the RWsSession |
|
81 //! 3. Create a CWindowGc within the CWsScreenDevice |
|
82 //! 4. Execute destructor to destruct the CWindowGc object |
|
83 //! 5. Close CWsScreenDevice, RWsSession |
|
84 //! @SYMTestStatus Implemented |
|
85 //! @SYMTestPriority High |
|
86 //! @SYMTestExpectedResults CWindowGc object was destructed without causing panic |
|
87 //! @SYMTestType CIT |
|
88 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
89 CREATE_OBJECT RWsSession ws |
|
90 CREATE_OBJECT CWsScreenDevice scrdev |
|
91 CREATE_OBJECT CWindowGc wingc |
|
92 COMMAND ws new |
|
93 COMMAND ws Connect |
|
94 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-0002-0001-new_command004 |
|
95 COMMAND scrdev Construct |
|
96 COMMAND wingc new GRAPHICS-WSERV-WindowGc-PublicApi-0002-0001-new_command007 |
|
97 COMMAND wingc ~ |
|
98 |
|
99 COMMAND scrdev ~ |
|
100 COMMAND ws Close |
|
101 END_TEST_BLOCK |
|
102 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0002 |
|
103 |
|
104 |
|
105 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0003 |
|
106 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0003 |
|
107 //! @SYMAPI CWindowGc |
|
108 //! @SYMAuthor Victor Liu |
|
109 //! @SYMCreationDate 20/12/2006 |
|
110 //! @SYMTestCaseDesc Construct(): complete construction of CWindowGc |
|
111 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct, CWindowGc::Construct |
|
112 //! @SYMTestActions 1. Create and connect a RWsSession |
|
113 //! 2. Create and construct a CWsScreenDevice within the RWsSession |
|
114 //! 3. Create a CWindowGc within the CWsScreenDevice |
|
115 //! 4. Execute Construct to construct the CWindowGc object |
|
116 //! @SYMTestStatus Implemented |
|
117 //! @SYMTestPriority High |
|
118 //! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic |
|
119 //! @SYMTestType CIT |
|
120 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
121 CREATE_OBJECT RWsSession ws |
|
122 CREATE_OBJECT CWsScreenDevice scrdev |
|
123 CREATE_OBJECT CWindowGc wingc |
|
124 COMMAND ws new |
|
125 COMMAND ws Connect |
|
126 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-0003-0001-new_command004 |
|
127 COMMAND scrdev Construct |
|
128 COMMAND wingc new GRAPHICS-WSERV-WindowGc-PublicApi-0003-0001-new_command007 |
|
129 COMMAND wingc Construct |
|
130 |
|
131 COMMAND wingc ~ |
|
132 COMMAND scrdev ~ |
|
133 COMMAND ws Close |
|
134 END_TEST_BLOCK |
|
135 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0003 |
|
136 |
|
137 |
|
138 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0004 |
|
139 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0004 |
|
140 //! @SYMAPI CWindowGc |
|
141 //! @SYMAuthor Victor Liu |
|
142 //! @SYMCreationDate 20/12/2006 |
|
143 //! @SYMTestCaseDesc Activate(RDrawableWindow &aDevice): activate the CWindowGc for a given window (test in RWindow) |
|
144 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct, RWindowGroup::Construct, RWindow::Construct, CWindowGc::Construct |
|
145 //! @SYMTestActions 1. Create and construct a simple CWindowGc to test |
|
146 //! 1.1 New and connect a RWsSession |
|
147 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
148 //! 1.3 New and construct a CWindowGc within the CWsScreenDevice |
|
149 //! 2. New and construct a RWindowGroup within the RWsSession |
|
150 //! 3. New and construct a RWindow as the child of the RWindowGroup |
|
151 //! 4. Execute Activate to activate the CWindowGc for the RWindow |
|
152 //! 5. Destruct and close all objects used |
|
153 //! @SYMTestStatus Implemented |
|
154 //! @SYMTestPriority Critical |
|
155 //! @SYMTestExpectedResults CWindowGc::Activate() method calls without causing panic |
|
156 //! @SYMTestType CIT |
|
157 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
158 CREATE_OBJECT RWsSession ws |
|
159 CREATE_OBJECT CWsScreenDevice scrdev |
|
160 CREATE_OBJECT CWindowGc wingc |
|
161 COMMAND ws new |
|
162 COMMAND ws Connect |
|
163 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command004 |
|
164 COMMAND scrdev Construct |
|
165 COMMAND wingc new GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command007 |
|
166 COMMAND wingc Construct |
|
167 |
|
168 CREATE_OBJECT RWindowGroup wingrp |
|
169 CREATE_OBJECT RWindow win |
|
170 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-new_command001 |
|
171 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-Construct_command002 |
|
172 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-new_command004 |
|
173 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-Construct_command005 |
|
174 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-Activate_command007 |
|
175 |
|
176 COMMAND wingc ~ |
|
177 COMMAND scrdev ~ |
|
178 COMMAND ws Close |
|
179 END_TEST_BLOCK |
|
180 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0004 |
|
181 |
|
182 |
|
183 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0005 |
|
184 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0005 |
|
185 //! @SYMAPI CWindowGc |
|
186 //! @SYMAuthor Victor Liu |
|
187 //! @SYMCreationDate 20/12/2006 |
|
188 //! @SYMTestCaseDesc Deactivate(): free the CWindowGc to be used with another window |
|
189 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct, RWindowGroup::Construct, RWindow::Construct, CWindowGc::Construct & Activate |
|
190 //! @SYMTestActions 1. Create and construct a simple CWindowGc to test |
|
191 //! 1.1 New and connect a RWsSession |
|
192 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
193 //! 1.3 New and construct a CWindowGc within the CWsScreenDevice |
|
194 //! 2. New and construct a RWindowGroup within the RWsSession |
|
195 //! 3. New and construct a RWindow as the child of the RWindowGroup |
|
196 //! 4. Use Activate to activate the CWindowGc for the RWindow |
|
197 //! 5. Execute Deactivate to free the CWindowGc from the RWindow |
|
198 //! 6. Destruct and close all objects used |
|
199 //! @SYMTestStatus Implemented |
|
200 //! @SYMTestPriority Critical |
|
201 //! @SYMTestExpectedResults CWindowGc::Deactivate() method calls without causing panic |
|
202 //! @SYMTestType CIT |
|
203 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
204 CREATE_OBJECT RWsSession ws |
|
205 CREATE_OBJECT CWsScreenDevice scrdev |
|
206 CREATE_OBJECT CWindowGc wingc |
|
207 COMMAND ws new |
|
208 COMMAND ws Connect |
|
209 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command004 |
|
210 COMMAND scrdev Construct |
|
211 COMMAND wingc new GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command007 |
|
212 COMMAND wingc Construct |
|
213 |
|
214 CREATE_OBJECT RWindowGroup wingrp |
|
215 CREATE_OBJECT RWindow win |
|
216 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-new_command001 |
|
217 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-Construct_command002 |
|
218 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-new_command004 |
|
219 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-Construct_command005 |
|
220 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-Activate_command007 |
|
221 COMMAND wingc Deactivate |
|
222 |
|
223 COMMAND wingc ~ |
|
224 COMMAND scrdev ~ |
|
225 COMMAND ws Close |
|
226 END_TEST_BLOCK |
|
227 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0005 |
|
228 |
|
229 |
|
230 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0006 |
|
231 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0006 |
|
232 //! @SYMAPI CWindowGc |
|
233 //! @SYMAuthor Victor Liu |
|
234 //! @SYMCreationDate 20/03/2007 |
|
235 //! @SYMTestCaseDesc Device(): return a pointer to the device for the screen that the WindowGc was last activated on |
|
236 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct, CWindowGc::Construct |
|
237 //! @SYMTestActions 1. Create and construct a simple CWindowGc to test |
|
238 //! 1.1 New and connect a RWsSession |
|
239 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
240 //! 1.3 New and construct a CWindowGc within the CWsScreenDevice |
|
241 //! 2. Execute Device to get the screen device of the CWindowGc |
|
242 //! and put the returned screen device into 'scrdev1' |
|
243 //! 3. Use GetScreenNumber to check if the screen number of the returned screen device is as expected 0 |
|
244 //! 4. Destruct and close all objects used |
|
245 //! @SYMTestStatus Implemented |
|
246 //! @SYMTestPriority Medium |
|
247 //! @SYMTestExpectedResults 1. CWindowGc::Device() method calls without causing panic |
|
248 //! 2. The screen number of the returned CGraphicsDevice pointer is the same as the default 0 |
|
249 //! @SYMTestType CIT |
|
250 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
251 CREATE_OBJECT RWsSession ws |
|
252 CREATE_OBJECT CWsScreenDevice scrdev |
|
253 CREATE_OBJECT CWindowGc wingc |
|
254 CREATE_OBJECT CWsScreenDevice scrdev1 |
|
255 COMMAND ws new |
|
256 COMMAND ws Connect |
|
257 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command004 |
|
258 COMMAND scrdev Construct |
|
259 COMMAND wingc new GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command007 |
|
260 COMMAND wingc Construct |
|
261 |
|
262 COMMAND wingc Device GRAPHICS-WSERV-WindowGc-PublicApi-0006-0001-Device_command001 |
|
263 COMMAND scrdev1 GetScreenNumber GRAPHICS-WSERV-WindowGc-PublicApi-0006-0001-GetScreenNumber_command002 |
|
264 |
|
265 COMMAND scrdev1 disown |
|
266 COMMAND wingc ~ |
|
267 COMMAND scrdev ~ |
|
268 COMMAND ws Close |
|
269 END_TEST_BLOCK |
|
270 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0006 |
|
271 |
|
272 |
|
273 |
|
274 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0009 |
|
275 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0009 |
|
276 //! @SYMAPI CWindowGc |
|
277 //! @SYMAuthor Victor Liu |
|
278 //! @SYMCreationDate 04/01/2007 |
|
279 //! @SYMTestCaseDesc SetClippingRect(const TRect &aRect): set a clipping rectangle to display |
|
280 //! Uses API elements: RWsSession::Connect & SetAutoFlush, |
|
281 //! CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, |
|
282 //! RWindow::Construct & BeginRedraw & EndRedraw, |
|
283 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect |
|
284 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
285 //! 1.1 New and connect a RWsSession |
|
286 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
287 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
288 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
289 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
290 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
291 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
292 //! 1.7 Activate the CWindowGc to the RWindow |
|
293 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
294 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
295 //! 3. Execute SetClippingRect to set a clipping rectangle to display TRect((20,10),(40,50)) |
|
296 //! 4. Draw and fill rectangle ((10,10),(50,50)) (with part inside and part outside the clipping rectangle) |
|
297 //! 5. RWindow::EndRedraw() and check if drawing result as expected |
|
298 //! only drawing in the ClippingRect and not drawn outside the ClippingRect |
|
299 //! 6. Deactive RWindow, destruct and close all objects used |
|
300 //! @SYMTestStatus Implemented |
|
301 //! @SYMTestPriority Critical |
|
302 //! @SYMTestExpectedResults 1. CWindowGc::SetClippingRect() method calls without causing panic |
|
303 //! 2. the drawing result of testaction 3 & 4 |
|
304 //! 2.1 the rectangle border lines within ClippingRect is drawn with the pen color TRgb(0,0,0) |
|
305 //! from (20,10) to (40,10) and from (20,49) to (40,49) |
|
306 //! 2.2 the rectangle area ((40,11),(80,109)) within ClippingRect and inside the drawing rectangle is drawn/filled with the brush color TRgb(255,0,0) |
|
307 //! 2.3 the rectangle area ((0,0),(20,60)),((40,0),(60,60)), ((20,0),(40,10)), ((40,50),(40,60)) |
|
308 //! outside (left, right, top, bottom of) the ClippingRect is not drawn, with the background color TRgb(255,255,255) |
|
309 //! @SYMTestType CIT |
|
310 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
311 CREATE_OBJECT RWsSession ws |
|
312 CREATE_OBJECT CWsScreenDevice scrdev |
|
313 CREATE_OBJECT CWindowGc wingc |
|
314 CREATE_OBJECT RWindowGroup wingrp |
|
315 CREATE_OBJECT RWindow win |
|
316 COMMAND ws new |
|
317 COMMAND ws Connect |
|
318 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
319 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
320 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
321 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
322 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
323 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
324 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
325 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
326 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
327 COMMAND win Activate |
|
328 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
329 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
330 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
331 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
332 |
|
333 COMMAND win BeginRedraw |
|
334 COMMAND wingc SetClippingRect GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-SetClippingRect_command003 |
|
335 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-DrawRect_command004 |
|
336 COMMAND win EndRedraw |
|
337 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-checkLineColor_command008 |
|
338 COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-checkRectColor_command009 |
|
339 |
|
340 COMMAND wingc Deactivate |
|
341 COMMAND win Close |
|
342 COMMAND wingrp Close |
|
343 COMMAND wingc ~ |
|
344 COMMAND scrdev ~ |
|
345 COMMAND ws Close |
|
346 END_TEST_BLOCK |
|
347 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0009 |
|
348 |
|
349 |
|
350 |
|
351 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0010 |
|
352 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0010 |
|
353 //! @SYMAPI CWindowGc |
|
354 //! @SYMAuthor Victor Liu |
|
355 //! @SYMCreationDate 04/01/2007 |
|
356 //! @SYMTestCaseDesc CancelClippingRect(): cancel the clipping rectangle |
|
357 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
358 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect & SetClippingRect |
|
359 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
360 //! 1.1 New and connect a RWsSession |
|
361 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
362 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
363 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
364 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
365 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
366 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
367 //! 1.7 Activate the CWindowGc to the RWindow |
|
368 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
369 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
370 //! 3. Use SetClippingRect to set a clipping rectangle to display TRect((20,10),(40,50)) |
|
371 //! 4. Execute CancelClippingRect to cancel the clipping rectangle |
|
372 //! 5. Draw and fill rectangle ((10,10),(50,50)) (with part inside and part outside the canceled clipping rectangle) |
|
373 //! 6. RWindow::EndRedraw() and check if drawing result as expected |
|
374 //! the whole drawing result in testaction 5 is displayed as the ClippingRect is canceled |
|
375 //! 7. Deactive RWindow, destruct and close all objects used |
|
376 //! @SYMTestStatus Implemented |
|
377 //! @SYMTestPriority Critical |
|
378 //! @SYMTestExpectedResults 1. CWindowGc::CancelClippingRect() method calls without causing panic |
|
379 //! 2. the drawing result should be exactly the drawing rectangle in testaction 5 |
|
380 //! 2.1 the whole border lines of the drawing rectangle (testaction 5) is drawn with the pen color TRgb(0,0,0) |
|
381 //! from (10,10) to (50,10), from (49,10) to (49,50), from (10,10) to (10,50), from (10,49) to (50,49) |
|
382 //! 2.2 inside the drawing rectangle ((11,11),(49,49)) is drawn/filled with the brush color TRgb(255,0,0) |
|
383 //! 2.3 the rectangle area ((0,0),(10,60)), ((50,0),(60,60)),((10,0),(50,10)), ((10,50),(50,60)) |
|
384 //! outside (left, right, top, bottom of) the drawing rectangle is not drawn, with the background color TRgb(255,255,255) |
|
385 //! @SYMTestType CIT |
|
386 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
387 CREATE_OBJECT RWsSession ws |
|
388 CREATE_OBJECT CWsScreenDevice scrdev |
|
389 CREATE_OBJECT CWindowGc wingc |
|
390 CREATE_OBJECT RWindowGroup wingrp |
|
391 CREATE_OBJECT RWindow win |
|
392 COMMAND ws new |
|
393 COMMAND ws Connect |
|
394 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
395 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
396 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
397 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
398 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
399 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
400 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
401 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
402 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
403 COMMAND win Activate |
|
404 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
405 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
406 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
407 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
408 |
|
409 COMMAND win BeginRedraw |
|
410 COMMAND wingc SetClippingRect GRAPHICS-WSERV-WindowGc-PublicApi-0010-0001-SetClippingRect_command003 |
|
411 COMMAND wingc CancelClippingRect |
|
412 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0010-0001-DrawRect_command005 |
|
413 COMMAND win EndRedraw |
|
414 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0010-0001-checkLineColor_command009 |
|
415 COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0010-0001-checkRectColor_command010 |
|
416 |
|
417 COMMAND wingc Deactivate |
|
418 COMMAND win Close |
|
419 COMMAND wingrp Close |
|
420 COMMAND wingc ~ |
|
421 COMMAND scrdev ~ |
|
422 COMMAND ws Close |
|
423 END_TEST_BLOCK |
|
424 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0010 |
|
425 |
|
426 |
|
427 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0026 |
|
428 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0026 |
|
429 //! @SYMAPI CWindowGc |
|
430 //! @SYMAuthor Victor Liu |
|
431 //! @SYMCreationDate 15/01/2007 |
|
432 //! @SYMTestCaseDesc MoveTo(const TPoint &aPoint): move the internal drawing position to the specified point, without drawing a line |
|
433 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
434 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawLineTo, TLinearDDA: Construct & SingleStep |
|
435 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
436 //! 1.1 New and connect a RWsSession |
|
437 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
438 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
439 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
440 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
441 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
442 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
443 //! 1.7 Activate the CWindowGc to the RWindow |
|
444 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
445 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
446 //! 3. MoveTo (20,10) and DrawLineTo(50,30) |
|
447 //! 4. MoveTo (20,30) and DrawLineTo(10,50) |
|
448 //! 5. RWindow::EndRedraw() and check the drawing result to see if the DrawLineTo draws a line originated from the point set by previous MoveTo command |
|
449 //! 6. Deactive RWindow, destruct and close all objects used |
|
450 //! @SYMTestStatus Implemented |
|
451 //! @SYMTestPriority Critical |
|
452 //! @SYMTestExpectedResults 1. MoveTo is called without causing panic |
|
453 //! 2. the drawing result of testaction 3 |
|
454 //! 2.1 the line from (20,10) to (50,30) is drawn with the pen color TRgb(0,0,0) |
|
455 //! 2.2 as x-delta > y-delta, the lines from (20,10+1) to (50,30+1) and from (20,10-1) to (50,30-1) is not drawn, with the background color TRgb(255,255,255) |
|
456 //! 2.3 as x-delta > y-delta, the pixel (20-1,10) and (50,30) is not drawn, with the background color TRgb(255,255,255) |
|
457 //! 3. the drawing result of testaction 4 |
|
458 //! 3.1 the line from (20,30) to (10,50) is drawn with the pen color TRgb(0,0,0) |
|
459 //! 3.2 as x-delta < y-delta, the lines from (20+1,30) to (10+1,50) and from (20-1,30) to (10-1,50) is not drawn, with the background color TRgb(255,255,255) |
|
460 //! 3.3 as x-delta < y-delta, the pixel (20,30-1) and (10,50) is not drawn, with the background color TRgb(255,255,255) |
|
461 //! @SYMTestType CIT |
|
462 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
463 CREATE_OBJECT RWsSession ws |
|
464 CREATE_OBJECT CWsScreenDevice scrdev |
|
465 CREATE_OBJECT CWindowGc wingc |
|
466 CREATE_OBJECT RWindowGroup wingrp |
|
467 CREATE_OBJECT RWindow win |
|
468 COMMAND ws new |
|
469 COMMAND ws Connect |
|
470 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
471 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
472 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
473 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
474 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
475 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
476 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
477 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
478 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
479 COMMAND win Activate |
|
480 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
481 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
482 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
483 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
484 |
|
485 COMMAND win BeginRedraw |
|
486 COMMAND wingc MoveTo GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-MoveTo_command003 |
|
487 COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-DrawLineTo_command004 |
|
488 COMMAND wingc MoveTo GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-MoveTo_command005 |
|
489 COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-DrawLineTo_command006 |
|
490 COMMAND win EndRedraw |
|
491 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-checkLineColor_command010 |
|
492 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-checkPixels_command011 |
|
493 |
|
494 COMMAND wingc Deactivate |
|
495 COMMAND win Close |
|
496 COMMAND wingrp Close |
|
497 COMMAND wingc ~ |
|
498 COMMAND scrdev ~ |
|
499 COMMAND ws Close |
|
500 END_TEST_BLOCK |
|
501 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0026 |
|
502 |
|
503 |
|
504 |
|
505 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0027 |
|
506 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0027 |
|
507 //! @SYMAPI CWindowGc |
|
508 //! @SYMAuthor Victor Liu |
|
509 //! @SYMCreationDate 15/01/2007 |
|
510 //! @SYMTestCaseDesc MoveBy(const TPoint &aPoint): move the internal drawing position by the specified vector, without drawing a line |
|
511 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
512 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawLineTo, TLinearDDA: Construct & SingleStep |
|
513 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
514 //! 1.1 New and connect a RWsSession |
|
515 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
516 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
517 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
518 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
519 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
520 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
521 //! 1.7 Activate the CWindowGc to the RWindow |
|
522 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
523 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
524 //! 3. MoveBy (20,0), then MoveBy (0,20) and DrawLineTo(50,30) |
|
525 //! 4. MoveBy (-30,0) and DrawLineTo(10,50) |
|
526 //! 5. RWindow::EndRedraw() and check the drawing result to see if the DrawLineTo draws a line originated from the point set by previous MoveBy command |
|
527 //! 6. Deactive RWindow, destruct and close all objects used |
|
528 //! @SYMTestStatus Implemented |
|
529 //! @SYMTestPriority Critical |
|
530 //! @SYMTestExpectedResults 1. MoveBy is called without causing panic |
|
531 //! 2. the drawing result of testaction 3, the origin is (20,20) = (20,0) + (0,20) |
|
532 //! 2.1 the line from (20,20) to (50,30) is drawn with the pen color TRgb(0,0,0) |
|
533 //! 2.2 as x-delta > y-delta, the lines from (20,20+1) to (50,30+1) and from (20,20-1) to (50,30-1) is not drawn, with the background color TRgb(255,255,255) |
|
534 //! 2.3 as x-delta > y-delta, the pixel (20-1,20) and (50,30) is not drawn, with the background color TRgb(255,255,255) |
|
535 //! 3. the drawing result of testaction 4, the origin is (20,30) = (50,30) + (-30,0) |
|
536 //! 3.1 the line from (20,30) to (10,50) is drawn with the pen color TRgb(0,0,0) |
|
537 //! 3.2 as x-delta < y-delta, the lines from (20+1,30) to (10+1,50) and from (20-1,30) to (10-1,50) is not drawn, with the background color TRgb(255,255,255) |
|
538 //! 3.3 as x-delta < y-delta, the pixel (20,30-1) and (10,50) is not drawn, with the background color TRgb(255,255,255) |
|
539 //! @SYMTestType CIT |
|
540 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
541 CREATE_OBJECT RWsSession ws |
|
542 CREATE_OBJECT CWsScreenDevice scrdev |
|
543 CREATE_OBJECT CWindowGc wingc |
|
544 CREATE_OBJECT RWindowGroup wingrp |
|
545 CREATE_OBJECT RWindow win |
|
546 COMMAND ws new |
|
547 COMMAND ws Connect |
|
548 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
549 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
550 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
551 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
552 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
553 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
554 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
555 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
556 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
557 COMMAND win Activate |
|
558 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
559 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
560 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
561 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
562 |
|
563 COMMAND win BeginRedraw |
|
564 COMMAND wingc MoveTo GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveTo_command002 |
|
565 COMMAND wingc MoveBy GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveBy_command003 |
|
566 COMMAND wingc MoveBy GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveBy_command004 |
|
567 COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-DrawLineTo_command005 |
|
568 COMMAND wingc MoveBy GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveBy_command006 |
|
569 COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-DrawLineTo_command007 |
|
570 COMMAND win EndRedraw |
|
571 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-checkLineColor_command011 |
|
572 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-checkPixels_command012 |
|
573 |
|
574 COMMAND wingc Deactivate |
|
575 COMMAND win Close |
|
576 COMMAND wingrp Close |
|
577 COMMAND wingc ~ |
|
578 COMMAND scrdev ~ |
|
579 COMMAND ws Close |
|
580 END_TEST_BLOCK |
|
581 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0027 |
|
582 |
|
583 |
|
584 |
|
585 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0028 |
|
586 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0028 |
|
587 //! @SYMAPI CWindowGc |
|
588 //! @SYMAuthor Victor Liu |
|
589 //! @SYMCreationDate 20/12/2006 |
|
590 //! @SYMTestCaseDesc Plot(const TPoint &aPoint): draw a single point |
|
591 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
592 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle |
|
593 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
594 //! 1.1 New and connect a RWsSession |
|
595 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
596 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
597 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
598 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
599 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
600 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
601 //! 1.7 Activate the CWindowGc to the RWindow |
|
602 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
603 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
604 //! 3. Draw a point as specified in the test data (25,26) |
|
605 //! 4. RWindow::EndRedraw() and check if drawing result as expected |
|
606 //! 5. Deactive RWindow, destruct and close all objects used |
|
607 //! @SYMTestStatus Implemented |
|
608 //! @SYMTestPriority Critical |
|
609 //! @SYMTestExpectedResults 1. Draw a single point without causing panic |
|
610 //! 2. the drawing result of testaction 3 |
|
611 //! 2.1 the point (25,26) is drawn with the pen color TRgb(0,0,0) |
|
612 //! 2.2 its 4 neighbor points (25,26-1),(25,26+1),(25-1,26),(25+1,26), are not drawn, with the background color TRgb(255,255,255) |
|
613 //! @SYMTestType CIT |
|
614 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
615 CREATE_OBJECT RWsSession ws |
|
616 CREATE_OBJECT CWsScreenDevice scrdev |
|
617 CREATE_OBJECT CWindowGc wingc |
|
618 CREATE_OBJECT RWindowGroup wingrp |
|
619 CREATE_OBJECT RWindow win |
|
620 COMMAND ws new |
|
621 COMMAND ws Connect |
|
622 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
623 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
624 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
625 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
626 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
627 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
628 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
629 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
630 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
631 COMMAND win Activate |
|
632 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
633 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
634 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
635 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
636 |
|
637 COMMAND win BeginRedraw |
|
638 COMMAND wingc Plot GRAPHICS-WSERV-WindowGc-PublicApi-0028-0001-Plot_command003 |
|
639 COMMAND win EndRedraw |
|
640 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0028-0001-checkPixels_command007 |
|
641 |
|
642 COMMAND wingc Deactivate |
|
643 COMMAND win Close |
|
644 COMMAND wingrp Close |
|
645 COMMAND wingc ~ |
|
646 COMMAND scrdev ~ |
|
647 COMMAND ws Close |
|
648 END_TEST_BLOCK |
|
649 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0028 |
|
650 |
|
651 |
|
652 |
|
653 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0029 |
|
654 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0029 |
|
655 //! @SYMAPI CWindowGc |
|
656 //! @SYMAuthor Victor Liu |
|
657 //! @SYMCreationDate 20/12/2006 |
|
658 //! @SYMTestCaseDesc DrawArc(const TRect &aRect, const TPoint &aStart, const TPoint &aEnd): draw an arc |
|
659 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, CWindowGc::Construct & Activate & Deactivate |
|
660 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
661 //! 1.1 New and connect a RWsSession |
|
662 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
663 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
664 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
665 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
666 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
667 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
668 //! 1.7 Activate the CWindowGc to the RWindow |
|
669 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
670 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
671 //! 3. Draw an arc as specified in the test data |
|
672 //! 4. RWindow::EndRedraw() and check if drawing result as expected |
|
673 //! 5. Deactive RWindow, destruct and close all objects used |
|
674 //! @SYMTestStatus Implemented |
|
675 //! @SYMTestPriority Critical |
|
676 //! @SYMTestExpectedResults 1. Draw an arc without causing panic |
|
677 //! 2. the drawing result is as expected |
|
678 //! 2.1 the arc line is drawn with the pen color TRgb(0,0,0) |
|
679 //! only check sample points (81,47) (80,22) (99,35) (90,44) (90,25) |
|
680 //! 2.2 the adjacent points of the above arc points is not drawn, with the background color TRgb(255,255,255) |
|
681 //! only check points (80,47) (81,48) (79,22) (80,21) (100,35) (98,35) (60,35) |
|
682 //! @SYMTestType CIT |
|
683 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
684 CREATE_OBJECT RWsSession ws |
|
685 CREATE_OBJECT CWsScreenDevice scrdev |
|
686 CREATE_OBJECT CWindowGc wingc |
|
687 CREATE_OBJECT RWindowGroup wingrp |
|
688 CREATE_OBJECT RWindow win |
|
689 COMMAND ws new |
|
690 COMMAND ws Connect |
|
691 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
692 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
693 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
694 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
695 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
696 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
697 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
698 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
699 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
700 COMMAND win Activate |
|
701 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
702 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
703 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
704 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
705 |
|
706 COMMAND win BeginRedraw |
|
707 COMMAND wingc DrawArc GRAPHICS-WSERV-WindowGc-PublicApi-0029-0001-DrawArc_command003 |
|
708 COMMAND win EndRedraw |
|
709 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0029-0001-checkPixels_command007 |
|
710 |
|
711 COMMAND wingc Deactivate |
|
712 COMMAND win Close |
|
713 COMMAND wingrp Close |
|
714 COMMAND wingc ~ |
|
715 COMMAND scrdev ~ |
|
716 COMMAND ws Close |
|
717 END_TEST_BLOCK |
|
718 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0029 |
|
719 |
|
720 |
|
721 |
|
722 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0030 |
|
723 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0030 |
|
724 //! @SYMAPI CWindowGc |
|
725 //! @SYMAuthor Victor Liu |
|
726 //! @SYMCreationDate 20/12/2006 |
|
727 //! @SYMTestCaseDesc DrawLine(const TPoint &aPoint1, const TPoint &aPoint2): draw a straight line between two points |
|
728 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
729 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, TLinearDDA: Construct & SingleStep |
|
730 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
731 //! 1.1 New and connect a RWsSession |
|
732 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
733 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
734 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
735 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
736 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
737 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
738 //! 1.7 Activate the CWindowGc to the RWindow |
|
739 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
740 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
741 //! 3. Draw a straight line from (25,26) to (50,60) |
|
742 //! 4. RWindow::EndRedraw() and check if drawing result as expected |
|
743 //! 5. Deactive RWindow, destruct and close all objects used |
|
744 //! @SYMTestStatus Implemented |
|
745 //! @SYMTestPriority Critical |
|
746 //! @SYMTestExpectedResults 1. Draw a straight line without causing panic |
|
747 //! 2. the drawing result of testaction 3, straight line from (25,26) to (50,60) |
|
748 //! 2.1 the line from (25,26) to (50,60) is drawn with the pen color TRgb(0,0,0) |
|
749 //! 2.2 as x-delta < y-delta, the lines from (25+1,26) to (50+1,60) and from (25-1,26) to (50-1,60) is not drawn, with the background color TRgb(255,255,255) |
|
750 //! 2.3 as x-delta < y-delta, the pixel (25,26-1) and (50,60) is not drawn, with the background color TRgb(255,255,255) |
|
751 //! @SYMTestType CIT |
|
752 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
753 CREATE_OBJECT RWsSession ws |
|
754 CREATE_OBJECT CWsScreenDevice scrdev |
|
755 CREATE_OBJECT CWindowGc wingc |
|
756 CREATE_OBJECT RWindowGroup wingrp |
|
757 CREATE_OBJECT RWindow win |
|
758 COMMAND ws new |
|
759 COMMAND ws Connect |
|
760 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
761 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
762 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
763 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
764 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
765 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
766 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
767 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
768 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
769 COMMAND win Activate |
|
770 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
771 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
772 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
773 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
774 |
|
775 COMMAND win BeginRedraw |
|
776 COMMAND wingc DrawLine GRAPHICS-WSERV-WindowGc-PublicApi-0030-0001-DrawLine_command003 |
|
777 COMMAND win EndRedraw |
|
778 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0030-0001-checkLineColor_command007 |
|
779 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0030-0001-checkPixels_command008 |
|
780 |
|
781 COMMAND wingc Deactivate |
|
782 COMMAND win Close |
|
783 COMMAND wingrp Close |
|
784 COMMAND wingc ~ |
|
785 COMMAND scrdev ~ |
|
786 COMMAND ws Close |
|
787 END_TEST_BLOCK |
|
788 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0030 |
|
789 |
|
790 |
|
791 |
|
792 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0031 |
|
793 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0031 |
|
794 //! @SYMAPI CWindowGc |
|
795 //! @SYMAuthor Victor Liu |
|
796 //! @SYMCreationDate 20/12/2006 |
|
797 //! @SYMTestCaseDesc DrawLineTo(const TPoint &aPoint): draw a straight line from internal drawing position to a point |
|
798 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
799 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, TLinearDDA: Construct & SingleStep |
|
800 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
801 //! 1.1 New and connect a RWsSession |
|
802 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
803 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
804 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
805 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
806 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
807 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
808 //! 1.7 Activate the CWindowGc to the RWindow |
|
809 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
810 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
811 //! 3. DrawLineTo (40,30) from initial origin (0,0) |
|
812 //! 4. DrawLineTo (50,60) |
|
813 //! 5. RWindow::EndRedraw() and check if drawing result as expected |
|
814 //! 6. Deactive RWindow, destruct and close all objects used |
|
815 //! @SYMTestStatus Implemented |
|
816 //! @SYMTestPriority Critical |
|
817 //! @SYMTestExpectedResults 1. Draw a straight line without causing panic |
|
818 //! 2. the drawing result of testaction 3, straight line from initial origin (0,0) to (40,30) |
|
819 //! 2.1 the line from (0,0) to (40,30) is drawn with the pen color TRgb(0,0,0) |
|
820 //! 2.2 as x-delta > y-delta, the lines from (0,0+1) to (40,30+1) and from (0,0-1) to (40,30-1) is not drawn, with the background color TRgb(255,255,255) |
|
821 //! 2.3 (40,30) is not drawn in testaction 2, but is draw in testaction 3 with the pen color TRgb(0,0,0) |
|
822 //! 3. the drawing result of testaction 4, straight line from previous destination (40,30) to (50,60) |
|
823 //! 3.1 the line from (40,30) to (50,60) is drawn with the pen color TRgb(0,0,0) |
|
824 //! 3.2 as x-delta < y-delta, the lines from (40+1,30) to (50+1,60) and from (40-1,30) to (50-1,60) is not drawn, with the background color TRgb(255,255,255) |
|
825 //! 3.3 as x-delta < y-delta, the pixel (40,30-1) and (50,60) is not drawn, with the background color TRgb(255,255,255) |
|
826 //! @SYMTestType CIT |
|
827 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
828 CREATE_OBJECT RWsSession ws |
|
829 CREATE_OBJECT CWsScreenDevice scrdev |
|
830 CREATE_OBJECT CWindowGc wingc |
|
831 CREATE_OBJECT RWindowGroup wingrp |
|
832 CREATE_OBJECT RWindow win |
|
833 COMMAND ws new |
|
834 COMMAND ws Connect |
|
835 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
836 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
837 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
838 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
839 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
840 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
841 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
842 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
843 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
844 COMMAND win Activate |
|
845 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
846 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
847 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
848 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
849 |
|
850 COMMAND win BeginRedraw |
|
851 COMMAND wingc MoveTo GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-MoveTo_command002 |
|
852 COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-DrawLineTo_command003 |
|
853 COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-DrawLineTo_command004 |
|
854 COMMAND win EndRedraw |
|
855 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-checkLineColor_command008 |
|
856 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-checkPixels_command009 |
|
857 |
|
858 COMMAND wingc Deactivate |
|
859 COMMAND win Close |
|
860 COMMAND wingrp Close |
|
861 COMMAND wingc ~ |
|
862 COMMAND scrdev ~ |
|
863 COMMAND ws Close |
|
864 END_TEST_BLOCK |
|
865 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0031 |
|
866 |
|
867 |
|
868 |
|
869 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0032 |
|
870 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0032 |
|
871 //! @SYMAPI CWindowGc |
|
872 //! @SYMAuthor Victor Liu |
|
873 //! @SYMCreationDate 20/12/2006 |
|
874 //! @SYMTestCaseDesc DrawLineBy(const TPoint &aPoint): draw a straight line from internal drawing position, using a vector |
|
875 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
876 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle |
|
877 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
878 //! 1.1 New and connect a RWsSession |
|
879 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
880 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
881 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
882 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
883 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
884 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
885 //! 1.7 Activate the CWindowGc to the RWindow |
|
886 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
887 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
888 //! 3. DrawLineBy (30,40) from initial origin (0,0) |
|
889 //! 4. DrawLineBy (30,10) |
|
890 //! 5. RWindow::EndRedraw() and check if drawing result as expected |
|
891 //! 6. Deactive RWindow, destruct and close all objects used |
|
892 //! @SYMTestStatus Implemented |
|
893 //! @SYMTestPriority Critical |
|
894 //! @SYMTestExpectedResults 1. Draw a straight line without causing panic |
|
895 //! 2. the drawing result of testaction 3, straight line from initial origin (0,0) to (30,40) |
|
896 //! 2.1 the line from (0,0) to (30,40) is drawn with the pen color TRgb(0,0,0) |
|
897 //! 2.2 as x-delta < y-delta, the lines from (0+1,0) to (30+1,40) and from (0-1,0) to (30-1,40) is not drawn, with the background color TRgb(255,255,255) |
|
898 //! 2.3 (30,40) is not drawn, but is draw in testaction 3 with the pen color TRgb(0,0,0) |
|
899 //! 3. the drawing result of testaction 4, straight line from previous destination (30,40) to (60,50)=(30,40)+vector(30,10) |
|
900 //! 3.1 the line from (30,40) to (60,50) is drawn with the pen color TRgb(0,0,0) |
|
901 //! 3.2 as x-delta > y-delta, the lines from (30,40+1) to (60,50+1) and from (30,40-1) to (60,50-1) is not drawn, with the background color TRgb(255,255,255) |
|
902 //! 3.3 as x-delta > y-delta, the pixel (30-1,40) and (60,50) is not drawn, with the background color TRgb(255,255,255) |
|
903 //! @SYMTestType CIT |
|
904 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
905 CREATE_OBJECT RWsSession ws |
|
906 CREATE_OBJECT CWsScreenDevice scrdev |
|
907 CREATE_OBJECT CWindowGc wingc |
|
908 CREATE_OBJECT RWindowGroup wingrp |
|
909 CREATE_OBJECT RWindow win |
|
910 COMMAND ws new |
|
911 COMMAND ws Connect |
|
912 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
913 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
914 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
915 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
916 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
917 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
918 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
919 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
920 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
921 COMMAND win Activate |
|
922 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
923 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
924 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
925 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
926 |
|
927 COMMAND win BeginRedraw |
|
928 COMMAND wingc MoveTo GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-MoveTo_command002 |
|
929 COMMAND wingc DrawLineBy GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-DrawLineBy_command003 |
|
930 COMMAND wingc DrawLineBy GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-DrawLineBy_command004 |
|
931 COMMAND win EndRedraw |
|
932 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-checkLineColor_command008 |
|
933 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-checkPixels_command009 |
|
934 |
|
935 COMMAND wingc Deactivate |
|
936 COMMAND win Close |
|
937 COMMAND wingrp Close |
|
938 COMMAND wingc ~ |
|
939 COMMAND scrdev ~ |
|
940 COMMAND ws Close |
|
941 END_TEST_BLOCK |
|
942 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0032 |
|
943 |
|
944 |
|
945 |
|
946 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0033 |
|
947 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0033 |
|
948 //! @SYMAPI CWindowGc |
|
949 //! @SYMAuthor Victor Liu |
|
950 //! @SYMCreationDate 25/12/2006 |
|
951 //! @SYMTestCaseDesc DrawPolyLine(const CArrayFix< TPoint > *aPointList): draw a polyline using points in an array |
|
952 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
953 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle |
|
954 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
955 //! 1.1 New and connect a RWsSession |
|
956 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
957 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
958 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
959 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
960 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
961 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
962 //! 1.7 Activate the CWindowGc to the RWindow |
|
963 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
964 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
965 //! 3. Read the test data to construct a point array, draw a polyline as the specified data |
|
966 //! TPoint(30,40), (50,60), (60,50), (70,70), (90,40) |
|
967 //! 4. RWindow::EndRedraw() and check if drawing result as expected |
|
968 //! 5. Deactive RWindow, destruct and close all objects used |
|
969 //! @SYMTestStatus Implemented |
|
970 //! @SYMTestPriority Critical |
|
971 //! @SYMTestExpectedResults 1. Draw a polyline without causing panic |
|
972 //! 2. the drawing result of testaction 3 |
|
973 //! 2.1 straight lines connected by two consecutive points in the point array, these lines are drawn with the pen color TRgb(0,0,0) |
|
974 //! from (30,40) to (50,60), from (50,60) to (60,50), from (60,50) to (70,70), from (70,70) to (90,40) |
|
975 //! 2.2 the last point (90,40) in the point array is drawn with the pen color TRgb(0,0,0) |
|
976 //! 2.3 other points should not be drawn, with the background color TRgb(255,255,255), check the following sample points |
|
977 //! the middle point (60,40) of the first and last points in the point array |
|
978 //! @SYMTestType CIT |
|
979 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
980 CREATE_OBJECT RWsSession ws |
|
981 CREATE_OBJECT CWsScreenDevice scrdev |
|
982 CREATE_OBJECT CWindowGc wingc |
|
983 CREATE_OBJECT RWindowGroup wingrp |
|
984 CREATE_OBJECT RWindow win |
|
985 COMMAND ws new |
|
986 COMMAND ws Connect |
|
987 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
988 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
989 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
990 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
991 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
992 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
993 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
994 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
995 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
996 COMMAND win Activate |
|
997 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
998 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
999 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1000 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1001 |
|
1002 COMMAND win BeginRedraw |
|
1003 COMMAND wingc DrawPolyLine GRAPHICS-WSERV-WindowGc-PublicApi-0033-0001-DrawPolyLine_command003 |
|
1004 COMMAND win EndRedraw |
|
1005 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0033-0001-checkLineColor_command007 |
|
1006 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0033-0001-checkPixels_command008 |
|
1007 |
|
1008 COMMAND wingc Deactivate |
|
1009 COMMAND win Close |
|
1010 COMMAND wingrp Close |
|
1011 COMMAND wingc ~ |
|
1012 COMMAND scrdev ~ |
|
1013 COMMAND ws Close |
|
1014 END_TEST_BLOCK |
|
1015 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0033 |
|
1016 |
|
1017 |
|
1018 |
|
1019 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0034 |
|
1020 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0034 |
|
1021 //! @SYMAPI CWindowGc |
|
1022 //! @SYMAuthor Victor Liu |
|
1023 //! @SYMCreationDate 27/12/2006 |
|
1024 //! @SYMTestCaseDesc DrawPolyLine(const TPoint *aPointList, TInt aNumPoints): draw a polyline using points in a list |
|
1025 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
1026 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle |
|
1027 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1028 //! 1.1 New and connect a RWsSession |
|
1029 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1030 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1031 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1032 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1033 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1034 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1035 //! 1.7 Activate the CWindowGc to the RWindow |
|
1036 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1037 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1038 //! 3. Read the test data to construct a point list, draw a polyline as the specified data |
|
1039 //! TPoint(30,40), (50,60), (60,50), (70,70), (90,30) |
|
1040 //! 4. RWindow::EndRedraw() and check if drawing result as expected |
|
1041 //! 5. Deactive RWindow, destruct and close all objects used |
|
1042 //! @SYMTestStatus Implemented |
|
1043 //! @SYMTestPriority Critical |
|
1044 //! @SYMTestExpectedResults 1. Draw a polyline without causing panic |
|
1045 //! 2. the drawing result of testaction 3 |
|
1046 //! 2.1 straight lines connected by two consecutive points in the point list, these lines are drawn with the pen color TRgb(0,0,0) |
|
1047 //! from (30,40) to (50,60), from (50,60) to (60,50), from (60,50) to (70,70), from (70,70) to (90,30) |
|
1048 //! 2.2 the last point (90,30) in the point list is drawn with the pen color TRgb(0,0,0) |
|
1049 //! 2.3 other points should not be drawn, with the background color TRgb(255,255,255), check the following sample points |
|
1050 //! the middle point (60,35) of the first and last points in the point list |
|
1051 //! @SYMTestType CIT |
|
1052 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1053 CREATE_OBJECT RWsSession ws |
|
1054 CREATE_OBJECT CWsScreenDevice scrdev |
|
1055 CREATE_OBJECT CWindowGc wingc |
|
1056 CREATE_OBJECT RWindowGroup wingrp |
|
1057 CREATE_OBJECT RWindow win |
|
1058 COMMAND ws new |
|
1059 COMMAND ws Connect |
|
1060 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1061 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1062 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1063 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1064 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1065 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1066 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1067 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1068 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1069 COMMAND win Activate |
|
1070 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1071 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1072 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1073 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1074 |
|
1075 COMMAND win BeginRedraw |
|
1076 COMMAND wingc DrawPolyLine GRAPHICS-WSERV-WindowGc-PublicApi-0034-0001-DrawPolyLine_command003 |
|
1077 COMMAND win EndRedraw |
|
1078 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0034-0001-checkLineColor_command007 |
|
1079 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0034-0001-checkPixels_command008 |
|
1080 |
|
1081 COMMAND wingc Deactivate |
|
1082 COMMAND win Close |
|
1083 COMMAND wingrp Close |
|
1084 COMMAND wingc ~ |
|
1085 COMMAND scrdev ~ |
|
1086 COMMAND ws Close |
|
1087 END_TEST_BLOCK |
|
1088 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0034 |
|
1089 |
|
1090 |
|
1091 |
|
1092 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0035 |
|
1093 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0035 |
|
1094 //! @SYMAPI CWindowGc |
|
1095 //! @SYMAuthor Victor Liu |
|
1096 //! @SYMCreationDate 20/12/2006 |
|
1097 //! @SYMTestCaseDesc DrawPie(const TRect &aRect, const TPoint &aStart, const TPoint &aEnd): draw and fill a pie-shaped slice of an ellipse |
|
1098 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, CWindowGc::Construct & Activate & Deactivate |
|
1099 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1100 //! 1.1 New and connect a RWsSession |
|
1101 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1102 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1103 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1104 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1105 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1106 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1107 //! 1.7 Activate the CWindowGc to the RWindow |
|
1108 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1109 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1110 //! 3. Draw and fill a pie-shaped slice of an ellipse with the specified test data |
|
1111 //! 4. RWindow::EndRedraw() and check if drawing result as expected |
|
1112 //! 5. Deactive RWindow, destruct and close all objects used |
|
1113 //! @SYMTestStatus Implemented |
|
1114 //! @SYMTestPriority Critical |
|
1115 //! @SYMTestExpectedResults 1. Draw and fill a pie-shaped slice without causing panic |
|
1116 //! 2. the drawing result is as expected |
|
1117 //! 2.1 on the pie boarder is drawn with the pen color TRgb(0,0,0) |
|
1118 //! only check sample points (60,35) (81,47) (80,22) (67,39) (74,43) (67,30) (74,26) (99,35) (90,44) (90,25) |
|
1119 //! 2.2 inside the pie shape is drawn/filled with the brush color TRgb(255,0,0) |
|
1120 //! only check sample points (90,40) (90,30) |
|
1121 //! 2.3 outside the pie shape is not drawn, with the background color TRgb(255,255,255) |
|
1122 //! only check sample points (100,35) (70,25) (70,45) |
|
1123 //! @SYMTestType CIT |
|
1124 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1125 CREATE_OBJECT RWsSession ws |
|
1126 CREATE_OBJECT CWsScreenDevice scrdev |
|
1127 CREATE_OBJECT CWindowGc wingc |
|
1128 CREATE_OBJECT RWindowGroup wingrp |
|
1129 CREATE_OBJECT RWindow win |
|
1130 COMMAND ws new |
|
1131 COMMAND ws Connect |
|
1132 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1133 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1134 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1135 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1136 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1137 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1138 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1139 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1140 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1141 COMMAND win Activate |
|
1142 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1143 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1144 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1145 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1146 |
|
1147 COMMAND win BeginRedraw |
|
1148 COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0035-0001-DrawPie_command003 |
|
1149 COMMAND win EndRedraw |
|
1150 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0035-0001-checkPixels_command007 |
|
1151 |
|
1152 COMMAND wingc Deactivate |
|
1153 COMMAND win Close |
|
1154 COMMAND wingrp Close |
|
1155 COMMAND wingc ~ |
|
1156 COMMAND scrdev ~ |
|
1157 COMMAND ws Close |
|
1158 END_TEST_BLOCK |
|
1159 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0035 |
|
1160 |
|
1161 |
|
1162 |
|
1163 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0036 |
|
1164 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0036 |
|
1165 //! @SYMAPI CWindowGc |
|
1166 //! @SYMAuthor Victor Liu |
|
1167 //! @SYMCreationDate 20/12/2006 |
|
1168 //! @SYMTestCaseDesc DrawEllipse(const TRect &aRect): draw and fill an ellipse |
|
1169 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, CWindowGc::Construct & Activate & Deactivate |
|
1170 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1171 //! 1.1 New and connect a RWsSession |
|
1172 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1173 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1174 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1175 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1176 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1177 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1178 //! 1.7 Activate the CWindowGc to the RWindow |
|
1179 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1180 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1181 //! 3. Draw and fill an ellipse with the specified test data |
|
1182 //! 4. RWindow::EndRedraw() and check if drawing result as expected |
|
1183 //! 5. Deactive RWindow, destruct and close all objects used |
|
1184 //! @SYMTestStatus Implemented |
|
1185 //! @SYMTestPriority Critical |
|
1186 //! @SYMTestExpectedResults 1. Draw and fill an ellipse without causing panic |
|
1187 //! 2. the drawing result is as expected |
|
1188 //! 2.1 on the ellipse boarder is drawn with the pen color TRgb(0,0,0) |
|
1189 //! only check sample points (21,35) (99,35) (60,20) (60,49) (40,22) (40,47) (80,22) (80,47) |
|
1190 //! 2.2 inside the ellipse is drawn/filled with the brush color TRgb(255,0,0) |
|
1191 //! only check sample points (60,35) |
|
1192 //! 2.3 outside the ellipse is not drawn, with the background color TRgb(255,255,255) |
|
1193 //! only check sample points (100,50) (100,35) (60,50) (60,10) |
|
1194 //! @SYMTestType CIT |
|
1195 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1196 CREATE_OBJECT RWsSession ws |
|
1197 CREATE_OBJECT CWsScreenDevice scrdev |
|
1198 CREATE_OBJECT CWindowGc wingc |
|
1199 CREATE_OBJECT RWindowGroup wingrp |
|
1200 CREATE_OBJECT RWindow win |
|
1201 COMMAND ws new |
|
1202 COMMAND ws Connect |
|
1203 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1204 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1205 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1206 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1207 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1208 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1209 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1210 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1211 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1212 COMMAND win Activate |
|
1213 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1214 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1215 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1216 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1217 |
|
1218 COMMAND win BeginRedraw |
|
1219 COMMAND wingc DrawEllipse GRAPHICS-WSERV-WindowGc-PublicApi-0036-0001-DrawEllipse_command003 |
|
1220 COMMAND win EndRedraw |
|
1221 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0036-0001-checkPixels_command007 |
|
1222 |
|
1223 COMMAND wingc Deactivate |
|
1224 COMMAND win Close |
|
1225 COMMAND wingrp Close |
|
1226 COMMAND wingc ~ |
|
1227 COMMAND scrdev ~ |
|
1228 COMMAND ws Close |
|
1229 END_TEST_BLOCK |
|
1230 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0036 |
|
1231 |
|
1232 |
|
1233 |
|
1234 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0037 |
|
1235 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0037 |
|
1236 //! @SYMAPI CWindowGc |
|
1237 //! @SYMAuthor Victor Liu |
|
1238 //! @SYMCreationDate 20/12/2006 |
|
1239 //! @SYMTestCaseDesc DrawRect(const TRect &aRect): draw and fill a rectangle |
|
1240 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
1241 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle |
|
1242 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1243 //! 1.1 New and connect a RWsSession |
|
1244 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1245 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1246 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1247 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1248 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1249 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1250 //! 1.7 Activate the CWindowGc to the RWindow |
|
1251 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1252 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1253 //! 3. Draw and fill a rectangle with the specified test data ((21,20),(80,50)) |
|
1254 //! 4. RWindow::EndRedraw() and check if drawing result as expected |
|
1255 //! 5. Deactive RWindow, destruct and close all objects used |
|
1256 //! @SYMTestStatus Implemented |
|
1257 //! @SYMTestPriority Critical |
|
1258 //! @SYMTestExpectedResults 1. Draw and fill a rectangle without causing panic |
|
1259 //! 2. the drawing result of testaction 3 |
|
1260 //! 2.1 the 4 border lines of the drawing rectangle is drawn with the pen color TRgb(0,0,0) |
|
1261 //! from (21,20) to (80,20), from (21,20) to (21,50), from (79,20) to (79,50), from (21,49) to (80,49) |
|
1262 //! 2.2 inside the drawing rectangle ((21+1,20+1),(80-1,50-1)) is drawn/filled with the brush color TRgb(255,0,0) |
|
1263 //! 2.3 the rectangle area ((0,0),(21,60)),((80,0),(100,60)), ((21,0),(80,20)), ((21,50),(80,60)) |
|
1264 //! outside (left, right, top, bottom of) the drawing rectangle is not drawn, with the background color TRgb(255,255,255) |
|
1265 //! @SYMTestType CIT |
|
1266 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1267 CREATE_OBJECT RWsSession ws |
|
1268 CREATE_OBJECT CWsScreenDevice scrdev |
|
1269 CREATE_OBJECT CWindowGc wingc |
|
1270 CREATE_OBJECT RWindowGroup wingrp |
|
1271 CREATE_OBJECT RWindow win |
|
1272 COMMAND ws new |
|
1273 COMMAND ws Connect |
|
1274 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1275 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1276 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1277 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1278 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1279 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1280 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1281 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1282 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1283 COMMAND win Activate |
|
1284 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1285 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1286 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1287 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1288 |
|
1289 COMMAND win BeginRedraw |
|
1290 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0037-0001-DrawRect_command003 |
|
1291 COMMAND win EndRedraw |
|
1292 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0037-0001-checkLineColor_command007 |
|
1293 COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0037-0001-checkRectColor_command008 |
|
1294 |
|
1295 COMMAND wingc Deactivate |
|
1296 COMMAND win Close |
|
1297 COMMAND wingrp Close |
|
1298 COMMAND wingc ~ |
|
1299 COMMAND scrdev ~ |
|
1300 COMMAND ws Close |
|
1301 END_TEST_BLOCK |
|
1302 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0037 |
|
1303 |
|
1304 |
|
1305 |
|
1306 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0038 |
|
1307 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0038 |
|
1308 //! @SYMAPI CWindowGc |
|
1309 //! @SYMAuthor Victor Liu |
|
1310 //! @SYMCreationDate 20/12/2006 |
|
1311 //! @SYMTestCaseDesc DrawRoundRect(const TRect &aRect, const TSize &aEllipse): draw and fill a rectangle with rounded corners |
|
1312 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
1313 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle |
|
1314 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1315 //! 1.1 New and connect a RWsSession |
|
1316 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1317 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1318 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1319 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1320 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1321 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1322 //! 1.7 Activate the CWindowGc to the RWindow |
|
1323 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1324 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1325 //! 3. Draw and fill a rectangle ((21,20),(80,50)) with the rounded corner size (width=10, height=8) |
|
1326 //! 4. RWindow::EndRedraw() and check if drawing result as expected |
|
1327 //! 5. Deactive RWindow, destruct and close all objects used |
|
1328 //! @SYMTestStatus Implemented |
|
1329 //! @SYMTestPriority Critical |
|
1330 //! @SYMTestExpectedResults 1. Draw and fill a rounded rectangle without causing panic |
|
1331 //! 2. the drawing result of testaction 3 |
|
1332 //! 2.1 the 4 border lines of the drawing rectangle is drawn with the pen color TRgb(0,0,0) |
|
1333 //! from (21+10,20) to (80-10,20), from (21,20+8) to (21,50-8), from (79,20+8) to (79,50-8), from (21+10,49) to (80-10,49) |
|
1334 //! 2.2 inside the drawing rectangle is drawn/filled with the brush color TRgb(255,0,0) |
|
1335 //! TRect((21+10,20+1),(80-10,50-1)), ((21+1,20+8),(21+10,50-8)), ((80-10,20+8),(80-1,50-8)) |
|
1336 //! 2.3 the rectangle area ((0,0),(21,60)),((80,0),(100,60)), ((21,0),(80,20)), ((21,50),(80,60)) |
|
1337 //! outside (left, right, top, bottom of) the drawing rectangle is not drawn, with the background color TRgb(255,255,255) |
|
1338 //! 2.4 over the 4 rounded corners of the drawing rectangle is drawn with the pen color TRgb(0,0,0) |
|
1339 //! sample 2 points for each corner to check: (23,23), (26,21), (23,46), (26,48), (77,23), (74,21), (77,46), (74,48) |
|
1340 //! 2.5 inside the 4 rounded corners is drawn/filled with the brush color TRgb(255,0,0) |
|
1341 //! sample 1 point inside each corner to check: (24,23), (24,46), (76,23), (76,46) |
|
1342 //! @SYMTestType CIT |
|
1343 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1344 CREATE_OBJECT RWsSession ws |
|
1345 CREATE_OBJECT CWsScreenDevice scrdev |
|
1346 CREATE_OBJECT CWindowGc wingc |
|
1347 CREATE_OBJECT RWindowGroup wingrp |
|
1348 CREATE_OBJECT RWindow win |
|
1349 COMMAND ws new |
|
1350 COMMAND ws Connect |
|
1351 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1352 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1353 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1354 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1355 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1356 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1357 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1358 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1359 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1360 COMMAND win Activate |
|
1361 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1362 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1363 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1364 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1365 |
|
1366 COMMAND win BeginRedraw |
|
1367 COMMAND wingc DrawRoundRect GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-DrawRoundRect_command003 |
|
1368 COMMAND win EndRedraw |
|
1369 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-checkLineColor_command007 |
|
1370 COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-checkRectColor_command008 |
|
1371 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-checkPixels_command009 |
|
1372 |
|
1373 COMMAND wingc Deactivate |
|
1374 COMMAND win Close |
|
1375 COMMAND wingrp Close |
|
1376 COMMAND wingc ~ |
|
1377 COMMAND scrdev ~ |
|
1378 COMMAND ws Close |
|
1379 END_TEST_BLOCK |
|
1380 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0038 |
|
1381 |
|
1382 |
|
1383 |
|
1384 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0039 |
|
1385 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0039 |
|
1386 //! @SYMAPI CWindowGc |
|
1387 //! @SYMAuthor Victor Liu |
|
1388 //! @SYMCreationDate 26/12/2006 |
|
1389 //! @SYMTestCaseDesc DrawPolygon(const CArrayFix< TPoint > *aPointList, TFillRule aFillRule=EAlternate): draw and fill a polygon using points in an array |
|
1390 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
1391 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle |
|
1392 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1393 //! 1.1 New and connect a RWsSession |
|
1394 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1395 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1396 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1397 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1398 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1399 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1400 //! 1.7 Activate the CWindowGc to the RWindow |
|
1401 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1402 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1403 //! 3. Read the test data to construct a point array, draw a polygon as the specified data |
|
1404 //! TPoint(30,40), (50,60), (60,50), (70,70), (90,40) |
|
1405 //! 4. RWindow::EndRedraw() and check if drawing result as expected |
|
1406 //! 5. Deactive RWindow, destruct and close all objects used |
|
1407 //! @SYMTestStatus Implemented |
|
1408 //! @SYMTestPriority Critical |
|
1409 //! @SYMTestExpectedResults 1. Draw a polygon, return value = KErrNone without causing panic |
|
1410 //! 2. the drawing result of testaction 3 |
|
1411 //! 2.1 straight lines connected by two consecutive points in the point array and from the last point to the first one, these lines are drawn with the pen color TRgb(0,0,0) |
|
1412 //! from (30,40) to (50,60), from (50,60) to (60,50), from (60,50) to (70,70), from (70,70) to (90,40), from (90,40) to (30,40) |
|
1413 //! 2.2 inside the drawing polygon is drawn/filled with the brush color TRgb(255,0,0) |
|
1414 //! only check sample points: (60,45) |
|
1415 //! 2.3 outside the drawing polygon should not be drawn, with the background color TRgb(255,255,255) |
|
1416 //! only check sample points: (60,30) |
|
1417 //! @SYMTestType CIT |
|
1418 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1419 CREATE_OBJECT RWsSession ws |
|
1420 CREATE_OBJECT CWsScreenDevice scrdev |
|
1421 CREATE_OBJECT CWindowGc wingc |
|
1422 CREATE_OBJECT RWindowGroup wingrp |
|
1423 CREATE_OBJECT RWindow win |
|
1424 COMMAND ws new |
|
1425 COMMAND ws Connect |
|
1426 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1427 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1428 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1429 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1430 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1431 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1432 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1433 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1434 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1435 COMMAND win Activate |
|
1436 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1437 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1438 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1439 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1440 |
|
1441 COMMAND win BeginRedraw |
|
1442 COMMAND wingc DrawPolygon GRAPHICS-WSERV-WindowGc-PublicApi-0039-0001-DrawPolygon_command003 |
|
1443 COMMAND win EndRedraw |
|
1444 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0039-0001-checkLineColor_command007 |
|
1445 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0039-0001-checkPixels_command008 |
|
1446 |
|
1447 COMMAND wingc Deactivate |
|
1448 COMMAND win Close |
|
1449 COMMAND wingrp Close |
|
1450 COMMAND wingc ~ |
|
1451 COMMAND scrdev ~ |
|
1452 COMMAND ws Close |
|
1453 END_TEST_BLOCK |
|
1454 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0039 |
|
1455 |
|
1456 |
|
1457 |
|
1458 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0040 |
|
1459 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0040 |
|
1460 //! @SYMAPI CWindowGc |
|
1461 //! @SYMAuthor Victor Liu |
|
1462 //! @SYMCreationDate 28/12/2006 |
|
1463 //! @SYMTestCaseDesc DrawPolygon(const TPoint *aPointList, TInt aNumPoints, TFillRule aFillRule=EAlternate): draw and fill a polygon using points in a list |
|
1464 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
1465 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle |
|
1466 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1467 //! 1.1 New and connect a RWsSession |
|
1468 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1469 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1470 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1471 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1472 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1473 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1474 //! 1.7 Activate the CWindowGc to the RWindow |
|
1475 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1476 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1477 //! 3. Read the test data to construct a point list, draw a polygon as the specified data |
|
1478 //! TPoint(30,40), (50,60), (60,50), (70,70), (90,40) |
|
1479 //! 4. RWindow::EndRedraw() and check if drawing result as expected |
|
1480 //! 5. Deactive RWindow, destruct and close all objects used |
|
1481 //! @SYMTestStatus Implemented |
|
1482 //! @SYMTestPriority Critical |
|
1483 //! @SYMTestExpectedResults 1. Draw a polygon, return value = KErrNone without causing panic |
|
1484 //! 2. the drawing result of testaction 3 |
|
1485 //! 2.1 straight lines connected by two consecutive points in the point array and from the last point to the first one, these lines are drawn with the pen color TRgb(0,0,0) |
|
1486 //! from (30,40) to (50,60), from (50,60) to (60,50), from (60,50) to (70,70), from (70,70) to (90,40), from (90,40) to (30,40) |
|
1487 //! 2.2 inside the drawing polygon is drawn/filled with the brush color TRgb(255,0,0) |
|
1488 //! only check sample points: (60,45) |
|
1489 //! 2.3 outside the drawing polygon should not be drawn, with the background color TRgb(255,255,255) |
|
1490 //! only check sample points: (60,30) |
|
1491 //! @SYMTestType CIT |
|
1492 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1493 CREATE_OBJECT RWsSession ws |
|
1494 CREATE_OBJECT CWsScreenDevice scrdev |
|
1495 CREATE_OBJECT CWindowGc wingc |
|
1496 CREATE_OBJECT RWindowGroup wingrp |
|
1497 CREATE_OBJECT RWindow win |
|
1498 COMMAND ws new |
|
1499 COMMAND ws Connect |
|
1500 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1501 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1502 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1503 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1504 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1505 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1506 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1507 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1508 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1509 COMMAND win Activate |
|
1510 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1511 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1512 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1513 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1514 |
|
1515 COMMAND win BeginRedraw |
|
1516 COMMAND wingc DrawPolygon GRAPHICS-WSERV-WindowGc-PublicApi-0040-0001-DrawPolygon_command003 |
|
1517 COMMAND win EndRedraw |
|
1518 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0040-0001-checkLineColor_command007 |
|
1519 COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0040-0001-checkPixels_command008 |
|
1520 |
|
1521 COMMAND wingc Deactivate |
|
1522 COMMAND win Close |
|
1523 COMMAND wingrp Close |
|
1524 COMMAND wingc ~ |
|
1525 COMMAND scrdev ~ |
|
1526 COMMAND ws Close |
|
1527 END_TEST_BLOCK |
|
1528 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0040 |
|
1529 |
|
1530 |
|
1531 |
|
1532 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0041 |
|
1533 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0041 |
|
1534 //! @SYMAPI CWindowGc |
|
1535 //! @SYMAuthor Victor Liu |
|
1536 //! @SYMCreationDate 02/01/2007 |
|
1537 //! @SYMTestCaseDesc DrawBitmap(const TPoint &aTopLeft, const CFbsBitmap *aDevice): draw a bitmap at the specified point |
|
1538 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw & Invalidate, |
|
1539 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect, CFbsBitmap::Load, TLinearDDA |
|
1540 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1541 //! 1.1 New and connect a RWsSession |
|
1542 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1543 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1544 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1545 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1546 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1547 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1548 //! 1.7 Activate the CWindowGc to the RWindow |
|
1549 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1550 //! 2. New and Load a CFbsBitmap, and SetSizeInTwips to its appropriate size |
|
1551 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1552 //! 4. Execute DrawBitmap to draw the bitmap at the specified point, e.g. TPoint(0,0) |
|
1553 //! 5. RWindow::EndRedraw() and check if drawing result as expected |
|
1554 //! !!! Issue: this DrawBitmap result is not displayed (by manual test) |
|
1555 //! 6. Deactive RWindow, destruct and close all objects used |
|
1556 //! @SYMTestStatus Implemented |
|
1557 //! @SYMTestPriority Critical |
|
1558 //! @SYMTestExpectedResults Draw a bitmap at the specified point without causing panic |
|
1559 //! @SYMTestType CIT |
|
1560 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1561 CREATE_OBJECT RWsSession ws |
|
1562 CREATE_OBJECT CWsScreenDevice scrdev |
|
1563 CREATE_OBJECT CWindowGc wingc |
|
1564 CREATE_OBJECT RWindowGroup wingrp |
|
1565 CREATE_OBJECT RWindow win |
|
1566 COMMAND ws new |
|
1567 COMMAND ws Connect |
|
1568 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1569 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1570 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1571 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1572 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1573 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1574 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1575 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1576 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1577 COMMAND win Activate |
|
1578 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1579 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1580 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1581 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1582 |
|
1583 CREATE_OBJECT CFbsBitmap fbsbmp |
|
1584 COMMAND fbsbmp new |
|
1585 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-Load_command002 |
|
1586 COMMAND fbsbmp SetSizeInTwips GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-SetSizeInTwips_command003 |
|
1587 COMMAND fbsbmp SizeInTwips |
|
1588 COMMAND fbsbmp SizeInPixels |
|
1589 COMMAND fbsbmp DisplayMode |
|
1590 COMMAND win BeginRedraw |
|
1591 COMMAND wingc DrawBitmap GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-DrawBitmap_command010 |
|
1592 COMMAND win EndRedraw |
|
1593 COMMAND fbsbmp ~ |
|
1594 |
|
1595 COMMAND wingc Deactivate |
|
1596 COMMAND win Close |
|
1597 COMMAND wingrp Close |
|
1598 COMMAND wingc ~ |
|
1599 COMMAND scrdev ~ |
|
1600 COMMAND ws Close |
|
1601 END_TEST_BLOCK |
|
1602 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0041 |
|
1603 |
|
1604 |
|
1605 |
|
1606 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0042 |
|
1607 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0042 |
|
1608 //! @SYMAPI CWindowGc |
|
1609 //! @SYMAuthor Victor Liu |
|
1610 //! @SYMCreationDate 03/01/2007 |
|
1611 //! @SYMTestCaseDesc DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice): draw a bitmap in the specified rectangle |
|
1612 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw & Invalidate, |
|
1613 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect, CFbsBitmap::Load, TLinearDDA |
|
1614 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1615 //! 1.1 New and connect a RWsSession |
|
1616 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1617 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1618 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1619 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1620 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1621 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1622 //! 1.7 Activate the CWindowGc to the RWindow |
|
1623 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1624 //! 2. New and Load a CFbsBitmap |
|
1625 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1626 //! 4. Execute DrawBitmap to draw the bitmap with in the specified destination rectangle, e.g. TRect((10,10),(110,110)) |
|
1627 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
1628 //! 6. Deactive RWindow, destruct and close all objects used |
|
1629 //! @SYMTestStatus Implemented |
|
1630 //! @SYMTestPriority Critical |
|
1631 //! @SYMTestExpectedResults 1. Draw a bitmap in the specified rectangle without causing panic |
|
1632 //! 2. the drawing result matched with the scaled bitmap content |
|
1633 //! 2.1 the full bitmap is scaled into the specified destination rectangle on the screen |
|
1634 //! for each destination pixel, use TLinearDDA to map back to its source point within the bitmap |
|
1635 //! 2.2 only the following sub-areas within the destination rectangle are compared |
|
1636 //! TRect((0,0),(20,20)), ((80,0),(100,20)), ((0,80),(20,100)), ((80,80),(100,100)) |
|
1637 //! 2.3 check if the destination pixel color is the same as the color of its mapped source point |
|
1638 //! @SYMTestType CIT |
|
1639 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1640 CREATE_OBJECT RWsSession ws |
|
1641 CREATE_OBJECT CWsScreenDevice scrdev |
|
1642 CREATE_OBJECT CWindowGc wingc |
|
1643 CREATE_OBJECT RWindowGroup wingrp |
|
1644 CREATE_OBJECT RWindow win |
|
1645 COMMAND ws new |
|
1646 COMMAND ws Connect |
|
1647 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1648 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1649 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1650 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1651 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1652 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1653 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1654 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1655 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1656 COMMAND win Activate |
|
1657 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1658 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1659 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1660 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1661 |
|
1662 CREATE_OBJECT CFbsBitmap fbsbmp |
|
1663 COMMAND fbsbmp new |
|
1664 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0042-0001-Load_command002 |
|
1665 COMMAND fbsbmp SizeInTwips |
|
1666 COMMAND fbsbmp SizeInPixels |
|
1667 COMMAND fbsbmp DisplayMode |
|
1668 COMMAND win BeginRedraw |
|
1669 COMMAND wingc DrawBitmap GRAPHICS-WSERV-WindowGc-PublicApi-0042-0001-DrawBitmap_command009 |
|
1670 COMMAND win EndRedraw |
|
1671 COMMAND fbsbmp ~ |
|
1672 |
|
1673 COMMAND wingc Deactivate |
|
1674 COMMAND win Close |
|
1675 COMMAND wingrp Close |
|
1676 COMMAND wingc ~ |
|
1677 COMMAND scrdev ~ |
|
1678 COMMAND ws Close |
|
1679 END_TEST_BLOCK |
|
1680 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0042 |
|
1681 |
|
1682 |
|
1683 |
|
1684 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0043 |
|
1685 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0043 |
|
1686 //! @SYMAPI CWindowGc |
|
1687 //! @SYMAuthor Victor Liu |
|
1688 //! @SYMCreationDate 03/01/2007 |
|
1689 //! @SYMTestCaseDesc DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice, const TRect &aSourceRect): draw a bitmap from a rectangle into another specified rectangle |
|
1690 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw & Invalidate, |
|
1691 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect, CFbsBitmap::Load, TLinearDDA |
|
1692 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1693 //! 1.1 New and connect a RWsSession |
|
1694 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1695 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1696 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1697 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1698 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1699 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1700 //! 1.7 Activate the CWindowGc to the RWindow |
|
1701 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1702 //! 2. New and Load a CFbsBitmap |
|
1703 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1704 //! 4. Execute DrawBitmap to draw the bitmap from a rectangle into another specified rectangle |
|
1705 //! e.g. draw bitmap within TRect((20,21),(100,101)) into destination TRect((10,10),(170,170)) on the screen |
|
1706 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
1707 //! 6. Deactive RWindow, destruct and close all objects used |
|
1708 //! @SYMTestStatus Implemented |
|
1709 //! @SYMTestPriority Critical |
|
1710 //! @SYMTestExpectedResults 1. Draw a bitmap from a rectangle into another specified rectangle without causing panic |
|
1711 //! 2. the drawing result matched with the scaled bitmap content |
|
1712 //! 2.1 the bitmap within source rectangle is scaled into the specified destination rectangle on the screen |
|
1713 //! for each destination pixel, use TLinearDDA to map back to its source point within the bitmap |
|
1714 //! 2.2 only the following sub-areas within the destination rectangle are compared |
|
1715 //! TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) |
|
1716 //! 2.3 check if the destination pixel color is the same as the color of its mapped source point |
|
1717 //! @SYMTestType CIT |
|
1718 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1719 CREATE_OBJECT RWsSession ws |
|
1720 CREATE_OBJECT CWsScreenDevice scrdev |
|
1721 CREATE_OBJECT CWindowGc wingc |
|
1722 CREATE_OBJECT RWindowGroup wingrp |
|
1723 CREATE_OBJECT RWindow win |
|
1724 COMMAND ws new |
|
1725 COMMAND ws Connect |
|
1726 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1727 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1728 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1729 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1730 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1731 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1732 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1733 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1734 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1735 COMMAND win Activate |
|
1736 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1737 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1738 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1739 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1740 |
|
1741 CREATE_OBJECT CFbsBitmap fbsbmp |
|
1742 COMMAND fbsbmp new |
|
1743 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0043-0001-Load_command002 |
|
1744 COMMAND fbsbmp SizeInTwips |
|
1745 COMMAND fbsbmp SizeInPixels |
|
1746 COMMAND fbsbmp DisplayMode |
|
1747 COMMAND win BeginRedraw |
|
1748 COMMAND wingc DrawBitmap GRAPHICS-WSERV-WindowGc-PublicApi-0043-0001-DrawBitmap_command009 |
|
1749 COMMAND win EndRedraw |
|
1750 COMMAND fbsbmp ~ |
|
1751 |
|
1752 COMMAND wingc Deactivate |
|
1753 COMMAND win Close |
|
1754 COMMAND wingrp Close |
|
1755 COMMAND wingc ~ |
|
1756 COMMAND scrdev ~ |
|
1757 COMMAND ws Close |
|
1758 END_TEST_BLOCK |
|
1759 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0043 |
|
1760 |
|
1761 |
|
1762 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0044 |
|
1763 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0044 |
|
1764 //! @SYMAPI CWindowGc |
|
1765 //! @SYMAuthor Victor Liu |
|
1766 //! @SYMCreationDate 11/04/2007 |
|
1767 //! @SYMTestCaseDesc DrawBitmapMasked(const TRect &aDestRect, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask): draw a specified rectangle from a bitmap and its mask into another rectangle |
|
1768 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw & Invalidate, |
|
1769 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect, CFbsBitmap::Load, TLinearDDA |
|
1770 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1771 //! 1.1 New and connect a RWsSession |
|
1772 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1773 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1774 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1775 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1776 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1777 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1778 //! 1.7 Activate the CWindowGc to the RWindow |
|
1779 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1780 //! 2. New and Load a CFbsBitmap |
|
1781 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1782 //! 4. Execute DrawBitmapMasked to draw a specified rectangle from a bitmap and its mask into another rectangle |
|
1783 //! e.g. draw bitmap within TRect((20,20),(100,100)) into destination TRect((10,10),(170,170)) on the screen |
|
1784 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
1785 //! 6. Deactive RWindow, destruct and close all objects used |
|
1786 //! @SYMTestStatus Implemented |
|
1787 //! @SYMTestPriority Critical |
|
1788 //! @SYMTestExpectedResults 1. Draw a specified rectangle from a bitmap and its mask into another rectangle without causing panic |
|
1789 //! 2. the drawing result matched with the scaled masked bitmap content |
|
1790 //! 2.1 the bitmap within source rectangle is scaled into the specified destination rectangle on the screen |
|
1791 //! for each destination pixel, use TLinearDDA to map back to its source point within the bitmap |
|
1792 //! 2.2 only the following sub-areas within the destination rectangle are compared |
|
1793 //! TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) |
|
1794 //! 2.3 if the mapped source point is masked, check if the destination pixel color is the default background color, i.e. TRgb(255,255,255) |
|
1795 //! 2.4 if the mapped source point is not masked, check if the destination pixel color is the same as the color of its mapped source point |
|
1796 //! @SYMTestType CIT |
|
1797 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1798 CREATE_OBJECT RWsSession ws |
|
1799 CREATE_OBJECT CWsScreenDevice scrdev |
|
1800 CREATE_OBJECT CWindowGc wingc |
|
1801 CREATE_OBJECT RWindowGroup wingrp |
|
1802 CREATE_OBJECT RWindow win |
|
1803 COMMAND ws new |
|
1804 COMMAND ws Connect |
|
1805 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1806 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1807 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1808 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1809 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1810 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1811 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1812 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1813 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1814 COMMAND win Activate |
|
1815 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1816 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1817 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1818 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1819 |
|
1820 CREATE_OBJECT CFbsBitmap fbsbmp |
|
1821 CREATE_OBJECT CFbsBitmap fbsmaskbmp |
|
1822 COMMAND fbsbmp new |
|
1823 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-Load_command002 |
|
1824 COMMAND fbsbmp SizeInTwips |
|
1825 COMMAND fbsbmp SizeInPixels |
|
1826 COMMAND fbsbmp DisplayMode |
|
1827 COMMAND win BeginRedraw |
|
1828 COMMAND fbsmaskbmp new |
|
1829 COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-Load_command010 |
|
1830 COMMAND fbsmaskbmp SizeInTwips |
|
1831 COMMAND fbsmaskbmp SizeInPixels |
|
1832 COMMAND fbsmaskbmp DisplayMode |
|
1833 COMMAND wingc DrawBitmapMasked GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-DrawBitmapMasked_command015 |
|
1834 COMMAND win EndRedraw |
|
1835 COMMAND fbsbmp ~ |
|
1836 COMMAND fbsmaskbmp ~ |
|
1837 |
|
1838 COMMAND wingc Deactivate |
|
1839 COMMAND win Close |
|
1840 COMMAND wingrp Close |
|
1841 COMMAND wingc ~ |
|
1842 COMMAND scrdev ~ |
|
1843 COMMAND ws Close |
|
1844 END_TEST_BLOCK |
|
1845 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0044 |
|
1846 |
|
1847 |
|
1848 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0045 |
|
1849 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0045 |
|
1850 //! @SYMAPI CWindowGc |
|
1851 //! @SYMAuthor Victor Liu |
|
1852 //! @SYMCreationDate 12/04/2007 |
|
1853 //! @SYMTestCaseDesc DrawBitmapMasked(const TRect &aDestRect, const CWsBitmap *aBitmap, const TRect &aSourceRect, const CWsBitmap *aMaskBitmap, TBool aInvertMask): draw a specified rectangle from a wserv bitmap and its mask into another rectangle |
|
1854 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw & Invalidate, |
|
1855 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect, CFbsBitmap::Load, TLinearDDA |
|
1856 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1857 //! 1.1 New and connect a RWsSession |
|
1858 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1859 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1860 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1861 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1862 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1863 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1864 //! 1.7 Activate the CWindowGc to the RWindow |
|
1865 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1866 //! 2. New and Load a CFbsBitmap |
|
1867 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
1868 //! 4. Execute DrawBitmapMasked to draw a specified rectangle from a wserv bitmap and its mask into another rectangle |
|
1869 //! e.g. draw bitmap within TRect((20,20),(90,90)) into destination TRect((10,10),(170,170)) on the screen |
|
1870 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
1871 //! 6. Deactive RWindow, destruct and close all objects used |
|
1872 //! @SYMTestStatus Implemented |
|
1873 //! @SYMTestPriority Critical |
|
1874 //! @SYMTestExpectedResults 1. Draw a specified rectangle from a wserv bitmap and its mask into another rectangle without causing panic |
|
1875 //! 2. the drawing result matched with the scaled masked bitmap content |
|
1876 //! 2.1 the bitmap within source rectangle is scaled into the specified destination rectangle on the screen |
|
1877 //! for each destination pixel, use TLinearDDA to map back to its source point within the bitmap |
|
1878 //! 2.2 only the following sub-areas within the destination rectangle are compared |
|
1879 //! TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) |
|
1880 //! 2.3 if the mapped source point is masked, check if the destination pixel color is the default background color, i.e. TRgb(255,255,255) |
|
1881 //! 2.4 if the mapped source point is not masked, check if the destination pixel color is the same as the color of its mapped source point |
|
1882 //! @SYMTestType CIT |
|
1883 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1884 CREATE_OBJECT RWsSession ws |
|
1885 CREATE_OBJECT CWsScreenDevice scrdev |
|
1886 CREATE_OBJECT CWindowGc wingc |
|
1887 CREATE_OBJECT RWindowGroup wingrp |
|
1888 CREATE_OBJECT RWindow win |
|
1889 COMMAND ws new |
|
1890 COMMAND ws Connect |
|
1891 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1892 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1893 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1894 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1895 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1896 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1897 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1898 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1899 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1900 COMMAND win Activate |
|
1901 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1902 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1903 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1904 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1905 |
|
1906 CREATE_OBJECT CWsBitmap wsbmp |
|
1907 CREATE_OBJECT CWsBitmap wsmaskbmp |
|
1908 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-new_command001 |
|
1909 COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-Load_command002 |
|
1910 COMMAND wsmaskbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-new_command004 |
|
1911 COMMAND wsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-Load_command005 |
|
1912 COMMAND win BeginRedraw |
|
1913 COMMAND wingc DrawBitmapMasked GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-DrawBitmapMasked_command009 |
|
1914 COMMAND win EndRedraw |
|
1915 COMMAND wsbmp ~ |
|
1916 COMMAND wsmaskbmp ~ |
|
1917 |
|
1918 COMMAND wingc Deactivate |
|
1919 COMMAND win Close |
|
1920 COMMAND wingrp Close |
|
1921 COMMAND wingc ~ |
|
1922 COMMAND scrdev ~ |
|
1923 COMMAND ws Close |
|
1924 END_TEST_BLOCK |
|
1925 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0045 |
|
1926 |
|
1927 |
|
1928 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0048 |
|
1929 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0048 |
|
1930 //! @SYMAPI CWindowGc |
|
1931 //! @SYMAuthor Victor Liu |
|
1932 //! @SYMCreationDate 23/01/2007 |
|
1933 //! @SYMTestCaseDesc Clear: clear the whole window |
|
1934 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw & Invalidate, |
|
1935 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect |
|
1936 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
1937 //! 1.1 New and connect a RWsSession |
|
1938 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1939 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1940 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1941 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1942 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
1943 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1944 //! 1.7 Activate the CWindowGc to the RWindow |
|
1945 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1946 //! 2. Use RWindow::BeginRedraw() & EndRedraw() to display the window before clear |
|
1947 //! and check if the screen is displayed in the background color TRgb(255,255,255) |
|
1948 //! 3. Use RWindow::Invalidate & BeginRedraw() to invalidate the whole window and start another redraw cycle |
|
1949 //! 4. Execute Clear to clear the whole window with the brush color TRgb(255,0,0) |
|
1950 //! 5. Use RWindow::EndRedraw() to end redraw cycle and disaply the cleared window |
|
1951 //! and check if cleared result as expected |
|
1952 //! 6. Deactive RWindow, destruct and close all objects used |
|
1953 //! @SYMTestStatus Implemented |
|
1954 //! @SYMTestPriority Critical |
|
1955 //! @SYMTestExpectedResults 1. Clear the rectangle area of a window without causing panic |
|
1956 //! 2. check the following testing rectangle area within the window |
|
1957 //! TRect((0,0),(20,20)), ((180,0),(200,20)), ((0,180),(20,200)), ((180,180),(200,200)) |
|
1958 //! 2.1 before clear the window, all rectangle areas are in the background color TRgb(255,255,255) |
|
1959 //! 2.2 after clear the window, all rectangle areas are in the brush color TRgb(255,0,0) |
|
1960 //! @SYMTestType CIT |
|
1961 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
1962 CREATE_OBJECT RWsSession ws |
|
1963 CREATE_OBJECT CWsScreenDevice scrdev |
|
1964 CREATE_OBJECT CWindowGc wingc |
|
1965 CREATE_OBJECT RWindowGroup wingrp |
|
1966 CREATE_OBJECT RWindow win |
|
1967 COMMAND ws new |
|
1968 COMMAND ws Connect |
|
1969 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
1970 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
1971 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
1972 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
1973 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
1974 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
1975 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
1976 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1977 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
1978 COMMAND win Activate |
|
1979 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
1980 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
1981 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
1982 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
1983 |
|
1984 COMMAND win BeginRedraw |
|
1985 COMMAND win EndRedraw |
|
1986 COMMAND win Invalidate |
|
1987 COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0048-0001-checkRectColor_command005 |
|
1988 COMMAND win BeginRedraw |
|
1989 COMMAND wingc Clear |
|
1990 COMMAND win EndRedraw |
|
1991 COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0048-0001-checkRectColor_command013 |
|
1992 |
|
1993 COMMAND wingc Deactivate |
|
1994 COMMAND win Close |
|
1995 COMMAND wingrp Close |
|
1996 COMMAND wingc ~ |
|
1997 COMMAND scrdev ~ |
|
1998 COMMAND ws Close |
|
1999 END_TEST_BLOCK |
|
2000 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0048 |
|
2001 |
|
2002 |
|
2003 |
|
2004 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0049 |
|
2005 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0049 |
|
2006 //! @SYMAPI CWindowGc |
|
2007 //! @SYMAuthor Victor Liu |
|
2008 //! @SYMCreationDate 23/01/2007 |
|
2009 //! @SYMTestCaseDesc Clear(const TRect &aRect): clear a rectangle area of a window |
|
2010 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
2011 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle |
|
2012 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2013 //! 1.1 New and connect a RWsSession |
|
2014 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2015 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2016 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2017 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2018 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2019 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2020 //! 1.7 Activate the CWindowGc to the RWindow |
|
2021 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2022 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
2023 //! 3. Execute Clear to clear the rectangle area ((11,10),(61,60)) with the brush color TRgb(255,0,0) |
|
2024 //! 4. Use RWindow::EndRedraw() to end redraw cycle and disaply the cleared rectangle |
|
2025 //! and check if cleared result as expected |
|
2026 //! 5. Deactive RWindow, destruct and close all objects used |
|
2027 //! @SYMTestStatus Implemented |
|
2028 //! @SYMTestPriority Critical |
|
2029 //! @SYMTestExpectedResults 1. Clear the rectangle area of a window without causing panic |
|
2030 //! 2. the cleared screen result |
|
2031 //! 2.1 inside the clearing rectangle ((11,10),(41,40)) is drawn/filled with the brush color TRgb(255,0,0) |
|
2032 //! 2.2 the rectangle area ((0,0),(11,50)),((41,0),(50,50)), ((11,0),(41,10)), ((11,40),(41,50)) |
|
2033 //! outside (left, right, top, bottom of) the clearing rectangle is not drawn, with the background color TRgb(255,255,255) |
|
2034 //! @SYMTestType CIT |
|
2035 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2036 CREATE_OBJECT RWsSession ws |
|
2037 CREATE_OBJECT CWsScreenDevice scrdev |
|
2038 CREATE_OBJECT CWindowGc wingc |
|
2039 CREATE_OBJECT RWindowGroup wingrp |
|
2040 CREATE_OBJECT RWindow win |
|
2041 COMMAND ws new |
|
2042 COMMAND ws Connect |
|
2043 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2044 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2045 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2046 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2047 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2048 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2049 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2050 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2051 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2052 COMMAND win Activate |
|
2053 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2054 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2055 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2056 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2057 |
|
2058 COMMAND win BeginRedraw |
|
2059 COMMAND wingc Clear GRAPHICS-WSERV-WindowGc-PublicApi-0049-0001-Clear_command003 |
|
2060 COMMAND win EndRedraw |
|
2061 COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0049-0001-checkRectColor_command007 |
|
2062 |
|
2063 COMMAND wingc Deactivate |
|
2064 COMMAND win Close |
|
2065 COMMAND wingrp Close |
|
2066 COMMAND wingc ~ |
|
2067 COMMAND scrdev ~ |
|
2068 COMMAND ws Close |
|
2069 END_TEST_BLOCK |
|
2070 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0049 |
|
2071 |
|
2072 |
|
2073 |
|
2074 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0050 |
|
2075 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0050 |
|
2076 //! @SYMAPI CWindowGc |
|
2077 //! @SYMAuthor Victor Liu |
|
2078 //! @SYMCreationDate 24/01/2007 |
|
2079 //! @SYMTestCaseDesc CopyRect(const TPoint &anOffset, const TRect &aRect): copy a rectangle area from the screen into the window |
|
2080 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
2081 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect |
|
2082 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2083 //! 1.1 New and connect a RWsSession |
|
2084 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2085 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2086 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2087 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2088 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2089 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2090 //! 1.7 Activate the CWindowGc to the RWindow |
|
2091 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2092 //! 2. Use RWindow::BeginRedraw(), draw a rectangle ((10,10),(40,40)) |
|
2093 //! then RWindow::EndRedraw() to display the drawing result |
|
2094 //! 3. Execute CopyRect ((0,10),(30,40)) with offset (20,10) |
|
2095 //! i.e. the rectangle ((10,10),(30,40)) area is copied to (20,20)=top-left point(0,10)+offset(20,10) |
|
2096 //! 4. check if the drawing result plus the copy result as expected |
|
2097 //! 5. Deactive RWindow, destruct and close all objects used |
|
2098 //! @SYMTestStatus Implemented |
|
2099 //! @SYMTestPriority Critical |
|
2100 //! @SYMTestExpectedResults 1. Copy the rectangle area of a window without causing panic |
|
2101 //! 2. the drawing result: rectangle ((10,10),(40,40)) + copy-to rectangle ((20,20),(50,50)) |
|
2102 //! 2.1 the 4 border lines of the drawing rectangle but outside the copy-to rectangle is drawn with the pen color TRgb(0,0,0) |
|
2103 //! from (10,10) to (10,40), from (10,10) to (40,10), from (10,39) to (20,39), from (39,10) to (39,20) |
|
2104 //! 2.2 inside the drawing rectangle but outside the copy-to rectangle is drawn/filled with the brush color TRgb(255,0,0) |
|
2105 //! TRect((11,11),(20,39)), ((20,11),(39,19)) |
|
2106 //! 2.3 inside the copy-to rectangle and copy from original border lines are drawn with the pen color TRgb(0,0,0) |
|
2107 //! from (30,20) to (50,20), from (30,20) to (30,50), from (30,49) to (50,49) |
|
2108 //! 2.4 inside the copy-to rectangle and copy from inner of the drawing rectangle |
|
2109 //! TRect((21,31),(49,49)) is drawn/filled with the brush color TRgb(255,0,0) |
|
2110 //! 2.5 inside the copy-to rectangle and copy from outer of the drawing rectangle |
|
2111 //! TRect((20,20),(30,50)) are not drawn, with the background color TRgb(255,255,255) |
|
2112 //! 2.6 outside both the drawing rectangle and copy-to rectangle is not drawn, with the background color TRgb(255,255,255) |
|
2113 //! TRect((0,0),(10,60)), ((50,0),(60,60)), ((10,0),(50,10)), ((10,50),(50,60)), ((40,10),(50,20)), ((10,40),(20,50)) |
|
2114 //! @SYMTestType CIT |
|
2115 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2116 CREATE_OBJECT RWsSession ws |
|
2117 CREATE_OBJECT CWsScreenDevice scrdev |
|
2118 CREATE_OBJECT CWindowGc wingc |
|
2119 CREATE_OBJECT RWindowGroup wingrp |
|
2120 CREATE_OBJECT RWindow win |
|
2121 COMMAND ws new |
|
2122 COMMAND ws Connect |
|
2123 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2124 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2125 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2126 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2127 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2128 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2129 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2130 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2131 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2132 COMMAND win Activate |
|
2133 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2134 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2135 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2136 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2137 |
|
2138 COMMAND win BeginRedraw |
|
2139 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-DrawRect_command003 |
|
2140 COMMAND win EndRedraw |
|
2141 COMMAND wingc CopyRect GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-CopyRect_command007 |
|
2142 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-checkLineColor_command009 |
|
2143 COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-checkRectColor_command010 |
|
2144 |
|
2145 COMMAND wingc Deactivate |
|
2146 COMMAND win Close |
|
2147 COMMAND wingrp Close |
|
2148 COMMAND wingc ~ |
|
2149 COMMAND scrdev ~ |
|
2150 COMMAND ws Close |
|
2151 END_TEST_BLOCK |
|
2152 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0050 |
|
2153 |
|
2154 |
|
2155 |
|
2156 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0051 |
|
2157 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0051 |
|
2158 //! @SYMAPI CWindowGc |
|
2159 //! @SYMAuthor Victor Liu |
|
2160 //! @SYMCreationDate 10/01/2007 |
|
2161 //! @SYMTestCaseDesc BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap): perform a bitmap block transfer |
|
2162 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
2163 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load & SetSizeInTwips |
|
2164 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2165 //! 1.1 New and connect a RWsSession |
|
2166 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2167 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2168 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2169 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2170 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2171 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2172 //! 1.7 Activate the CWindowGc to the RWindow |
|
2173 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2174 //! . New and Load a CFbsBitmap |
|
2175 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
2176 //! 4. Execute BitBlt to perform a bitmap block transfer to the specified point (10,11) |
|
2177 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
2178 //! 6. Deactive RWindow, destruct and close all objects used |
|
2179 //! @SYMTestStatus Implemented |
|
2180 //! @SYMTestPriority Critical |
|
2181 //! @SYMTestExpectedResults 1. Perform a bitmap block transfer without causing panic |
|
2182 //! 2. the drawing result of bitmap block transfer matched with the bitmap content |
|
2183 //! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((120,120),(160,160)) within the source rectangle |
|
2184 //! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen |
|
2185 //! @SYMTestType CIT |
|
2186 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2187 CREATE_OBJECT RWsSession ws |
|
2188 CREATE_OBJECT CWsScreenDevice scrdev |
|
2189 CREATE_OBJECT CWindowGc wingc |
|
2190 CREATE_OBJECT RWindowGroup wingrp |
|
2191 CREATE_OBJECT RWindow win |
|
2192 COMMAND ws new |
|
2193 COMMAND ws Connect |
|
2194 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2195 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2196 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2197 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2198 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2199 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2200 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2201 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2202 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2203 COMMAND win Activate |
|
2204 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2205 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2206 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2207 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2208 |
|
2209 CREATE_OBJECT CFbsBitmap fbsbmp |
|
2210 COMMAND fbsbmp new |
|
2211 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-Load_command002 |
|
2212 COMMAND fbsbmp SizeInTwips |
|
2213 COMMAND fbsbmp SizeInPixels |
|
2214 COMMAND fbsbmp DisplayMode |
|
2215 COMMAND win BeginRedraw |
|
2216 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-BitBlt_command009 |
|
2217 COMMAND win EndRedraw |
|
2218 COMMAND fbsbmp ~ |
|
2219 |
|
2220 COMMAND wingc Deactivate |
|
2221 COMMAND win Close |
|
2222 COMMAND wingrp Close |
|
2223 COMMAND wingc ~ |
|
2224 COMMAND scrdev ~ |
|
2225 COMMAND ws Close |
|
2226 END_TEST_BLOCK |
|
2227 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0051 |
|
2228 |
|
2229 |
|
2230 |
|
2231 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0052 |
|
2232 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0052 |
|
2233 //! @SYMAPI CWindowGc |
|
2234 //! @SYMAuthor Victor Liu |
|
2235 //! @SYMCreationDate 10/01/2007 |
|
2236 //! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CFbsBitmap *aBitmap, const TRect &aSource): perform a bitmap block transfer of a rectangular piece of a bitmap |
|
2237 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
2238 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load & SetSizeInTwips |
|
2239 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2240 //! 1.1 New and connect a RWsSession |
|
2241 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2242 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2243 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2244 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2245 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2246 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2247 //! 1.7 Activate the CWindowGc to the RWindow |
|
2248 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2249 //! 2. New and Load a CFbsBitmap, and SetSizeInTwips to its appropriate size |
|
2250 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
2251 //! 4. Execute BitBlt to perform a bitmap block transfer of the rectangular piece ((21,20),(101,100)) to the specified point (10,11) |
|
2252 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
2253 //! 6. Deactive RWindow, destruct and close all objects used |
|
2254 //! @SYMTestStatus Implemented |
|
2255 //! @SYMTestPriority Critical |
|
2256 //! @SYMTestExpectedResults 1. Perform a bitmap block transfer of the rectangular piece without causing panic |
|
2257 //! 2. the drawing result of bitmap block transfer matched with the bitmap content |
|
2258 //! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((40,40),(80,80)) within the source rectangle |
|
2259 //! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen |
|
2260 //! @SYMTestType CIT |
|
2261 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2262 CREATE_OBJECT RWsSession ws |
|
2263 CREATE_OBJECT CWsScreenDevice scrdev |
|
2264 CREATE_OBJECT CWindowGc wingc |
|
2265 CREATE_OBJECT RWindowGroup wingrp |
|
2266 CREATE_OBJECT RWindow win |
|
2267 COMMAND ws new |
|
2268 COMMAND ws Connect |
|
2269 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2270 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2271 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2272 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2273 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2274 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2275 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2276 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2277 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2278 COMMAND win Activate |
|
2279 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2280 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2281 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2282 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2283 |
|
2284 CREATE_OBJECT CFbsBitmap fbsbmp |
|
2285 COMMAND fbsbmp new |
|
2286 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-Load_command002 |
|
2287 COMMAND fbsbmp SizeInTwips |
|
2288 COMMAND fbsbmp SizeInPixels |
|
2289 COMMAND fbsbmp DisplayMode |
|
2290 COMMAND win BeginRedraw |
|
2291 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-BitBlt_command009 |
|
2292 COMMAND win EndRedraw |
|
2293 COMMAND fbsbmp ~ |
|
2294 |
|
2295 COMMAND wingc Deactivate |
|
2296 COMMAND win Close |
|
2297 COMMAND wingrp Close |
|
2298 COMMAND wingc ~ |
|
2299 COMMAND scrdev ~ |
|
2300 COMMAND ws Close |
|
2301 END_TEST_BLOCK |
|
2302 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0052 |
|
2303 |
|
2304 |
|
2305 |
|
2306 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0053 |
|
2307 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0053 |
|
2308 //! @SYMAPI CWindowGc |
|
2309 //! @SYMAuthor Victor Liu |
|
2310 //! @SYMCreationDate 31/01/2007 |
|
2311 //! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask): perform a masked bitmap block transfer of a rectangular piece of a bitmap |
|
2312 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
2313 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load |
|
2314 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2315 //! 1.1 New and connect a RWsSession |
|
2316 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2317 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2318 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2319 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2320 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2321 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2322 //! 1.7 Activate the CWindowGc to the RWindow |
|
2323 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2324 //! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap |
|
2325 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
2326 //! 4. Execute BitBltMasked to perform a masked bitmap block transfer of the rectangular piece ((0,0),(180,180)) to the specified point (10,11) |
|
2327 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
2328 //! 6. Deactive RWindow, destruct and close all objects used |
|
2329 //! @SYMTestStatus Implemented |
|
2330 //! @SYMTestPriority Critical |
|
2331 //! @SYMTestExpectedResults 1. Perform a masked bitmap block transfer of the rectangular piece without causing panic |
|
2332 //! 2. the drawing result of masked bitmap block transfer matched with the bitmap content |
|
2333 //! 2.1 only compare sub-areas of TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) within the source rectangle |
|
2334 //! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen |
|
2335 //! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) |
|
2336 //! @SYMTestType CIT |
|
2337 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2338 CREATE_OBJECT RWsSession ws |
|
2339 CREATE_OBJECT CWsScreenDevice scrdev |
|
2340 CREATE_OBJECT CWindowGc wingc |
|
2341 CREATE_OBJECT RWindowGroup wingrp |
|
2342 CREATE_OBJECT RWindow win |
|
2343 COMMAND ws new |
|
2344 COMMAND ws Connect |
|
2345 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2346 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2347 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2348 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2349 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2350 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2351 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2352 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2353 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2354 COMMAND win Activate |
|
2355 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2356 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2357 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2358 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2359 |
|
2360 CREATE_OBJECT CFbsBitmap fbsbmp |
|
2361 CREATE_OBJECT CFbsBitmap fbsmaskbmp |
|
2362 COMMAND fbsbmp new |
|
2363 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command002 |
|
2364 COMMAND fbsbmp SizeInTwips |
|
2365 COMMAND fbsbmp SizeInPixels |
|
2366 COMMAND fbsbmp DisplayMode |
|
2367 COMMAND fbsmaskbmp new |
|
2368 COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command008 |
|
2369 COMMAND win BeginRedraw |
|
2370 COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-BitBltMasked_command012 |
|
2371 COMMAND win EndRedraw |
|
2372 COMMAND fbsbmp ~ |
|
2373 COMMAND fbsmaskbmp ~ |
|
2374 |
|
2375 COMMAND wingc Deactivate |
|
2376 COMMAND win Close |
|
2377 COMMAND wingrp Close |
|
2378 COMMAND wingc ~ |
|
2379 COMMAND scrdev ~ |
|
2380 COMMAND ws Close |
|
2381 END_TEST_BLOCK |
|
2382 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0053 |
|
2383 |
|
2384 |
|
2385 |
|
2386 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0054 |
|
2387 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0054 |
|
2388 //! @SYMAPI CWindowGc |
|
2389 //! @SYMAuthor Victor Liu |
|
2390 //! @SYMCreationDate 11/01/2007 |
|
2391 //! @SYMTestCaseDesc BitBlt(const TPoint &aPoint, const CWsBitmap *aBitmap): perform a bitmap block transfer on a CWsBitmap |
|
2392 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
2393 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load |
|
2394 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2395 //! 1.1 New and connect a RWsSession |
|
2396 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2397 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2398 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2399 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2400 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2401 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2402 //! 1.7 Activate the CWindowGc to the RWindow |
|
2403 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2404 //! 2. New and Load a CWsBitmap |
|
2405 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
2406 //! 4. Execute BitBlt to perform a bitmap block transfer of the CWsBitmap to point (10,11) |
|
2407 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
2408 //! 6. Deactive RWindow, destruct and close all objects used |
|
2409 //! @SYMTestStatus Implemented |
|
2410 //! @SYMTestPriority Critical |
|
2411 //! @SYMTestExpectedResults 1. Perform a bitmap block transfer of CWsBitmap without causing panic |
|
2412 //! 2. the drawing result of bitmap block transfer matched with the bitmap content |
|
2413 //! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((120,120),(160,160)) within the source rectangle |
|
2414 //! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen |
|
2415 //! @SYMTestType CIT |
|
2416 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2417 CREATE_OBJECT RWsSession ws |
|
2418 CREATE_OBJECT CWsScreenDevice scrdev |
|
2419 CREATE_OBJECT CWindowGc wingc |
|
2420 CREATE_OBJECT RWindowGroup wingrp |
|
2421 CREATE_OBJECT RWindow win |
|
2422 COMMAND ws new |
|
2423 COMMAND ws Connect |
|
2424 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2425 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2426 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2427 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2428 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2429 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2430 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2431 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2432 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2433 COMMAND win Activate |
|
2434 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2435 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2436 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2437 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2438 |
|
2439 CREATE_OBJECT CWsBitmap wsbmp |
|
2440 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-new_command001 |
|
2441 COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-Load_command002 |
|
2442 COMMAND win BeginRedraw |
|
2443 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-BitBlt_command006 |
|
2444 COMMAND win EndRedraw |
|
2445 COMMAND wsbmp ~ |
|
2446 |
|
2447 COMMAND wingc Deactivate |
|
2448 COMMAND win Close |
|
2449 COMMAND wingrp Close |
|
2450 COMMAND wingc ~ |
|
2451 COMMAND scrdev ~ |
|
2452 COMMAND ws Close |
|
2453 END_TEST_BLOCK |
|
2454 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0054 |
|
2455 |
|
2456 |
|
2457 |
|
2458 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0055 |
|
2459 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0055 |
|
2460 //! @SYMAPI CWindowGc |
|
2461 //! @SYMAuthor Victor Liu |
|
2462 //! @SYMCreationDate 11/01/2007 |
|
2463 //! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CWsBitmap *aBitmap, const TRect &aSource): perform a CWsBitmap block transfer of a rectangular piece of a bitmap |
|
2464 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
2465 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load |
|
2466 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2467 //! 1.1 New and connect a RWsSession |
|
2468 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2469 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2470 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2471 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2472 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2473 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2474 //! 1.7 Activate the CWindowGc to the RWindow |
|
2475 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2476 //! 2. New and Load a CWsBitmap |
|
2477 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
2478 //! 4. Execute BitBlt to perform a CWsBitmap block transfer of the rectangular piece ((21,20),(101,100)) to the specified point (10,11) |
|
2479 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
2480 //! 6. Deactive RWindow, destruct and close all objects used |
|
2481 //! @SYMTestStatus Implemented |
|
2482 //! @SYMTestPriority Critical |
|
2483 //! @SYMTestExpectedResults 1. Perform a bitmap block transfer of the rectangular piece without causing panic |
|
2484 //! 2. the drawing result of bitmap block transfer matched with the bitmap content |
|
2485 //! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((40,40),(80,80)) within the source rectangle |
|
2486 //! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen |
|
2487 //! @SYMTestType CIT |
|
2488 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2489 CREATE_OBJECT RWsSession ws |
|
2490 CREATE_OBJECT CWsScreenDevice scrdev |
|
2491 CREATE_OBJECT CWindowGc wingc |
|
2492 CREATE_OBJECT RWindowGroup wingrp |
|
2493 CREATE_OBJECT RWindow win |
|
2494 COMMAND ws new |
|
2495 COMMAND ws Connect |
|
2496 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2497 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2498 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2499 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2500 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2501 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2502 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2503 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2504 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2505 COMMAND win Activate |
|
2506 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2507 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2508 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2509 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2510 |
|
2511 CREATE_OBJECT CWsBitmap wsbmp |
|
2512 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-new_command001 |
|
2513 COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-Load_command002 |
|
2514 COMMAND win BeginRedraw |
|
2515 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-BitBlt_command006 |
|
2516 COMMAND win EndRedraw |
|
2517 COMMAND wsbmp ~ |
|
2518 |
|
2519 COMMAND wingc Deactivate |
|
2520 COMMAND win Close |
|
2521 COMMAND wingrp Close |
|
2522 COMMAND wingc ~ |
|
2523 COMMAND scrdev ~ |
|
2524 COMMAND ws Close |
|
2525 END_TEST_BLOCK |
|
2526 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0055 |
|
2527 |
|
2528 |
|
2529 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0056 |
|
2530 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0056 |
|
2531 //! @SYMAPI CWindowGc |
|
2532 //! @SYMAuthor Victor Liu |
|
2533 //! @SYMCreationDate 31/01/2007 |
|
2534 //! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CWsBitmap *aBitmap, const TRect &aSourceRect, const CWsBitmap *aMaskBitmap, TBool aInvertMask): perform a masked CWsBitmap block transfer of a rectangular piece of a bitmap |
|
2535 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
2536 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load |
|
2537 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2538 //! 1.1 New and connect a RWsSession |
|
2539 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2540 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2541 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2542 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2543 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2544 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2545 //! 1.7 Activate the CWindowGc to the RWindow |
|
2546 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2547 //! 2. New and Load a source CWsBitmap and a mask CWsBitmap |
|
2548 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
2549 //! 4. Execute BitBltMasked to perform a masked CWsBitmap block transfer of the rectangular piece ((0,0),(180,180)) to the specified point (10,11) |
|
2550 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
2551 //! 6. Deactive RWindow, destruct and close all objects used |
|
2552 //! @SYMTestStatus Implemented |
|
2553 //! @SYMTestPriority Critical |
|
2554 //! @SYMTestExpectedResults 1. Perform a masked bitmap block transfer of the rectangular piece without causing panic |
|
2555 //! 2. the drawing result of masked bitmap block transfer matched with the bitmap content |
|
2556 //! 2.1 only compare sub-areas of TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) within the source rectangle |
|
2557 //! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen |
|
2558 //! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) |
|
2559 //! @SYMTestType CIT |
|
2560 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2561 CREATE_OBJECT RWsSession ws |
|
2562 CREATE_OBJECT CWsScreenDevice scrdev |
|
2563 CREATE_OBJECT CWindowGc wingc |
|
2564 CREATE_OBJECT RWindowGroup wingrp |
|
2565 CREATE_OBJECT RWindow win |
|
2566 COMMAND ws new |
|
2567 COMMAND ws Connect |
|
2568 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2569 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2570 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2571 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2572 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2573 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2574 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2575 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2576 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2577 COMMAND win Activate |
|
2578 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2579 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2580 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2581 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2582 |
|
2583 CREATE_OBJECT CWsBitmap wsbmp |
|
2584 CREATE_OBJECT CWsBitmap wsmaskbmp |
|
2585 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command001 |
|
2586 COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command002 |
|
2587 COMMAND wsmaskbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command004 |
|
2588 COMMAND wsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command005 |
|
2589 COMMAND win BeginRedraw |
|
2590 COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-BitBltMasked_command009 |
|
2591 COMMAND win EndRedraw |
|
2592 COMMAND wsbmp ~ |
|
2593 COMMAND wsmaskbmp ~ |
|
2594 |
|
2595 COMMAND wingc Deactivate |
|
2596 COMMAND win Close |
|
2597 COMMAND wingrp Close |
|
2598 COMMAND wingc ~ |
|
2599 COMMAND scrdev ~ |
|
2600 COMMAND ws Close |
|
2601 END_TEST_BLOCK |
|
2602 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0056 |
|
2603 |
|
2604 |
|
2605 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0061 |
|
2606 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0061 |
|
2607 //! @SYMAPI CWindowGc |
|
2608 //! @SYMAuthor Victor Liu |
|
2609 //! @SYMCreationDate 05/01/2007 |
|
2610 //! @SYMTestCaseDesc SetClippingRegion(const TRegion &aRegion): set a clipping region to display |
|
2611 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
2612 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect |
|
2613 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2614 //! 1.1 New and connect a RWsSession |
|
2615 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2616 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2617 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2618 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2619 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2620 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2621 //! 1.7 Activate the CWindowGc to the RWindow |
|
2622 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2623 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
2624 //! 3. Execute SetClippingRegion to set a clipping region of TRect((10,10),(20,20)) ((40,10),(50,20)) ((20,20),(40,40)) ((10,40),(20,50)) ((40,40),(50,50)) |
|
2625 //! 4. Use DrawRect to draw and fill rectangle ((10,10),(50,50)) (with part inside and part outside the ClippingRegion) |
|
2626 //! 5. RWindow::EndRedraw() and check if drawing result as expected |
|
2627 //! only drawing in the ClippingRegion and not drawn outside the ClippingRegion |
|
2628 //! 6. Deactive RWindow, destruct and close all objects used |
|
2629 //! @SYMTestStatus Implemented |
|
2630 //! @SYMTestPriority Critical |
|
2631 //! @SYMTestExpectedResults 1. CWindowGc::SetClippingRegion() method return KErrNone without causing panic |
|
2632 //! 2. the drawing result of testaction 3 & 4 |
|
2633 //! 2.1 the rectangle border lines within ClippingRect is drawn with the pen color TRgb(0,0,0) |
|
2634 //! from (10,10) to (20,10), from (40,10) to (50,10), from (10,10) to (10,20), from (10,40) to (10,50), from (10,49) to (20,49), from (40,49) to (50,49), from (49,10) to (49,20), from (49,40) to (49,50) |
|
2635 //! 2.2 the rectangle area within ClippingRegion and inside the drawing rectangle is drawn/filled with the brush color TRgb(255,0,0) |
|
2636 //! TRect((11,11),(20,20)), ((40,11),(49,20)), ((20,20),(40,40)), ((11,40),(20,49)), ((40,40),(49,49)) |
|
2637 //! 2.3 the rectangle area outside ClippingRegion but inside the drawing rectangle is not drawn, with the background color TRgb(255,255,255) |
|
2638 //! TRect((20,0),(40,20)), ((10,20),(20,40)), ((40,20),(50,40)), ((20,40),(40,49)) |
|
2639 //! 2.4 the rectangle area ((0,0),(10,60)),((50,0),(60,60)), ((10,0),(50,10)), ((10,50),(50,60)) |
|
2640 //! outside (left, right, top, bottom of) the ClippingRegion and the drawing rectangle is not drawn, with the background color TRgb(255,255,255) |
|
2641 //! @SYMTestType CIT |
|
2642 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2643 CREATE_OBJECT RWsSession ws |
|
2644 CREATE_OBJECT CWsScreenDevice scrdev |
|
2645 CREATE_OBJECT CWindowGc wingc |
|
2646 CREATE_OBJECT RWindowGroup wingrp |
|
2647 CREATE_OBJECT RWindow win |
|
2648 COMMAND ws new |
|
2649 COMMAND ws Connect |
|
2650 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2651 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2652 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2653 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2654 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2655 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2656 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2657 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2658 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2659 COMMAND win Activate |
|
2660 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2661 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2662 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2663 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2664 |
|
2665 COMMAND win BeginRedraw |
|
2666 COMMAND wingc SetClippingRegion GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-SetClippingRegion_command003 |
|
2667 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-DrawRect_command004 |
|
2668 COMMAND win EndRedraw |
|
2669 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-checkLineColor_command008 |
|
2670 COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-checkRectColor_command009 |
|
2671 |
|
2672 COMMAND wingc Deactivate |
|
2673 COMMAND win Close |
|
2674 COMMAND wingrp Close |
|
2675 COMMAND wingc ~ |
|
2676 COMMAND scrdev ~ |
|
2677 COMMAND ws Close |
|
2678 END_TEST_BLOCK |
|
2679 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0061 |
|
2680 |
|
2681 |
|
2682 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0062 |
|
2683 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0062 |
|
2684 //! @SYMAPI CWindowGc |
|
2685 //! @SYMAuthor Victor Liu |
|
2686 //! @SYMCreationDate 05/01/2007 |
|
2687 //! @SYMTestCaseDesc CancelClippingRegion(): cancel the clipping region |
|
2688 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
2689 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect & SetClippingRegion |
|
2690 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2691 //! 1.1 New and connect a RWsSession |
|
2692 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2693 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2694 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2695 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2696 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2697 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2698 //! 1.7 Activate the CWindowGc to the RWindow |
|
2699 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2700 //! 2. Use RWindow::BeginRedraw() to start a redraw cycle |
|
2701 //! 3. Use SetClippingRegion to set a clipping region of TRect((10,10),(20,20)) ((40,10),(50,20)) ((20,20),(40,40)) ((10,40),(20,50)) ((40,40),(50,50)) |
|
2702 //! 4. Execute CancelClippingRegion to cancel the clipping region |
|
2703 //! 5. Use DrawRect to draw and fill rectangle ((10,10),(50,50)) (with part inside and part outside the canceled clipping region) |
|
2704 //! 6. RWindow::EndRedraw() and check if drawing result as expected |
|
2705 //! the whole drawing result in testaction 5 is displayed as the ClippingRegion is canceled |
|
2706 //! 7. Deactive RWindow, destruct and close all objects used |
|
2707 //! @SYMTestStatus Implemented |
|
2708 //! @SYMTestPriority Critical |
|
2709 //! @SYMTestExpectedResults 1. CWindowGc::CancelClippingRegion() method calls without causing panic |
|
2710 //! 2. the drawing result should be exactly the drawing rectangle in testaction 5 |
|
2711 //! 2.1 the whole border lines of the drawing rectangle (testaction 5) is drawn with the pen color TRgb(0,0,0) |
|
2712 //! from (10,10) to (50,10), from (49,10) to (49,50), from (10,10) to (10,50), from (10,49) to (50,49) |
|
2713 //! 2.2 inside the drawing rectangle ((11,11),(49,49)) is drawn/filled with the brush color TRgb(255,0,0) |
|
2714 //! 2.3 the rectangle area ((0,0),(10,60)), ((50,0),(60,60)),((10,0),(50,10)), ((10,50),(50,60)) |
|
2715 //! outside (left, right, top, bottom of) the drawing rectangle is not drawn, with the background color TRgb(255,255,255) |
|
2716 //! @SYMTestType CIT |
|
2717 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2718 CREATE_OBJECT RWsSession ws |
|
2719 CREATE_OBJECT CWsScreenDevice scrdev |
|
2720 CREATE_OBJECT CWindowGc wingc |
|
2721 CREATE_OBJECT RWindowGroup wingrp |
|
2722 CREATE_OBJECT RWindow win |
|
2723 COMMAND ws new |
|
2724 COMMAND ws Connect |
|
2725 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2726 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2727 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2728 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2729 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2730 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2731 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2732 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2733 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2734 COMMAND win Activate |
|
2735 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2736 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2737 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2738 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2739 |
|
2740 COMMAND win BeginRedraw |
|
2741 COMMAND wingc SetClippingRegion GRAPHICS-WSERV-WindowGc-PublicApi-0062-0001-SetClippingRegion_command003 |
|
2742 COMMAND wingc CancelClippingRegion |
|
2743 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0062-0001-DrawRect_command005 |
|
2744 COMMAND win EndRedraw |
|
2745 COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0062-0001-checkLineColor_command009 |
|
2746 COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0062-0001-checkRectColor_command010 |
|
2747 |
|
2748 COMMAND wingc Deactivate |
|
2749 COMMAND win Close |
|
2750 COMMAND wingrp Close |
|
2751 COMMAND wingc ~ |
|
2752 COMMAND scrdev ~ |
|
2753 COMMAND ws Close |
|
2754 END_TEST_BLOCK |
|
2755 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0062 |
|
2756 |
|
2757 |
|
2758 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0066 |
|
2759 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0066 |
|
2760 //! @SYMAPI CWindowGc |
|
2761 //! @SYMAuthor Victor Liu |
|
2762 //! @SYMCreationDate 22/03/2007 |
|
2763 //! @SYMTestCaseDesc AlphaBlendBitmaps(const TPoint &aDestPt, const CFbsBitmap *aSrcBmp, const TRect &aSrcRect, const CFbsBitmap *aAlphaBmp, const TPoint &aAlphaPt): |
|
2764 //! perform an alpha blending of the source CFbsBitmap, with the window, using alpha CFbsBitmap as the alpha blending factor |
|
2765 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct, CWindowGc::Construct |
|
2766 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2767 //! 1.1 New and connect a RWsSession |
|
2768 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2769 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2770 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2771 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2772 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2773 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2774 //! 1.7 Activate the CWindowGc to the RWindow |
|
2775 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2776 //! 2. New and Load a source CFbsBitmap and a alpha CFbsBitmap |
|
2777 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
2778 //! 4. Execute AlphaBlendBitmaps to perform alpha blending of the source CFbsBitmap, with the window, using alpha CFbsBitmap as the alpha blending factor |
|
2779 //! 5. RWindow::EndRedraw() and check if drawing result as expected |
|
2780 //! !!! Note: the rule to check alpha blending still needs to be confirmed |
|
2781 //! 6. Deactive RWindow, destruct and close all objects used |
|
2782 //! @SYMTestStatus Implemented |
|
2783 //! @SYMTestPriority High |
|
2784 //! @SYMTestExpectedResults 1. CWindowGc::AlphaBlendBitmaps() returns KErrNone without causing panic |
|
2785 //! 2. the drawing result should be match the alpha blending rule |
|
2786 //! only check subareas within the source rectangle: TRect((0,0),(100,20)) ((0,80),(100,100)) |
|
2787 //! 2.1 the source (S) is the source bitmap within the specified source rectangle ((0,0),(183,183)) |
|
2788 //! 2.2 the window (W) is simply the default background color TRgb(255,255,255) |
|
2789 //! 2.3 the alpha blending factor (A) is from the color of associated point relative to the alpha bitmap |
|
2790 //! Note: the alpha bitmap must be the display mode of Gray level, and the conversion value to Gray256 is the alpha factor |
|
2791 //! 2.4 calculate alpha blending by (S * A + W * (255 - A)) / 255, and for red, green, blue respectively |
|
2792 //! the expected result is mapping the calculated result to the display mode of the screen device |
|
2793 //! @SYMTestType CIT |
|
2794 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2795 CREATE_OBJECT RWsSession ws |
|
2796 CREATE_OBJECT CWsScreenDevice scrdev |
|
2797 CREATE_OBJECT CWindowGc wingc |
|
2798 CREATE_OBJECT RWindowGroup wingrp |
|
2799 CREATE_OBJECT RWindow win |
|
2800 COMMAND ws new |
|
2801 COMMAND ws Connect |
|
2802 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2803 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2804 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2805 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2806 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2807 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2808 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2809 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2810 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2811 COMMAND win Activate |
|
2812 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2813 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2814 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2815 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2816 |
|
2817 CREATE_OBJECT CFbsBitmap fbsbmp |
|
2818 CREATE_OBJECT CFbsBitmap fbsalphabmp |
|
2819 COMMAND fbsbmp new |
|
2820 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-Load_command002 |
|
2821 COMMAND fbsbmp SizeInPixels |
|
2822 COMMAND fbsbmp DisplayMode |
|
2823 COMMAND fbsalphabmp new |
|
2824 COMMAND fbsalphabmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-Load_command007 |
|
2825 COMMAND fbsalphabmp SizeInPixels |
|
2826 COMMAND fbsalphabmp DisplayMode |
|
2827 COMMAND win BeginRedraw |
|
2828 COMMAND wingc AlphaBlendBitmaps GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-AlphaBlendBitmaps_command013 |
|
2829 COMMAND win EndRedraw |
|
2830 COMMAND fbsbmp ~ |
|
2831 COMMAND fbsalphabmp ~ |
|
2832 |
|
2833 COMMAND wingc Deactivate |
|
2834 COMMAND win Close |
|
2835 COMMAND wingrp Close |
|
2836 COMMAND wingc ~ |
|
2837 COMMAND scrdev ~ |
|
2838 COMMAND ws Close |
|
2839 END_TEST_BLOCK |
|
2840 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0066 |
|
2841 |
|
2842 |
|
2843 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0067 |
|
2844 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0067 |
|
2845 //! @SYMAPI CWindowGc |
|
2846 //! @SYMAuthor Victor Liu |
|
2847 //! @SYMCreationDate 22/03/2007 |
|
2848 //! @SYMTestCaseDesc AlphaBlendBitmaps(const TPoint &aDestPt, const CWsBitmap *aSrcBmp, const TRect &aSrcRect, const CWsBitmap *aAlphaBmp, const TPoint &aAlphaPt): |
|
2849 //! perform an alpha blending of the source CWsBitmap, with the window, using alpha CWsBitmap as the alpha blending factor |
|
2850 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct, CWindowGc::Construct |
|
2851 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2852 //! 1.1 New and connect a RWsSession |
|
2853 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2854 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2855 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2856 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2857 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2858 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2859 //! 1.7 Activate the CWindowGc to the RWindow |
|
2860 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2861 //! 2. New and Load a source CWsBitmap and a alpha CWsBitmap |
|
2862 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
2863 //! 4. Execute AlphaBlendBitmaps to perform alpha blending of the source CWsBitmap, with the window, using alpha CWsBitmap as the alpha blending factor |
|
2864 //! 5. RWindow::EndRedraw() and check if drawing result as expected |
|
2865 //! !!! Note: the rule to check alpha blending still needs to be confirmed |
|
2866 //! 6. Deactive RWindow, destruct and close all objects used |
|
2867 //! @SYMTestStatus Implemented |
|
2868 //! @SYMTestPriority High |
|
2869 //! @SYMTestExpectedResults 1. CWindowGc::AlphaBlendBitmaps() returns KErrNone without causing panic |
|
2870 //! 2. the drawing result should be match the alpha blending rule |
|
2871 //! only check subareas within the source rectangle: TRect((0,0),(100,20)) ((0,80),(100,100)) |
|
2872 //! 2.1 the source (S) is the source bitmap within the specified source rectangle ((0,0),(183,183)) |
|
2873 //! 2.2 the window (W) is simply the default background color TRgb(255,255,255) |
|
2874 //! 2.3 the alpha blending factor (A) is from the color of associated point relative to the alpha bitmap |
|
2875 //! Note: the alpha bitmap must be the display mode of Gray level, and the conversion value to Gray256 is the alpha factor |
|
2876 //! 2.4 calculate alpha blending by (S * A + W * (255 - A)) / 255, and for red, green, blue respectively |
|
2877 //! the expected result is mapping the calculated result to the display mode of the screen device |
|
2878 //! @SYMTestType CIT |
|
2879 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2880 CREATE_OBJECT RWsSession ws |
|
2881 CREATE_OBJECT CWsScreenDevice scrdev |
|
2882 CREATE_OBJECT CWindowGc wingc |
|
2883 CREATE_OBJECT RWindowGroup wingrp |
|
2884 CREATE_OBJECT RWindow win |
|
2885 COMMAND ws new |
|
2886 COMMAND ws Connect |
|
2887 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2888 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2889 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2890 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2891 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2892 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2893 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2894 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2895 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2896 COMMAND win Activate |
|
2897 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2898 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2899 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2900 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2901 |
|
2902 CREATE_OBJECT CWsBitmap wsbmp |
|
2903 CREATE_OBJECT CWsBitmap wsalphabmp |
|
2904 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-new_command001 |
|
2905 COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-Load_command002 |
|
2906 COMMAND wsalphabmp new GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-new_command004 |
|
2907 COMMAND wsalphabmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-Load_command005 |
|
2908 COMMAND win BeginRedraw |
|
2909 COMMAND wingc AlphaBlendBitmaps GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-AlphaBlendBitmaps_command009 |
|
2910 COMMAND win EndRedraw |
|
2911 COMMAND wsbmp ~ |
|
2912 COMMAND wsalphabmp ~ |
|
2913 |
|
2914 COMMAND wingc Deactivate |
|
2915 COMMAND win Close |
|
2916 COMMAND wingrp Close |
|
2917 COMMAND wingc ~ |
|
2918 COMMAND scrdev ~ |
|
2919 COMMAND ws Close |
|
2920 END_TEST_BLOCK |
|
2921 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0067 |
|
2922 |
|
2923 |
|
2924 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0068 |
|
2925 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0068 |
|
2926 //! @SYMAPI CWindowGc |
|
2927 //! @SYMAuthor Victor Liu |
|
2928 //! @SYMCreationDate 15/02/2007 |
|
2929 //! @SYMTestCaseDesc DrawWsGraphic(const TWsGraphicId &aId, const TRect &aDestRect): draw an abstract artwork |
|
2930 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
2931 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load, CWsGraphicBitmap::NewL |
|
2932 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
2933 //! 1.1 New and connect a RWsSession |
|
2934 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2935 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2936 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2937 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
2938 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
2939 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
2940 //! 1.7 Activate the CWindowGc to the RWindow |
|
2941 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
2942 //! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap |
|
2943 //! and use them to create a non-transcient artwork CWsGraphicBitmap |
|
2944 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
2945 //! 4. Execute DrawWsGraphic to draw the non-transcient artwork (with its id) and within the specified TRect |
|
2946 //! 5. RWindow::EndRedraw() and check if drawing result as expected |
|
2947 //! 6. Deactive RWindow, destruct and close all objects used |
|
2948 //! @SYMTestStatus Implemented |
|
2949 //! @SYMTestPriority Critical |
|
2950 //! @SYMTestExpectedResults 1. CWindowGc::DrawWsGraphic() method calls without causing panic |
|
2951 //! 2. the drawing result of the graphic matched with the masked bitmap content |
|
2952 //! 2.1 Only compare sub-areas within the source rectangle |
|
2953 //! TRect((0,0),(10,10)), ((90,0),(100,10)), ((0,90),(10,100)), ((90,90),(100,100)), ((45,45),(55,55)) |
|
2954 //! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen |
|
2955 //! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) |
|
2956 //! @SYMTestType CIT |
|
2957 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
2958 CREATE_OBJECT RWsSession ws |
|
2959 CREATE_OBJECT CWsScreenDevice scrdev |
|
2960 CREATE_OBJECT CWindowGc wingc |
|
2961 CREATE_OBJECT RWindowGroup wingrp |
|
2962 CREATE_OBJECT RWindow win |
|
2963 COMMAND ws new |
|
2964 COMMAND ws Connect |
|
2965 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
2966 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
2967 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
2968 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
2969 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
2970 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
2971 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
2972 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
2973 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
2974 COMMAND win Activate |
|
2975 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
2976 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
2977 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
2978 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
2979 |
|
2980 CREATE_OBJECT CFbsBitmap fbsbmp |
|
2981 CREATE_OBJECT CFbsBitmap fbsmaskbmp |
|
2982 CREATE_OBJECT CWsGraphicBitmap wsgraph |
|
2983 COMMAND fbsbmp new |
|
2984 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-Load_command002 |
|
2985 COMMAND fbsmaskbmp new |
|
2986 COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-Load_command005 |
|
2987 COMMAND wsgraph NewL GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-NewL_command007 |
|
2988 COMMAND win BeginRedraw |
|
2989 COMMAND wingc DrawWsGraphic GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-DrawWsGraphic_command011 |
|
2990 COMMAND win EndRedraw |
|
2991 COMMAND wsgraph Destroy |
|
2992 COMMAND fbsbmp ~ |
|
2993 COMMAND fbsmaskbmp ~ |
|
2994 |
|
2995 COMMAND wingc Deactivate |
|
2996 COMMAND win Close |
|
2997 COMMAND wingrp Close |
|
2998 COMMAND wingc ~ |
|
2999 COMMAND scrdev ~ |
|
3000 COMMAND ws Close |
|
3001 END_TEST_BLOCK |
|
3002 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0068 |
|
3003 |
|
3004 |
|
3005 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0069 |
|
3006 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0069 |
|
3007 //! @SYMAPI CWindowGc |
|
3008 //! @SYMAuthor Victor Liu |
|
3009 //! @SYMCreationDate 15/02/2007 |
|
3010 //! @SYMTestCaseDesc DrawWsGraphic(const TWsGraphicId &aId, const TRect &aDestRect, const TDesC8 &aData): draw an abstract artwork with attached data buffer |
|
3011 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3012 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load, CWsGraphicBitmap::NewL, RWsGraphicMsgBuf::new |
|
3013 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3014 //! 1.1 New and connect a RWsSession |
|
3015 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3016 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3017 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3018 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3019 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3020 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3021 //! 1.7 Activate the CWindowGc to the RWindow |
|
3022 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3023 //! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap |
|
3024 //! and use them to create a non-transcient artwork CWsGraphicBitmap |
|
3025 //! 3. New RWsGraphicMsgBuf to be attached to CWindowGc::DrawWsGraphic |
|
3026 //! !!! Note: actually the data buffer is empty |
|
3027 //! 4. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3028 //! 5. Execute DrawWsGraphic to draw the non-transcient artwork (with its id and attached data buffer) and within the specified TRect |
|
3029 //! 6. RWindow::EndRedraw() and check if drawing result as expected |
|
3030 //! 7. Deactive RWindow, destruct and close all objects used |
|
3031 //! @SYMTestStatus Implemented |
|
3032 //! @SYMTestPriority Critical |
|
3033 //! @SYMTestExpectedResults 1. CWindowGc::DrawWsGraphic() method with attached buufer calls without causing panic |
|
3034 //! 2. the drawing result of the graphic matched with the masked bitmap content |
|
3035 //! 2.1 only compare sub-areas within the source rectangle |
|
3036 //! TRect((0,0),(10,10)), ((90,0),(100,10)), ((0,90),(10,100)), ((90,90),(100,100)), ((45,45),(55,55)) |
|
3037 //! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen |
|
3038 //! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) |
|
3039 //! @SYMTestType CIT |
|
3040 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3041 CREATE_OBJECT RWsSession ws |
|
3042 CREATE_OBJECT CWsScreenDevice scrdev |
|
3043 CREATE_OBJECT CWindowGc wingc |
|
3044 CREATE_OBJECT RWindowGroup wingrp |
|
3045 CREATE_OBJECT RWindow win |
|
3046 COMMAND ws new |
|
3047 COMMAND ws Connect |
|
3048 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3049 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3050 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3051 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3052 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3053 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3054 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3055 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3056 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3057 COMMAND win Activate |
|
3058 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3059 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3060 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3061 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3062 |
|
3063 CREATE_OBJECT CFbsBitmap fbsbmp |
|
3064 CREATE_OBJECT CFbsBitmap fbsmaskbmp |
|
3065 CREATE_OBJECT CWsGraphicBitmap wsgraph |
|
3066 CREATE_OBJECT RWsGraphicMsgBuf wsgraphmsg |
|
3067 COMMAND fbsbmp new |
|
3068 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-Load_command002 |
|
3069 COMMAND fbsmaskbmp new |
|
3070 COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-Load_command005 |
|
3071 COMMAND wsgraph NewL GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-NewL_command007 |
|
3072 COMMAND wsgraphmsg new |
|
3073 COMMAND win BeginRedraw |
|
3074 COMMAND wingc DrawWsGraphic GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-DrawWsGraphic_command013 |
|
3075 COMMAND win EndRedraw |
|
3076 COMMAND wsgraph Destroy |
|
3077 COMMAND fbsbmp ~ |
|
3078 COMMAND fbsmaskbmp ~ |
|
3079 COMMAND wsgraphmsg Close |
|
3080 |
|
3081 COMMAND wingc Deactivate |
|
3082 COMMAND win Close |
|
3083 COMMAND wingrp Close |
|
3084 COMMAND wingc ~ |
|
3085 COMMAND scrdev ~ |
|
3086 COMMAND ws Close |
|
3087 END_TEST_BLOCK |
|
3088 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0069 |
|
3089 |
|
3090 |
|
3091 |
|
3092 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0071 |
|
3093 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0071 |
|
3094 //! @SYMAPI CWindowGc |
|
3095 //! @SYMAuthor Victor Liu |
|
3096 //! @SYMCreationDate 10/01/2007 |
|
3097 //! @SYMTestCaseDesc BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap): perform a bitmap block transfer |
|
3098 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3099 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load & SetSizeInTwips |
|
3100 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3101 //! 1.1 New and connect a RWsSession |
|
3102 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3103 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3104 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3105 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3106 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3107 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3108 //! 1.7 Activate the CWindowGc to the RWindow |
|
3109 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3110 //! . New and Load a CFbsBitmap |
|
3111 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3112 //! 4. Execute BitBlt to perform a bitmap block transfer to the specified point (10,11) |
|
3113 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
3114 //! 6. Deactive RWindow, destruct and close all objects used |
|
3115 //! @SYMTestStatus Implemented |
|
3116 //! @SYMTestPriority Critical |
|
3117 //! @SYMTestExpectedResults 1. Perform a bitmap block transfer without causing panic |
|
3118 //! 2. the drawing result of bitmap block transfer matched with the bitmap content |
|
3119 //! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((120,120),(160,160)) within the source rectangle |
|
3120 //! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen |
|
3121 //! @SYMTestType CIT |
|
3122 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3123 CREATE_OBJECT RWsSession ws |
|
3124 CREATE_OBJECT CWsScreenDevice scrdev |
|
3125 CREATE_OBJECT CWindowGc wingc |
|
3126 CREATE_OBJECT RWindowGroup wingrp |
|
3127 CREATE_OBJECT RWindow win |
|
3128 COMMAND ws new |
|
3129 COMMAND ws Connect |
|
3130 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3131 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3132 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3133 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3134 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3135 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3136 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3137 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3138 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3139 COMMAND win Activate |
|
3140 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3141 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3142 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3143 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3144 |
|
3145 CREATE_OBJECT CFbsBitmap fbsbmp |
|
3146 COMMAND win BeginRedraw |
|
3147 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-BitBlt_command009 |
|
3148 COMMAND win EndRedraw |
|
3149 |
|
3150 COMMAND wingc Deactivate |
|
3151 COMMAND win Close |
|
3152 COMMAND wingrp Close |
|
3153 COMMAND wingc ~ |
|
3154 COMMAND scrdev ~ |
|
3155 COMMAND ws Close |
|
3156 END_TEST_BLOCK |
|
3157 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0071 |
|
3158 |
|
3159 |
|
3160 |
|
3161 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0072 |
|
3162 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0072 |
|
3163 //! @SYMAPI CWindowGc |
|
3164 //! @SYMAuthor Victor Liu |
|
3165 //! @SYMCreationDate 10/01/2007 |
|
3166 //! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CFbsBitmap *aBitmap, const TRect &aSource): perform a bitmap block transfer of a rectangular piece of a bitmap |
|
3167 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3168 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load & SetSizeInTwips |
|
3169 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3170 //! 1.1 New and connect a RWsSession |
|
3171 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3172 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3173 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3174 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3175 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3176 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3177 //! 1.7 Activate the CWindowGc to the RWindow |
|
3178 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3179 //! 2. New and Load a CFbsBitmap, and SetSizeInTwips to its appropriate size |
|
3180 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3181 //! 4. Execute BitBlt to perform a bitmap block transfer of the rectangular piece ((21,20),(101,100)) to the specified point (10,11) |
|
3182 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
3183 //! 6. Deactive RWindow, destruct and close all objects used |
|
3184 //! @SYMTestStatus Implemented |
|
3185 //! @SYMTestPriority Critical |
|
3186 //! @SYMTestExpectedResults 1. Perform a bitmap block transfer of the rectangular piece without causing panic |
|
3187 //! 2. the drawing result of bitmap block transfer matched with the bitmap content |
|
3188 //! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((40,40),(80,80)) within the source rectangle |
|
3189 //! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen |
|
3190 //! @SYMTestType CIT |
|
3191 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3192 CREATE_OBJECT RWsSession ws |
|
3193 CREATE_OBJECT CWsScreenDevice scrdev |
|
3194 CREATE_OBJECT CWindowGc wingc |
|
3195 CREATE_OBJECT RWindowGroup wingrp |
|
3196 CREATE_OBJECT RWindow win |
|
3197 COMMAND ws new |
|
3198 COMMAND ws Connect |
|
3199 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3200 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3201 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3202 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3203 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3204 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3205 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3206 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3207 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3208 COMMAND win Activate |
|
3209 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3210 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3211 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3212 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3213 |
|
3214 CREATE_OBJECT CFbsBitmap fbsbmp |
|
3215 COMMAND win BeginRedraw |
|
3216 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-BitBlt_command009 |
|
3217 COMMAND win EndRedraw |
|
3218 |
|
3219 COMMAND wingc Deactivate |
|
3220 COMMAND win Close |
|
3221 COMMAND wingrp Close |
|
3222 COMMAND wingc ~ |
|
3223 COMMAND scrdev ~ |
|
3224 COMMAND ws Close |
|
3225 END_TEST_BLOCK |
|
3226 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0072 |
|
3227 |
|
3228 |
|
3229 |
|
3230 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0073 |
|
3231 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0073 |
|
3232 //! @SYMAPI CWindowGc |
|
3233 //! @SYMAuthor Victor Liu |
|
3234 //! @SYMCreationDate 31/01/2007 |
|
3235 //! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask): perform a masked bitmap block transfer of a rectangular piece of a bitmap |
|
3236 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3237 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load |
|
3238 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3239 //! 1.1 New and connect a RWsSession |
|
3240 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3241 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3242 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3243 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3244 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3245 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3246 //! 1.7 Activate the CWindowGc to the RWindow |
|
3247 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3248 //! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap |
|
3249 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3250 //! 4. Execute BitBltMasked to perform a masked bitmap block transfer of the rectangular piece ((0,0),(180,180)) to the specified point (10,11) |
|
3251 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
3252 //! 6. Deactive RWindow, destruct and close all objects used |
|
3253 //! @SYMTestStatus Implemented |
|
3254 //! @SYMTestPriority Critical |
|
3255 //! @SYMTestExpectedResults 1. Perform a masked bitmap block transfer of the rectangular piece without causing panic |
|
3256 //! 2. the drawing result of masked bitmap block transfer matched with the bitmap content |
|
3257 //! 2.1 only compare sub-areas of TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) within the source rectangle |
|
3258 //! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen |
|
3259 //! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) |
|
3260 //! @SYMTestType CIT |
|
3261 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3262 CREATE_OBJECT RWsSession ws |
|
3263 CREATE_OBJECT CWsScreenDevice scrdev |
|
3264 CREATE_OBJECT CWindowGc wingc |
|
3265 CREATE_OBJECT RWindowGroup wingrp |
|
3266 CREATE_OBJECT RWindow win |
|
3267 COMMAND ws new |
|
3268 COMMAND ws Connect |
|
3269 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3270 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3271 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3272 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3273 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3274 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3275 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3276 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3277 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3278 COMMAND win Activate |
|
3279 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3280 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3281 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3282 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3283 |
|
3284 CREATE_OBJECT CFbsBitmap fbsbmp |
|
3285 CREATE_OBJECT CFbsBitmap fbsmaskbmp |
|
3286 COMMAND fbsmaskbmp new |
|
3287 COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command008 |
|
3288 COMMAND win BeginRedraw |
|
3289 COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-BitBltMasked_command012 |
|
3290 COMMAND win EndRedraw |
|
3291 COMMAND fbsmaskbmp ~ |
|
3292 |
|
3293 COMMAND wingc Deactivate |
|
3294 COMMAND win Close |
|
3295 COMMAND wingrp Close |
|
3296 COMMAND wingc ~ |
|
3297 COMMAND scrdev ~ |
|
3298 COMMAND ws Close |
|
3299 END_TEST_BLOCK |
|
3300 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0073 |
|
3301 |
|
3302 |
|
3303 |
|
3304 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0074 |
|
3305 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0074 |
|
3306 //! @SYMAPI CWindowGc |
|
3307 //! @SYMAuthor Victor Liu |
|
3308 //! @SYMCreationDate 11/01/2007 |
|
3309 //! @SYMTestCaseDesc BitBlt(const TPoint &aPoint, const CWsBitmap *aBitmap): perform a bitmap block transfer on a CWsBitmap |
|
3310 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3311 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load |
|
3312 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3313 //! 1.1 New and connect a RWsSession |
|
3314 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3315 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3316 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3317 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3318 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3319 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3320 //! 1.7 Activate the CWindowGc to the RWindow |
|
3321 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3322 //! 2. New and Load a CWsBitmap |
|
3323 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3324 //! 4. Execute BitBlt to perform a bitmap block transfer of the CWsBitmap to point (10,11) |
|
3325 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
3326 //! 6. Deactive RWindow, destruct and close all objects used |
|
3327 //! @SYMTestStatus Implemented |
|
3328 //! @SYMTestPriority Critical |
|
3329 //! @SYMTestExpectedResults 1. Perform a bitmap block transfer of CWsBitmap without causing panic |
|
3330 //! 2. the drawing result of bitmap block transfer matched with the bitmap content |
|
3331 //! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((120,120),(160,160)) within the source rectangle |
|
3332 //! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen |
|
3333 //! @SYMTestType CIT |
|
3334 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3335 CREATE_OBJECT RWsSession ws |
|
3336 CREATE_OBJECT CWsScreenDevice scrdev |
|
3337 CREATE_OBJECT CWindowGc wingc |
|
3338 CREATE_OBJECT RWindowGroup wingrp |
|
3339 CREATE_OBJECT RWindow win |
|
3340 COMMAND ws new |
|
3341 COMMAND ws Connect |
|
3342 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3343 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3344 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3345 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3346 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3347 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3348 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3349 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3350 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3351 COMMAND win Activate |
|
3352 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3353 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3354 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3355 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3356 |
|
3357 CREATE_OBJECT CWsBitmap wsbmp |
|
3358 COMMAND win BeginRedraw |
|
3359 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-BitBlt_command006 |
|
3360 COMMAND win EndRedraw |
|
3361 |
|
3362 COMMAND wingc Deactivate |
|
3363 COMMAND win Close |
|
3364 COMMAND wingrp Close |
|
3365 COMMAND wingc ~ |
|
3366 COMMAND scrdev ~ |
|
3367 COMMAND ws Close |
|
3368 END_TEST_BLOCK |
|
3369 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0074 |
|
3370 |
|
3371 |
|
3372 |
|
3373 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0075 |
|
3374 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0075 |
|
3375 //! @SYMAPI CWindowGc |
|
3376 //! @SYMAuthor Victor Liu |
|
3377 //! @SYMCreationDate 11/01/2007 |
|
3378 //! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CWsBitmap *aBitmap, const TRect &aSource): perform a CWsBitmap block transfer of a rectangular piece of a bitmap |
|
3379 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3380 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load |
|
3381 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3382 //! 1.1 New and connect a RWsSession |
|
3383 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3384 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3385 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3386 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3387 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3388 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3389 //! 1.7 Activate the CWindowGc to the RWindow |
|
3390 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3391 //! 2. New and Load a CWsBitmap |
|
3392 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3393 //! 4. Execute BitBlt to perform a CWsBitmap block transfer of the rectangular piece ((21,20),(101,100)) to the specified point (10,11) |
|
3394 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
3395 //! 6. Deactive RWindow, destruct and close all objects used |
|
3396 //! @SYMTestStatus Implemented |
|
3397 //! @SYMTestPriority Critical |
|
3398 //! @SYMTestExpectedResults 1. Perform a bitmap block transfer of the rectangular piece without causing panic |
|
3399 //! 2. the drawing result of bitmap block transfer matched with the bitmap content |
|
3400 //! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((40,40),(80,80)) within the source rectangle |
|
3401 //! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen |
|
3402 //! @SYMTestType CIT |
|
3403 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3404 CREATE_OBJECT RWsSession ws |
|
3405 CREATE_OBJECT CWsScreenDevice scrdev |
|
3406 CREATE_OBJECT CWindowGc wingc |
|
3407 CREATE_OBJECT RWindowGroup wingrp |
|
3408 CREATE_OBJECT RWindow win |
|
3409 COMMAND ws new |
|
3410 COMMAND ws Connect |
|
3411 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3412 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3413 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3414 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3415 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3416 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3417 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3418 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3419 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3420 COMMAND win Activate |
|
3421 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3422 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3423 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3424 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3425 |
|
3426 CREATE_OBJECT CWsBitmap wsbmp |
|
3427 COMMAND win BeginRedraw |
|
3428 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-BitBlt_command006 |
|
3429 COMMAND win EndRedraw |
|
3430 |
|
3431 COMMAND wingc Deactivate |
|
3432 COMMAND win Close |
|
3433 COMMAND wingrp Close |
|
3434 COMMAND wingc ~ |
|
3435 COMMAND scrdev ~ |
|
3436 COMMAND ws Close |
|
3437 END_TEST_BLOCK |
|
3438 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0075 |
|
3439 |
|
3440 |
|
3441 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0076 |
|
3442 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0076 |
|
3443 //! @SYMAPI CWindowGc |
|
3444 //! @SYMAuthor Victor Liu |
|
3445 //! @SYMCreationDate 31/01/2007 |
|
3446 //! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CWsBitmap *aBitmap, const TRect &aSourceRect, const CWsBitmap *aMaskBitmap, TBool aInvertMask): perform a masked CWsBitmap block transfer of a rectangular piece of a bitmap |
|
3447 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3448 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load |
|
3449 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3450 //! 1.1 New and connect a RWsSession |
|
3451 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3452 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3453 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3454 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3455 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3456 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3457 //! 1.7 Activate the CWindowGc to the RWindow |
|
3458 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3459 //! 2. New and Load a source CWsBitmap and a mask CWsBitmap |
|
3460 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3461 //! 4. Execute BitBltMasked to perform a masked CWsBitmap block transfer of the rectangular piece ((0,0),(180,180)) to the specified point (10,11) |
|
3462 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
3463 //! 6. Deactive RWindow, destruct and close all objects used |
|
3464 //! @SYMTestStatus Implemented |
|
3465 //! @SYMTestPriority Critical |
|
3466 //! @SYMTestExpectedResults 1. Perform a masked bitmap block transfer of the rectangular piece without causing panic |
|
3467 //! 2. the drawing result of masked bitmap block transfer matched with the bitmap content |
|
3468 //! 2.1 only compare sub-areas of TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) within the source rectangle |
|
3469 //! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen |
|
3470 //! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) |
|
3471 //! @SYMTestType CIT |
|
3472 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3473 CREATE_OBJECT RWsSession ws |
|
3474 CREATE_OBJECT CWsScreenDevice scrdev |
|
3475 CREATE_OBJECT CWindowGc wingc |
|
3476 CREATE_OBJECT RWindowGroup wingrp |
|
3477 CREATE_OBJECT RWindow win |
|
3478 COMMAND ws new |
|
3479 COMMAND ws Connect |
|
3480 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3481 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3482 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3483 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3484 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3485 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3486 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3487 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3488 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3489 COMMAND win Activate |
|
3490 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3491 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3492 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3493 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3494 |
|
3495 CREATE_OBJECT CWsBitmap wsbmp |
|
3496 CREATE_OBJECT CWsBitmap wsmaskbmp |
|
3497 COMMAND wsmaskbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command004 |
|
3498 COMMAND wsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command005 |
|
3499 COMMAND win BeginRedraw |
|
3500 COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-BitBltMasked_command009 |
|
3501 COMMAND win EndRedraw |
|
3502 COMMAND wsmaskbmp ~ |
|
3503 |
|
3504 COMMAND wingc Deactivate |
|
3505 COMMAND win Close |
|
3506 COMMAND wingrp Close |
|
3507 COMMAND wingc ~ |
|
3508 COMMAND scrdev ~ |
|
3509 COMMAND ws Close |
|
3510 END_TEST_BLOCK |
|
3511 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0076 |
|
3512 |
|
3513 |
|
3514 |
|
3515 |
|
3516 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0081 |
|
3517 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0081 |
|
3518 //! @SYMAPI CWindowGc |
|
3519 //! @SYMAuthor Victor Liu |
|
3520 //! @SYMCreationDate 10/01/2007 |
|
3521 //! @SYMTestCaseDesc BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap): perform a bitmap block transfer |
|
3522 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3523 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load & SetSizeInTwips |
|
3524 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3525 //! 1.1 New and connect a RWsSession |
|
3526 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3527 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3528 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3529 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3530 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3531 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3532 //! 1.7 Activate the CWindowGc to the RWindow |
|
3533 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3534 //! . New and Load a CFbsBitmap |
|
3535 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3536 //! 4. Execute BitBlt to perform a bitmap block transfer to the specified point (10,11) |
|
3537 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
3538 //! 6. Deactive RWindow, destruct and close all objects used |
|
3539 //! @SYMTestStatus Implemented |
|
3540 //! @SYMTestPriority Critical |
|
3541 //! @SYMTestExpectedResults 1. Perform a bitmap block transfer without causing panic |
|
3542 //! 2. the drawing result of bitmap block transfer matched with the bitmap content |
|
3543 //! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((120,120),(160,160)) within the source rectangle |
|
3544 //! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen |
|
3545 //! @SYMTestType CIT |
|
3546 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3547 CREATE_OBJECT RWsSession ws |
|
3548 CREATE_OBJECT CWsScreenDevice scrdev |
|
3549 CREATE_OBJECT CWindowGc wingc |
|
3550 CREATE_OBJECT RWindowGroup wingrp |
|
3551 CREATE_OBJECT RWindow win |
|
3552 COMMAND ws new |
|
3553 COMMAND ws Connect |
|
3554 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3555 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3556 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3557 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3558 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3559 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3560 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3561 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3562 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3563 COMMAND win Activate |
|
3564 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3565 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3566 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3567 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3568 |
|
3569 CREATE_OBJECT CFbsBitmap fbsbmp |
|
3570 COMMAND fbsbmp new |
|
3571 COMMAND win BeginRedraw |
|
3572 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-BitBlt_command009 |
|
3573 COMMAND win EndRedraw |
|
3574 COMMAND fbsbmp ~ |
|
3575 |
|
3576 COMMAND wingc Deactivate |
|
3577 COMMAND win Close |
|
3578 COMMAND wingrp Close |
|
3579 COMMAND wingc ~ |
|
3580 COMMAND scrdev ~ |
|
3581 COMMAND ws Close |
|
3582 END_TEST_BLOCK |
|
3583 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0081 |
|
3584 |
|
3585 |
|
3586 |
|
3587 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0082 |
|
3588 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0082 |
|
3589 //! @SYMAPI CWindowGc |
|
3590 //! @SYMAuthor Victor Liu |
|
3591 //! @SYMCreationDate 10/01/2007 |
|
3592 //! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CFbsBitmap *aBitmap, const TRect &aSource): perform a bitmap block transfer of a rectangular piece of a bitmap |
|
3593 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3594 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load & SetSizeInTwips |
|
3595 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3596 //! 1.1 New and connect a RWsSession |
|
3597 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3598 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3599 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3600 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3601 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3602 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3603 //! 1.7 Activate the CWindowGc to the RWindow |
|
3604 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3605 //! 2. New and Load a CFbsBitmap, and SetSizeInTwips to its appropriate size |
|
3606 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3607 //! 4. Execute BitBlt to perform a bitmap block transfer of the rectangular piece ((21,20),(101,100)) to the specified point (10,11) |
|
3608 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
3609 //! 6. Deactive RWindow, destruct and close all objects used |
|
3610 //! @SYMTestStatus Implemented |
|
3611 //! @SYMTestPriority Critical |
|
3612 //! @SYMTestExpectedResults 1. Perform a bitmap block transfer of the rectangular piece without causing panic |
|
3613 //! 2. the drawing result of bitmap block transfer matched with the bitmap content |
|
3614 //! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((40,40),(80,80)) within the source rectangle |
|
3615 //! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen |
|
3616 //! @SYMTestType CIT |
|
3617 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3618 CREATE_OBJECT RWsSession ws |
|
3619 CREATE_OBJECT CWsScreenDevice scrdev |
|
3620 CREATE_OBJECT CWindowGc wingc |
|
3621 CREATE_OBJECT RWindowGroup wingrp |
|
3622 CREATE_OBJECT RWindow win |
|
3623 COMMAND ws new |
|
3624 COMMAND ws Connect |
|
3625 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3626 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3627 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3628 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3629 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3630 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3631 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3632 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3633 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3634 COMMAND win Activate |
|
3635 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3636 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3637 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3638 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3639 |
|
3640 CREATE_OBJECT CFbsBitmap fbsbmp |
|
3641 COMMAND fbsbmp new |
|
3642 COMMAND win BeginRedraw |
|
3643 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-BitBlt_command009 |
|
3644 COMMAND win EndRedraw |
|
3645 COMMAND fbsbmp ~ |
|
3646 |
|
3647 COMMAND wingc Deactivate |
|
3648 COMMAND win Close |
|
3649 COMMAND wingrp Close |
|
3650 COMMAND wingc ~ |
|
3651 COMMAND scrdev ~ |
|
3652 COMMAND ws Close |
|
3653 END_TEST_BLOCK |
|
3654 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0082 |
|
3655 |
|
3656 |
|
3657 |
|
3658 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0083 |
|
3659 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0083 |
|
3660 //! @SYMAPI CWindowGc |
|
3661 //! @SYMAuthor Victor Liu |
|
3662 //! @SYMCreationDate 31/01/2007 |
|
3663 //! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask): perform a masked bitmap block transfer of a rectangular piece of a bitmap |
|
3664 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3665 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load |
|
3666 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3667 //! 1.1 New and connect a RWsSession |
|
3668 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3669 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3670 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3671 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3672 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3673 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3674 //! 1.7 Activate the CWindowGc to the RWindow |
|
3675 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3676 //! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap |
|
3677 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3678 //! 4. Execute BitBltMasked to perform a masked bitmap block transfer of the rectangular piece ((0,0),(180,180)) to the specified point (10,11) |
|
3679 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
3680 //! 6. Deactive RWindow, destruct and close all objects used |
|
3681 //! @SYMTestStatus Implemented |
|
3682 //! @SYMTestPriority Critical |
|
3683 //! @SYMTestExpectedResults 1. Perform a masked bitmap block transfer of the rectangular piece without causing panic |
|
3684 //! 2. the drawing result of masked bitmap block transfer matched with the bitmap content |
|
3685 //! 2.1 only compare sub-areas of TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) within the source rectangle |
|
3686 //! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen |
|
3687 //! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) |
|
3688 //! @SYMTestType CIT |
|
3689 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3690 CREATE_OBJECT RWsSession ws |
|
3691 CREATE_OBJECT CWsScreenDevice scrdev |
|
3692 CREATE_OBJECT CWindowGc wingc |
|
3693 CREATE_OBJECT RWindowGroup wingrp |
|
3694 CREATE_OBJECT RWindow win |
|
3695 COMMAND ws new |
|
3696 COMMAND ws Connect |
|
3697 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3698 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3699 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3700 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3701 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3702 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3703 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3704 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3705 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3706 COMMAND win Activate |
|
3707 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3708 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3709 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3710 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3711 |
|
3712 CREATE_OBJECT CFbsBitmap fbsbmp |
|
3713 CREATE_OBJECT CFbsBitmap fbsmaskbmp |
|
3714 COMMAND fbsbmp new |
|
3715 COMMAND fbsmaskbmp new |
|
3716 COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command008 |
|
3717 COMMAND win BeginRedraw |
|
3718 COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-BitBltMasked_command012 |
|
3719 COMMAND win EndRedraw |
|
3720 COMMAND fbsbmp ~ |
|
3721 COMMAND fbsmaskbmp ~ |
|
3722 |
|
3723 COMMAND wingc Deactivate |
|
3724 COMMAND win Close |
|
3725 COMMAND wingrp Close |
|
3726 COMMAND wingc ~ |
|
3727 COMMAND scrdev ~ |
|
3728 COMMAND ws Close |
|
3729 END_TEST_BLOCK |
|
3730 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0083 |
|
3731 |
|
3732 |
|
3733 |
|
3734 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0084 |
|
3735 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0084 |
|
3736 //! @SYMAPI CWindowGc |
|
3737 //! @SYMAuthor Victor Liu |
|
3738 //! @SYMCreationDate 11/01/2007 |
|
3739 //! @SYMTestCaseDesc BitBlt(const TPoint &aPoint, const CWsBitmap *aBitmap): perform a bitmap block transfer on a CWsBitmap |
|
3740 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3741 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load |
|
3742 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3743 //! 1.1 New and connect a RWsSession |
|
3744 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3745 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3746 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3747 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3748 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3749 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3750 //! 1.7 Activate the CWindowGc to the RWindow |
|
3751 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3752 //! 2. New and Load a CWsBitmap |
|
3753 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3754 //! 4. Execute BitBlt to perform a bitmap block transfer of the CWsBitmap to point (10,11) |
|
3755 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
3756 //! 6. Deactive RWindow, destruct and close all objects used |
|
3757 //! @SYMTestStatus Implemented |
|
3758 //! @SYMTestPriority Critical |
|
3759 //! @SYMTestExpectedResults 1. Perform a bitmap block transfer of CWsBitmap without causing panic |
|
3760 //! 2. the drawing result of bitmap block transfer matched with the bitmap content |
|
3761 //! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((120,120),(160,160)) within the source rectangle |
|
3762 //! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen |
|
3763 //! @SYMTestType CIT |
|
3764 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3765 CREATE_OBJECT RWsSession ws |
|
3766 CREATE_OBJECT CWsScreenDevice scrdev |
|
3767 CREATE_OBJECT CWindowGc wingc |
|
3768 CREATE_OBJECT RWindowGroup wingrp |
|
3769 CREATE_OBJECT RWindow win |
|
3770 COMMAND ws new |
|
3771 COMMAND ws Connect |
|
3772 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3773 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3774 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3775 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3776 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3777 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3778 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3779 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3780 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3781 COMMAND win Activate |
|
3782 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3783 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3784 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3785 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3786 |
|
3787 CREATE_OBJECT CWsBitmap wsbmp |
|
3788 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-new_command001 |
|
3789 COMMAND win BeginRedraw |
|
3790 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-BitBlt_command006 |
|
3791 COMMAND win EndRedraw |
|
3792 COMMAND wsbmp ~ |
|
3793 |
|
3794 COMMAND wingc Deactivate |
|
3795 COMMAND win Close |
|
3796 COMMAND wingrp Close |
|
3797 COMMAND wingc ~ |
|
3798 COMMAND scrdev ~ |
|
3799 COMMAND ws Close |
|
3800 END_TEST_BLOCK |
|
3801 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0084 |
|
3802 |
|
3803 |
|
3804 |
|
3805 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0085 |
|
3806 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0085 |
|
3807 //! @SYMAPI CWindowGc |
|
3808 //! @SYMAuthor Victor Liu |
|
3809 //! @SYMCreationDate 11/01/2007 |
|
3810 //! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CWsBitmap *aBitmap, const TRect &aSource): perform a CWsBitmap block transfer of a rectangular piece of a bitmap |
|
3811 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3812 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load |
|
3813 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3814 //! 1.1 New and connect a RWsSession |
|
3815 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3816 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3817 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3818 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3819 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3820 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3821 //! 1.7 Activate the CWindowGc to the RWindow |
|
3822 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3823 //! 2. New and Load a CWsBitmap |
|
3824 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3825 //! 4. Execute BitBlt to perform a CWsBitmap block transfer of the rectangular piece ((21,20),(101,100)) to the specified point (10,11) |
|
3826 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
3827 //! 6. Deactive RWindow, destruct and close all objects used |
|
3828 //! @SYMTestStatus Implemented |
|
3829 //! @SYMTestPriority Critical |
|
3830 //! @SYMTestExpectedResults 1. Perform a bitmap block transfer of the rectangular piece without causing panic |
|
3831 //! 2. the drawing result of bitmap block transfer matched with the bitmap content |
|
3832 //! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((40,40),(80,80)) within the source rectangle |
|
3833 //! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen |
|
3834 //! @SYMTestType CIT |
|
3835 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3836 CREATE_OBJECT RWsSession ws |
|
3837 CREATE_OBJECT CWsScreenDevice scrdev |
|
3838 CREATE_OBJECT CWindowGc wingc |
|
3839 CREATE_OBJECT RWindowGroup wingrp |
|
3840 CREATE_OBJECT RWindow win |
|
3841 COMMAND ws new |
|
3842 COMMAND ws Connect |
|
3843 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3844 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3845 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3846 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3847 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3848 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3849 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3850 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3851 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3852 COMMAND win Activate |
|
3853 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3854 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3855 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3856 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3857 |
|
3858 CREATE_OBJECT CWsBitmap wsbmp |
|
3859 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-new_command001 |
|
3860 COMMAND win BeginRedraw |
|
3861 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-BitBlt_command006 |
|
3862 COMMAND win EndRedraw |
|
3863 COMMAND wsbmp ~ |
|
3864 |
|
3865 COMMAND wingc Deactivate |
|
3866 COMMAND win Close |
|
3867 COMMAND wingrp Close |
|
3868 COMMAND wingc ~ |
|
3869 COMMAND scrdev ~ |
|
3870 COMMAND ws Close |
|
3871 END_TEST_BLOCK |
|
3872 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0085 |
|
3873 |
|
3874 |
|
3875 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0086 |
|
3876 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0086 |
|
3877 //! @SYMAPI CWindowGc |
|
3878 //! @SYMAuthor Victor Liu |
|
3879 //! @SYMCreationDate 31/01/2007 |
|
3880 //! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CWsBitmap *aBitmap, const TRect &aSourceRect, const CWsBitmap *aMaskBitmap, TBool aInvertMask): perform a masked CWsBitmap block transfer of a rectangular piece of a bitmap |
|
3881 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, |
|
3882 //! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load |
|
3883 //! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result |
|
3884 //! 1.1 New and connect a RWsSession |
|
3885 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3886 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3887 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3888 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
3889 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) |
|
3890 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
3891 //! 1.7 Activate the CWindowGc to the RWindow |
|
3892 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
3893 //! 2. New and Load a source CWsBitmap and a mask CWsBitmap |
|
3894 //! 3. Use RWindow::BeginRedraw() to start a redraw cycle |
|
3895 //! 4. Execute BitBltMasked to perform a masked CWsBitmap block transfer of the rectangular piece ((0,0),(180,180)) to the specified point (10,11) |
|
3896 //! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result |
|
3897 //! 6. Deactive RWindow, destruct and close all objects used |
|
3898 //! @SYMTestStatus Implemented |
|
3899 //! @SYMTestPriority Critical |
|
3900 //! @SYMTestExpectedResults 1. Perform a masked bitmap block transfer of the rectangular piece without causing panic |
|
3901 //! 2. the drawing result of masked bitmap block transfer matched with the bitmap content |
|
3902 //! 2.1 only compare sub-areas of TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) within the source rectangle |
|
3903 //! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen |
|
3904 //! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) |
|
3905 //! @SYMTestType CIT |
|
3906 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3907 CREATE_OBJECT RWsSession ws |
|
3908 CREATE_OBJECT CWsScreenDevice scrdev |
|
3909 CREATE_OBJECT CWindowGc wingc |
|
3910 CREATE_OBJECT RWindowGroup wingrp |
|
3911 CREATE_OBJECT RWindow win |
|
3912 COMMAND ws new |
|
3913 COMMAND ws Connect |
|
3914 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
3915 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
3916 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
3917 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
3918 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
3919 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
3920 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
3921 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
3922 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 |
|
3923 COMMAND win Activate |
|
3924 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 |
|
3925 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 |
|
3926 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 |
|
3927 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 |
|
3928 |
|
3929 CREATE_OBJECT CWsBitmap wsbmp |
|
3930 CREATE_OBJECT CWsBitmap wsmaskbmp |
|
3931 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command001 |
|
3932 COMMAND wsmaskbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command004 |
|
3933 COMMAND wsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command005 |
|
3934 COMMAND win BeginRedraw |
|
3935 COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-BitBltMasked_command009 |
|
3936 COMMAND win EndRedraw |
|
3937 COMMAND wsbmp ~ |
|
3938 COMMAND wsmaskbmp ~ |
|
3939 |
|
3940 COMMAND wingc Deactivate |
|
3941 COMMAND win Close |
|
3942 COMMAND wingrp Close |
|
3943 COMMAND wingc ~ |
|
3944 COMMAND scrdev ~ |
|
3945 COMMAND ws Close |
|
3946 END_TEST_BLOCK |
|
3947 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0086 |
|
3948 |
|
3949 //! ----------------------------------------------------------------------------------------- |
|
3950 |
|
3951 |
|
3952 |
|
3953 |
|
3954 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0101 |
|
3955 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0101 |
|
3956 //! @SYMAPI CWindowGc |
|
3957 //! @SYMAuthor Shirly Kuo |
|
3958 //! @SYMCreationDate 28/12/2006 |
|
3959 //! @SYMTestCaseDesc Sets the pen colour. |
|
3960 //! Uses API elements: SetPenColor() |
|
3961 //! @SYMTestActions 1. Construct and connect to RWsSession using new() and Connect() and return KErrNone if successed. |
|
3962 //! 2. Construct and Initialize the CWsScreenDevice using new() and Construct() and return KErrNone if successed. |
|
3963 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
3964 //! 4. Construct and Initialize the RWindowGroup using new(), Construct() and return KErrNone if successed. |
|
3965 //! 5. Construct and Initialize the RWindow using new(), Construct() and return KErrNone if successed. |
|
3966 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
3967 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
3968 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
3969 //! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
3970 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
3971 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
3972 //! 12. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. |
|
3973 //! 13. Draw a rectangle using DrawRect() and return KErrNone if successed. |
|
3974 //! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
3975 //! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
3976 //! |
|
3977 //! @SYMTestStatus Implemented |
|
3978 //! @SYMTestPriority Low |
|
3979 //! @SYMTestExpectedResults A red rectangle was redraw on the graphic context screen successfully. |
|
3980 //! @SYMTestType CIT |
|
3981 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
3982 CREATE_OBJECT RWsSession ws |
|
3983 CREATE_OBJECT CWsScreenDevice scrdev |
|
3984 CREATE_OBJECT CWindowGc wingc |
|
3985 CREATE_OBJECT RWindowGroup wingrp |
|
3986 CREATE_OBJECT RWindow win |
|
3987 COMMAND ws new |
|
3988 COMMAND ws Connect |
|
3989 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
3990 COMMAND scrdev Construct |
|
3991 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
3992 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
3993 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
3994 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
3995 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
3996 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
3997 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
3998 COMMAND win Activate |
|
3999 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4000 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4001 |
|
4002 COMMAND win BeginRedraw |
|
4003 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
4004 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 |
|
4005 COMMAND wingc Deactivate |
|
4006 COMMAND win EndRedraw |
|
4007 |
|
4008 COMMAND wingc ~ |
|
4009 COMMAND win Close |
|
4010 COMMAND wingrp Close |
|
4011 COMMAND scrdev ~ |
|
4012 COMMAND ws Close |
|
4013 END_TEST_BLOCK |
|
4014 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0101 |
|
4015 |
|
4016 |
|
4017 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0102 |
|
4018 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0102 |
|
4019 //! @SYMAPI CWindowGc |
|
4020 //! @SYMAuthor Shirly Kuo |
|
4021 //! @SYMCreationDate 28/12/2006 |
|
4022 //! @SYMTestCaseDesc Sets the line drawing style for the pen. |
|
4023 //! Uses API elements: SetPenStyle() |
|
4024 //! @SYMTestActions 1. Construct and connect to RWsSession using new() and Connect() and return KErrNone if successed. |
|
4025 //! 2. Construct and Initialize the CWsScreenDevice using new() and Construct() and return KErrNone if successed. |
|
4026 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4027 //! 4. Construct and Initialize the RWindowGroup using new(), Construct() and return KErrNone if successed. |
|
4028 //! 5. Construct and Initialize the RWindow using new(), Construct() and return KErrNone if successed. |
|
4029 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4030 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4031 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4032 //! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4033 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4034 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4035 //! 12. Sets the line drawing style to EDotDotDashPen for the pen using SetPenStyle() and return KErrNone if successed. |
|
4036 //! 13. Draw a rectangle using DrawRect() and return KErrNone if successed. |
|
4037 //! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4038 //! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4039 //! |
|
4040 //! @SYMTestStatus Implemented |
|
4041 //! @SYMTestPriority Low |
|
4042 //! @SYMTestExpectedResults A red rectangle was redraw on the graphic context screen with setting EDotDotDashPen pen style on it successfully. |
|
4043 //! @SYMTestType CIT |
|
4044 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4045 CREATE_OBJECT RWsSession ws |
|
4046 CREATE_OBJECT CWsScreenDevice scrdev |
|
4047 CREATE_OBJECT CWindowGc wingc |
|
4048 CREATE_OBJECT RWindowGroup wingrp |
|
4049 CREATE_OBJECT RWindow win |
|
4050 COMMAND ws new |
|
4051 COMMAND ws Connect |
|
4052 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4053 COMMAND scrdev Construct |
|
4054 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4055 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4056 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4057 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4058 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4059 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4060 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4061 COMMAND win Activate |
|
4062 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4063 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4064 |
|
4065 COMMAND win BeginRedraw |
|
4066 |
|
4067 COMMAND wingc SetPenStyle GRAPHICS-WSERV-WindowGc-PublicApi-0102-0001-SetPenStyle_command002 |
|
4068 |
|
4069 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 |
|
4070 |
|
4071 COMMAND wingc Deactivate |
|
4072 COMMAND win EndRedraw |
|
4073 DELAY 500000 |
|
4074 |
|
4075 COMMAND wingc ~ |
|
4076 COMMAND win Close |
|
4077 COMMAND wingrp Close |
|
4078 COMMAND scrdev ~ |
|
4079 COMMAND ws Close |
|
4080 END_TEST_BLOCK |
|
4081 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0102 |
|
4082 |
|
4083 |
|
4084 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0103 |
|
4085 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0103 |
|
4086 //! @SYMAPI CWindowGc |
|
4087 //! @SYMAuthor Shirly Kuo |
|
4088 //! @SYMCreationDate 28/12/2006 |
|
4089 //! @SYMTestCaseDesc Sets the line drawing size for the pen. |
|
4090 //! Uses API elements: SetPenSize() |
|
4091 //! @SYMTestActions 1. Construct and connect to RWsSession using new() and Connect() and return KErrNone if successed. |
|
4092 //! 2. Construct and Initialize the CWsScreenDevice using new() and Construct() and return KErrNone if successed. |
|
4093 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4094 //! 4. Construct and Initialize the RWindowGroup using new(), Construct() and return KErrNone if successed. |
|
4095 //! 5. Construct and Initialize the RWindow using new(), Construct() and return KErrNone if successed. |
|
4096 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4097 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4098 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4099 //! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4100 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4101 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4102 //! 12. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and return KErrNone if successed. |
|
4103 //! 13. Draw a rectangle using DrawRect() and return KErrNone if successed. |
|
4104 //! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4105 //! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4106 //! |
|
4107 //! @SYMTestStatus Implemented |
|
4108 //! @SYMTestPriority Low |
|
4109 //! @SYMTestExpectedResults A rectangle was redraw on the graphic context screen with setting width, height pen size on it successfully. |
|
4110 //! @SYMTestType CIT |
|
4111 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4112 CREATE_OBJECT RWsSession ws |
|
4113 CREATE_OBJECT CWsScreenDevice scrdev |
|
4114 CREATE_OBJECT CWindowGc wingc |
|
4115 CREATE_OBJECT RWindowGroup wingrp |
|
4116 CREATE_OBJECT RWindow win |
|
4117 COMMAND ws new |
|
4118 COMMAND ws Connect |
|
4119 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4120 COMMAND scrdev Construct |
|
4121 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4122 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4123 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4124 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4125 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4126 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4127 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4128 COMMAND win Activate |
|
4129 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4130 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4131 |
|
4132 COMMAND win BeginRedraw |
|
4133 |
|
4134 COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 |
|
4135 |
|
4136 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 |
|
4137 |
|
4138 COMMAND wingc Deactivate |
|
4139 COMMAND win EndRedraw |
|
4140 DELAY 500000 |
|
4141 |
|
4142 COMMAND wingc ~ |
|
4143 COMMAND win Close |
|
4144 COMMAND wingrp Close |
|
4145 COMMAND scrdev ~ |
|
4146 COMMAND ws Close |
|
4147 END_TEST_BLOCK |
|
4148 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0103 |
|
4149 |
|
4150 |
|
4151 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0104 |
|
4152 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0104 |
|
4153 //! @SYMAPI CWindowGc |
|
4154 //! @SYMAuthor Shirly Kuo |
|
4155 //! @SYMCreationDate 28/12/2006 |
|
4156 //! @SYMTestCaseDesc Sets the brush colour. |
|
4157 //! Uses API elements: SetBrushColor() |
|
4158 //! @SYMTestActions 1. Construct and connect to RWsSession using new() and Connect() and return KErrNone if successed. |
|
4159 //! 2. Construct and Initialize the CWsScreenDevice using new() and Construct() and return KErrNone if successed. |
|
4160 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4161 //! 4. Construct and Initialize the RWindowGroup using new(), Construct() and return KErrNone if successed. |
|
4162 //! 5. Construct and Initialize the RWindow using new(), Construct() and return KErrNone if successed. |
|
4163 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4164 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4165 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4166 //! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4167 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4168 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4169 //! 12. Sets the brush colour using SetBrushColor() and return KErrNone if successed. |
|
4170 //! 13. Draw a Pie with blue colour using DrawPie() and return KErrNone if successed. |
|
4171 //! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4172 //! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4173 //! |
|
4174 //! @SYMTestStatus Implemented |
|
4175 //! @SYMTestPriority Low |
|
4176 //! @SYMTestExpectedResults A blue pie was redraw on the graphic context screen successfully. |
|
4177 //! @SYMTestType CIT |
|
4178 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4179 CREATE_OBJECT RWsSession ws |
|
4180 CREATE_OBJECT CWsScreenDevice scrdev |
|
4181 CREATE_OBJECT CWindowGc wingc |
|
4182 CREATE_OBJECT RWindowGroup wingrp |
|
4183 CREATE_OBJECT RWindow win |
|
4184 COMMAND ws new |
|
4185 COMMAND ws Connect |
|
4186 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4187 COMMAND scrdev Construct |
|
4188 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4189 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4190 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4191 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4192 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4193 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4194 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4195 COMMAND win Activate |
|
4196 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4197 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4198 |
|
4199 COMMAND win BeginRedraw |
|
4200 |
|
4201 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-PublicApi-0104-0001-SetBrushColor_command002 |
|
4202 |
|
4203 COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002 |
|
4204 |
|
4205 COMMAND wingc Deactivate |
|
4206 COMMAND win EndRedraw |
|
4207 DELAY 500000 |
|
4208 |
|
4209 COMMAND wingc ~ |
|
4210 COMMAND win Close |
|
4211 COMMAND wingrp Close |
|
4212 COMMAND scrdev ~ |
|
4213 COMMAND ws Close |
|
4214 END_TEST_BLOCK |
|
4215 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0104 |
|
4216 |
|
4217 |
|
4218 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0105 |
|
4219 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0105 |
|
4220 //! @SYMAPI CWindowGc |
|
4221 //! @SYMAuthor Shirly Kuo |
|
4222 //! @SYMCreationDate 28/12/2006 |
|
4223 //! @SYMTestCaseDesc Sets the line drawing style for the brush. |
|
4224 //! Uses API elements: SetBrushStyle() |
|
4225 //! @SYMTestActions 1. Construct and connect to RWsSession using new() and Connect() and return KErrNone if successed. |
|
4226 //! 2. Construct and Initialize the CWsScreenDevice using new() and Construct() and return KErrNone if successed. |
|
4227 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4228 //! 4. Construct and Initialize the RWindowGroup using new(), Construct() and return KErrNone if successed. |
|
4229 //! 5. Construct and Initialize the RWindow using new(), Construct() and return KErrNone if successed. |
|
4230 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4231 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4232 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4233 //! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4234 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4235 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4236 //! 12. Draw a Pie with blue colour using DrawPie() and return KErrNone if successed. |
|
4237 //! 13. Sets the line drawing style to ESolidBrush for the brush using SetBrushStyle() and return KErrNone if successed. |
|
4238 //! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4239 //! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4240 //! |
|
4241 //! @SYMTestStatus Implemented |
|
4242 //! @SYMTestPriority Low |
|
4243 //! @SYMTestExpectedResults A blue and solid brush pie was redraw on the graphic context screen successfully. |
|
4244 //! @SYMTestType CIT |
|
4245 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4246 CREATE_OBJECT RWsSession ws |
|
4247 CREATE_OBJECT CWsScreenDevice scrdev |
|
4248 CREATE_OBJECT CWindowGc wingc |
|
4249 CREATE_OBJECT RWindowGroup wingrp |
|
4250 CREATE_OBJECT RWindow win |
|
4251 COMMAND ws new |
|
4252 COMMAND ws Connect |
|
4253 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4254 COMMAND scrdev Construct |
|
4255 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4256 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4257 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4258 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4259 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4260 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4261 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4262 COMMAND win Activate |
|
4263 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4264 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4265 |
|
4266 COMMAND win BeginRedraw |
|
4267 |
|
4268 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-PublicApi-0104-0001-SetBrushColor_command002 |
|
4269 |
|
4270 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-PublicApi-0105-0001-SetBrushStyle_command002 |
|
4271 |
|
4272 COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002 |
|
4273 |
|
4274 COMMAND wingc Deactivate |
|
4275 COMMAND win EndRedraw |
|
4276 DELAY 500000 |
|
4277 |
|
4278 COMMAND wingc ~ |
|
4279 COMMAND win Close |
|
4280 COMMAND wingrp Close |
|
4281 COMMAND scrdev ~ |
|
4282 COMMAND ws Close |
|
4283 END_TEST_BLOCK |
|
4284 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0105 |
|
4285 |
|
4286 |
|
4287 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0106 |
|
4288 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0106 |
|
4289 //! @SYMAPI CWindowGc |
|
4290 //! @SYMAuthor Shirly Kuo |
|
4291 //! @SYMCreationDate 28/12/2006 |
|
4292 //! @SYMTestCaseDesc Sets the brush pattern origin. |
|
4293 //! Uses API elements: SetBrushOrigin() |
|
4294 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
4295 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
4296 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4297 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
4298 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
4299 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4300 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4301 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4302 //! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4303 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4304 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4305 //! 12. Sets the brush pattern origin using SetBrushOrigin() and return KErrNone if successed. |
|
4306 //! 13. Draw a Pie with the default colour using DrawPie() and return KErrNone if successed. |
|
4307 //! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4308 //! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4309 //! |
|
4310 //! @SYMTestStatus Implemented |
|
4311 //! @SYMTestPriority Low |
|
4312 //! @SYMTestExpectedResults A default clour and solid brush pie was redraw on the define brush origin of the graphic context screen successfully. |
|
4313 //! @SYMTestType CIT |
|
4314 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4315 CREATE_OBJECT RWsSession ws |
|
4316 CREATE_OBJECT CWsScreenDevice scrdev |
|
4317 CREATE_OBJECT CWindowGc wingc |
|
4318 CREATE_OBJECT RWindowGroup wingrp |
|
4319 CREATE_OBJECT RWindow win |
|
4320 COMMAND ws new |
|
4321 COMMAND ws Connect |
|
4322 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4323 COMMAND scrdev Construct |
|
4324 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4325 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4326 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4327 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4328 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4329 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4330 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4331 COMMAND win Activate |
|
4332 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4333 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4334 |
|
4335 COMMAND win BeginRedraw |
|
4336 |
|
4337 COMMAND wingc SetBrushOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0106-0001-SetBrushOrigin_command002 |
|
4338 |
|
4339 COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0302-0001-DrawPie_command002 |
|
4340 |
|
4341 COMMAND wingc Deactivate |
|
4342 COMMAND win EndRedraw |
|
4343 DELAY 500000 |
|
4344 |
|
4345 COMMAND wingc ~ |
|
4346 COMMAND win Close |
|
4347 COMMAND wingrp Close |
|
4348 COMMAND scrdev ~ |
|
4349 COMMAND ws Close |
|
4350 END_TEST_BLOCK |
|
4351 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0106 |
|
4352 |
|
4353 |
|
4354 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0107 |
|
4355 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0107 |
|
4356 //! @SYMAPI CWindowGc |
|
4357 //! @SYMAuthor Shirly Kuo |
|
4358 //! @SYMCreationDate 28/12/2006 |
|
4359 //! @SYMTestCaseDesc Sets the position of the co-ordinate origin. |
|
4360 //! Uses API elements: SetOrigin() |
|
4361 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
4362 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
4363 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4364 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
4365 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
4366 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4367 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4368 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4369 //! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4370 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4371 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4372 //! 12. Sets the position of the co-ordinate origin using SetOrigin() and return KErrNone if successed. |
|
4373 //! 13. Draw a rectangle with the default colour using DrawRect() and return KErrNone if successed. |
|
4374 //! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4375 //! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4376 //! |
|
4377 //! @SYMTestStatus Implemented |
|
4378 //! @SYMTestPriority Low |
|
4379 //! @SYMTestExpectedResults A default clour and rectangle was redraw on the position of the co-ordinate origin of the graphic context screen successfully. |
|
4380 //! @SYMTestType CIT |
|
4381 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4382 CREATE_OBJECT RWsSession ws |
|
4383 CREATE_OBJECT CWsScreenDevice scrdev |
|
4384 CREATE_OBJECT CWindowGc wingc |
|
4385 CREATE_OBJECT RWindowGroup wingrp |
|
4386 CREATE_OBJECT RWindow win |
|
4387 COMMAND ws new |
|
4388 COMMAND ws Connect |
|
4389 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4390 COMMAND scrdev Construct |
|
4391 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4392 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4393 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4394 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4395 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4396 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4397 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4398 COMMAND win Activate |
|
4399 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4400 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4401 |
|
4402 COMMAND win BeginRedraw |
|
4403 |
|
4404 COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 |
|
4405 |
|
4406 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 |
|
4407 |
|
4408 COMMAND wingc Deactivate |
|
4409 COMMAND win EndRedraw |
|
4410 DELAY 500000 |
|
4411 |
|
4412 COMMAND wingc ~ |
|
4413 COMMAND win Close |
|
4414 COMMAND wingrp Close |
|
4415 COMMAND scrdev ~ |
|
4416 COMMAND ws Close |
|
4417 END_TEST_BLOCK |
|
4418 |
|
4419 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0107 |
|
4420 |
|
4421 |
|
4422 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0108 |
|
4423 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0108 |
|
4424 //! @SYMAPI CWindowGc |
|
4425 //! @SYMAuthor Shirly Kuo |
|
4426 //! @SYMCreationDate 28/12/2006 |
|
4427 //! @SYMTestCaseDesc Sets the drawing mode. |
|
4428 //! Uses API elements: SetDrawMode() |
|
4429 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
4430 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
4431 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4432 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
4433 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
4434 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4435 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4436 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4437 //! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4438 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4439 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4440 //! 12. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. |
|
4441 //! 13. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and return KErrNone if successed. |
|
4442 //! 14. Sets the position of the co-ordinate origin using SetOrigin() and return KErrNone if successed. |
|
4443 //! 15. Sets the drawing mode to EDrawModeXOR using SetDrawMode() and return KErrNone if successed. |
|
4444 //! 16. Draw a rectangle using DrawRect() and return KErrNone if successed. |
|
4445 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4446 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4447 //! |
|
4448 //! @SYMTestStatus Implemented |
|
4449 //! @SYMTestPriority Low |
|
4450 //! @SYMTestExpectedResults A red rectangle was redraw with drawing mode EDrawModeXOR on the graphic context screen successfully. |
|
4451 //! @SYMTestType CIT |
|
4452 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4453 CREATE_OBJECT RWsSession ws |
|
4454 CREATE_OBJECT CWsScreenDevice scrdev |
|
4455 CREATE_OBJECT CWindowGc wingc |
|
4456 CREATE_OBJECT RWindowGroup wingrp |
|
4457 CREATE_OBJECT RWindow win |
|
4458 COMMAND ws new |
|
4459 COMMAND ws Connect |
|
4460 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4461 COMMAND scrdev Construct |
|
4462 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4463 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4464 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4465 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4466 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4467 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4468 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4469 COMMAND win Activate |
|
4470 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4471 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4472 |
|
4473 COMMAND win BeginRedraw |
|
4474 |
|
4475 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
4476 |
|
4477 COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 |
|
4478 |
|
4479 COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 |
|
4480 |
|
4481 COMMAND wingc SetDrawMode GRAPHICS-WSERV-WindowGc-PublicApi-0108-0001-SetDrawMode_command002 |
|
4482 |
|
4483 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 |
|
4484 |
|
4485 COMMAND wingc Deactivate |
|
4486 COMMAND win EndRedraw |
|
4487 DELAY 500000 |
|
4488 |
|
4489 COMMAND wingc ~ |
|
4490 COMMAND win Close |
|
4491 COMMAND wingrp Close |
|
4492 COMMAND scrdev ~ |
|
4493 COMMAND ws Close |
|
4494 END_TEST_BLOCK |
|
4495 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0108 |
|
4496 |
|
4497 |
|
4498 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0109 |
|
4499 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0109 |
|
4500 //! @SYMAPI CWindowGc |
|
4501 //! @SYMAuthor Shirly Kuo |
|
4502 //! @SYMCreationDate 28/12/2006 |
|
4503 //! @SYMTestCaseDesc Sets and unsets an opaque flag on the window. |
|
4504 //! Uses API elements: SetOpaque() |
|
4505 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
4506 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
4507 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4508 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
4509 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
4510 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4511 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4512 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4513 //! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4514 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4515 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4516 //! 12. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. |
|
4517 //! 13. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and return KErrNone if successed. |
|
4518 //! 14. Sets the position of the co-ordinate origin using SetOrigin() and return KErrNone if successed. |
|
4519 //! 15. Sets the drawing mode to EDrawModeXOR using SetDrawMode() and return KErrNone if successed. |
|
4520 //! 16. Draw a rectangle using DrawRect() and return KErrNone if successed. |
|
4521 //! 17. Sets an opaque flag on the window and return KErrNone if successed. |
|
4522 //! 18. Sets the pen colour to green using SetPenColor() and return KErrNone if successed. |
|
4523 //! 19. Draw a Pie with blue colour using DrawPie() and return KErrNone if successed. |
|
4524 //! 20. Sets the line drawing style to ESolidBrush for the brush using SetBrushStyle() and return KErrNone if successed. |
|
4525 //! 21. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4526 //! 22. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4527 //! |
|
4528 //! @SYMTestStatus Implemented |
|
4529 //! @SYMTestPriority Low |
|
4530 //! @SYMTestExpectedResults A an opaque rectangle was redraw with drawing mode EDrawModeXOR on the graphic context screen successfully. |
|
4531 //! @SYMTestType CIT |
|
4532 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4533 CREATE_OBJECT RWsSession ws |
|
4534 CREATE_OBJECT CWsScreenDevice scrdev |
|
4535 CREATE_OBJECT CWindowGc wingc |
|
4536 CREATE_OBJECT RWindowGroup wingrp |
|
4537 CREATE_OBJECT RWindow win |
|
4538 COMMAND ws new |
|
4539 COMMAND ws Connect |
|
4540 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4541 COMMAND scrdev Construct |
|
4542 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4543 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4544 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4545 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4546 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4547 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4548 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4549 COMMAND win Activate |
|
4550 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4551 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4552 |
|
4553 COMMAND win BeginRedraw |
|
4554 |
|
4555 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
4556 |
|
4557 COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 |
|
4558 |
|
4559 COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 |
|
4560 |
|
4561 COMMAND wingc SetDrawMode GRAPHICS-WSERV-WindowGc-PublicApi-0108-0001-SetDrawMode_command002 |
|
4562 |
|
4563 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 |
|
4564 |
|
4565 COMMAND wingc SetOpaque GRAPHICS-WSERV-WindowGc-PublicApi-0109-0001-SetOpaque_command002 |
|
4566 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0109-0001-SetPenColor_command003 |
|
4567 |
|
4568 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-PublicApi-0104-0001-SetBrushColor_command002 |
|
4569 |
|
4570 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-PublicApi-0105-0001-SetBrushStyle_command002 |
|
4571 |
|
4572 COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002 |
|
4573 |
|
4574 COMMAND wingc Deactivate |
|
4575 COMMAND win EndRedraw |
|
4576 DELAY 500000 |
|
4577 |
|
4578 COMMAND wingc ~ |
|
4579 COMMAND win Close |
|
4580 COMMAND wingrp Close |
|
4581 COMMAND scrdev ~ |
|
4582 COMMAND ws Close |
|
4583 END_TEST_BLOCK |
|
4584 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0109 |
|
4585 |
|
4586 |
|
4587 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0110 |
|
4588 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0110 |
|
4589 //! @SYMAPI CWindowGc |
|
4590 //! @SYMAuthor Shirly Kuo |
|
4591 //! @SYMCreationDate 28/12/2006 |
|
4592 //! @SYMTestCaseDesc Sets whether the graphics context is faded. |
|
4593 //! Uses API elements: SetFaded() |
|
4594 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
4595 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
4596 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4597 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
4598 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
4599 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4600 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4601 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4602 //! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4603 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4604 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4605 //! 12. Sets the graphics context to faded using SetFaded() and return KErrNone if successed. |
|
4606 //! 13. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. |
|
4607 //! 14. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and return KErrNone if successed. |
|
4608 //! 15. Sets the position of the co-ordinate origin using SetOrigin() and return KErrNone if successed. |
|
4609 //! 16. Sets the drawing mode to EDrawModeXOR using SetDrawMode() and return KErrNone if successed. |
|
4610 //! 17. Draw a rectangle using DrawRect() and return KErrNone if successed. |
|
4611 //! 18. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4612 //! 19. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4613 //! |
|
4614 //! @SYMTestStatus Implemented |
|
4615 //! @SYMTestPriority Low |
|
4616 //! @SYMTestExpectedResults A an faded rectangle was redraw on the graphic context screen successfully. |
|
4617 //! @SYMTestType CIT |
|
4618 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4619 CREATE_OBJECT RWsSession ws |
|
4620 CREATE_OBJECT CWsScreenDevice scrdev |
|
4621 CREATE_OBJECT CWindowGc wingc |
|
4622 CREATE_OBJECT RWindowGroup wingrp |
|
4623 CREATE_OBJECT RWindow win |
|
4624 COMMAND ws new |
|
4625 COMMAND ws Connect |
|
4626 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4627 COMMAND scrdev Construct |
|
4628 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4629 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4630 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4631 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4632 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4633 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4634 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4635 COMMAND win Activate |
|
4636 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4637 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4638 |
|
4639 COMMAND win BeginRedraw |
|
4640 |
|
4641 COMMAND wingc SetFaded GRAPHICS-WSERV-WindowGc-PublicApi-0110-0001-SetFaded_command002 |
|
4642 |
|
4643 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
4644 |
|
4645 COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 |
|
4646 |
|
4647 COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 |
|
4648 |
|
4649 COMMAND wingc SetDrawMode GRAPHICS-WSERV-WindowGc-PublicApi-0108-0001-SetDrawMode_command002 |
|
4650 |
|
4651 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 |
|
4652 |
|
4653 COMMAND wingc Deactivate |
|
4654 COMMAND win EndRedraw |
|
4655 DELAY 500000 |
|
4656 |
|
4657 COMMAND wingc ~ |
|
4658 COMMAND win Close |
|
4659 COMMAND wingrp Close |
|
4660 COMMAND scrdev ~ |
|
4661 COMMAND ws Close |
|
4662 END_TEST_BLOCK |
|
4663 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0110 |
|
4664 |
|
4665 |
|
4666 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0111 |
|
4667 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0111 |
|
4668 //! @SYMAPI CWindowGc |
|
4669 //! @SYMAuthor Shirly Kuo |
|
4670 //! @SYMCreationDate 28/12/2006 |
|
4671 //! @SYMTestCaseDesc Sets the fading parameters. |
|
4672 //! Uses API elements: SetFadingParameters() |
|
4673 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
4674 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
4675 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4676 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
4677 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
4678 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4679 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4680 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4681 //! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4682 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4683 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4684 //! 12. Sets the fading parameters using SetFadingParameters() with BlackMap to 100, WhiteMap to 100 and return KErrNone if successed. |
|
4685 //! 13. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. |
|
4686 //! 14. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and return KErrNone if successed. |
|
4687 //! 15. Sets the position of the co-ordinate origin using SetOrigin() and return KErrNone if successed. |
|
4688 //! 16. Draw a Pie with blue colour using DrawPie() and return KErrNone if successed. |
|
4689 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4690 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4691 //! |
|
4692 //! @SYMTestStatus Implemented |
|
4693 //! @SYMTestPriority Low |
|
4694 //! @SYMTestExpectedResults A an faded pie was redraw on the graphic context screen successfully. |
|
4695 //! @SYMTestType CIT |
|
4696 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4697 CREATE_OBJECT RWsSession ws |
|
4698 CREATE_OBJECT CWsScreenDevice scrdev |
|
4699 CREATE_OBJECT CWindowGc wingc |
|
4700 CREATE_OBJECT RWindowGroup wingrp |
|
4701 CREATE_OBJECT RWindow win |
|
4702 COMMAND ws new |
|
4703 COMMAND ws Connect |
|
4704 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4705 COMMAND scrdev Construct |
|
4706 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4707 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4708 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4709 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4710 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4711 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4712 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4713 COMMAND win Activate |
|
4714 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4715 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4716 |
|
4717 COMMAND win BeginRedraw |
|
4718 |
|
4719 COMMAND wingc SetFadingParameters GRAPHICS-WSERV-WindowGc-PublicApi-0111-0001-SetFadingParameters_command002 |
|
4720 |
|
4721 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
4722 |
|
4723 COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 |
|
4724 |
|
4725 COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 |
|
4726 |
|
4727 COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002 |
|
4728 |
|
4729 COMMAND wingc Deactivate |
|
4730 COMMAND win EndRedraw |
|
4731 DELAY 500000 |
|
4732 |
|
4733 COMMAND wingc ~ |
|
4734 COMMAND win Close |
|
4735 COMMAND wingrp Close |
|
4736 COMMAND scrdev ~ |
|
4737 COMMAND ws Close |
|
4738 END_TEST_BLOCK |
|
4739 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0111 |
|
4740 |
|
4741 |
|
4742 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0112 |
|
4743 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0112 |
|
4744 //! @SYMAPI CWindowGc |
|
4745 //! @SYMAuthor Shirly Kuo |
|
4746 //! @SYMCreationDate 28/12/2006 |
|
4747 //! @SYMTestCaseDesc Sets the origin used for colour dithering. |
|
4748 //! Uses API elements: SetDitherOrigin() |
|
4749 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
4750 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
4751 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4752 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
4753 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
4754 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4755 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4756 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4757 //! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4758 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4759 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4760 //! 12. Sets the origin used for colour dithering using SetDitherOrigin() with position (250,25) and return KErrNone if successed. |
|
4761 //! 13. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. |
|
4762 //! 14. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and return KErrNone if successed. |
|
4763 //! 15. Sets the position of the co-ordinate origin using SetOrigin() and return KErrNone if successed. |
|
4764 //! 16. Draw a Pie with the default colour using DrawPie() and return KErrNone if successed. |
|
4765 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4766 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4767 //! |
|
4768 //! @SYMTestStatus Implemented |
|
4769 //! @SYMTestPriority Low |
|
4770 //! @SYMTestExpectedResults A colour dithering of the origin pie was redraw on the graphic context screen successfully. |
|
4771 //! @SYMTestType CIT |
|
4772 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4773 CREATE_OBJECT RWsSession ws |
|
4774 CREATE_OBJECT CWsScreenDevice scrdev |
|
4775 CREATE_OBJECT CWindowGc wingc |
|
4776 CREATE_OBJECT RWindowGroup wingrp |
|
4777 CREATE_OBJECT RWindow win |
|
4778 COMMAND ws new |
|
4779 COMMAND ws Connect |
|
4780 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4781 COMMAND scrdev Construct |
|
4782 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4783 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4784 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4785 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4786 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4787 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4788 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4789 COMMAND win Activate |
|
4790 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4791 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4792 |
|
4793 COMMAND win BeginRedraw |
|
4794 |
|
4795 COMMAND wingc SetDitherOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0112-0001-SetDitherOrigin_command002 |
|
4796 |
|
4797 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
4798 |
|
4799 COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 |
|
4800 |
|
4801 COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 |
|
4802 |
|
4803 COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0302-0001-DrawPie_command002 |
|
4804 |
|
4805 COMMAND wingc Deactivate |
|
4806 COMMAND win EndRedraw |
|
4807 DELAY 500000 |
|
4808 |
|
4809 COMMAND wingc ~ |
|
4810 COMMAND win Close |
|
4811 COMMAND wingrp Close |
|
4812 COMMAND scrdev ~ |
|
4813 COMMAND ws Close |
|
4814 END_TEST_BLOCK |
|
4815 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0112 |
|
4816 |
|
4817 |
|
4818 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0113 |
|
4819 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0113 |
|
4820 //! @SYMAPI CWindowGc |
|
4821 //! @SYMAuthor Shirly Kuo |
|
4822 //! @SYMCreationDate 28/12/2006 |
|
4823 //! @SYMTestCaseDesc Re-maps pixel colours within a rectangle. |
|
4824 //! Uses API elements: MapColors() |
|
4825 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
4826 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
4827 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4828 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
4829 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
4830 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4831 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4832 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4833 //! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4834 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4835 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4836 //! 12. Sets the brush colour using SetBrushColor() and return KErrNone if successed. |
|
4837 //! 13. Sets the line drawing style to ESolidBrush for the brush using SetBrushStyle() and return KErrNone if successed. |
|
4838 //! 14. Draw a Pie with the default colour using DrawPie() and return KErrNone if successed. |
|
4839 //! 15. Re-maps pixel colours within a rectangle using MapColors() and return KErrNone if successed. |
|
4840 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4841 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4842 //! |
|
4843 //! @SYMTestStatus Implemented |
|
4844 //! @SYMTestPriority Low |
|
4845 //! @SYMTestExpectedResults A Re-maps pixel colours of the origin pie was redraw on the graphic context screen successfully. |
|
4846 //! @SYMTestType CIT |
|
4847 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4848 CREATE_OBJECT RWsSession ws |
|
4849 CREATE_OBJECT CWsScreenDevice scrdev |
|
4850 CREATE_OBJECT CWindowGc wingc |
|
4851 CREATE_OBJECT RWindowGroup wingrp |
|
4852 CREATE_OBJECT RWindow win |
|
4853 COMMAND ws new |
|
4854 COMMAND ws Connect |
|
4855 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4856 COMMAND scrdev Construct |
|
4857 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4858 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4859 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4860 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4861 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4862 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4863 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4864 COMMAND win Activate |
|
4865 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4866 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4867 |
|
4868 COMMAND win BeginRedraw |
|
4869 |
|
4870 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-PublicApi-0104-0001-SetBrushColor_command002 |
|
4871 |
|
4872 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-PublicApi-0105-0001-SetBrushStyle_command002 |
|
4873 |
|
4874 COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002 |
|
4875 |
|
4876 COMMAND wingc MapColors GRAPHICS-WSERV-WindowGc-PublicApi-0113-0001-MapColors_command002 |
|
4877 |
|
4878 COMMAND wingc Deactivate |
|
4879 COMMAND win EndRedraw |
|
4880 DELAY 500000 |
|
4881 |
|
4882 COMMAND wingc ~ |
|
4883 COMMAND win Close |
|
4884 COMMAND wingrp Close |
|
4885 COMMAND scrdev ~ |
|
4886 COMMAND ws Close |
|
4887 END_TEST_BLOCK |
|
4888 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0113 |
|
4889 |
|
4890 |
|
4891 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0114 |
|
4892 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0114 |
|
4893 //! @SYMAPI CWindowGc |
|
4894 //! @SYMAuthor Shirly Kuo |
|
4895 //! @SYMCreationDate 28/12/2006 |
|
4896 //! @SYMTestCaseDesc Sets the brush pattern to the specified bitmap. |
|
4897 //! Uses API elements: UseBrushPattern() |
|
4898 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
4899 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
4900 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4901 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
4902 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
4903 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4904 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4905 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4906 //! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4907 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4908 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4909 //! 12. Construct and Initialize the CFbsBitmap using new() and return KErrNone if successed. |
|
4910 //! 13. Loading the specific bitmap by using Load() and return KErrNone if successed. |
|
4911 //! 14. Sets the brush pattern to the specified bitmap by using UseBrushPattern() and return KErrNone if successed. |
|
4912 //! 15. Draw a Pie with the default colour using DrawPie() and return KErrNone if successed. |
|
4913 //! 16. Discards a non-built-in brush pattern to free up the memory used for the bitmap and return KErrNone if successed. |
|
4914 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4915 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4916 //! |
|
4917 //! @SYMTestStatus Implemented |
|
4918 //! @SYMTestPriority High |
|
4919 //! @SYMTestExpectedResults A bitmap as brush pattern of the origin pie was redraw on the graphic context screen successfully. |
|
4920 //! @SYMTestType CIT |
|
4921 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4922 CREATE_OBJECT RWsSession ws |
|
4923 CREATE_OBJECT CWsScreenDevice scrdev |
|
4924 CREATE_OBJECT CWindowGc wingc |
|
4925 CREATE_OBJECT RWindowGroup wingrp |
|
4926 CREATE_OBJECT RWindow win |
|
4927 COMMAND ws new |
|
4928 COMMAND ws Connect |
|
4929 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
4930 COMMAND scrdev Construct |
|
4931 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
4932 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
4933 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
4934 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
4935 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
4936 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
4937 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
4938 COMMAND win Activate |
|
4939 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
4940 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
4941 |
|
4942 COMMAND win BeginRedraw |
|
4943 |
|
4944 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
4945 COMMAND fbsBitmap new |
|
4946 COMMAND fbsBitmap Load GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-Load_command003 |
|
4947 COMMAND wingc UseBrushPattern GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-UseBrushPattern_command005 |
|
4948 COMMAND wingc SetPenStyle GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-SetPenStyle_command006 |
|
4949 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-SetBrushStyle_command007 |
|
4950 |
|
4951 COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002 |
|
4952 |
|
4953 COMMAND wingc DiscardBrushPattern |
|
4954 COMMAND wingc Deactivate |
|
4955 COMMAND win EndRedraw |
|
4956 COMMAND fbsBitmap ~ |
|
4957 |
|
4958 DELAY 500000 |
|
4959 |
|
4960 COMMAND wingc ~ |
|
4961 COMMAND win Close |
|
4962 COMMAND wingrp Close |
|
4963 COMMAND scrdev ~ |
|
4964 COMMAND ws Close |
|
4965 END_TEST_BLOCK |
|
4966 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0114 |
|
4967 |
|
4968 |
|
4969 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0115 |
|
4970 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0115 |
|
4971 //! @SYMAPI CWindowGc |
|
4972 //! @SYMAuthor Shirly Kuo |
|
4973 //! @SYMCreationDate 28/12/2006 |
|
4974 //! @SYMTestCaseDesc Sets the context's font to current graphic context, and draw the text on the context, then discard font from the memory. |
|
4975 //! Uses API elements: UseFont(), DrawText() and DiscardFont() |
|
4976 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
4977 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
4978 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
4979 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
4980 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
4981 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
4982 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
4983 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
4984 //! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
4985 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
4986 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
4987 //! 12. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. |
|
4988 //! 13. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. |
|
4989 //! 14. Draws the text with defined font on graphic context screen by using DrawText() and return KErrNone if successed. |
|
4990 //! 15. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. |
|
4991 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
4992 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
4993 //! |
|
4994 //! @SYMTestStatus Implemented |
|
4995 //! @SYMTestPriority High |
|
4996 //! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen successfully. |
|
4997 //! @SYMTestType CIT |
|
4998 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
4999 CREATE_OBJECT RWsSession ws |
|
5000 CREATE_OBJECT CWsScreenDevice scrdev |
|
5001 CREATE_OBJECT CWindowGc wingc |
|
5002 CREATE_OBJECT RWindowGroup wingrp |
|
5003 CREATE_OBJECT RWindow win |
|
5004 COMMAND ws new |
|
5005 COMMAND ws Connect |
|
5006 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
5007 COMMAND scrdev Construct |
|
5008 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
5009 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
5010 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
5011 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
5012 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
5013 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
5014 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
5015 COMMAND win Activate |
|
5016 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
5017 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
5018 |
|
5019 COMMAND win BeginRedraw |
|
5020 |
|
5021 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
5022 |
|
5023 CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 |
|
5024 CREATE_OBJECT CFbsFont CFbsFont1 |
|
5025 COMMAND CFbsTypefaceStore1 NewL |
|
5026 COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 |
|
5027 COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 |
|
5028 |
|
5029 COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-DrawText_command003 |
|
5030 |
|
5031 COMMAND wingc DiscardFont |
|
5032 COMMAND CFbsTypefaceStore1 ~ |
|
5033 |
|
5034 COMMAND wingc Deactivate |
|
5035 COMMAND win EndRedraw |
|
5036 DELAY 500000 |
|
5037 |
|
5038 COMMAND wingc ~ |
|
5039 COMMAND win Close |
|
5040 COMMAND wingrp Close |
|
5041 COMMAND scrdev ~ |
|
5042 COMMAND ws Close |
|
5043 END_TEST_BLOCK |
|
5044 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0115 |
|
5045 |
|
5046 |
|
5047 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0116 |
|
5048 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0116 |
|
5049 //! @SYMAPI CWindowGc |
|
5050 //! @SYMAuthor Shirly Kuo |
|
5051 //! @SYMCreationDate 28/12/2006 |
|
5052 //! @SYMTestCaseDesc Sets the context's font to current graphic context, and draw the text on the context, then discard font from the memory. |
|
5053 //! Uses API elements: UseFont(), DrawText() and DiscardFont() |
|
5054 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
5055 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
5056 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
5057 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
5058 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
5059 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
5060 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
5061 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
5062 //! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
5063 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
5064 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
5065 //! 12. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. |
|
5066 //! 13. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. |
|
5067 //! 14. Draws the text with baseline Offset, text align, left margin and defined font to graphic context by using DrawText() and return KErrNone if successed. |
|
5068 //! 15. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. |
|
5069 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
5070 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
5071 //! |
|
5072 //! @SYMTestStatus Implemented |
|
5073 //! @SYMTestPriority High |
|
5074 //! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen successfully. |
|
5075 //! @SYMTestType CIT |
|
5076 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5077 CREATE_OBJECT RWsSession ws |
|
5078 CREATE_OBJECT CWsScreenDevice scrdev |
|
5079 CREATE_OBJECT CWindowGc wingc |
|
5080 CREATE_OBJECT RWindowGroup wingrp |
|
5081 CREATE_OBJECT RWindow win |
|
5082 COMMAND ws new |
|
5083 COMMAND ws Connect |
|
5084 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
5085 COMMAND scrdev Construct |
|
5086 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
5087 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
5088 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
5089 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
5090 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
5091 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
5092 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
5093 COMMAND win Activate |
|
5094 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
5095 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
5096 |
|
5097 COMMAND win BeginRedraw |
|
5098 |
|
5099 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
5100 |
|
5101 CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 |
|
5102 CREATE_OBJECT CFbsFont CFbsFont1 |
|
5103 COMMAND CFbsTypefaceStore1 NewL |
|
5104 COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 |
|
5105 COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 |
|
5106 COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0118-0001-DrawText_command003 |
|
5107 |
|
5108 COMMAND wingc DiscardFont |
|
5109 COMMAND CFbsTypefaceStore1 ~ |
|
5110 |
|
5111 COMMAND wingc Deactivate |
|
5112 COMMAND win EndRedraw |
|
5113 DELAY 500000 |
|
5114 |
|
5115 COMMAND wingc ~ |
|
5116 COMMAND win Close |
|
5117 COMMAND wingrp Close |
|
5118 COMMAND scrdev ~ |
|
5119 COMMAND ws Close |
|
5120 END_TEST_BLOCK |
|
5121 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0116 |
|
5122 |
|
5123 |
|
5124 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0117 |
|
5125 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0117 |
|
5126 //! @SYMAPI CWindowGc |
|
5127 //! @SYMAuthor Shirly Kuo |
|
5128 //! @SYMCreationDate 28/12/2006 |
|
5129 //! @SYMTestCaseDesc Sets word justification. |
|
5130 //! Uses API elements: SetWordJustification() |
|
5131 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
5132 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
5133 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
5134 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
5135 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
5136 //! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
5137 //! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
5138 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
5139 //! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
5140 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
5141 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
5142 //! 12. Sets word justification by using SetWordJustification() and return KErrNone if successed. |
|
5143 //! 12. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. |
|
5144 //! 13. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. |
|
5145 //! 14. Draws the text with defined font on graphic context screen by using DrawText() and return KErrNone if successed. |
|
5146 //! 15. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. |
|
5147 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
5148 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
5149 //! |
|
5150 //! @SYMTestStatus Implemented |
|
5151 //! @SYMTestPriority High |
|
5152 //! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen with word justification successfully. |
|
5153 //! @SYMTestType CIT |
|
5154 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5155 CREATE_OBJECT RWsSession ws |
|
5156 CREATE_OBJECT CWsScreenDevice scrdev |
|
5157 CREATE_OBJECT CWindowGc wingc |
|
5158 CREATE_OBJECT RWindowGroup wingrp |
|
5159 CREATE_OBJECT RWindow win |
|
5160 COMMAND ws new |
|
5161 COMMAND ws Connect |
|
5162 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
5163 COMMAND scrdev Construct |
|
5164 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
5165 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
5166 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
5167 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
5168 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
5169 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
5170 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
5171 COMMAND win Activate |
|
5172 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
5173 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
5174 |
|
5175 COMMAND win BeginRedraw |
|
5176 |
|
5177 COMMAND wingc SetWordJustification GRAPHICS-WSERV-WindowGc-PublicApi-0119-0001-SetWordJustification_command002 |
|
5178 |
|
5179 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
5180 |
|
5181 CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 |
|
5182 CREATE_OBJECT CFbsFont CFbsFont1 |
|
5183 COMMAND CFbsTypefaceStore1 NewL |
|
5184 COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 |
|
5185 COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 |
|
5186 COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-DrawText_command003 |
|
5187 |
|
5188 COMMAND wingc DiscardFont |
|
5189 COMMAND CFbsTypefaceStore1 ~ |
|
5190 |
|
5191 COMMAND wingc Deactivate |
|
5192 COMMAND win EndRedraw |
|
5193 DELAY 500000 |
|
5194 |
|
5195 COMMAND wingc ~ |
|
5196 COMMAND win Close |
|
5197 COMMAND wingrp Close |
|
5198 COMMAND scrdev ~ |
|
5199 COMMAND ws Close |
|
5200 END_TEST_BLOCK |
|
5201 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0117 |
|
5202 |
|
5203 |
|
5204 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0118 |
|
5205 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0118 |
|
5206 //! @SYMAPI CWindowGc |
|
5207 //! @SYMAuthor Shirly Kuo |
|
5208 //! @SYMCreationDate 28/12/2006 |
|
5209 //! @SYMTestCaseDesc Sets the character justification. |
|
5210 //! Uses API elements: SetCharJustification() |
|
5211 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
5212 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
5213 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
5214 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
5215 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
5216 //! 6. Set required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
5217 //! 7. Set window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
5218 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
5219 //! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
5220 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
5221 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
5222 //! 12. Sets character justification by using SetCharJustification() and return KErrNone if successed. |
|
5223 //! 13. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. |
|
5224 //! 14. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. |
|
5225 //! 15. Draws the text with defined font on graphic context screen by using DrawText() and return KErrNone if successed. |
|
5226 //! 16. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. |
|
5227 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
5228 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
5229 //! |
|
5230 //! @SYMTestStatus Implemented |
|
5231 //! @SYMTestPriority High |
|
5232 //! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen with character justification successfully. |
|
5233 //! @SYMTestType CIT |
|
5234 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5235 CREATE_OBJECT RWsSession ws |
|
5236 CREATE_OBJECT CWsScreenDevice scrdev |
|
5237 CREATE_OBJECT CWindowGc wingc |
|
5238 CREATE_OBJECT RWindowGroup wingrp |
|
5239 CREATE_OBJECT RWindow win |
|
5240 COMMAND ws new |
|
5241 COMMAND ws Connect |
|
5242 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
5243 COMMAND scrdev Construct |
|
5244 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
5245 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
5246 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
5247 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
5248 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
5249 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
5250 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
5251 COMMAND win Activate |
|
5252 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
5253 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
5254 |
|
5255 COMMAND win BeginRedraw |
|
5256 |
|
5257 COMMAND wingc SetCharJustification GRAPHICS-WSERV-WindowGc-PublicApi-0120-0001-SetCharJustification_command002 |
|
5258 |
|
5259 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
5260 |
|
5261 CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 |
|
5262 CREATE_OBJECT CFbsFont CFbsFont1 |
|
5263 COMMAND CFbsTypefaceStore1 NewL |
|
5264 COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 |
|
5265 COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 |
|
5266 COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0118-0001-DrawText_command003 |
|
5267 |
|
5268 COMMAND wingc DiscardFont |
|
5269 COMMAND CFbsTypefaceStore1 ~ |
|
5270 |
|
5271 COMMAND wingc Deactivate |
|
5272 COMMAND win EndRedraw |
|
5273 DELAY 500000 |
|
5274 |
|
5275 COMMAND wingc ~ |
|
5276 COMMAND win Close |
|
5277 COMMAND wingrp Close |
|
5278 COMMAND scrdev ~ |
|
5279 COMMAND ws Close |
|
5280 END_TEST_BLOCK |
|
5281 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0118 |
|
5282 |
|
5283 |
|
5284 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0119 |
|
5285 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0119 |
|
5286 //! @SYMAPI CWindowGc |
|
5287 //! @SYMAuthor Shirly Kuo |
|
5288 //! @SYMCreationDate 28/12/2006 |
|
5289 //! @SYMTestCaseDesc Draws vertical text in the specified direction. |
|
5290 //! Uses API elements: UseFont(), DrawTextVertical() and DiscardFont() |
|
5291 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
5292 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
5293 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
5294 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
5295 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
5296 //! 6. Set required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
5297 //! 7. Set window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
5298 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
5299 //! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
5300 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
5301 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
5302 //! 13. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. |
|
5303 //! 14. Draws vertical text in the specified direction and defined font to graphic context by using DrawText() and return KErrNone if successed. |
|
5304 //! 15. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. |
|
5305 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
5306 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
5307 //! |
|
5308 //! @SYMTestStatus Implemented |
|
5309 //! @SYMTestPriority High |
|
5310 //! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen successfully. |
|
5311 //! @SYMTestType CIT |
|
5312 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5313 CREATE_OBJECT RWsSession ws |
|
5314 CREATE_OBJECT CWsScreenDevice scrdev |
|
5315 CREATE_OBJECT CWindowGc wingc |
|
5316 CREATE_OBJECT RWindowGroup wingrp |
|
5317 CREATE_OBJECT RWindow win |
|
5318 COMMAND ws new |
|
5319 COMMAND ws Connect |
|
5320 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
5321 COMMAND scrdev Construct |
|
5322 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
5323 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
5324 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
5325 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
5326 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
5327 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
5328 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
5329 COMMAND win Activate |
|
5330 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
5331 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
5332 |
|
5333 COMMAND win BeginRedraw |
|
5334 |
|
5335 CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 |
|
5336 CREATE_OBJECT CFbsFont CFbsFont1 |
|
5337 COMMAND CFbsTypefaceStore1 NewL |
|
5338 COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 |
|
5339 COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 |
|
5340 COMMAND wingc DrawTextVertical GRAPHICS-WSERV-WindowGc-PublicApi-0121-0001-DrawTextVertical_command003 |
|
5341 |
|
5342 COMMAND wingc DiscardFont |
|
5343 COMMAND CFbsTypefaceStore1 ~ |
|
5344 |
|
5345 COMMAND wingc Deactivate |
|
5346 COMMAND win EndRedraw |
|
5347 DELAY 500000 |
|
5348 |
|
5349 COMMAND wingc ~ |
|
5350 COMMAND win Close |
|
5351 COMMAND wingrp Close |
|
5352 COMMAND scrdev ~ |
|
5353 COMMAND ws Close |
|
5354 END_TEST_BLOCK |
|
5355 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0119 |
|
5356 |
|
5357 |
|
5358 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0120 |
|
5359 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0120 |
|
5360 //! @SYMAPI CWindowGc |
|
5361 //! @SYMAuthor Shirly Kuo |
|
5362 //! @SYMCreationDate 28/12/2006 |
|
5363 //! @SYMTestCaseDesc Draws text vertically in the specified direction, within a box of the specified size. |
|
5364 //! Uses API elements: UseFont(), DrawTextVertical() and DiscardFont() |
|
5365 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
5366 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
5367 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
5368 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
5369 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
5370 //! 6. Set required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
5371 //! 7. Set window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
5372 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
5373 //! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
5374 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
5375 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
5376 //! 13. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. |
|
5377 //! 14. Draws text vertically in the specified direction, within a box of the specified size and defined font to graphic context by using DrawText() and return KErrNone if successed. |
|
5378 //! 15. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. |
|
5379 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
5380 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
5381 //! |
|
5382 //! @SYMTestStatus Implemented |
|
5383 //! @SYMTestPriority High |
|
5384 //! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen successfully. |
|
5385 //! @SYMTestType CIT |
|
5386 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5387 CREATE_OBJECT RWsSession ws |
|
5388 CREATE_OBJECT CWsScreenDevice scrdev |
|
5389 CREATE_OBJECT CWindowGc wingc |
|
5390 CREATE_OBJECT RWindowGroup wingrp |
|
5391 CREATE_OBJECT RWindow win |
|
5392 COMMAND ws new |
|
5393 COMMAND ws Connect |
|
5394 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
5395 COMMAND scrdev Construct |
|
5396 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
5397 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
5398 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
5399 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
5400 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
5401 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
5402 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
5403 COMMAND win Activate |
|
5404 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
5405 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
5406 |
|
5407 COMMAND win BeginRedraw |
|
5408 |
|
5409 CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 |
|
5410 CREATE_OBJECT CFbsFont CFbsFont1 |
|
5411 COMMAND CFbsTypefaceStore1 NewL |
|
5412 COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 |
|
5413 COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 |
|
5414 COMMAND wingc DrawTextVertical GRAPHICS-WSERV-WindowGc-PublicApi-0122-0001-DrawTextVertical_command003 |
|
5415 |
|
5416 COMMAND wingc DiscardFont |
|
5417 COMMAND CFbsTypefaceStore1 ~ |
|
5418 |
|
5419 COMMAND wingc Deactivate |
|
5420 COMMAND win EndRedraw |
|
5421 DELAY 500000 |
|
5422 |
|
5423 COMMAND wingc ~ |
|
5424 COMMAND win Close |
|
5425 COMMAND wingrp Close |
|
5426 COMMAND scrdev ~ |
|
5427 COMMAND ws Close |
|
5428 END_TEST_BLOCK |
|
5429 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0120 |
|
5430 |
|
5431 |
|
5432 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0121 |
|
5433 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0121 |
|
5434 //! @SYMAPI CWindowGc |
|
5435 //! @SYMAuthor Shirly Kuo |
|
5436 //! @SYMCreationDate 28/12/2006 |
|
5437 //! @SYMTestCaseDesc Sets the underline style for all subsequently drawn text. |
|
5438 //! Uses API elements: UseFont(), DrawText(), SetUnderlineStyle() and DiscardFont() |
|
5439 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
5440 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
5441 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
5442 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
5443 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
5444 //! 6. Set required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
5445 //! 7. Set window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
5446 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
5447 //! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
5448 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
5449 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
5450 //! 12. Sets the underline style for all subsequently drawn text and return KErrNone if successed. |
|
5451 //! 13. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. |
|
5452 //! 14. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. |
|
5453 //! 15. Draws the text with defined font on graphic context screen by using DrawText() and return KErrNone if successed. |
|
5454 //! 16. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. |
|
5455 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
5456 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
5457 //! |
|
5458 //! @SYMTestStatus Implemented |
|
5459 //! @SYMTestPriority High |
|
5460 //! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen with character justification successfully. |
|
5461 //! @SYMTestType CIT |
|
5462 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5463 CREATE_OBJECT RWsSession ws |
|
5464 CREATE_OBJECT CWsScreenDevice scrdev |
|
5465 CREATE_OBJECT CWindowGc wingc |
|
5466 CREATE_OBJECT RWindowGroup wingrp |
|
5467 CREATE_OBJECT RWindow win |
|
5468 COMMAND ws new |
|
5469 COMMAND ws Connect |
|
5470 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
5471 COMMAND scrdev Construct |
|
5472 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
5473 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
5474 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
5475 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
5476 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
5477 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
5478 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
5479 COMMAND win Activate |
|
5480 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
5481 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
5482 |
|
5483 COMMAND win BeginRedraw |
|
5484 |
|
5485 COMMAND wingc SetUnderlineStyle GRAPHICS-WSERV-WindowGc-PublicApi-0123-0001-SetUnderlineStyle_command002 |
|
5486 |
|
5487 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
5488 |
|
5489 CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 |
|
5490 CREATE_OBJECT CFbsFont CFbsFont1 |
|
5491 COMMAND CFbsTypefaceStore1 NewL |
|
5492 COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 |
|
5493 COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 |
|
5494 COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-DrawText_command003 |
|
5495 |
|
5496 COMMAND wingc DiscardFont |
|
5497 COMMAND CFbsTypefaceStore1 ~ |
|
5498 |
|
5499 COMMAND wingc Deactivate |
|
5500 COMMAND win EndRedraw |
|
5501 DELAY 500000 |
|
5502 |
|
5503 COMMAND wingc ~ |
|
5504 COMMAND win Close |
|
5505 COMMAND wingrp Close |
|
5506 COMMAND scrdev ~ |
|
5507 COMMAND ws Close |
|
5508 END_TEST_BLOCK |
|
5509 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0121 |
|
5510 |
|
5511 |
|
5512 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0122 |
|
5513 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0122 |
|
5514 //! @SYMAPI CWindowGc |
|
5515 //! @SYMAuthor Shirly Kuo |
|
5516 //! @SYMCreationDate 28/12/2006 |
|
5517 //! @SYMTestCaseDesc Sets the strikethrough style for all subsequently drawn text. |
|
5518 //! Uses API elements: UseFont(), DrawText(), SetStrikethroughStyle() and DiscardFont() |
|
5519 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
5520 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
5521 //! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. |
|
5522 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
5523 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
5524 //! 6. Set required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. |
|
5525 //! 7. Set window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. |
|
5526 //! 8. Activate the RWindow using Activate() and return KErrNone if successed. |
|
5527 //! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
5528 //! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
5529 //! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. |
|
5530 //! 12. Sets the strikethrough style for all subsequently drawn text and return KErrNone if successed. |
|
5531 //! 13. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. |
|
5532 //! 14. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. |
|
5533 //! 15. Draws the text with defined font on graphic context screen by using DrawText() and return KErrNone if successed. |
|
5534 //! 16. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. |
|
5535 //! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. |
|
5536 //! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. |
|
5537 //! |
|
5538 //! @SYMTestStatus Implemented |
|
5539 //! @SYMTestPriority High |
|
5540 //! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen with character justification successfully. |
|
5541 //! @SYMTestType CIT |
|
5542 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5543 CREATE_OBJECT RWsSession ws |
|
5544 CREATE_OBJECT CWsScreenDevice scrdev |
|
5545 CREATE_OBJECT CWindowGc wingc |
|
5546 CREATE_OBJECT RWindowGroup wingrp |
|
5547 CREATE_OBJECT RWindow win |
|
5548 COMMAND ws new |
|
5549 COMMAND ws Connect |
|
5550 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
5551 COMMAND scrdev Construct |
|
5552 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
5553 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
5554 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
5555 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
5556 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
5557 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 |
|
5558 COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 |
|
5559 COMMAND win Activate |
|
5560 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
5561 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
5562 |
|
5563 COMMAND win BeginRedraw |
|
5564 |
|
5565 COMMAND wingc SetStrikethroughStyle GRAPHICS-WSERV-WindowGc-PublicApi-0124-0001-SetStrikethroughStyle_command002 |
|
5566 |
|
5567 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
5568 |
|
5569 CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 |
|
5570 CREATE_OBJECT CFbsFont CFbsFont1 |
|
5571 COMMAND CFbsTypefaceStore1 NewL |
|
5572 COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 |
|
5573 COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 |
|
5574 COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0118-0001-DrawText_command003 |
|
5575 |
|
5576 COMMAND wingc DiscardFont |
|
5577 COMMAND CFbsTypefaceStore1 ~ |
|
5578 |
|
5579 COMMAND wingc Deactivate |
|
5580 COMMAND win EndRedraw |
|
5581 DELAY 500000 |
|
5582 |
|
5583 COMMAND wingc ~ |
|
5584 COMMAND win Close |
|
5585 COMMAND wingrp Close |
|
5586 COMMAND scrdev ~ |
|
5587 COMMAND ws Close |
|
5588 END_TEST_BLOCK |
|
5589 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0122 |
|
5590 |
|
5591 |
|
5592 |
|
5593 |
|
5594 // **************************************************************************** |
|
5595 // Negative testcases of CWindowGc |
|
5596 // **************************************************************************** |
|
5597 |
|
5598 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1002 |
|
5599 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1002 |
|
5600 //! @SYMAPI CWindowGc |
|
5601 //! @SYMAuthor Victor Liu |
|
5602 //! @SYMCreationDate 04/10/2007 |
|
5603 //! @SYMTestCaseDesc Activate(RDrawableWindow &aDevice): Execute Activate() on a CWindowGc that already activated |
|
5604 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
5605 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
5606 //! 1.1 New and connect a RWsSession |
|
5607 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
5608 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
5609 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
5610 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
5611 //! 2. Execute Activate() on the CWindowGc to the RWindow |
|
5612 //! 3. Execute Activate() on the CWindowGc to the RWindow again and see if it meets expected panic code |
|
5613 //! 4. Destruct and close all objects used |
|
5614 //! @SYMTestStatus Implemented |
|
5615 //! @SYMTestPriority Medium |
|
5616 //! @SYMTestExpectedResults get panic WSERV code=10 (Attempted to activate an already active graphics context) |
|
5617 //! @SYMTestType CIT |
|
5618 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5619 CREATE_OBJECT RWsSession ws |
|
5620 CREATE_OBJECT CWsScreenDevice scrdev |
|
5621 CREATE_OBJECT CWindowGc wingc |
|
5622 CREATE_OBJECT RWindowGroup wingrp |
|
5623 CREATE_OBJECT RWindow win |
|
5624 COMMAND ws new |
|
5625 COMMAND ws Connect |
|
5626 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
5627 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
5628 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
5629 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
5630 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
5631 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
5632 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
5633 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-1002-0001-Activate_command001 |
|
5634 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-1002-0001-Activate_command001 |
|
5635 COMMAND ws Flush |
|
5636 END_TEST_BLOCK !PanicString=WSERV !PanicCode=10 |
|
5637 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5638 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1002 |
|
5639 |
|
5640 |
|
5641 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1003 |
|
5642 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1003 |
|
5643 //! @SYMAPI CWindowGc |
|
5644 //! @SYMAuthor Victor Liu |
|
5645 //! @SYMCreationDate 04/10/2007 |
|
5646 //! @SYMTestCaseDesc Activate(RDrawableWindow &aDevice): Execute Activate() a CWindowGc to a invalid RDrawableWindow |
|
5647 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct |
|
5648 //! @SYMTestActions 1. Setup a CWindowGc and RWindowGroup to test |
|
5649 //! 1.1 New and connect a RWsSession |
|
5650 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
5651 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
5652 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
5653 //! 2. Execute Activate() on the CWindowGc to invalid RDrawableWindow (the RWindowGroup object) and see if it meets expected panic code |
|
5654 //! 3. Destruct and close all objects used |
|
5655 //! @SYMTestStatus Implemented |
|
5656 //! @SYMTestPriority Medium |
|
5657 //! @SYMTestExpectedResults get panic WSERV code=6 (Invalid window handle) |
|
5658 //! @SYMTestType CIT |
|
5659 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5660 CREATE_OBJECT RWsSession ws |
|
5661 CREATE_OBJECT CWsScreenDevice scrdev |
|
5662 CREATE_OBJECT CWindowGc wingc |
|
5663 CREATE_OBJECT RWindowGroup wingrp |
|
5664 COMMAND ws new |
|
5665 COMMAND ws Connect |
|
5666 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
5667 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
5668 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
5669 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
5670 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
5671 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-1003-0001-Activate_command001 |
|
5672 COMMAND ws Flush |
|
5673 END_TEST_BLOCK !PanicString=WSERV !PanicCode=6 |
|
5674 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5675 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1003 |
|
5676 |
|
5677 |
|
5678 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1004 |
|
5679 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1004 |
|
5680 //! @SYMAPI CWindowGc |
|
5681 //! @SYMAuthor Victor Liu |
|
5682 //! @SYMCreationDate 04/10/2007 |
|
5683 //! @SYMTestCaseDesc Deactivate(): Execute Deactivate() a CWindowGc before Activate() it |
|
5684 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
5685 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
5686 //! 1.1 New and connect a RWsSession |
|
5687 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
5688 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
5689 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
5690 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
5691 //! 2. Execute Deactivate() a CWindowGc before Activate() it |
|
5692 //! 3. Destruct and close all objects used |
|
5693 //! @SYMTestStatus Implemented |
|
5694 //! @SYMTestPriority Medium |
|
5695 //! @SYMTestExpectedResults Deactivate() a CWindowGc before Activate() it would not generate error |
|
5696 //! @SYMTestType CIT |
|
5697 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5698 CREATE_OBJECT RWsSession ws |
|
5699 CREATE_OBJECT CWsScreenDevice scrdev |
|
5700 CREATE_OBJECT CWindowGc wingc |
|
5701 CREATE_OBJECT RWindowGroup wingrp |
|
5702 CREATE_OBJECT RWindow win |
|
5703 COMMAND ws new |
|
5704 COMMAND ws Connect |
|
5705 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
5706 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
5707 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
5708 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 |
|
5709 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 |
|
5710 COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 |
|
5711 COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 |
|
5712 COMMAND wingc Deactivate |
|
5713 COMMAND win Close |
|
5714 COMMAND wingrp Close |
|
5715 COMMAND wingc ~ |
|
5716 COMMAND scrdev ~ |
|
5717 COMMAND ws Close |
|
5718 END_TEST_BLOCK |
|
5719 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1004 |
|
5720 |
|
5721 |
|
5722 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1005 |
|
5723 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1005 |
|
5724 //! @SYMAPI CWindowGc |
|
5725 //! @SYMAuthor Victor Liu |
|
5726 //! @SYMCreationDate 21/11/2007 |
|
5727 //! @SYMTestCaseDesc SetClippingRect(const TRect &aRect): execute SetClippingRect in a non-active graphics context |
|
5728 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
5729 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
5730 //! 1.1 New and connect a RWsSession |
|
5731 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
5732 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
5733 //! 2. Execute SetClippingRect() before Activate() the CWindowGc |
|
5734 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
5735 //! 4. Destruct and close all objects used |
|
5736 //! @SYMTestStatus Implemented |
|
5737 //! @SYMTestPriority Medium |
|
5738 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
5739 //! @SYMTestType CIT |
|
5740 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5741 CREATE_OBJECT RWsSession ws |
|
5742 CREATE_OBJECT CWsScreenDevice scrdev |
|
5743 CREATE_OBJECT CWindowGc wingc |
|
5744 COMMAND ws new |
|
5745 COMMAND ws Connect |
|
5746 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
5747 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
5748 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
5749 COMMAND wingc SetClippingRect GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-SetClippingRect_command003 |
|
5750 COMMAND ws Flush |
|
5751 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
5752 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5753 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1005 |
|
5754 |
|
5755 |
|
5756 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1006 |
|
5757 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1006 |
|
5758 //! @SYMAPI CWindowGc |
|
5759 //! @SYMAuthor Victor Liu |
|
5760 //! @SYMCreationDate 21/11/2007 |
|
5761 //! @SYMTestCaseDesc CancelClippingRect(): execute CancelClippingRect in a non-active graphics context |
|
5762 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
5763 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
5764 //! 1.1 New and connect a RWsSession |
|
5765 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
5766 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
5767 //! 2. Execute CancelClippingRect() before Activate() the CWindowGc |
|
5768 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
5769 //! 4. Destruct and close all objects used |
|
5770 //! @SYMTestStatus Implemented |
|
5771 //! @SYMTestPriority Medium |
|
5772 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
5773 //! @SYMTestType CIT |
|
5774 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5775 CREATE_OBJECT RWsSession ws |
|
5776 CREATE_OBJECT CWsScreenDevice scrdev |
|
5777 CREATE_OBJECT CWindowGc wingc |
|
5778 COMMAND ws new |
|
5779 COMMAND ws Connect |
|
5780 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
5781 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
5782 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
5783 COMMAND wingc CancelClippingRect |
|
5784 COMMAND ws Flush |
|
5785 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
5786 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5787 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1006 |
|
5788 |
|
5789 |
|
5790 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1007 |
|
5791 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1007 |
|
5792 //! @SYMAPI CWindowGc |
|
5793 //! @SYMAuthor Victor Liu |
|
5794 //! @SYMCreationDate 22/11/2007 |
|
5795 //! @SYMTestCaseDesc MoveTo(const TPoint &aPoint): execute MoveTo in a non-active graphics context |
|
5796 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
5797 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
5798 //! 1.1 New and connect a RWsSession |
|
5799 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
5800 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
5801 //! 2. Execute MoveTo() before Activate() the CWindowGc |
|
5802 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
5803 //! 4. Destruct and close all objects used |
|
5804 //! @SYMTestStatus Implemented |
|
5805 //! @SYMTestPriority Medium |
|
5806 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
5807 //! @SYMTestType CIT |
|
5808 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5809 CREATE_OBJECT RWsSession ws |
|
5810 CREATE_OBJECT CWsScreenDevice scrdev |
|
5811 CREATE_OBJECT CWindowGc wingc |
|
5812 COMMAND ws new |
|
5813 COMMAND ws Connect |
|
5814 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
5815 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
5816 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
5817 COMMAND wingc MoveTo GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-MoveTo_command003 |
|
5818 COMMAND ws Flush |
|
5819 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
5820 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5821 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1007 |
|
5822 |
|
5823 |
|
5824 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1008 |
|
5825 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1008 |
|
5826 //! @SYMAPI CWindowGc |
|
5827 //! @SYMAuthor Victor Liu |
|
5828 //! @SYMCreationDate 22/11/2007 |
|
5829 //! @SYMTestCaseDesc MoveBy(const TPoint &aPoint): execute MoveBy in a non-active graphics context |
|
5830 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
5831 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
5832 //! 1.1 New and connect a RWsSession |
|
5833 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
5834 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
5835 //! 2. Execute MoveBy() before Activate() the CWindowGc |
|
5836 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
5837 //! 4. Destruct and close all objects used |
|
5838 //! @SYMTestStatus Implemented |
|
5839 //! @SYMTestPriority Medium |
|
5840 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
5841 //! @SYMTestType CIT |
|
5842 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5843 CREATE_OBJECT RWsSession ws |
|
5844 CREATE_OBJECT CWsScreenDevice scrdev |
|
5845 CREATE_OBJECT CWindowGc wingc |
|
5846 COMMAND ws new |
|
5847 COMMAND ws Connect |
|
5848 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
5849 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
5850 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
5851 COMMAND wingc MoveBy GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveBy_command003 |
|
5852 COMMAND ws Flush |
|
5853 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
5854 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5855 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1008 |
|
5856 |
|
5857 |
|
5858 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1009 |
|
5859 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1009 |
|
5860 //! @SYMAPI CWindowGc |
|
5861 //! @SYMAuthor Victor Liu |
|
5862 //! @SYMCreationDate 02/11/2007 |
|
5863 //! @SYMTestCaseDesc Plot(const TPoint &aPoint): execute Plot in a non-active graphics context |
|
5864 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
5865 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
5866 //! 1.1 New and connect a RWsSession |
|
5867 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
5868 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
5869 //! 2. Execute Plot() before Activate() the CWindowGc |
|
5870 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
5871 //! 4. Destruct and close all objects used |
|
5872 //! @SYMTestStatus Implemented |
|
5873 //! @SYMTestPriority Medium |
|
5874 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
5875 //! @SYMTestType CIT |
|
5876 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5877 CREATE_OBJECT RWsSession ws |
|
5878 CREATE_OBJECT CWsScreenDevice scrdev |
|
5879 CREATE_OBJECT CWindowGc wingc |
|
5880 COMMAND ws new |
|
5881 COMMAND ws Connect |
|
5882 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
5883 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
5884 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
5885 COMMAND wingc Plot GRAPHICS-WSERV-WindowGc-PublicApi-0028-0001-Plot_command003 |
|
5886 COMMAND ws Flush |
|
5887 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
5888 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5889 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1009 |
|
5890 |
|
5891 |
|
5892 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1010 |
|
5893 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1010 |
|
5894 //! @SYMAPI CWindowGc |
|
5895 //! @SYMAuthor Victor Liu |
|
5896 //! @SYMCreationDate 05/11/2007 |
|
5897 //! @SYMTestCaseDesc DrawArc(const TRect &aRect, const TPoint &aStart, const TPoint &aEnd): execute DrawArc in a non-active graphics context |
|
5898 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
5899 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
5900 //! 1.1 New and connect a RWsSession |
|
5901 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
5902 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
5903 //! 2. Execute DrawArc() before Activate() the CWindowGc |
|
5904 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
5905 //! 4. Destruct and close all objects used |
|
5906 //! @SYMTestStatus Implemented |
|
5907 //! @SYMTestPriority Medium |
|
5908 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
5909 //! @SYMTestType CIT |
|
5910 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5911 CREATE_OBJECT RWsSession ws |
|
5912 CREATE_OBJECT CWsScreenDevice scrdev |
|
5913 CREATE_OBJECT CWindowGc wingc |
|
5914 COMMAND ws new |
|
5915 COMMAND ws Connect |
|
5916 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
5917 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
5918 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
5919 COMMAND wingc DrawArc GRAPHICS-WSERV-WindowGc-PublicApi-0029-0001-DrawArc_command003 |
|
5920 COMMAND ws Flush |
|
5921 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
5922 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5923 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1010 |
|
5924 |
|
5925 |
|
5926 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1011 |
|
5927 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1011 |
|
5928 //! @SYMAPI CWindowGc |
|
5929 //! @SYMAuthor Victor Liu |
|
5930 //! @SYMCreationDate 05/11/2007 |
|
5931 //! @SYMTestCaseDesc DrawLine(const TPoint &aPoint1, const TPoint &aPoint2): execute DrawLine in a non-active graphics context |
|
5932 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
5933 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
5934 //! 1.1 New and connect a RWsSession |
|
5935 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
5936 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
5937 //! 2. Execute DrawLine() before Activate() the CWindowGc |
|
5938 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
5939 //! 4. Destruct and close all objects used |
|
5940 //! @SYMTestStatus Implemented |
|
5941 //! @SYMTestPriority Medium |
|
5942 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
5943 //! @SYMTestType CIT |
|
5944 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5945 CREATE_OBJECT RWsSession ws |
|
5946 CREATE_OBJECT CWsScreenDevice scrdev |
|
5947 CREATE_OBJECT CWindowGc wingc |
|
5948 COMMAND ws new |
|
5949 COMMAND ws Connect |
|
5950 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
5951 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
5952 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
5953 COMMAND wingc DrawLine GRAPHICS-WSERV-WindowGc-PublicApi-0030-0001-DrawLine_command003 |
|
5954 COMMAND ws Flush |
|
5955 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
5956 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5957 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1011 |
|
5958 |
|
5959 |
|
5960 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1012 |
|
5961 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1012 |
|
5962 //! @SYMAPI CWindowGc |
|
5963 //! @SYMAuthor Victor Liu |
|
5964 //! @SYMCreationDate 06/11/2007 |
|
5965 //! @SYMTestCaseDesc DrawLineTo(const TPoint &aPoint): execute DrawLineTo in a non-active graphics context |
|
5966 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
5967 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
5968 //! 1.1 New and connect a RWsSession |
|
5969 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
5970 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
5971 //! 2. Execute DrawLineTo() before Activate() the CWindowGc |
|
5972 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
5973 //! 4. Destruct and close all objects used |
|
5974 //! @SYMTestStatus Implemented |
|
5975 //! @SYMTestPriority Medium |
|
5976 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
5977 //! @SYMTestType CIT |
|
5978 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
5979 CREATE_OBJECT RWsSession ws |
|
5980 CREATE_OBJECT CWsScreenDevice scrdev |
|
5981 CREATE_OBJECT CWindowGc wingc |
|
5982 COMMAND ws new |
|
5983 COMMAND ws Connect |
|
5984 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
5985 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
5986 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
5987 COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-DrawLineTo_command003 |
|
5988 COMMAND ws Flush |
|
5989 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
5990 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
5991 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1012 |
|
5992 |
|
5993 |
|
5994 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1013 |
|
5995 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1013 |
|
5996 //! @SYMAPI CWindowGc |
|
5997 //! @SYMAuthor Victor Liu |
|
5998 //! @SYMCreationDate 06/11/2007 |
|
5999 //! @SYMTestCaseDesc DrawLineBy(const TPoint &aPoint): execute DrawLineBy in a non-active graphics context |
|
6000 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6001 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6002 //! 1.1 New and connect a RWsSession |
|
6003 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6004 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6005 //! 2. Execute DrawLineBy() before Activate() the CWindowGc |
|
6006 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6007 //! 4. Destruct and close all objects used |
|
6008 //! @SYMTestStatus Implemented |
|
6009 //! @SYMTestPriority Medium |
|
6010 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6011 //! @SYMTestType CIT |
|
6012 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6013 CREATE_OBJECT RWsSession ws |
|
6014 CREATE_OBJECT CWsScreenDevice scrdev |
|
6015 CREATE_OBJECT CWindowGc wingc |
|
6016 COMMAND ws new |
|
6017 COMMAND ws Connect |
|
6018 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6019 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6020 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6021 COMMAND wingc DrawLineBy GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-DrawLineBy_command003 |
|
6022 COMMAND ws Flush |
|
6023 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6024 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6025 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1013 |
|
6026 |
|
6027 |
|
6028 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1014 |
|
6029 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1014 |
|
6030 //! @SYMAPI CWindowGc |
|
6031 //! @SYMAuthor Victor Liu |
|
6032 //! @SYMCreationDate 07/11/2007 |
|
6033 //! @SYMTestCaseDesc DrawPolyLine(const CArrayFix< TPoint > *aPointList): execute DrawPolyLine in a non-active graphics context |
|
6034 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6035 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6036 //! 1.1 New and connect a RWsSession |
|
6037 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6038 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6039 //! 2. Execute DrawPolyLine() before Activate() the CWindowGc |
|
6040 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6041 //! 4. Destruct and close all objects used |
|
6042 //! @SYMTestStatus Implemented |
|
6043 //! @SYMTestPriority Medium |
|
6044 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6045 //! @SYMTestType CIT |
|
6046 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6047 CREATE_OBJECT RWsSession ws |
|
6048 CREATE_OBJECT CWsScreenDevice scrdev |
|
6049 CREATE_OBJECT CWindowGc wingc |
|
6050 COMMAND ws new |
|
6051 COMMAND ws Connect |
|
6052 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6053 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6054 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6055 COMMAND wingc DrawPolyLine GRAPHICS-WSERV-WindowGc-PublicApi-0033-0001-DrawPolyLine_command003 |
|
6056 COMMAND ws Flush |
|
6057 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6058 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6059 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1014 |
|
6060 |
|
6061 |
|
6062 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1015 |
|
6063 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1015 |
|
6064 //! @SYMAPI CWindowGc |
|
6065 //! @SYMAuthor Victor Liu |
|
6066 //! @SYMCreationDate 07/11/2007 |
|
6067 //! @SYMTestCaseDesc DrawPolyLine(const TPoint *aPointList, TInt aNumPoints): execute DrawPolyLine in a non-active graphics context |
|
6068 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6069 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6070 //! 1.1 New and connect a RWsSession |
|
6071 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6072 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6073 //! 2. Execute DrawLine() before Activate() the CWindowGc |
|
6074 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6075 //! 4. Destruct and close all objects used |
|
6076 //! @SYMTestStatus Implemented |
|
6077 //! @SYMTestPriority Medium |
|
6078 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6079 //! @SYMTestType CIT |
|
6080 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6081 CREATE_OBJECT RWsSession ws |
|
6082 CREATE_OBJECT CWsScreenDevice scrdev |
|
6083 CREATE_OBJECT CWindowGc wingc |
|
6084 COMMAND ws new |
|
6085 COMMAND ws Connect |
|
6086 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6087 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6088 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6089 COMMAND wingc DrawPolyLine GRAPHICS-WSERV-WindowGc-PublicApi-0034-0001-DrawPolyLine_command003 |
|
6090 COMMAND ws Flush |
|
6091 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6092 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6093 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1015 |
|
6094 |
|
6095 |
|
6096 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1016 |
|
6097 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1016 |
|
6098 //! @SYMAPI CWindowGc |
|
6099 //! @SYMAuthor Victor Liu |
|
6100 //! @SYMCreationDate 08/11/2007 |
|
6101 //! @SYMTestCaseDesc DrawPie(const TRect &aRect, const TPoint &aStart, const TPoint &aEnd): execute DrawPie in a non-active graphics context |
|
6102 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6103 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6104 //! 1.1 New and connect a RWsSession |
|
6105 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6106 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6107 //! 2. Execute DrawPie() before Activate() the CWindowGc |
|
6108 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6109 //! 4. Destruct and close all objects used |
|
6110 //! @SYMTestStatus Implemented |
|
6111 //! @SYMTestPriority Medium |
|
6112 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6113 //! @SYMTestType CIT |
|
6114 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6115 CREATE_OBJECT RWsSession ws |
|
6116 CREATE_OBJECT CWsScreenDevice scrdev |
|
6117 CREATE_OBJECT CWindowGc wingc |
|
6118 COMMAND ws new |
|
6119 COMMAND ws Connect |
|
6120 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6121 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6122 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6123 COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0035-0001-DrawPie_command003 |
|
6124 COMMAND ws Flush |
|
6125 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6126 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6127 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1016 |
|
6128 |
|
6129 |
|
6130 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1017 |
|
6131 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1017 |
|
6132 //! @SYMAPI CWindowGc |
|
6133 //! @SYMAuthor Victor Liu |
|
6134 //! @SYMCreationDate 08/11/2007 |
|
6135 //! @SYMTestCaseDesc DrawEllipse(const TRect &aRect): execute DrawEllipse in a non-active graphics context |
|
6136 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6137 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6138 //! 1.1 New and connect a RWsSession |
|
6139 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6140 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6141 //! 2. Execute DrawEllipse() before Activate() the CWindowGc |
|
6142 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6143 //! 4. Destruct and close all objects used |
|
6144 //! @SYMTestStatus Implemented |
|
6145 //! @SYMTestPriority Medium |
|
6146 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6147 //! @SYMTestType CIT |
|
6148 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6149 CREATE_OBJECT RWsSession ws |
|
6150 CREATE_OBJECT CWsScreenDevice scrdev |
|
6151 CREATE_OBJECT CWindowGc wingc |
|
6152 COMMAND ws new |
|
6153 COMMAND ws Connect |
|
6154 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6155 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6156 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6157 COMMAND wingc DrawEllipse GRAPHICS-WSERV-WindowGc-PublicApi-0036-0001-DrawEllipse_command003 |
|
6158 COMMAND ws Flush |
|
6159 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6160 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6161 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1017 |
|
6162 |
|
6163 |
|
6164 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1018 |
|
6165 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1018 |
|
6166 //! @SYMAPI CWindowGc |
|
6167 //! @SYMAuthor Victor Liu |
|
6168 //! @SYMCreationDate 09/11/2007 |
|
6169 //! @SYMTestCaseDesc DrawRect(const TRect &aRect): execute DrawRect in a non-active graphics context |
|
6170 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6171 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6172 //! 1.1 New and connect a RWsSession |
|
6173 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6174 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6175 //! 2. Execute DrawRect() before Activate() the CWindowGc |
|
6176 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6177 //! 4. Destruct and close all objects used |
|
6178 //! @SYMTestStatus Implemented |
|
6179 //! @SYMTestPriority Medium |
|
6180 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6181 //! @SYMTestType CIT |
|
6182 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6183 CREATE_OBJECT RWsSession ws |
|
6184 CREATE_OBJECT CWsScreenDevice scrdev |
|
6185 CREATE_OBJECT CWindowGc wingc |
|
6186 COMMAND ws new |
|
6187 COMMAND ws Connect |
|
6188 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6189 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6190 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6191 COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0037-0001-DrawRect_command003 |
|
6192 COMMAND ws Flush |
|
6193 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6194 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6195 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1018 |
|
6196 |
|
6197 |
|
6198 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1019 |
|
6199 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1019 |
|
6200 //! @SYMAPI CWindowGc |
|
6201 //! @SYMAuthor Victor Liu |
|
6202 //! @SYMCreationDate 09/11/2007 |
|
6203 //! @SYMTestCaseDesc DrawRoundRect(const TRect &aRect, const TSize &aEllipse): execute DrawRoundRect in a non-active graphics context |
|
6204 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6205 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6206 //! 1.1 New and connect a RWsSession |
|
6207 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6208 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6209 //! 2. Execute DrawLine() before Activate() the CWindowGc |
|
6210 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6211 //! 4. Destruct and close all objects used |
|
6212 //! @SYMTestStatus Implemented |
|
6213 //! @SYMTestPriority Medium |
|
6214 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6215 //! @SYMTestType CIT |
|
6216 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6217 CREATE_OBJECT RWsSession ws |
|
6218 CREATE_OBJECT CWsScreenDevice scrdev |
|
6219 CREATE_OBJECT CWindowGc wingc |
|
6220 COMMAND ws new |
|
6221 COMMAND ws Connect |
|
6222 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6223 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6224 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6225 COMMAND wingc DrawRoundRect GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-DrawRoundRect_command003 |
|
6226 COMMAND ws Flush |
|
6227 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6228 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6229 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1019 |
|
6230 |
|
6231 |
|
6232 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1020 |
|
6233 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1020 |
|
6234 //! @SYMAPI CWindowGc |
|
6235 //! @SYMAuthor Victor Liu |
|
6236 //! @SYMCreationDate 12/11/2007 |
|
6237 //! @SYMTestCaseDesc DrawPolygon(const CArrayFix< TPoint > *aPointList, TFillRule aFillRule=EAlternate): execute DrawPolygon in a non-active graphics context |
|
6238 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6239 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6240 //! 1.1 New and connect a RWsSession |
|
6241 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6242 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6243 //! 2. Execute DrawPolygon() before Activate() the CWindowGc |
|
6244 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6245 //! 4. Destruct and close all objects used |
|
6246 //! @SYMTestStatus Implemented |
|
6247 //! @SYMTestPriority Medium |
|
6248 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6249 //! @SYMTestType CIT |
|
6250 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6251 CREATE_OBJECT RWsSession ws |
|
6252 CREATE_OBJECT CWsScreenDevice scrdev |
|
6253 CREATE_OBJECT CWindowGc wingc |
|
6254 COMMAND ws new |
|
6255 COMMAND ws Connect |
|
6256 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6257 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6258 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6259 COMMAND wingc DrawPolygon GRAPHICS-WSERV-WindowGc-PublicApi-0039-0001-DrawPolygon_command003 |
|
6260 COMMAND ws Flush |
|
6261 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6262 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6263 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1020 |
|
6264 |
|
6265 |
|
6266 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1021 |
|
6267 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1021 |
|
6268 //! @SYMAPI CWindowGc |
|
6269 //! @SYMAuthor Victor Liu |
|
6270 //! @SYMCreationDate 12/11/2007 |
|
6271 //! @SYMTestCaseDesc DrawPolygon(const TPoint *aPointList, TInt aNumPoints, TFillRule aFillRule=EAlternate): execute DrawPolygon in a non-active graphics context |
|
6272 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6273 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6274 //! 1.1 New and connect a RWsSession |
|
6275 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6276 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6277 //! 2. Execute DrawPolygon() before Activate() the CWindowGc |
|
6278 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6279 //! 4. Destruct and close all objects used |
|
6280 //! @SYMTestStatus Implemented |
|
6281 //! @SYMTestPriority Medium |
|
6282 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6283 //! @SYMTestType CIT |
|
6284 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6285 CREATE_OBJECT RWsSession ws |
|
6286 CREATE_OBJECT CWsScreenDevice scrdev |
|
6287 CREATE_OBJECT CWindowGc wingc |
|
6288 COMMAND ws new |
|
6289 COMMAND ws Connect |
|
6290 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6291 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6292 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6293 COMMAND wingc DrawPolygon GRAPHICS-WSERV-WindowGc-PublicApi-0040-0001-DrawPolygon_command003 |
|
6294 COMMAND ws Flush |
|
6295 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6296 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6297 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1021 |
|
6298 |
|
6299 |
|
6300 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1022 |
|
6301 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1022 |
|
6302 //! @SYMAPI CWindowGc |
|
6303 //! @SYMAuthor Victor Liu |
|
6304 //! @SYMCreationDate 13/11/2007 |
|
6305 //! @SYMTestCaseDesc DrawBitmap(const TPoint &aTopLeft, const CFbsBitmap *aDevice): execute DrawBitmap in a non-active graphics context |
|
6306 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6307 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6308 //! 1.1 New and connect a RWsSession |
|
6309 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6310 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6311 //! 2. New and Load CFbsBitmap as drawing bitmap |
|
6312 //! 3. Execute DrawBitmap() before Activate() the CWindowGc |
|
6313 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6314 //! 5. Destruct and close all objects used |
|
6315 //! @SYMTestStatus Implemented |
|
6316 //! @SYMTestPriority Medium |
|
6317 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6318 //! @SYMTestType CIT |
|
6319 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6320 CREATE_OBJECT RWsSession ws |
|
6321 CREATE_OBJECT CWsScreenDevice scrdev |
|
6322 CREATE_OBJECT CWindowGc wingc |
|
6323 COMMAND ws new |
|
6324 COMMAND ws Connect |
|
6325 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6326 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6327 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6328 CREATE_OBJECT CFbsBitmap fbsbmp |
|
6329 COMMAND fbsbmp new |
|
6330 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-Load_command002 |
|
6331 COMMAND wingc DrawBitmap GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-DrawBitmap_command010 |
|
6332 COMMAND ws Flush |
|
6333 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6334 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6335 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1022 |
|
6336 |
|
6337 |
|
6338 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1023 |
|
6339 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1023 |
|
6340 //! @SYMAPI CWindowGc |
|
6341 //! @SYMAuthor Victor Liu |
|
6342 //! @SYMCreationDate 13/11/2007 |
|
6343 //! @SYMTestCaseDesc DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice): execute DrawBitmap in a non-active graphics context |
|
6344 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6345 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6346 //! 1.1 New and connect a RWsSession |
|
6347 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6348 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6349 //! 2. New and Load CFbsBitmap as drawing bitmap |
|
6350 //! 3. Execute DrawBitmap() before Activate() the CWindowGc |
|
6351 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6352 //! 5. Destruct and close all objects used |
|
6353 //! @SYMTestStatus Implemented |
|
6354 //! @SYMTestPriority Medium |
|
6355 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6356 //! @SYMTestType CIT |
|
6357 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6358 CREATE_OBJECT RWsSession ws |
|
6359 CREATE_OBJECT CWsScreenDevice scrdev |
|
6360 CREATE_OBJECT CWindowGc wingc |
|
6361 COMMAND ws new |
|
6362 COMMAND ws Connect |
|
6363 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6364 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6365 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6366 CREATE_OBJECT CFbsBitmap fbsbmp |
|
6367 COMMAND fbsbmp new |
|
6368 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0042-0001-Load_command002 |
|
6369 COMMAND wingc DrawBitmap GRAPHICS-WSERV-WindowGc-PublicApi-0042-0001-DrawBitmap_command009 |
|
6370 COMMAND ws Flush |
|
6371 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6372 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6373 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1023 |
|
6374 |
|
6375 |
|
6376 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1024 |
|
6377 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1024 |
|
6378 //! @SYMAPI CWindowGc |
|
6379 //! @SYMAuthor Victor Liu |
|
6380 //! @SYMCreationDate 13/11/2007 |
|
6381 //! @SYMTestCaseDesc DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice, const TRect &aSourceRect): execute DrawBitmap in a non-active graphics context |
|
6382 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6383 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6384 //! 1.1 New and connect a RWsSession |
|
6385 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6386 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6387 //! 2. New and Load CFbsBitmap as drawing bitmap |
|
6388 //! 3. Execute DrawBitmap() before Activate() the CWindowGc |
|
6389 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6390 //! 5. Destruct and close all objects used |
|
6391 //! @SYMTestStatus Implemented |
|
6392 //! @SYMTestPriority Medium |
|
6393 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6394 //! @SYMTestType CIT |
|
6395 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6396 CREATE_OBJECT RWsSession ws |
|
6397 CREATE_OBJECT CWsScreenDevice scrdev |
|
6398 CREATE_OBJECT CWindowGc wingc |
|
6399 COMMAND ws new |
|
6400 COMMAND ws Connect |
|
6401 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6402 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6403 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6404 CREATE_OBJECT CFbsBitmap fbsbmp |
|
6405 COMMAND fbsbmp new |
|
6406 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0043-0001-Load_command002 |
|
6407 COMMAND wingc DrawBitmap GRAPHICS-WSERV-WindowGc-PublicApi-0043-0001-DrawBitmap_command009 |
|
6408 COMMAND ws Flush |
|
6409 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6410 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6411 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1024 |
|
6412 |
|
6413 |
|
6414 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1025 |
|
6415 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1025 |
|
6416 //! @SYMAPI CWindowGc |
|
6417 //! @SYMAuthor Victor Liu |
|
6418 //! @SYMCreationDate 14/11/2007 |
|
6419 //! @SYMTestCaseDesc DrawBitmapMasked(const TRect &aDestRect, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask): execute DrawBitmapMasked in a non-active graphics context |
|
6420 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6421 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6422 //! 1.1 New and connect a RWsSession |
|
6423 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6424 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6425 //! 2. New and Load CFbsBitmap as drawing bitmap and mask bitmap |
|
6426 //! 3. Execute DrawBitmapMasked() before Activate() the CWindowGc |
|
6427 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6428 //! 5. Destruct and close all objects used |
|
6429 //! @SYMTestStatus Implemented |
|
6430 //! @SYMTestPriority Medium |
|
6431 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6432 //! @SYMTestType CIT |
|
6433 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6434 CREATE_OBJECT RWsSession ws |
|
6435 CREATE_OBJECT CWsScreenDevice scrdev |
|
6436 CREATE_OBJECT CWindowGc wingc |
|
6437 COMMAND ws new |
|
6438 COMMAND ws Connect |
|
6439 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6440 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6441 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6442 CREATE_OBJECT CFbsBitmap fbsbmp |
|
6443 CREATE_OBJECT CFbsBitmap fbsmaskbmp |
|
6444 COMMAND fbsbmp new |
|
6445 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-Load_command002 |
|
6446 COMMAND fbsmaskbmp new |
|
6447 COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-Load_command010 |
|
6448 COMMAND wingc DrawBitmapMasked GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-DrawBitmapMasked_command015 |
|
6449 COMMAND ws Flush |
|
6450 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6451 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6452 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1025 |
|
6453 |
|
6454 |
|
6455 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1026 |
|
6456 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1026 |
|
6457 //! @SYMAPI CWindowGc |
|
6458 //! @SYMAuthor Victor Liu |
|
6459 //! @SYMCreationDate 14/11/2007 |
|
6460 //! @SYMTestCaseDesc DrawBitmapMasked(const TRect &aDestRect, const CWsBitmap *aBitmap, const TRect &aSourceRect, const CWsBitmap *aMaskBitmap, TBool aInvertMask): execute DrawBitmap in a non-active graphics context |
|
6461 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6462 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6463 //! 1.1 New and connect a RWsSession |
|
6464 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6465 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6466 //! 2. New and Load CWsBitmap as drawing bitmap and mask bitmap |
|
6467 //! 3. Execute DrawBitmapMasked() before Activate() the CWindowGc |
|
6468 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6469 //! 5. Destruct and close all objects used |
|
6470 //! @SYMTestStatus Implemented |
|
6471 //! @SYMTestPriority Medium |
|
6472 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6473 //! @SYMTestType CIT |
|
6474 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6475 CREATE_OBJECT RWsSession ws |
|
6476 CREATE_OBJECT CWsScreenDevice scrdev |
|
6477 CREATE_OBJECT CWindowGc wingc |
|
6478 COMMAND ws new |
|
6479 COMMAND ws Connect |
|
6480 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6481 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6482 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6483 CREATE_OBJECT CWsBitmap wsbmp |
|
6484 CREATE_OBJECT CWsBitmap wsmaskbmp |
|
6485 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-new_command001 |
|
6486 COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-Load_command002 |
|
6487 COMMAND wsmaskbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-new_command004 |
|
6488 COMMAND wsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-Load_command005 |
|
6489 COMMAND wingc DrawBitmapMasked GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-DrawBitmapMasked_command009 |
|
6490 COMMAND ws Flush |
|
6491 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6492 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6493 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1026 |
|
6494 |
|
6495 |
|
6496 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1027 |
|
6497 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1027 |
|
6498 //! @SYMAPI CWindowGc |
|
6499 //! @SYMAuthor Victor Liu |
|
6500 //! @SYMCreationDate 23/11/2007 |
|
6501 //! @SYMTestCaseDesc Clear(): execute Clear in a non-active graphics context |
|
6502 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6503 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6504 //! 1.1 New and connect a RWsSession |
|
6505 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6506 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6507 //! 2. Execute Clear() before Activate() the CWindowGc |
|
6508 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6509 //! 4. Destruct and close all objects used |
|
6510 //! @SYMTestStatus Implemented |
|
6511 //! @SYMTestPriority Medium |
|
6512 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6513 //! @SYMTestType CIT |
|
6514 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6515 CREATE_OBJECT RWsSession ws |
|
6516 CREATE_OBJECT CWsScreenDevice scrdev |
|
6517 CREATE_OBJECT CWindowGc wingc |
|
6518 COMMAND ws new |
|
6519 COMMAND ws Connect |
|
6520 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6521 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6522 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6523 COMMAND wingc Clear |
|
6524 COMMAND ws Flush |
|
6525 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6526 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6527 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1027 |
|
6528 |
|
6529 |
|
6530 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1028 |
|
6531 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1028 |
|
6532 //! @SYMAPI CWindowGc |
|
6533 //! @SYMAuthor Victor Liu |
|
6534 //! @SYMCreationDate 23/11/2007 |
|
6535 //! @SYMTestCaseDesc Clear(const TRect &aRect): execute Clear in a non-active graphics context |
|
6536 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6537 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6538 //! 1.1 New and connect a RWsSession |
|
6539 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6540 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6541 //! 2. Execute Clear() before Activate() the CWindowGc |
|
6542 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6543 //! 4. Destruct and close all objects used |
|
6544 //! @SYMTestStatus Implemented |
|
6545 //! @SYMTestPriority Medium |
|
6546 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6547 //! @SYMTestType CIT |
|
6548 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6549 CREATE_OBJECT RWsSession ws |
|
6550 CREATE_OBJECT CWsScreenDevice scrdev |
|
6551 CREATE_OBJECT CWindowGc wingc |
|
6552 COMMAND ws new |
|
6553 COMMAND ws Connect |
|
6554 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6555 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6556 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6557 COMMAND wingc Clear GRAPHICS-WSERV-WindowGc-PublicApi-0049-0001-Clear_command003 |
|
6558 COMMAND ws Flush |
|
6559 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6560 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6561 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1028 |
|
6562 |
|
6563 |
|
6564 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1029 |
|
6565 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1029 |
|
6566 //! @SYMAPI CWindowGc |
|
6567 //! @SYMAuthor Victor Liu |
|
6568 //! @SYMCreationDate 23/11/2007 |
|
6569 //! @SYMTestCaseDesc CopyRect(const TPoint &anOffset, const TRect &aRect): execute CopyRect in a non-active graphics context |
|
6570 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6571 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6572 //! 1.1 New and connect a RWsSession |
|
6573 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6574 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6575 //! 2. Execute CopyRect() before Activate() the CWindowGc |
|
6576 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6577 //! 4. Destruct and close all objects used |
|
6578 //! @SYMTestStatus Implemented |
|
6579 //! @SYMTestPriority Medium |
|
6580 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6581 //! @SYMTestType CIT |
|
6582 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6583 CREATE_OBJECT RWsSession ws |
|
6584 CREATE_OBJECT CWsScreenDevice scrdev |
|
6585 CREATE_OBJECT CWindowGc wingc |
|
6586 COMMAND ws new |
|
6587 COMMAND ws Connect |
|
6588 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6589 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6590 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6591 COMMAND wingc CopyRect GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-CopyRect_command007 |
|
6592 COMMAND ws Flush |
|
6593 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6594 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6595 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1029 |
|
6596 |
|
6597 |
|
6598 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1030 |
|
6599 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1030 |
|
6600 //! @SYMAPI CWindowGc |
|
6601 //! @SYMAuthor Victor Liu |
|
6602 //! @SYMCreationDate 15/11/2007 |
|
6603 //! @SYMTestCaseDesc BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap): execute BitBlt in a non-active graphics context |
|
6604 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6605 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6606 //! 1.1 New and connect a RWsSession |
|
6607 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6608 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6609 //! 2. New and Load CFbsBitmap as drawing bitmap |
|
6610 //! 3. Execute BitBlt() before Activate() the CWindowGc |
|
6611 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6612 //! 5. Destruct and close all objects used |
|
6613 //! @SYMTestStatus Implemented |
|
6614 //! @SYMTestPriority Medium |
|
6615 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6616 //! @SYMTestType CIT |
|
6617 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6618 CREATE_OBJECT RWsSession ws |
|
6619 CREATE_OBJECT CWsScreenDevice scrdev |
|
6620 CREATE_OBJECT CWindowGc wingc |
|
6621 COMMAND ws new |
|
6622 COMMAND ws Connect |
|
6623 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6624 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6625 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6626 CREATE_OBJECT CFbsBitmap fbsbmp |
|
6627 COMMAND fbsbmp new |
|
6628 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-Load_command002 |
|
6629 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-BitBlt_command009 |
|
6630 COMMAND ws Flush |
|
6631 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6632 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6633 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1030 |
|
6634 |
|
6635 |
|
6636 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1031 |
|
6637 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1031 |
|
6638 //! @SYMAPI CWindowGc |
|
6639 //! @SYMAuthor Victor Liu |
|
6640 //! @SYMCreationDate 15/11/2007 |
|
6641 //! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CFbsBitmap *aBitmap, const TRect &aSource): execute BitBlt in a non-active graphics context |
|
6642 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6643 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6644 //! 1.1 New and connect a RWsSession |
|
6645 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6646 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6647 //! 2. New and Load CFbsBitmap as drawing bitmap |
|
6648 //! 3. Execute BitBlt() before Activate() the CWindowGc |
|
6649 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6650 //! 5. Destruct and close all objects used |
|
6651 //! @SYMTestStatus Implemented |
|
6652 //! @SYMTestPriority Medium |
|
6653 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6654 //! @SYMTestType CIT |
|
6655 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6656 CREATE_OBJECT RWsSession ws |
|
6657 CREATE_OBJECT CWsScreenDevice scrdev |
|
6658 CREATE_OBJECT CWindowGc wingc |
|
6659 COMMAND ws new |
|
6660 COMMAND ws Connect |
|
6661 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6662 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6663 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6664 CREATE_OBJECT CFbsBitmap fbsbmp |
|
6665 COMMAND fbsbmp new |
|
6666 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-Load_command002 |
|
6667 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-BitBlt_command009 |
|
6668 COMMAND ws Flush |
|
6669 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6670 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6671 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1031 |
|
6672 |
|
6673 |
|
6674 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1032 |
|
6675 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1032 |
|
6676 //! @SYMAPI CWindowGc |
|
6677 //! @SYMAuthor Victor Liu |
|
6678 //! @SYMCreationDate 16/11/2007 |
|
6679 //! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask): execute BitBltMasked in a non-active graphics context |
|
6680 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6681 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6682 //! 1.1 New and connect a RWsSession |
|
6683 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6684 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6685 //! 2. New and Load CFbsBitmap as drawing bitmap and mask bitmap |
|
6686 //! 3. Execute BitBltMasked() before Activate() the CWindowGc |
|
6687 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6688 //! 5. Destruct and close all objects used |
|
6689 //! @SYMTestStatus Implemented |
|
6690 //! @SYMTestPriority Medium |
|
6691 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6692 //! @SYMTestType CIT |
|
6693 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6694 CREATE_OBJECT RWsSession ws |
|
6695 CREATE_OBJECT CWsScreenDevice scrdev |
|
6696 CREATE_OBJECT CWindowGc wingc |
|
6697 COMMAND ws new |
|
6698 COMMAND ws Connect |
|
6699 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6700 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6701 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6702 CREATE_OBJECT CFbsBitmap fbsbmp |
|
6703 CREATE_OBJECT CFbsBitmap fbsmaskbmp |
|
6704 COMMAND fbsbmp new |
|
6705 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command002 |
|
6706 COMMAND fbsmaskbmp new |
|
6707 COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command008 |
|
6708 COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-BitBltMasked_command012 |
|
6709 COMMAND ws Flush |
|
6710 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6711 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6712 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1032 |
|
6713 |
|
6714 |
|
6715 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1033 |
|
6716 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1033 |
|
6717 //! @SYMAPI CWindowGc |
|
6718 //! @SYMAuthor Victor Liu |
|
6719 //! @SYMCreationDate 15/11/2007 |
|
6720 //! @SYMTestCaseDesc BitBlt(const TPoint &aPoint, const CWsBitmap *aBitmap): execute BitBlt in a non-active graphics context |
|
6721 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6722 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6723 //! 1.1 New and connect a RWsSession |
|
6724 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6725 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6726 //! 2. New and Load CWsBitmap as drawing bitmap |
|
6727 //! 3. Execute BitBlt() before Activate() the CWindowGc |
|
6728 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6729 //! 5. Destruct and close all objects used |
|
6730 //! @SYMTestStatus Implemented |
|
6731 //! @SYMTestPriority Medium |
|
6732 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6733 //! @SYMTestType CIT |
|
6734 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6735 CREATE_OBJECT RWsSession ws |
|
6736 CREATE_OBJECT CWsScreenDevice scrdev |
|
6737 CREATE_OBJECT CWindowGc wingc |
|
6738 COMMAND ws new |
|
6739 COMMAND ws Connect |
|
6740 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6741 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6742 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6743 CREATE_OBJECT CWsBitmap wsbmp |
|
6744 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-new_command001 |
|
6745 COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-Load_command002 |
|
6746 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-BitBlt_command006 |
|
6747 COMMAND ws Flush |
|
6748 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6749 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6750 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1033 |
|
6751 |
|
6752 |
|
6753 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1034 |
|
6754 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1034 |
|
6755 //! @SYMAPI CWindowGc |
|
6756 //! @SYMAuthor Victor Liu |
|
6757 //! @SYMCreationDate 15/11/2007 |
|
6758 //! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CWsBitmap *aBitmap, const TRect &aSource): execute BitBlt in a non-active graphics context |
|
6759 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6760 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6761 //! 1.1 New and connect a RWsSession |
|
6762 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6763 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6764 //! 2. New and Load CWsBitmap as drawing bitmap |
|
6765 //! 3. Execute BitBlt() before Activate() the CWindowGc |
|
6766 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6767 //! 5. Destruct and close all objects used |
|
6768 //! @SYMTestStatus Implemented |
|
6769 //! @SYMTestPriority Medium |
|
6770 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6771 //! @SYMTestType CIT |
|
6772 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6773 CREATE_OBJECT RWsSession ws |
|
6774 CREATE_OBJECT CWsScreenDevice scrdev |
|
6775 CREATE_OBJECT CWindowGc wingc |
|
6776 COMMAND ws new |
|
6777 COMMAND ws Connect |
|
6778 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6779 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6780 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6781 CREATE_OBJECT CWsBitmap wsbmp |
|
6782 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-new_command001 |
|
6783 COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-Load_command002 |
|
6784 COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-BitBlt_command006 |
|
6785 COMMAND ws Flush |
|
6786 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6787 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6788 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1034 |
|
6789 |
|
6790 |
|
6791 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1035 |
|
6792 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1035 |
|
6793 //! @SYMAPI CWindowGc |
|
6794 //! @SYMAuthor Victor Liu |
|
6795 //! @SYMCreationDate 16/11/2007 |
|
6796 //! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CWsBitmap *aBitmap, const TRect &aSourceRect, const CWsBitmap *aMaskBitmap, TBool aInvertMask): execute BitBltMasked in a non-active graphics context |
|
6797 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6798 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6799 //! 1.1 New and connect a RWsSession |
|
6800 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6801 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6802 //! 2. New and Load CWsBitmap as drawing bitmap and mask bitmap |
|
6803 //! 3. Execute BitBltMasked() before Activate() the CWindowGc |
|
6804 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6805 //! 5. Destruct and close all objects used |
|
6806 //! @SYMTestStatus Implemented |
|
6807 //! @SYMTestPriority Medium |
|
6808 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6809 //! @SYMTestType CIT |
|
6810 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6811 CREATE_OBJECT RWsSession ws |
|
6812 CREATE_OBJECT CWsScreenDevice scrdev |
|
6813 CREATE_OBJECT CWindowGc wingc |
|
6814 COMMAND ws new |
|
6815 COMMAND ws Connect |
|
6816 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6817 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6818 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6819 CREATE_OBJECT CWsBitmap wsbmp |
|
6820 CREATE_OBJECT CWsBitmap wsmaskbmp |
|
6821 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command001 |
|
6822 COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command002 |
|
6823 COMMAND wsmaskbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command004 |
|
6824 COMMAND wsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command005 |
|
6825 COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-BitBltMasked_command009 |
|
6826 COMMAND ws Flush |
|
6827 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6828 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6829 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1035 |
|
6830 |
|
6831 |
|
6832 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1036 |
|
6833 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1036 |
|
6834 //! @SYMAPI CWindowGc |
|
6835 //! @SYMAuthor Victor Liu |
|
6836 //! @SYMCreationDate 26/11/2007 |
|
6837 //! @SYMTestCaseDesc SetClippingRegion(const TRegion &aRegion): execute SetClippingRegion in a non-active graphics context |
|
6838 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6839 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6840 //! 1.1 New and connect a RWsSession |
|
6841 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6842 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6843 //! 2. Execute SetClippingRegion() before Activate() the CWindowGc |
|
6844 //! @SYMTestStatus Implemented |
|
6845 //! @SYMTestPriority Medium |
|
6846 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6847 //! @SYMTestType CIT |
|
6848 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6849 CREATE_OBJECT RWsSession ws |
|
6850 CREATE_OBJECT CWsScreenDevice scrdev |
|
6851 CREATE_OBJECT CWindowGc wingc |
|
6852 COMMAND ws new |
|
6853 COMMAND ws Connect |
|
6854 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6855 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6856 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6857 COMMAND wingc SetClippingRegion GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-SetClippingRegion_command003 |
|
6858 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6859 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6860 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1036 |
|
6861 |
|
6862 |
|
6863 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1037 |
|
6864 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1037 |
|
6865 //! @SYMAPI CWindowGc |
|
6866 //! @SYMAuthor Victor Liu |
|
6867 //! @SYMCreationDate 26/11/2007 |
|
6868 //! @SYMTestCaseDesc CancelClippingRegion(): execute CancelClippingRegion in a non-active graphics context |
|
6869 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6870 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6871 //! 1.1 New and connect a RWsSession |
|
6872 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6873 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6874 //! 2. Execute CancelClippingRegion() before Activate() the CWindowGc |
|
6875 //! 3. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6876 //! 4. Destruct and close all objects used |
|
6877 //! @SYMTestStatus Implemented |
|
6878 //! @SYMTestPriority Medium |
|
6879 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6880 //! @SYMTestType CIT |
|
6881 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6882 CREATE_OBJECT RWsSession ws |
|
6883 CREATE_OBJECT CWsScreenDevice scrdev |
|
6884 CREATE_OBJECT CWindowGc wingc |
|
6885 COMMAND ws new |
|
6886 COMMAND ws Connect |
|
6887 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6888 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6889 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6890 COMMAND wingc CancelClippingRegion |
|
6891 COMMAND ws Flush |
|
6892 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6893 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6894 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1037 |
|
6895 |
|
6896 |
|
6897 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1038 |
|
6898 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1038 |
|
6899 //! @SYMAPI CWindowGc |
|
6900 //! @SYMAuthor Victor Liu |
|
6901 //! @SYMCreationDate 19/11/2007 |
|
6902 //! @SYMTestCaseDesc AlphaBlendBitmaps(const TPoint &aDestPt, const CFbsBitmap *aSrcBmp, const TRect &aSrcRect, const CFbsBitmap *aAlphaBmp, const TPoint &aAlphaPt): execute AlphaBlendBitmaps in a non-active graphics context |
|
6903 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6904 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6905 //! 1.1 New and connect a RWsSession |
|
6906 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6907 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6908 //! 2. New and Load CFbsBitmap as source bitmap and alpha bitmap |
|
6909 //! 3. Execute AlphaBlendBitmaps() before Activate() the CWindowGc |
|
6910 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6911 //! 5. Destruct and close all objects used |
|
6912 //! @SYMTestStatus Implemented |
|
6913 //! @SYMTestPriority Medium |
|
6914 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6915 //! @SYMTestType CIT |
|
6916 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6917 CREATE_OBJECT RWsSession ws |
|
6918 CREATE_OBJECT CWsScreenDevice scrdev |
|
6919 CREATE_OBJECT CWindowGc wingc |
|
6920 COMMAND ws new |
|
6921 COMMAND ws Connect |
|
6922 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6923 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6924 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6925 CREATE_OBJECT CFbsBitmap fbsbmp |
|
6926 CREATE_OBJECT CFbsBitmap fbsalphabmp |
|
6927 COMMAND fbsbmp new |
|
6928 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-Load_command002 |
|
6929 COMMAND fbsalphabmp new |
|
6930 COMMAND fbsalphabmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-Load_command007 |
|
6931 COMMAND wingc AlphaBlendBitmaps GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-AlphaBlendBitmaps_command013 |
|
6932 COMMAND ws Flush |
|
6933 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6934 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6935 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1038 |
|
6936 |
|
6937 |
|
6938 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1039 |
|
6939 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1039 |
|
6940 //! @SYMAPI CWindowGc |
|
6941 //! @SYMAuthor Victor Liu |
|
6942 //! @SYMCreationDate 19/11/2007 |
|
6943 //! @SYMTestCaseDesc AlphaBlendBitmaps(const TPoint &aDestPt, const CWsBitmap *aSrcBmp, const TRect &aSrcRect, const CWsBitmap *aAlphaBmp, const TPoint &aAlphaPt): execute AlphaBlendBitmaps in a non-active graphics context |
|
6944 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6945 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6946 //! 1.1 New and connect a RWsSession |
|
6947 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6948 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6949 //! 2. New and Load CWsBitmap as source bitmap and alpha bitmap |
|
6950 //! 3. Execute AlphaBlendBitmaps() before Activate() the CWindowGc |
|
6951 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6952 //! 5. Destruct and close all objects used |
|
6953 //! @SYMTestStatus Implemented |
|
6954 //! @SYMTestPriority Medium |
|
6955 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6956 //! @SYMTestType CIT |
|
6957 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
6958 CREATE_OBJECT RWsSession ws |
|
6959 CREATE_OBJECT CWsScreenDevice scrdev |
|
6960 CREATE_OBJECT CWindowGc wingc |
|
6961 COMMAND ws new |
|
6962 COMMAND ws Connect |
|
6963 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
6964 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
6965 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
6966 CREATE_OBJECT CWsBitmap wsbmp |
|
6967 CREATE_OBJECT CWsBitmap wsalphabmp |
|
6968 COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-new_command001 |
|
6969 COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-Load_command002 |
|
6970 COMMAND wsalphabmp new GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-new_command004 |
|
6971 COMMAND wsalphabmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-Load_command005 |
|
6972 COMMAND wingc AlphaBlendBitmaps GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-AlphaBlendBitmaps_command009 |
|
6973 COMMAND ws Flush |
|
6974 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
6975 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6976 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1039 |
|
6977 |
|
6978 |
|
6979 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1040 |
|
6980 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1040 |
|
6981 //! @SYMAPI CWindowGc |
|
6982 //! @SYMAuthor Victor Liu |
|
6983 //! @SYMCreationDate 20/11/2007 |
|
6984 //! @SYMTestCaseDesc DrawWsGraphic(const TWsGraphicId &aId, const TRect &aDestRect): execute DrawWsGraphic in a non-active graphics context |
|
6985 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
6986 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
6987 //! 1.1 New and connect a RWsSession |
|
6988 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
6989 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
6990 //! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap |
|
6991 //! and use them to create a non-transcient artwork CWsGraphicBitmap |
|
6992 //! 3. Execute DrawWsGraphic() before Activate() the CWindowGc |
|
6993 //! 4. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
6994 //! 5. Destruct and close all objects used |
|
6995 //! @SYMTestStatus Implemented |
|
6996 //! @SYMTestPriority Medium |
|
6997 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
6998 //! @SYMTestType CIT |
|
6999 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7000 CREATE_OBJECT RWsSession ws |
|
7001 CREATE_OBJECT CWsScreenDevice scrdev |
|
7002 CREATE_OBJECT CWindowGc wingc |
|
7003 COMMAND ws new |
|
7004 COMMAND ws Connect |
|
7005 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
7006 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
7007 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
7008 CREATE_OBJECT CFbsBitmap fbsbmp |
|
7009 CREATE_OBJECT CFbsBitmap fbsmaskbmp |
|
7010 CREATE_OBJECT CWsGraphicBitmap wsgraph |
|
7011 COMMAND fbsbmp new |
|
7012 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-Load_command002 |
|
7013 COMMAND fbsmaskbmp new |
|
7014 COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-Load_command005 |
|
7015 COMMAND wsgraph NewL GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-NewL_command007 |
|
7016 COMMAND wingc DrawWsGraphic GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-DrawWsGraphic_command011 |
|
7017 COMMAND ws Flush |
|
7018 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7019 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7020 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1040 |
|
7021 |
|
7022 |
|
7023 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1041 |
|
7024 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1041 |
|
7025 //! @SYMAPI CWindowGc |
|
7026 //! @SYMAuthor Victor Liu |
|
7027 //! @SYMCreationDate 20/11/2007 |
|
7028 //! @SYMTestCaseDesc DrawWsGraphic(const TWsGraphicId &aId, const TRect &aDestRect, const TDesC8 &aData): execute DrawWsGraphic in a non-active graphics context |
|
7029 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7030 //! @SYMTestActions 1. Setup a CWindowGc and RWindow to test |
|
7031 //! 1.1 New and connect a RWsSession |
|
7032 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
7033 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
7034 //! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap |
|
7035 //! and use them to create a non-transcient artwork CWsGraphicBitmap |
|
7036 //! 3. New RWsGraphicMsgBuf to be attached to CWindowGc::DrawWsGraphic |
|
7037 //! 4. Execute DrawWsGraphic() before Activate() the CWindowGc |
|
7038 //! 5. Execute Flush() on the RWsSession and see if it meets expected panic code |
|
7039 //! 6. Destruct and close all objects used |
|
7040 //! @SYMTestStatus Implemented |
|
7041 //! @SYMTestPriority Medium |
|
7042 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7043 //! @SYMTestType CIT |
|
7044 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7045 CREATE_OBJECT RWsSession ws |
|
7046 CREATE_OBJECT CWsScreenDevice scrdev |
|
7047 CREATE_OBJECT CWindowGc wingc |
|
7048 COMMAND ws new |
|
7049 COMMAND ws Connect |
|
7050 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 |
|
7051 COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 |
|
7052 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 |
|
7053 CREATE_OBJECT CFbsBitmap fbsbmp |
|
7054 CREATE_OBJECT CFbsBitmap fbsmaskbmp |
|
7055 CREATE_OBJECT CWsGraphicBitmap wsgraph |
|
7056 CREATE_OBJECT RWsGraphicMsgBuf wsgraphmsg |
|
7057 COMMAND fbsbmp new |
|
7058 COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-Load_command002 |
|
7059 COMMAND fbsmaskbmp new |
|
7060 COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-Load_command005 |
|
7061 COMMAND wsgraph NewL GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-NewL_command007 |
|
7062 COMMAND wsgraphmsg new |
|
7063 COMMAND wingc DrawWsGraphic GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-DrawWsGraphic_command013 |
|
7064 COMMAND ws Flush |
|
7065 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7066 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7067 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1041 |
|
7068 |
|
7069 |
|
7070 |
|
7071 |
|
7072 //! ----------------------------------------------------------------------------------------- |
|
7073 |
|
7074 |
|
7075 |
|
7076 |
|
7077 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1101 |
|
7078 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1101 |
|
7079 //! @SYMAPI CWindowGc |
|
7080 //! @SYMAuthor Shirly Kuo |
|
7081 //! @SYMCreationDate 05/11/2007 |
|
7082 //! @SYMTestCaseDesc SetPenColor(const TRgb &aColor): execute SetPenColor in a non-active graphics context |
|
7083 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7084 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7085 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7086 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7087 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7088 //! 5. Sets the pen colour to red using SetPenColor() and check if it generates expected panic code |
|
7089 //! @SYMTestStatus Implemented |
|
7090 //! @SYMTestPriority Medium |
|
7091 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7092 //! @SYMTestType CIT |
|
7093 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7094 CREATE_OBJECT RWsSession ws |
|
7095 CREATE_OBJECT CWsScreenDevice scrdev |
|
7096 CREATE_OBJECT CWindowGc wingc |
|
7097 COMMAND ws new |
|
7098 COMMAND ws Connect |
|
7099 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7100 COMMAND scrdev Construct |
|
7101 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7102 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7103 COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 |
|
7104 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7105 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7106 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1101 |
|
7107 |
|
7108 |
|
7109 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1102 |
|
7110 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1102 |
|
7111 //! @SYMAPI CWindowGc |
|
7112 //! @SYMAuthor Shirly Kuo |
|
7113 //! @SYMCreationDate 05/11/2007 |
|
7114 //! @SYMTestCaseDesc SetPenStyle(TPenStyle aPenStyle): execute SetPenStyle in a non-active graphics context |
|
7115 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7116 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7117 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7118 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7119 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7120 //! 5. Sets the line drawing style to EDotDotDashPen for the pen using SetPenStyle() and check if it generates expected panic code |
|
7121 //! @SYMTestStatus Implemented |
|
7122 //! @SYMTestPriority Medium |
|
7123 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7124 //! @SYMTestType CIT |
|
7125 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7126 CREATE_OBJECT RWsSession ws |
|
7127 CREATE_OBJECT CWsScreenDevice scrdev |
|
7128 CREATE_OBJECT CWindowGc wingc |
|
7129 COMMAND ws new |
|
7130 COMMAND ws Connect |
|
7131 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7132 COMMAND scrdev Construct |
|
7133 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7134 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7135 COMMAND wingc SetPenStyle GRAPHICS-WSERV-WindowGc-PublicApi-0102-0001-SetPenStyle_command002 |
|
7136 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7137 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7138 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1102 |
|
7139 |
|
7140 |
|
7141 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1103 |
|
7142 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1103 |
|
7143 //! @SYMAPI CWindowGc |
|
7144 //! @SYMAuthor Shirly Kuo |
|
7145 //! @SYMCreationDate 05/11/2007 |
|
7146 //! @SYMTestCaseDesc SetPenSize(const TSize &aSize): execute SetPenSize in a non-active graphics context |
|
7147 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7148 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7149 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7150 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7151 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7152 //! 5. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and check if it generates expected panic code |
|
7153 //! @SYMTestStatus Implemented |
|
7154 //! @SYMTestPriority Medium |
|
7155 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7156 //! @SYMTestType CIT |
|
7157 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7158 CREATE_OBJECT RWsSession ws |
|
7159 CREATE_OBJECT CWsScreenDevice scrdev |
|
7160 CREATE_OBJECT CWindowGc wingc |
|
7161 COMMAND ws new |
|
7162 COMMAND ws Connect |
|
7163 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7164 COMMAND scrdev Construct |
|
7165 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7166 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7167 COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 |
|
7168 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7169 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7170 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1103 |
|
7171 |
|
7172 |
|
7173 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1104 |
|
7174 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1104 |
|
7175 //! @SYMAPI CWindowGc |
|
7176 //! @SYMAuthor Shirly Kuo |
|
7177 //! @SYMCreationDate 06/11/2007 |
|
7178 //! @SYMTestCaseDesc SetBrushColor(const TRgb &aColor);: execute SetBrushColor in a non-active graphics context |
|
7179 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7180 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7181 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7182 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7183 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7184 //! 5. Sets the brush colour using SetBrushColor() and check if it generates expected panic code |
|
7185 //! @SYMTestStatus Implemented |
|
7186 //! @SYMTestPriority Medium |
|
7187 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7188 //! @SYMTestType CIT |
|
7189 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7190 CREATE_OBJECT RWsSession ws |
|
7191 CREATE_OBJECT CWsScreenDevice scrdev |
|
7192 CREATE_OBJECT CWindowGc wingc |
|
7193 COMMAND ws new |
|
7194 COMMAND ws Connect |
|
7195 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7196 COMMAND scrdev Construct |
|
7197 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7198 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7199 COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-PublicApi-0104-0001-SetBrushColor_command002 |
|
7200 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7201 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7202 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1104 |
|
7203 |
|
7204 |
|
7205 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1105 |
|
7206 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1105 |
|
7207 //! @SYMAPI CWindowGc |
|
7208 //! @SYMAuthor Shirly Kuo |
|
7209 //! @SYMCreationDate 06/11/2007 |
|
7210 //! @SYMTestCaseDesc SetBrushStyle(TBrushStyle aBrushStyle): execute SetBrushStyle in a non-active graphics context |
|
7211 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7212 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7213 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7214 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7215 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7216 //! 5. Sets the line drawing style to ESolidBrush for the brush using SetBrushStyle() and check if it generates expected panic code |
|
7217 //! @SYMTestStatus Implemented |
|
7218 //! @SYMTestPriority Medium |
|
7219 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7220 //! @SYMTestType CIT |
|
7221 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7222 CREATE_OBJECT RWsSession ws |
|
7223 CREATE_OBJECT CWsScreenDevice scrdev |
|
7224 CREATE_OBJECT CWindowGc wingc |
|
7225 COMMAND ws new |
|
7226 COMMAND ws Connect |
|
7227 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7228 COMMAND scrdev Construct |
|
7229 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7230 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7231 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-PublicApi-0105-0001-SetBrushStyle_command002 |
|
7232 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7233 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7234 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1105 |
|
7235 |
|
7236 |
|
7237 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1106 |
|
7238 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1106 |
|
7239 //! @SYMAPI CWindowGc |
|
7240 //! @SYMAuthor Shirly Kuo |
|
7241 //! @SYMCreationDate 07/11/2007 |
|
7242 //! @SYMTestCaseDesc SetBrushOrigin(const TPoint &aOrigin): execute SetBrushOrigin in a non-active graphics context |
|
7243 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7244 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7245 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7246 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7247 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7248 //! 5. Sets the brush pattern origin using SetBrushOrigin() and check if it generates expected panic code |
|
7249 //! @SYMTestStatus Implemented |
|
7250 //! @SYMTestPriority Medium |
|
7251 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7252 //! @SYMTestType CIT |
|
7253 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7254 CREATE_OBJECT RWsSession ws |
|
7255 CREATE_OBJECT CWsScreenDevice scrdev |
|
7256 CREATE_OBJECT CWindowGc wingc |
|
7257 COMMAND ws new |
|
7258 COMMAND ws Connect |
|
7259 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7260 COMMAND scrdev Construct |
|
7261 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7262 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7263 COMMAND wingc SetBrushOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0106-0001-SetBrushOrigin_command002 |
|
7264 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7265 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7266 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1106 |
|
7267 |
|
7268 |
|
7269 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1107 |
|
7270 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1107 |
|
7271 //! @SYMAPI CWindowGc |
|
7272 //! @SYMAuthor Shirly Kuo |
|
7273 //! @SYMCreationDate 07/11/2007 |
|
7274 //! @SYMTestCaseDesc SetOrigin(const TPoint &aPoint): execute SetOrigin in a non-active graphics context |
|
7275 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7276 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7277 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7278 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7279 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7280 //! 5. Sets the position of the co-ordinate origin using SetOrigin() and check if it generates expected panic code |
|
7281 //! @SYMTestStatus Implemented |
|
7282 //! @SYMTestPriority Medium |
|
7283 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7284 //! @SYMTestType CIT |
|
7285 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7286 CREATE_OBJECT RWsSession ws |
|
7287 CREATE_OBJECT CWsScreenDevice scrdev |
|
7288 CREATE_OBJECT CWindowGc wingc |
|
7289 COMMAND ws new |
|
7290 COMMAND ws Connect |
|
7291 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7292 COMMAND scrdev Construct |
|
7293 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7294 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7295 COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 |
|
7296 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7297 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7298 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1107 |
|
7299 |
|
7300 |
|
7301 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1108 |
|
7302 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1108 |
|
7303 //! @SYMAPI CWindowGc |
|
7304 //! @SYMAuthor Shirly Kuo |
|
7305 //! @SYMCreationDate 08/11/2007 |
|
7306 //! @SYMTestCaseDesc SetDrawMode(TDrawMode aDrawingMode): execute SetDrawMode in a non-active graphics context |
|
7307 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7308 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7309 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7310 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7311 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7312 //! 5. Sets the drawing mode to EDrawModeXOR using SetDrawMode() and check if it generates expected panic code |
|
7313 //! @SYMTestStatus Implemented |
|
7314 //! @SYMTestPriority Medium |
|
7315 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7316 //! @SYMTestType CIT |
|
7317 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7318 CREATE_OBJECT RWsSession ws |
|
7319 CREATE_OBJECT CWsScreenDevice scrdev |
|
7320 CREATE_OBJECT CWindowGc wingc |
|
7321 COMMAND ws new |
|
7322 COMMAND ws Connect |
|
7323 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7324 COMMAND scrdev Construct |
|
7325 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7326 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7327 COMMAND wingc SetDrawMode GRAPHICS-WSERV-WindowGc-PublicApi-0108-0001-SetDrawMode_command002 |
|
7328 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7329 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7330 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1108 |
|
7331 |
|
7332 |
|
7333 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1109 |
|
7334 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1109 |
|
7335 //! @SYMAPI CWindowGc |
|
7336 //! @SYMAuthor Shirly Kuo |
|
7337 //! @SYMCreationDate 08/11/2007 |
|
7338 //! @SYMTestCaseDesc SetOpaque(TBool aDrawOpaque): execute SetOpaque in a non-active graphics context |
|
7339 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7340 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7341 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7342 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7343 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7344 //! 5. Sets an opaque flag on the window and check if it generates expected panic code |
|
7345 //! @SYMTestStatus Implemented |
|
7346 //! @SYMTestPriority Medium |
|
7347 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7348 //! @SYMTestType CIT |
|
7349 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7350 CREATE_OBJECT RWsSession ws |
|
7351 CREATE_OBJECT CWsScreenDevice scrdev |
|
7352 CREATE_OBJECT CWindowGc wingc |
|
7353 COMMAND ws new |
|
7354 COMMAND ws Connect |
|
7355 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7356 COMMAND scrdev Construct |
|
7357 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7358 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7359 COMMAND wingc SetOpaque GRAPHICS-WSERV-WindowGc-PublicApi-0109-0001-SetOpaque_command002 |
|
7360 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7361 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7362 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1109 |
|
7363 |
|
7364 |
|
7365 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1110 |
|
7366 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1110 |
|
7367 //! @SYMAPI CWindowGc |
|
7368 //! @SYMAuthor Shirly Kuo |
|
7369 //! @SYMCreationDate 09/11/2007 |
|
7370 //! @SYMTestCaseDesc SetFaded(TBool aFaded): execute SetFaded in a non-active graphics context |
|
7371 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7372 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7373 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7374 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7375 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7376 //! 5. Sets the graphics context to faded using SetFaded() and check if it generates expected panic code |
|
7377 //! @SYMTestStatus Implemented |
|
7378 //! @SYMTestPriority Medium |
|
7379 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7380 //! @SYMTestType CIT |
|
7381 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7382 CREATE_OBJECT RWsSession ws |
|
7383 CREATE_OBJECT CWsScreenDevice scrdev |
|
7384 CREATE_OBJECT CWindowGc wingc |
|
7385 COMMAND ws new |
|
7386 COMMAND ws Connect |
|
7387 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7388 COMMAND scrdev Construct |
|
7389 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7390 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7391 COMMAND wingc SetFaded GRAPHICS-WSERV-WindowGc-PublicApi-0110-0001-SetFaded_command002 |
|
7392 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7393 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7394 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1110 |
|
7395 |
|
7396 |
|
7397 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1111 |
|
7398 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1111 |
|
7399 //! @SYMAPI CWindowGc |
|
7400 //! @SYMAuthor Shirly Kuo |
|
7401 //! @SYMCreationDate 09/11/2007 |
|
7402 //! @SYMTestCaseDesc SetFadingParameters(TUint8 aBlackMap, TUint8 aWhiteMap): execute SetFadingParameters in a non-active graphics context |
|
7403 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7404 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7405 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7406 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7407 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7408 //! 5. Sets the fading parameters using SetFadingParameters() with BlackMap to 100, WhiteMap to 100 and check if it generates expected panic code |
|
7409 //! @SYMTestStatus Implemented |
|
7410 //! @SYMTestPriority Medium |
|
7411 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7412 //! @SYMTestType CIT |
|
7413 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7414 CREATE_OBJECT RWsSession ws |
|
7415 CREATE_OBJECT CWsScreenDevice scrdev |
|
7416 CREATE_OBJECT CWindowGc wingc |
|
7417 COMMAND ws new |
|
7418 COMMAND ws Connect |
|
7419 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7420 COMMAND scrdev Construct |
|
7421 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7422 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7423 COMMAND wingc SetFadingParameters GRAPHICS-WSERV-WindowGc-PublicApi-0111-0001-SetFadingParameters_command002 |
|
7424 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7425 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7426 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1111 |
|
7427 |
|
7428 |
|
7429 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1112 |
|
7430 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1112 |
|
7431 //! @SYMAPI CWindowGc |
|
7432 //! @SYMAuthor Shirly Kuo |
|
7433 //! @SYMCreationDate 12/11/2007 |
|
7434 //! @SYMTestCaseDesc SetDitherOrigin(const TPoint &aPoint): execute SetDitherOrigin in a non-active graphics context |
|
7435 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7436 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7437 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7438 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7439 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7440 //! 5. Sets the origin used for colour dithering using SetDitherOrigin() with position (250,25) and check if it generates expected panic code |
|
7441 //! @SYMTestStatus Implemented |
|
7442 //! @SYMTestPriority Medium |
|
7443 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7444 //! @SYMTestType CIT |
|
7445 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7446 CREATE_OBJECT RWsSession ws |
|
7447 CREATE_OBJECT CWsScreenDevice scrdev |
|
7448 CREATE_OBJECT CWindowGc wingc |
|
7449 COMMAND ws new |
|
7450 COMMAND ws Connect |
|
7451 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7452 COMMAND scrdev Construct |
|
7453 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7454 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7455 COMMAND wingc SetDitherOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0112-0001-SetDitherOrigin_command002 |
|
7456 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7457 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7458 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1112 |
|
7459 |
|
7460 |
|
7461 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1113 |
|
7462 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1113 |
|
7463 //! @SYMAPI CWindowGc |
|
7464 //! @SYMAuthor Shirly Kuo |
|
7465 //! @SYMCreationDate 12/11/2007 |
|
7466 //! @SYMTestCaseDesc MapColors(const TRect &aRect, const TRgb *aColors, TInt aNumPairs, TBool aMapForwards): execute MapColors in a non-active graphics context |
|
7467 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7468 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7469 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7470 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7471 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7472 //! 5. Re-maps pixel colours within a rectangle using MapColors() and check if it generates expected panic code |
|
7473 //! @SYMTestStatus Implemented |
|
7474 //! @SYMTestPriority Medium |
|
7475 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7476 //! @SYMTestType CIT |
|
7477 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7478 CREATE_OBJECT RWsSession ws |
|
7479 CREATE_OBJECT CWsScreenDevice scrdev |
|
7480 CREATE_OBJECT CWindowGc wingc |
|
7481 COMMAND ws new |
|
7482 COMMAND ws Connect |
|
7483 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7484 COMMAND scrdev Construct |
|
7485 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7486 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7487 COMMAND wingc MapColors GRAPHICS-WSERV-WindowGc-PublicApi-0113-0001-MapColors_command002 |
|
7488 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7489 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7490 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1113 |
|
7491 |
|
7492 |
|
7493 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1114 |
|
7494 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1114 |
|
7495 //! @SYMAPI CWindowGc |
|
7496 //! @SYMAuthor Shirly Kuo |
|
7497 //! @SYMCreationDate 13/11/2007 |
|
7498 //! @SYMTestCaseDesc UseBrushPattern(const CFbsBitmap *aDevice): execute UseBrushPattern in a non-active graphics context |
|
7499 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7500 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7501 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7502 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7503 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7504 //! 5. Sets the brush pattern to the specified bitmap by using UseBrushPattern() and check if it generates expected panic code |
|
7505 //! @SYMTestStatus Implemented |
|
7506 //! @SYMTestPriority Medium |
|
7507 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7508 //! @SYMTestType CIT |
|
7509 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7510 CREATE_OBJECT RWsSession ws |
|
7511 CREATE_OBJECT CWsScreenDevice scrdev |
|
7512 CREATE_OBJECT CWindowGc wingc |
|
7513 COMMAND ws new |
|
7514 COMMAND ws Connect |
|
7515 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7516 COMMAND scrdev Construct |
|
7517 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7518 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7519 CREATE_OBJECT CFbsBitmap fbsBitmap |
|
7520 COMMAND fbsBitmap new |
|
7521 COMMAND fbsBitmap Load GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-Load_command003 |
|
7522 COMMAND wingc UseBrushPattern GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-UseBrushPattern_command005 |
|
7523 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7524 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7525 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1114 |
|
7526 |
|
7527 |
|
7528 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1115 |
|
7529 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1115 |
|
7530 //! @SYMAPI CWindowGc |
|
7531 //! @SYMAuthor Shirly Kuo |
|
7532 //! @SYMCreationDate 13/11/2007 |
|
7533 //! @SYMTestCaseDesc DiscardBrushPattern(): execute DiscardBrushPattern in a non-active graphics context |
|
7534 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7535 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7536 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7537 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7538 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7539 //! 5. Discards a non-built-in brush pattern by using UseBrushPattern() and check if it generates expected panic code |
|
7540 //! @SYMTestStatus Implemented |
|
7541 //! @SYMTestPriority Medium |
|
7542 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7543 //! @SYMTestType CIT |
|
7544 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7545 CREATE_OBJECT RWsSession ws |
|
7546 CREATE_OBJECT CWsScreenDevice scrdev |
|
7547 CREATE_OBJECT CWindowGc wingc |
|
7548 COMMAND ws new |
|
7549 COMMAND ws Connect |
|
7550 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7551 COMMAND scrdev Construct |
|
7552 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7553 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7554 COMMAND wingc DiscardBrushPattern |
|
7555 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7556 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7557 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1115 |
|
7558 |
|
7559 |
|
7560 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1116 |
|
7561 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1116 |
|
7562 //! @SYMAPI CWindowGc |
|
7563 //! @SYMAuthor Shirly Kuo |
|
7564 //! @SYMCreationDate 14/11/2007 |
|
7565 //! @SYMTestCaseDesc UseFont(const CFont *aFont): execute UseFont in a non-active graphics context |
|
7566 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7567 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7568 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7569 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7570 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7571 //! 5. NewL() a CFbsTypefaceStore object and using GetNearestFontToDesignHeightInPixels() to get the font which is the nearest to the given font specification |
|
7572 //! 6. Sets this context's font by using UseFont() and check if it generates expected panic code |
|
7573 //! @SYMTestStatus Implemented |
|
7574 //! @SYMTestPriority Medium |
|
7575 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7576 //! @SYMTestType CIT |
|
7577 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7578 CREATE_OBJECT RWsSession ws |
|
7579 CREATE_OBJECT CWsScreenDevice scrdev |
|
7580 CREATE_OBJECT CWindowGc wingc |
|
7581 COMMAND ws new |
|
7582 COMMAND ws Connect |
|
7583 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7584 COMMAND scrdev Construct |
|
7585 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7586 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7587 CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 |
|
7588 CREATE_OBJECT CFbsFont CFbsFont1 |
|
7589 COMMAND CFbsTypefaceStore1 NewL |
|
7590 COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 |
|
7591 COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 |
|
7592 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7593 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7594 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1116 |
|
7595 |
|
7596 |
|
7597 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1117 |
|
7598 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1117 |
|
7599 //! @SYMAPI CWindowGc |
|
7600 //! @SYMAuthor Shirly Kuo |
|
7601 //! @SYMCreationDate 19/11/2007 |
|
7602 //! @SYMTestCaseDesc DrawText(const TDesC &aBuf, const TPoint &aPos): execute DrawText in a non-active graphics context |
|
7603 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7604 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7605 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7606 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7607 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7608 //! 5. Draws horizontal text with no surrounding box by using DrawTextVertical() and check if it generates expected panic code |
|
7609 //! @SYMTestStatus Implemented |
|
7610 //! @SYMTestPriority Medium |
|
7611 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7612 //! @SYMTestType CIT |
|
7613 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7614 CREATE_OBJECT RWsSession ws |
|
7615 CREATE_OBJECT CWsScreenDevice scrdev |
|
7616 CREATE_OBJECT CWindowGc wingc |
|
7617 COMMAND ws new |
|
7618 COMMAND ws Connect |
|
7619 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7620 COMMAND scrdev Construct |
|
7621 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7622 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7623 COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-DrawText_command003 |
|
7624 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7625 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7626 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1117 |
|
7627 |
|
7628 |
|
7629 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1118 |
|
7630 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1118 |
|
7631 //! @SYMAPI CWindowGc |
|
7632 //! @SYMAuthor Shirly Kuo |
|
7633 //! @SYMCreationDate 19/11/2007 |
|
7634 //! @SYMTestCaseDesc DrawText(const TDesC &aBuf, const TRect &aBox, TInt aBaselineOffset, TTextAlign aHoriz=ELeft, TInt aLeftMrg=0): execute DrawText in a non-active graphics context |
|
7635 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7636 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7637 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7638 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7639 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7640 //! 5. Draws horizontal text within a cleared box by using DrawTextVertical() and check if it generates expected panic code |
|
7641 //! @SYMTestStatus Implemented |
|
7642 //! @SYMTestPriority Medium |
|
7643 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7644 //! @SYMTestType CIT |
|
7645 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7646 CREATE_OBJECT RWsSession ws |
|
7647 CREATE_OBJECT CWsScreenDevice scrdev |
|
7648 CREATE_OBJECT CWindowGc wingc |
|
7649 COMMAND ws new |
|
7650 COMMAND ws Connect |
|
7651 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7652 COMMAND scrdev Construct |
|
7653 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7654 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7655 COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0118-0001-DrawText_command003 |
|
7656 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7657 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7658 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1118 |
|
7659 |
|
7660 |
|
7661 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1119 |
|
7662 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1119 |
|
7663 //! @SYMAPI CWindowGc |
|
7664 //! @SYMAuthor Shirly Kuo |
|
7665 //! @SYMCreationDate 15/11/2007 |
|
7666 //! @SYMTestCaseDesc SetWordJustification(TInt aExcessWidth, TInt aNumGaps): execute SetWordJustification in a non-active graphics context |
|
7667 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7668 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7669 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7670 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7671 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7672 //! 5. Sets word justification by using SetWordJustification() and check if it generates expected panic code |
|
7673 //! @SYMTestStatus Implemented |
|
7674 //! @SYMTestPriority Medium |
|
7675 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7676 //! @SYMTestType CIT |
|
7677 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7678 CREATE_OBJECT RWsSession ws |
|
7679 CREATE_OBJECT CWsScreenDevice scrdev |
|
7680 CREATE_OBJECT CWindowGc wingc |
|
7681 COMMAND ws new |
|
7682 COMMAND ws Connect |
|
7683 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7684 COMMAND scrdev Construct |
|
7685 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7686 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7687 COMMAND wingc SetWordJustification GRAPHICS-WSERV-WindowGc-PublicApi-0119-0001-SetWordJustification_command002 |
|
7688 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7689 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7690 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1119 |
|
7691 |
|
7692 |
|
7693 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1120 |
|
7694 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1120 |
|
7695 //! @SYMAPI CWindowGc |
|
7696 //! @SYMAuthor Shirly Kuo |
|
7697 //! @SYMCreationDate 15/11/2007 |
|
7698 //! @SYMTestCaseDesc SetCharJustification(TInt aExcessWidth, TInt aNumChars): execute SetCharJustification in a non-active graphics context |
|
7699 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7700 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7701 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7702 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7703 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7704 //! 5. Sets the character justification by using SetCharJustification() and check if it generates expected panic code |
|
7705 //! @SYMTestStatus Implemented |
|
7706 //! @SYMTestPriority Medium |
|
7707 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7708 //! @SYMTestType CIT |
|
7709 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7710 CREATE_OBJECT RWsSession ws |
|
7711 CREATE_OBJECT CWsScreenDevice scrdev |
|
7712 CREATE_OBJECT CWindowGc wingc |
|
7713 COMMAND ws new |
|
7714 COMMAND ws Connect |
|
7715 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7716 COMMAND scrdev Construct |
|
7717 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7718 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7719 COMMAND wingc SetCharJustification GRAPHICS-WSERV-WindowGc-PublicApi-0120-0001-SetCharJustification_command002 |
|
7720 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7721 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7722 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1120 |
|
7723 |
|
7724 |
|
7725 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1121 |
|
7726 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1121 |
|
7727 //! @SYMAPI CWindowGc |
|
7728 //! @SYMAuthor Shirly Kuo |
|
7729 //! @SYMCreationDate 20/11/2007 |
|
7730 //! @SYMTestCaseDesc DrawTextVertical(const TDesC &aText, const TPoint &aPos, TBool aUp): execute DrawTextVertical in a non-active graphics context |
|
7731 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7732 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7733 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7734 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7735 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7736 //! 5. Draws vertical text in the specified direction by using DrawTextVertical() and check if it generates expected panic code |
|
7737 //! @SYMTestStatus Implemented |
|
7738 //! @SYMTestPriority Medium |
|
7739 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7740 //! @SYMTestType CIT |
|
7741 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7742 CREATE_OBJECT RWsSession ws |
|
7743 CREATE_OBJECT CWsScreenDevice scrdev |
|
7744 CREATE_OBJECT CWindowGc wingc |
|
7745 COMMAND ws new |
|
7746 COMMAND ws Connect |
|
7747 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7748 COMMAND scrdev Construct |
|
7749 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7750 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7751 COMMAND wingc DrawTextVertical GRAPHICS-WSERV-WindowGc-PublicApi-0121-0001-DrawTextVertical_command003 |
|
7752 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7753 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7754 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1121 |
|
7755 |
|
7756 |
|
7757 //!START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1122 |
|
7758 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1122 |
|
7759 //! @SYMAPI CWindowGc |
|
7760 //! @SYMAuthor Shirly Kuo |
|
7761 //! @SYMCreationDate 20/11/2007 |
|
7762 //! @SYMTestCaseDesc DrawTextVertical(const TDesC &aText, const TRect &aBox, TInt aBaselineOffset, TBool aUp, TTextAlign aVert=ELeft, TInt aMargin=0): execute DrawTextVertical in a non-active graphics context |
|
7763 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7764 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7765 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7766 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7767 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7768 //! 5. Draws text vertically in the specified direction, within a box of the specified size by using DrawTextVertical() and check if it generates expected panic code |
|
7769 //! @SYMTestStatus Implemented |
|
7770 //! @SYMTestPriority Medium |
|
7771 //! @SYMTestExpectedResults get panic KERN-EXEC code=3 |
|
7772 //! @SYMTestType CIT |
|
7773 //! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7774 //! CREATE_OBJECT RWsSession ws |
|
7775 //! CREATE_OBJECT CWsScreenDevice scrdev |
|
7776 //! CREATE_OBJECT CWindowGc wingc |
|
7777 //! COMMAND ws new |
|
7778 //! COMMAND ws Connect |
|
7779 //! COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7780 //! COMMAND scrdev Construct |
|
7781 //! COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7782 //! COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7783 //! COMMAND wingc DrawTextVertical GRAPHICS-WSERV-WindowGc-PublicApi-0122-0001-DrawTextVertical_command003 |
|
7784 //! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 |
|
7785 //! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7786 //!END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1122 |
|
7787 |
|
7788 |
|
7789 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1123 |
|
7790 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1123 |
|
7791 //! @SYMAPI CWindowGc |
|
7792 //! @SYMAuthor Shirly Kuo |
|
7793 //! @SYMCreationDate 16/11/2007 |
|
7794 //! @SYMTestCaseDesc SetUnderlineStyle(TFontUnderline aUnderlineStyle): execute SetUnderlineStyle in a non-active graphics context |
|
7795 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7796 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7797 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7798 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7799 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7800 //! 5. Sets the underline style for all subsequently drawn text by using SetUnderlineStyle() and check if it generates expected panic code |
|
7801 //! @SYMTestStatus Implemented |
|
7802 //! @SYMTestPriority Medium |
|
7803 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7804 //! @SYMTestType CIT |
|
7805 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7806 CREATE_OBJECT RWsSession ws |
|
7807 CREATE_OBJECT CWsScreenDevice scrdev |
|
7808 CREATE_OBJECT CWindowGc wingc |
|
7809 COMMAND ws new |
|
7810 COMMAND ws Connect |
|
7811 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7812 COMMAND scrdev Construct |
|
7813 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7814 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7815 COMMAND wingc SetUnderlineStyle GRAPHICS-WSERV-WindowGc-PublicApi-0123-0001-SetUnderlineStyle_command002 |
|
7816 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7817 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7818 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1123 |
|
7819 |
|
7820 |
|
7821 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1124 |
|
7822 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1124 |
|
7823 //! @SYMAPI CWindowGc |
|
7824 //! @SYMAuthor Shirly Kuo |
|
7825 //! @SYMCreationDate 16/11/2007 |
|
7826 //! @SYMTestCaseDesc SetStrikethroughStyle(TFontStrikethrough aStrikethroughStyle): execute SetStrikethroughStyle in a non-active graphics context |
|
7827 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7828 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7829 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7830 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7831 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7832 //! 5. Sets the strikethrough style for all subsequently drawn text by using SetStrikethroughStyle() and check if it generates expected panic code |
|
7833 //! @SYMTestStatus Implemented |
|
7834 //! @SYMTestPriority Medium |
|
7835 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7836 //! @SYMTestType CIT |
|
7837 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7838 CREATE_OBJECT RWsSession ws |
|
7839 CREATE_OBJECT CWsScreenDevice scrdev |
|
7840 CREATE_OBJECT CWindowGc wingc |
|
7841 COMMAND ws new |
|
7842 COMMAND ws Connect |
|
7843 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7844 COMMAND scrdev Construct |
|
7845 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7846 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7847 COMMAND wingc SetStrikethroughStyle GRAPHICS-WSERV-WindowGc-PublicApi-0124-0001-SetStrikethroughStyle_command002 |
|
7848 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7849 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7850 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1124 |
|
7851 |
|
7852 |
|
7853 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1125 |
|
7854 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1125 |
|
7855 //! @SYMAPI CWindowGc |
|
7856 //! @SYMAuthor Shirly Kuo |
|
7857 //! @SYMCreationDate 14/11/2007 |
|
7858 //! @SYMTestCaseDesc DiscardFont(): execute DiscardFont in a non-active graphics context |
|
7859 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7860 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7861 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7862 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7863 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7864 //! 5. Discards a font by using DiscardFont() and check if it generates expected panic code |
|
7865 //! @SYMTestStatus Implemented |
|
7866 //! @SYMTestPriority Medium |
|
7867 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7868 //! @SYMTestType CIT |
|
7869 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7870 CREATE_OBJECT RWsSession ws |
|
7871 CREATE_OBJECT CWsScreenDevice scrdev |
|
7872 CREATE_OBJECT CWindowGc wingc |
|
7873 COMMAND ws new |
|
7874 COMMAND ws Connect |
|
7875 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7876 COMMAND scrdev Construct |
|
7877 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7878 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7879 COMMAND wingc DiscardFont |
|
7880 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7881 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7882 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1125 |
|
7883 |
|
7884 |
|
7885 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1126 |
|
7886 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1126 |
|
7887 //! @SYMAPI CWindowGc |
|
7888 //! @SYMAuthor Shirly Kuo |
|
7889 //! @SYMCreationDate 14/11/2007 |
|
7890 //! @SYMTestCaseDesc Reset(): execute Reset in a non-active graphics context |
|
7891 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7892 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7893 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7894 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7895 //! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7896 //! 5. Resets the graphics context to its default settings by using Reset() and check if it generates expected panic code |
|
7897 //! @SYMTestStatus Implemented |
|
7898 //! @SYMTestPriority Medium |
|
7899 //! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) |
|
7900 //! @SYMTestType CIT |
|
7901 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7902 CREATE_OBJECT RWsSession ws |
|
7903 CREATE_OBJECT CWsScreenDevice scrdev |
|
7904 CREATE_OBJECT CWindowGc wingc |
|
7905 COMMAND ws new |
|
7906 COMMAND ws Connect |
|
7907 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7908 COMMAND scrdev Construct |
|
7909 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7910 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7911 COMMAND wingc Reset |
|
7912 END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 |
|
7913 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7914 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1126 |
|
7915 |
|
7916 |
|
7917 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1127 |
|
7918 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1127 |
|
7919 //! @SYMAPI CWindowGc |
|
7920 //! @SYMAuthor Shirly Kuo |
|
7921 //! @SYMCreationDate 21/11/2007 |
|
7922 //! @SYMTestCaseDesc MapColors(const TRect &aRect, const TRgb *aColors, TInt aNumPairs, TBool aMapForwards): execute MapColors with NumPairs greater than 16 |
|
7923 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7924 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7925 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7926 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7927 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
7928 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
7929 //! 6. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
7930 //! 7. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7931 //! 8. MapColors with NumPairs greater than 16 (e.g. 18) and check if it generates expected panic code |
|
7932 //! @SYMTestStatus Implemented |
|
7933 //! @SYMTestPriority Medium |
|
7934 //! @SYMTestExpectedResults get panic W32 code=4 (Raised by CWindowGc::MapColors() when its aNumPairs argument has a value greater than 16) |
|
7935 //! @SYMTestType CIT |
|
7936 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7937 CREATE_OBJECT RWsSession ws |
|
7938 CREATE_OBJECT CWsScreenDevice scrdev |
|
7939 CREATE_OBJECT CWindowGc wingc |
|
7940 CREATE_OBJECT RWindowGroup wingrp |
|
7941 CREATE_OBJECT RWindow win |
|
7942 COMMAND ws new |
|
7943 COMMAND ws Connect |
|
7944 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7945 COMMAND scrdev Construct |
|
7946 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7947 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
7948 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
7949 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
7950 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
7951 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
7952 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7953 COMMAND wingc MapColors GRAPHICS-WSERV-WindowGc-PublicApi-1126-0001-MapColors_command002 |
|
7954 END_TEST_BLOCK !PanicString=W32 !PanicCode=4 |
|
7955 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7956 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1127 |
|
7957 |
|
7958 |
|
7959 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1128 |
|
7960 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1128 |
|
7961 //! @SYMAPI CWindowGc |
|
7962 //! @SYMAuthor Shirly Kuo |
|
7963 //! @SYMCreationDate 22/11/2007 |
|
7964 //! @SYMTestCaseDesc DrawText(const TDesC &aBuf, const TPoint &aPos): execute DrawText with no active font |
|
7965 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
7966 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
7967 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
7968 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
7969 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
7970 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
7971 //! 6. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
7972 //! 7. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
7973 //! 8. Draws horizontal text with no surrounding box by using DrawTextVertical() and check if it generates expected panic code |
|
7974 //! @SYMTestStatus Implemented |
|
7975 //! @SYMTestPriority Medium |
|
7976 //! @SYMTestExpectedResults get panic WSERV code=14 (Printing with no active font) |
|
7977 //! @SYMTestType CIT |
|
7978 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
7979 CREATE_OBJECT RWsSession ws |
|
7980 CREATE_OBJECT CWsScreenDevice scrdev |
|
7981 CREATE_OBJECT CWindowGc wingc |
|
7982 CREATE_OBJECT RWindowGroup wingrp |
|
7983 CREATE_OBJECT RWindow win |
|
7984 COMMAND ws new |
|
7985 COMMAND ws Connect |
|
7986 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
7987 COMMAND scrdev Construct |
|
7988 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
7989 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
7990 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
7991 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
7992 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
7993 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
7994 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
7995 COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-DrawText_command003 |
|
7996 END_TEST_BLOCK !PanicString=WSERV !PanicCode=14 |
|
7997 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
7998 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1128 |
|
7999 |
|
8000 |
|
8001 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1129 |
|
8002 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1129 |
|
8003 //! @SYMAPI CWindowGc |
|
8004 //! @SYMAuthor Shirly Kuo |
|
8005 //! @SYMCreationDate 22/11/2007 |
|
8006 //! @SYMTestCaseDesc DrawText(const TDesC &aBuf, const TRect &aBox, TInt aBaselineOffset, TTextAlign aHoriz=ELeft, TInt aLeftMrg=0): execute DrawText with no active font |
|
8007 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
8008 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
8009 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
8010 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
8011 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
8012 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
8013 //! 6. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
8014 //! 7. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
8015 //! 8. Draws horizontal text within a cleared box by using DrawTextVertical() and check if it generates expected panic code |
|
8016 //! @SYMTestStatus Implemented |
|
8017 //! @SYMTestPriority Medium |
|
8018 //! @SYMTestExpectedResults get panic WSERV code=14 (Printing with no active font) |
|
8019 //! @SYMTestType CIT |
|
8020 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
8021 CREATE_OBJECT RWsSession ws |
|
8022 CREATE_OBJECT CWsScreenDevice scrdev |
|
8023 CREATE_OBJECT CWindowGc wingc |
|
8024 CREATE_OBJECT RWindowGroup wingrp |
|
8025 CREATE_OBJECT RWindow win |
|
8026 COMMAND ws new |
|
8027 COMMAND ws Connect |
|
8028 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
8029 COMMAND scrdev Construct |
|
8030 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
8031 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
8032 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
8033 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
8034 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
8035 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
8036 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
8037 COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0118-0001-DrawText_command003 |
|
8038 END_TEST_BLOCK !PanicString=WSERV !PanicCode=14 |
|
8039 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
8040 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1129 |
|
8041 |
|
8042 |
|
8043 START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1130 |
|
8044 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1130 |
|
8045 //! @SYMAPI CWindowGc |
|
8046 //! @SYMAuthor Shirly Kuo |
|
8047 //! @SYMCreationDate 23/11/2007 |
|
8048 //! @SYMTestCaseDesc DrawTextVertical(const TDesC &aText, const TPoint &aPos, TBool aUp): execute DrawTextVertical with no active font |
|
8049 //! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct |
|
8050 //! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. |
|
8051 //! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. |
|
8052 //! 3. Create window graphic context using CreateContext() and return KErrNone if successed. |
|
8053 //! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. |
|
8054 //! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. |
|
8055 //! 6. Activate the CWindowGc using Activate() and return KErrNone if successed. |
|
8056 //! 7. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. |
|
8057 //! 8. Draws vertical text in the specified direction by using DrawTextVertical() and check if it generates expected panic code |
|
8058 //! @SYMTestStatus Implemented |
|
8059 //! @SYMTestPriority Medium |
|
8060 //! @SYMTestExpectedResults get panic WSERV code=14 (Printing with no active font) |
|
8061 //! @SYMTestType CIT |
|
8062 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini |
|
8063 CREATE_OBJECT RWsSession ws |
|
8064 CREATE_OBJECT CWsScreenDevice scrdev |
|
8065 CREATE_OBJECT CWindowGc wingc |
|
8066 CREATE_OBJECT RWindowGroup wingrp |
|
8067 CREATE_OBJECT RWindow win |
|
8068 COMMAND ws new |
|
8069 COMMAND ws Connect |
|
8070 COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 |
|
8071 COMMAND scrdev Construct |
|
8072 COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 |
|
8073 COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 |
|
8074 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 |
|
8075 COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 |
|
8076 COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 |
|
8077 COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 |
|
8078 COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 |
|
8079 COMMAND wingc DrawTextVertical GRAPHICS-WSERV-WindowGc-PublicApi-0121-0001-DrawTextVertical_command003 |
|
8080 END_TEST_BLOCK !PanicString=WSERV !PanicCode=14 |
|
8081 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
8082 END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1130 |
|