|
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-Window-PublicApi |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
|
20 /////////////////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-WSERV-Window-PublicApi.script |
|
22 // |
|
23 // Tests all public elements of the RWindow 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 // RWindow 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 // RWindow |
|
40 // **************************************************************************** |
|
41 |
|
42 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0001 |
|
43 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0001 |
|
44 //! @SYMAPI RWindow |
|
45 //! @SYMAuthor Victor Liu |
|
46 //! @SYMCreationDate 20/12/2006 |
|
47 //! @SYMTestCaseDesc RWindow(): create a RWindow object with C++ default constructor |
|
48 //! Uses API elements: RWindow() |
|
49 //! @SYMTestActions 1. Create a RWindow object with the C++ default constructor |
|
50 //! @SYMTestStatus Implemented |
|
51 //! @SYMTestPriority Low |
|
52 //! @SYMTestExpectedResults RWindow object was created without causing panic |
|
53 //! @SYMTestType CIT |
|
54 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
55 CREATE_OBJECT RWindow win |
|
56 COMMAND win new |
|
57 END_TEST_BLOCK |
|
58 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0001 |
|
59 |
|
60 |
|
61 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0002 |
|
62 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0002 |
|
63 //! @SYMAPI RWindow |
|
64 //! @SYMAuthor Victor Liu |
|
65 //! @SYMCreationDate 20/12/2006 |
|
66 //! @SYMTestCaseDesc RWindow(RWsSession &aWs): create a RWindow object within the specified RWsSession |
|
67 //! Uses API elements: RWsSession::Connect, RWindow() |
|
68 //! @SYMTestActions 1. Create and connect a RWsSession |
|
69 //! 2. Create a RWindow within the RWsSession |
|
70 //! @SYMTestStatus Implemented |
|
71 //! @SYMTestPriority Critical |
|
72 //! @SYMTestExpectedResults RWindow object was created without causing panic |
|
73 //! @SYMTestType CIT |
|
74 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
75 CREATE_OBJECT RWsSession ws |
|
76 CREATE_OBJECT RWindow win |
|
77 COMMAND ws new |
|
78 COMMAND ws Connect |
|
79 COMMAND win new GRAPHICS-WSERV-Window-PublicApi-0002-0001-new_command004 |
|
80 COMMAND ws Close |
|
81 END_TEST_BLOCK |
|
82 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0002 |
|
83 |
|
84 |
|
85 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0003 |
|
86 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0003 |
|
87 //! @SYMAPI RWindow |
|
88 //! @SYMAuthor Victor Liu |
|
89 //! @SYMCreationDate 20/12/2006 |
|
90 //! @SYMTestCaseDesc Construct(const RWindowTreeNode &parent, TUint32 aHandle): complete construction of a RWindow |
|
91 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
92 //! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession |
|
93 //! 2. Create and construct a RWindowGroup (as the parent of RWindow to be constructed) |
|
94 //! 3. Create and construct a RWindow as the child of the RWindowGroup |
|
95 //! @SYMTestStatus Implemented |
|
96 //! @SYMTestPriority Critical |
|
97 //! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic |
|
98 //! @SYMTestType CIT |
|
99 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
100 CREATE_OBJECT RWsSession ws |
|
101 CREATE_OBJECT RWindowGroup wingrp |
|
102 CREATE_OBJECT RWindow win |
|
103 COMMAND ws new |
|
104 COMMAND ws Connect |
|
105 COMMAND wingrp new GRAPHICS-WSERV-Window-PublicApi-0003-0001-new_command004 |
|
106 COMMAND wingrp Construct GRAPHICS-WSERV-Window-PublicApi-0003-0001-Construct_command005 |
|
107 COMMAND win new GRAPHICS-WSERV-Window-PublicApi-0003-0001-new_command007 |
|
108 COMMAND win Construct GRAPHICS-WSERV-Window-PublicApi-0003-0001-Construct_command008 |
|
109 COMMAND win Close |
|
110 COMMAND wingrp Close |
|
111 COMMAND ws Close |
|
112 END_TEST_BLOCK |
|
113 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0003 |
|
114 |
|
115 |
|
116 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0004 |
|
117 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0004 |
|
118 //! @SYMAPI RWindow |
|
119 //! @SYMAuthor Victor Liu |
|
120 //! @SYMCreationDate 20/12/2006 |
|
121 //! @SYMTestCaseDesc BeginRedraw(): begin redraw the window's invalid region |
|
122 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RDrawableWindow::GetDrawRect |
|
123 //! @SYMTestActions 1. Create and construct a simple RWindow to test |
|
124 //! 1.1 New and connect a RWsSession |
|
125 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
126 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
127 //! 2. Use RDrawableWindow::GetDrawRect to check if the drawing rectangle is empty |
|
128 //! 3. Execute BeginRedraw() method |
|
129 //! 4. Use RDrawableWindow::GetDrawRect to check if the drawing rectangle is the entire window |
|
130 //! 5. Close all objects used |
|
131 //! @SYMTestStatus Implemented |
|
132 //! @SYMTestPriority Critical |
|
133 //! @SYMTestExpectedResults 1. Run BeginRedraw() method without causing panic |
|
134 //! 2. Check if the drawing rectangle as expected |
|
135 //! 2.1 before BeginRedraw(), the drawing rectangle is empty: TRect((0,0),(0,0)) |
|
136 //! 2.2 after BeginRedraw(), the drawing rectangle should be the window size (or the intital screen size) |
|
137 //! @SYMTestType CIT |
|
138 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
139 CREATE_OBJECT RWsSession ws |
|
140 CREATE_OBJECT RWindowGroup wingrp |
|
141 CREATE_OBJECT RWindow win |
|
142 COMMAND ws new |
|
143 COMMAND ws Connect |
|
144 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
145 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
146 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
147 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
148 |
|
149 COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0004-0001-GetDrawRect_command001 |
|
150 COMMAND win BeginRedraw |
|
151 COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0004-0001-GetDrawRect_command003 |
|
152 |
|
153 COMMAND win Close |
|
154 COMMAND wingrp Close |
|
155 COMMAND ws Close |
|
156 END_TEST_BLOCK |
|
157 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0004 |
|
158 |
|
159 |
|
160 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0005 |
|
161 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0005 |
|
162 //! @SYMAPI RWindow |
|
163 //! @SYMAuthor Victor Liu |
|
164 //! @SYMCreationDate 20/12/2006 |
|
165 //! @SYMTestCaseDesc BeginRedraw(const TRect &aRect): begin redraw the rectangle of the window's invalid region |
|
166 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RDrawableWindow::GetDrawRect |
|
167 //! @SYMTestActions 1. Create and construct a simple RWindow to test |
|
168 //! 1.1 New and connect a RWsSession |
|
169 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
170 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
171 //! 2. Use RDrawableWindow::GetDrawRect to check if the drawing rectangle is empty |
|
172 //! 3. Execute BeginRedraw() method with specified rectangle |
|
173 //! 4. Use RDrawableWindow::GetDrawRect to check if the drawing rectangle the same as the specified |
|
174 //! 5. Close all objects used |
|
175 //! @SYMTestStatus Implemented |
|
176 //! @SYMTestPriority Critical |
|
177 //! @SYMTestExpectedResults 1. Run BeginRedraw() method without causing panic |
|
178 //! 2. Check if the drawing rectangle as expected |
|
179 //! 2.1 before BeginRedraw(), the drawing rectangle is empty: TRect((0,0),(0,0)) |
|
180 //! 2.2 after BeginRedraw(), the drawing rectangle should be the same as the specified TRect((21,20),(51,50)) |
|
181 //! @SYMTestType CIT |
|
182 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
183 CREATE_OBJECT RWsSession ws |
|
184 CREATE_OBJECT RWindowGroup wingrp |
|
185 CREATE_OBJECT RWindow win |
|
186 COMMAND ws new |
|
187 COMMAND ws Connect |
|
188 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
189 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
190 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
191 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
192 |
|
193 COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0005-0001-GetDrawRect_command001 |
|
194 COMMAND win BeginRedraw GRAPHICS-WSERV-Window-PublicApi-0005-0001-BeginRedraw_command002 |
|
195 COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0005-0001-GetDrawRect_command003 |
|
196 |
|
197 COMMAND win Close |
|
198 COMMAND wingrp Close |
|
199 COMMAND ws Close |
|
200 END_TEST_BLOCK |
|
201 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0005 |
|
202 |
|
203 |
|
204 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0006 |
|
205 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0006 |
|
206 //! @SYMAPI RWindow |
|
207 //! @SYMAuthor Victor Liu |
|
208 //! @SYMCreationDate 20/12/2006 |
|
209 //! @SYMTestCaseDesc EndRedraw(): end the current redraw |
|
210 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct & BeginRedraw, RDrawableWindow::GetDrawRect |
|
211 //! @SYMTestActions 1. Create and construct a simple RWindow to test |
|
212 //! 1.1 New and connect a RWsSession |
|
213 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
214 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
215 //! 2. Execute BeginRedraw(), then EndRedraw method |
|
216 //! 3. Use RDrawableWindow::GetDrawRect to check if the drawing rectangle is cleared back to empty |
|
217 //! 4. Close all objects used |
|
218 //! @SYMTestStatus Implemented |
|
219 //! @SYMTestPriority Critical |
|
220 //! @SYMTestExpectedResults 1. Run EndRedraw() method without causing panic |
|
221 //! 2. Check if the drawing rectangle after call EndRedraw() is empty: TRect((0,0),(0,0)) |
|
222 //! @SYMTestType CIT |
|
223 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
224 CREATE_OBJECT RWsSession ws |
|
225 CREATE_OBJECT RWindowGroup wingrp |
|
226 CREATE_OBJECT RWindow win |
|
227 COMMAND ws new |
|
228 COMMAND ws Connect |
|
229 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
230 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
231 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
232 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
233 |
|
234 COMMAND win BeginRedraw |
|
235 COMMAND win EndRedraw |
|
236 COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0006-0001-GetDrawRect_command003 |
|
237 |
|
238 COMMAND win Close |
|
239 COMMAND wingrp Close |
|
240 COMMAND ws Close |
|
241 END_TEST_BLOCK |
|
242 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0006 |
|
243 |
|
244 |
|
245 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0007 |
|
246 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0007 |
|
247 //! @SYMAPI RWindow |
|
248 //! @SYMAuthor Victor Liu |
|
249 //! @SYMCreationDate 20/12/2006 |
|
250 //! @SYMTestCaseDesc Invalidate(): invalidate the entire window |
|
251 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct & Activate & BeginRedraw & EndRedraw & GetInvalidRegion |
|
252 //! @SYMTestActions 1. Create and construct a simple RWindow to test |
|
253 //! 1.1 New and connect a RWsSession |
|
254 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
255 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
256 //! 2. Activate, BeginRedraw and EndRedraw the RWindow to make the entire window is valid |
|
257 //! 3. Execute Invalidate() method for the entire window |
|
258 //! 4. Use GetInvalidRegion to check if the invalid region as specified (the entire window) |
|
259 //! 5. Close all objects used |
|
260 //! @SYMTestStatus Implemented |
|
261 //! @SYMTestPriority Critical |
|
262 //! @SYMTestExpectedResults 1. Run Invalidate() method without causing panic |
|
263 //! 2. Check if invalid region as specified |
|
264 //! 2.1 before Invalidate(), there's NO invalid region: NULL region can be represented by TRect((0,0),(0,0)) |
|
265 //! 2.2 after Invalidate(), the invalid region should be the window size (or the intital screen size) |
|
266 //! @SYMTestType CIT |
|
267 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
268 CREATE_OBJECT RWsSession ws |
|
269 CREATE_OBJECT RWindowGroup wingrp |
|
270 CREATE_OBJECT RWindow win |
|
271 COMMAND ws new |
|
272 COMMAND ws Connect |
|
273 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
274 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
275 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
276 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
277 |
|
278 COMMAND win Activate |
|
279 COMMAND win BeginRedraw |
|
280 COMMAND win EndRedraw |
|
281 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0007-0001-GetInvalidRegion_command004 |
|
282 COMMAND win Invalidate |
|
283 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0007-0001-GetInvalidRegion_command006 |
|
284 |
|
285 COMMAND win Close |
|
286 COMMAND wingrp Close |
|
287 COMMAND ws Close |
|
288 END_TEST_BLOCK |
|
289 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0007 |
|
290 |
|
291 |
|
292 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0008 |
|
293 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0008 |
|
294 //! @SYMAPI RWindow |
|
295 //! @SYMAuthor Victor Liu |
|
296 //! @SYMCreationDate 20/12/2006 |
|
297 //! @SYMTestCaseDesc Invalidate(const TRect &aRect): invalidate a rectangle area within the window |
|
298 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct & Activate & BeginRedraw & EndRedraw & GetInvalidRegion |
|
299 //! @SYMTestActions 1. Create and construct a simple RWindow to test |
|
300 //! 1.1 New and connect a RWsSession |
|
301 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
302 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
303 //! 2. Activate, BeginRedraw and EndRedraw the RWindow to make the entire window is valid |
|
304 //! 3. Execute Invalidate() method with specified rectangle ((11,10),(81,60)) |
|
305 //! 4. Use GetInvalidRegion to check if the invalid region as specified |
|
306 //! 5. Close all objects used |
|
307 //! @SYMTestStatus Implemented |
|
308 //! @SYMTestPriority Critical |
|
309 //! @SYMTestExpectedResults 1. Run Invalidate() method without causing panic |
|
310 //! 2. Check if invalid region as specified |
|
311 //! 2.1 before Invalidate(), there's NO invalid region: NULL region can be represented by TRect((0,0),(0,0)) |
|
312 //! 2.2 after Invalidate(), the invalid region should be the same as specified TRect((11,10),(81,60)) |
|
313 //! @SYMTestType CIT |
|
314 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
315 CREATE_OBJECT RWsSession ws |
|
316 CREATE_OBJECT RWindowGroup wingrp |
|
317 CREATE_OBJECT RWindow win |
|
318 COMMAND ws new |
|
319 COMMAND ws Connect |
|
320 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
321 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
322 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
323 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
324 |
|
325 COMMAND win Activate |
|
326 COMMAND win BeginRedraw |
|
327 COMMAND win EndRedraw |
|
328 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0008-0001-GetInvalidRegion_command004 |
|
329 COMMAND win Invalidate GRAPHICS-WSERV-Window-PublicApi-0008-0001-Invalidate_command005 |
|
330 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0008-0001-GetInvalidRegion_command006 |
|
331 |
|
332 COMMAND win Close |
|
333 COMMAND wingrp Close |
|
334 COMMAND ws Close |
|
335 END_TEST_BLOCK |
|
336 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0008 |
|
337 |
|
338 |
|
339 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0009 |
|
340 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0009 |
|
341 //! @SYMAPI RWindow |
|
342 //! @SYMAuthor Victor Liu |
|
343 //! @SYMCreationDate 15/03/2007 |
|
344 //! @SYMTestCaseDesc GetInvalidRegion(RRegion &aRegion): get the invalid region |
|
345 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::Activate |
|
346 //! @SYMTestActions 1. Create and construct a simple RWindow to test |
|
347 //! 1.1 New and connect a RWsSession |
|
348 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
349 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
350 //! 2. Execute GetInvalidRegion() method and check if returned invalid region is NULL/empty |
|
351 //! 3. Activate the window |
|
352 //! 4. Execute GetInvalidRegion() and check again if returned the whole window |
|
353 //! 5. Close all objects used |
|
354 //! @SYMTestStatus Implemented |
|
355 //! @SYMTestPriority Critical |
|
356 //! @SYMTestExpectedResults 1. Run GetInvalidRegion() method without causing panic |
|
357 //! 2. Check returned invalid region for a initial window |
|
358 //! 2.1 before Activate the window, there's NO invalid region: NULL region can be represented by TRect((0,0),(0,0)) |
|
359 //! 2.2 after Activate the window, the invalid region should be the window size (or the intital screen size) |
|
360 //! @SYMTestType CIT |
|
361 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
362 CREATE_OBJECT RWsSession ws |
|
363 CREATE_OBJECT RWindowGroup wingrp |
|
364 CREATE_OBJECT RWindow win |
|
365 COMMAND ws new |
|
366 COMMAND ws Connect |
|
367 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
368 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
369 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
370 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
371 |
|
372 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0009-0001-GetInvalidRegion_command001 |
|
373 COMMAND win Activate |
|
374 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0009-0001-GetInvalidRegion_command003 |
|
375 |
|
376 COMMAND win Close |
|
377 COMMAND wingrp Close |
|
378 COMMAND ws Close |
|
379 END_TEST_BLOCK |
|
380 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0009 |
|
381 |
|
382 |
|
383 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0010 |
|
384 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0010 |
|
385 //! @SYMAPI RWindow |
|
386 //! @SYMAuthor Victor Liu |
|
387 //! @SYMCreationDate 20/12/2006 |
|
388 //! @SYMTestCaseDesc SetBackgroundColor(TRgb aColor): set the background colour used for clearing in server-initiated redraws |
|
389 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, |
|
390 //! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw, CWindowGc::Activate & Deactivate |
|
391 //! @SYMTestActions 1. Setup and display a RWindow to test |
|
392 //! 1.1 New and connect a RWsSession |
|
393 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
394 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
395 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
396 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
397 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow |
|
398 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
399 //! 1.7 Activate the CWindowGc to the RWindow |
|
400 //! 2. Execute SetBackgroundColor to set the background color to the specified TRgb(255,0,0) |
|
401 //! 3. Run RWindow::BeginRedraw & EndRedraw to display the RWindow with new background color |
|
402 //! 4. Check if the expected background color displayed on the screen |
|
403 //! 5. Destruct and close all objects used |
|
404 //! @SYMTestStatus Implemented |
|
405 //! @SYMTestPriority Critical |
|
406 //! @SYMTestExpectedResults 1. Run SetBackgroundColor() method without causing panic |
|
407 //! 2. The whole window is displayed on the scrren with the background color TRgb(255,0,0) |
|
408 //! only check the sample rectangles: ((0,0),(20,20)), ((0,180),(20,200)), ((180,0),(200,20)), ((180,180),(200,200)) |
|
409 //! @SYMTestType CIT |
|
410 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
411 CREATE_OBJECT RWsSession ws |
|
412 CREATE_OBJECT CWsScreenDevice scrdev |
|
413 CREATE_OBJECT CWindowGc wingc |
|
414 CREATE_OBJECT RWindowGroup wingrp |
|
415 CREATE_OBJECT RWindow win |
|
416 COMMAND ws new |
|
417 COMMAND ws Connect |
|
418 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004 |
|
419 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005 |
|
420 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006 |
|
421 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
422 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
423 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
424 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
425 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
426 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 |
|
427 COMMAND wingc Activate GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017 |
|
428 |
|
429 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0010-0001-SetBackgroundColor_command001 |
|
430 COMMAND win Activate |
|
431 COMMAND win BeginRedraw |
|
432 COMMAND win EndRedraw |
|
433 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0010-0001-checkRectColor_command006 |
|
434 |
|
435 COMMAND wingc Deactivate |
|
436 COMMAND win Close |
|
437 COMMAND wingrp Close |
|
438 COMMAND wingc ~ |
|
439 COMMAND scrdev ~ |
|
440 COMMAND ws Close |
|
441 END_TEST_BLOCK |
|
442 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0010 |
|
443 |
|
444 |
|
445 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0011 |
|
446 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0011 |
|
447 //! @SYMAPI RWindow |
|
448 //! @SYMAuthor Victor Liu |
|
449 //! @SYMCreationDate 20/12/2006 |
|
450 //! @SYMTestCaseDesc SetBackgroundColor(): set the background colour used for clearing in server-initiated redraws to none |
|
451 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, |
|
452 //! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw, CWindowGc::Activate & Deactivate |
|
453 //! @SYMTestActions 1. Setup and display a RWindow to test |
|
454 //! 1.1 New and connect a RWsSession |
|
455 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
456 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
457 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
458 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
459 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow |
|
460 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
461 //! 1.7 Activate the CWindowGc to the RWindow |
|
462 //! 2. Execute SetBackgroundColor to set the background color to clear, i.e. TRgb(255,255,255) |
|
463 //! 3. Run RWindow::BeginRedraw & EndRedraw to display the RWindow with new background color |
|
464 //! 4. Check if the expected background color displayed on the screen |
|
465 //! 5. Destruct and close all objects used |
|
466 //! @SYMTestStatus Implemented |
|
467 //! @SYMTestPriority Critical |
|
468 //! @SYMTestExpectedResults 1. Run SetBackgroundColor() method without causing panic |
|
469 //! 2. The whole window is displayed on the screen with the background color TRgb(255,255,255) |
|
470 //! only check the sample rectangles: ((0,0),(20,20)), ((0,180),(20,200)), ((180,0),(200,20)), ((180,180),(200,200)) |
|
471 //! @SYMTestType CIT |
|
472 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
473 CREATE_OBJECT RWsSession ws |
|
474 CREATE_OBJECT CWsScreenDevice scrdev |
|
475 CREATE_OBJECT CWindowGc wingc |
|
476 CREATE_OBJECT RWindowGroup wingrp |
|
477 CREATE_OBJECT RWindow win |
|
478 COMMAND ws new |
|
479 COMMAND ws Connect |
|
480 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004 |
|
481 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005 |
|
482 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006 |
|
483 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
484 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
485 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
486 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
487 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
488 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 |
|
489 COMMAND wingc Activate GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017 |
|
490 |
|
491 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0011-0001-SetBackgroundColor_command005 |
|
492 COMMAND win Activate |
|
493 COMMAND win BeginRedraw |
|
494 COMMAND win EndRedraw |
|
495 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0011-0001-checkRectColor_command006 |
|
496 |
|
497 COMMAND wingc Deactivate |
|
498 COMMAND win Close |
|
499 COMMAND wingrp Close |
|
500 COMMAND wingc ~ |
|
501 COMMAND scrdev ~ |
|
502 COMMAND ws Close |
|
503 END_TEST_BLOCK |
|
504 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0011 |
|
505 |
|
506 |
|
507 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0012 |
|
508 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0012 |
|
509 //! @SYMAPI RWindow |
|
510 //! @SYMAuthor Victor Liu |
|
511 //! @SYMCreationDate 20/12/2006 |
|
512 //! @SYMTestCaseDesc SetSize(const TSize &size): set the size of the RWindow |
|
513 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::Size |
|
514 //! @SYMTestActions 1. Create and construct a simple RWindow to test |
|
515 //! 1.1 New and connect a RWsSession |
|
516 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
517 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
518 //! 2. Execute SetSize to set RWindow to the specified window size |
|
519 //! 3. Use RWindowBase::Size to check if the window size is the same as specified |
|
520 //! 4. Close all objects used |
|
521 //! @SYMTestStatus Implemented |
|
522 //! @SYMTestPriority Critical |
|
523 //! @SYMTestExpectedResults 1. Run SetSize() method without causing panic |
|
524 //! 2. RWindowBase::Size gets the window size as the specified (width 50, height 40) |
|
525 //! @SYMTestType CIT |
|
526 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
527 CREATE_OBJECT RWsSession ws |
|
528 CREATE_OBJECT RWindowGroup wingrp |
|
529 CREATE_OBJECT RWindow win |
|
530 COMMAND ws new |
|
531 COMMAND ws Connect |
|
532 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
533 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
534 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
535 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
536 |
|
537 COMMAND win SetSize GRAPHICS-WSERV-Window-PublicApi-0012-0001-SetSize_command001 |
|
538 COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-0012-0001-Size_command002 |
|
539 |
|
540 COMMAND win Close |
|
541 COMMAND wingrp Close |
|
542 COMMAND ws Close |
|
543 END_TEST_BLOCK |
|
544 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0012 |
|
545 |
|
546 |
|
547 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0013 |
|
548 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0013 |
|
549 //! @SYMAPI RWindow |
|
550 //! @SYMAuthor Victor Liu |
|
551 //! @SYMCreationDate 20/12/2006 |
|
552 //! @SYMTestCaseDesc SetExtent(const TPoint &point, const TSize &size): set the extent of the RWindow |
|
553 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::Size & AbsPosition |
|
554 //! @SYMTestActions 1. Create and construct a simple RWindow to test |
|
555 //! 1.1 New and connect a RWsSession |
|
556 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
557 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
558 //! 2. Execute SetExtent to set RWindow position to (10,11) and size to (width 40, height 30) |
|
559 //! 3. Use RWindowBase::AbsPosition to get and check if the window position is the same as specified |
|
560 //! and RWindowBase::Size to get and check if the window size is is the same as specified |
|
561 //! 4. Close all objects used |
|
562 //! @SYMTestStatus Implemented |
|
563 //! @SYMTestPriority Critical |
|
564 //! @SYMTestExpectedResults 1. Run SetExtent() method without causing panic |
|
565 //! 2. RWindowBase::AbsPosition gets the window position as expected (10,11) |
|
566 //! RWindowBase::Size gets the window size as expected (width 50, height 40) |
|
567 //! @SYMTestType CIT |
|
568 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
569 CREATE_OBJECT RWsSession ws |
|
570 CREATE_OBJECT RWindowGroup wingrp |
|
571 CREATE_OBJECT RWindow win |
|
572 COMMAND ws new |
|
573 COMMAND ws Connect |
|
574 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
575 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
576 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
577 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
578 |
|
579 COMMAND win SetExtent GRAPHICS-WSERV-Window-PublicApi-0013-0001-SetExtent_command001 |
|
580 COMMAND win AbsPosition GRAPHICS-WSERV-Window-PublicApi-0013-0001-AbsPosition_command002 |
|
581 COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-0013-0001-Size_command003 |
|
582 |
|
583 COMMAND win Close |
|
584 COMMAND wingrp Close |
|
585 COMMAND ws Close |
|
586 END_TEST_BLOCK |
|
587 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0013 |
|
588 |
|
589 |
|
590 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0014 |
|
591 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0014 |
|
592 //! @SYMAPI RWindow |
|
593 //! @SYMAuthor Victor Liu |
|
594 //! @SYMCreationDate 02/05/2007 |
|
595 //! @SYMTestCaseDesc HandleTransparencyUpdate(): notify the WSERV that the contents of the registered transparency CFbsBitmap has been changed |
|
596 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, |
|
597 //! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize & SetTransparencyBitmap, CWindowGc::Activate & Deactivate |
|
598 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
599 //! 1.1 New and connect a RWsSession |
|
600 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
601 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
602 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
603 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
604 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
605 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
606 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
607 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
608 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
609 //! 2. New and Create a transparency CFbsBitmap: display mode EGray256, width 5 height 1 |
|
610 //! 3. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow |
|
611 //! 4. Use SetTransparencyBitmap to set the tranpsarency CFbsBitmap for the window |
|
612 //! 5. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow |
|
613 //! 6. Check if the foreground RWindow is displayed with the specified transparency CFbsBitmap |
|
614 //! 7. Use TBitmapUtil::Begin, SetPos, SetPixel, End to change the transparency CFbsBitmap |
|
615 //! 8. Execute HandleTransparencyUpdate to notify WSERV that the registered transparency CFbsBitmap has been changed |
|
616 //! 9. Check if the foreground RWindow is displayed with the updated transparency CFbsBitmap |
|
617 //! 10. Destruct and close all the objects used |
|
618 //! @SYMTestStatus Implemented |
|
619 //! @SYMTestPriority High |
|
620 //! @SYMTestExpectedResults 1. Run HandleTransparencyUpdate() method without causing panic |
|
621 //! 2. Check if the foreground RWindow is displayed as expected |
|
622 //! 2.1 before HandleTransparencyUpdate, the tranpsarency CFbsBitmap is all with default TRgb(255,255,255) |
|
623 //! this means non-transparent, and the window is displayed with its background color TRgb(0,0,255) |
|
624 //! 2.2 after HandleTransparencyUpdate, the tranpsarency CFbsBitmap is updated with partially/fully transparency |
|
625 //! the window is displayed as the result of alpha blending with source = foreground RWindow color TRgb(0,0,255) |
|
626 //! with window = background RWindow color TRgb(255,255,0) |
|
627 //! with alpha factor = map pixel color of transparency CFbsBitmap to Gray256 |
|
628 //! @SYMTestType CIT |
|
629 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
630 CREATE_OBJECT RWsSession ws |
|
631 CREATE_OBJECT CWsScreenDevice scrdev |
|
632 CREATE_OBJECT CWindowGc wingc |
|
633 CREATE_OBJECT RWindowGroup wingrp |
|
634 CREATE_OBJECT RWindow backwin |
|
635 CREATE_OBJECT RWindow win |
|
636 COMMAND ws new |
|
637 COMMAND ws Connect |
|
638 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
639 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
640 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
641 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
642 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
643 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
644 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
645 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
646 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
647 COMMAND backwin Activate |
|
648 COMMAND backwin BeginRedraw |
|
649 COMMAND backwin EndRedraw |
|
650 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
651 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
652 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
653 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
654 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
655 |
|
656 CREATE_OBJECT CFbsBitmap fbsbmp |
|
657 CREATE_OBJECT TBitmapUtil bmputil |
|
658 COMMAND fbsbmp new |
|
659 COMMAND fbsbmp Create GRAPHICS-WSERV-Window-PublicApi-0014-0001-Create_command002 |
|
660 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetBackgroundColor_command004 |
|
661 COMMAND win SetTransparencyBitmap GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetTransparencyBitmap_command005 |
|
662 COMMAND win Activate |
|
663 COMMAND win BeginRedraw |
|
664 COMMAND win EndRedraw |
|
665 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0014-0001-checkRectColor_command010 |
|
666 COMMAND bmputil new GRAPHICS-WSERV-Window-PublicApi-0014-0001-New_command012 |
|
667 COMMAND bmputil Begin GRAPHICS-WSERV-Window-PublicApi-0014-0001-Begin_command013 |
|
668 COMMAND bmputil SetPixel GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command014 |
|
669 COMMAND bmputil SetPos GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPos_command015 |
|
670 COMMAND bmputil SetPixel GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command016 |
|
671 COMMAND bmputil SetPos GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPos_command017 |
|
672 COMMAND bmputil SetPixel GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command018 |
|
673 COMMAND bmputil SetPos GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPos_command019 |
|
674 COMMAND bmputil SetPixel GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command020 |
|
675 COMMAND bmputil SetPos GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPos_command021 |
|
676 COMMAND bmputil SetPixel GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command022 |
|
677 COMMAND bmputil End |
|
678 COMMAND win HandleTransparencyUpdate |
|
679 |
|
680 COMMAND fbsbmp ~ |
|
681 COMMAND win Close |
|
682 COMMAND backwin Close |
|
683 COMMAND wingrp Close |
|
684 COMMAND wingc ~ |
|
685 COMMAND scrdev ~ |
|
686 COMMAND ws Close |
|
687 END_TEST_BLOCK |
|
688 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0014 |
|
689 |
|
690 |
|
691 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0015 |
|
692 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0015 |
|
693 //! @SYMAPI RWindow |
|
694 //! @SYMAuthor Victor Liu |
|
695 //! @SYMCreationDate 28/03/2007 |
|
696 //! @SYMTestCaseDesc SetTransparencyFactor(const TRgb &aTransparencyFactor): set the tranpsarency color for the window |
|
697 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, |
|
698 //! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize, CWindowGc::Activate & Deactivate |
|
699 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
700 //! 1.1 New and connect a RWsSession |
|
701 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
702 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
703 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
704 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
705 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
706 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
707 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
708 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
709 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
710 //! 2. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow |
|
711 //! 3. Execute SetTransparencyFactor to TRgb(17,17,17) to set transparency color |
|
712 //! 4. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow |
|
713 //! 5. Check if the foreground RWindow is displayed with the transparency factor |
|
714 //! 6. Destruct and close all the objects used |
|
715 //! @SYMTestStatus Implemented |
|
716 //! @SYMTestPriority High |
|
717 //! @SYMTestExpectedResults 1. SetTransparencyFactor() returns KErrNone without causing panic |
|
718 //! 2. The foreground RWindow is displayed with the specified tranpsarency factor |
|
719 //! i.e. alpha blending with source = foreground RWindow color TRgb(0,0,255) |
|
720 //! with window = background RWindow color TRgb(255,255,0) |
|
721 //! with alpha factor = map transparency color to Gray256, e.g. TRgb(17,17,17) => alpha factor 17 |
|
722 //! then foreground RWindow is expected to be drawn with TRgb(238,238,17) |
|
723 //! @SYMTestType CIT |
|
724 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
725 CREATE_OBJECT RWsSession ws |
|
726 CREATE_OBJECT CWsScreenDevice scrdev |
|
727 CREATE_OBJECT CWindowGc wingc |
|
728 CREATE_OBJECT RWindowGroup wingrp |
|
729 CREATE_OBJECT RWindow backwin |
|
730 CREATE_OBJECT RWindow win |
|
731 COMMAND ws new |
|
732 COMMAND ws Connect |
|
733 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
734 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
735 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
736 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
737 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
738 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
739 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
740 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
741 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
742 COMMAND backwin Activate |
|
743 COMMAND backwin BeginRedraw |
|
744 COMMAND backwin EndRedraw |
|
745 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
746 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
747 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
748 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
749 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
750 |
|
751 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0015-0001-SetBackgroundColor_command001 |
|
752 COMMAND win SetTransparencyFactor GRAPHICS-WSERV-Window-PublicApi-0015-0001-SetTransparencyFactor_command002 |
|
753 COMMAND win Activate |
|
754 COMMAND win BeginRedraw |
|
755 COMMAND win EndRedraw |
|
756 |
|
757 COMMAND win Close |
|
758 COMMAND backwin Close |
|
759 COMMAND wingrp Close |
|
760 COMMAND wingc ~ |
|
761 COMMAND scrdev ~ |
|
762 COMMAND ws Close |
|
763 END_TEST_BLOCK |
|
764 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0015 |
|
765 |
|
766 |
|
767 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0016 |
|
768 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0016 |
|
769 //! @SYMAPI RWindow |
|
770 //! @SYMAuthor Victor Liu |
|
771 //! @SYMCreationDate 02/04/2007 |
|
772 //! @SYMTestCaseDesc SetTransparencyBitmap(const CFbsBitmap &aTransparencyBitmap): set the tranpsarency bitmap for the window |
|
773 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, CFbsBitmap::Load, |
|
774 //! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize, CWindowGc::Activate & Deactivate |
|
775 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
776 //! 1.1 New and connect a RWsSession |
|
777 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
778 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
779 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
780 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
781 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
782 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
783 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
784 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
785 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
786 //! 2. New and Load the transparency CFbsBitmap |
|
787 //! 3. Execute SetTransparencyBitmap to set the tranpsarency CFbsBitmap for the window |
|
788 //! 4. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow |
|
789 //! 5. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow |
|
790 //! 6. Check if the foreground RWindow is displayed with the specified transparency CFbsBitmap |
|
791 //! i.e. alpha blending with source = foreground RWindow color, window = background RWindow color, alpha = transparency CFbsBitmap |
|
792 //! 7. Destruct and close all the objects used |
|
793 //! @SYMTestStatus Implemented |
|
794 //! @SYMTestPriority High |
|
795 //! @SYMTestExpectedResults 1. SetTransparencyBitmap() returns KErrNone without causing panic |
|
796 //! 2. The foreground RWindow is displayed with the specified tranpsarency CFbsBitmap |
|
797 //! i.e. alpha blending with source = foreground RWindow color TRgb(0,0,255) |
|
798 //! with window = background RWindow color TRgb(255,255,0) |
|
799 //! with alpha factor = map pixel color of transparency CFbsBitmap to Gray256 |
|
800 //! @SYMTestType CIT |
|
801 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
802 CREATE_OBJECT RWsSession ws |
|
803 CREATE_OBJECT CWsScreenDevice scrdev |
|
804 CREATE_OBJECT CWindowGc wingc |
|
805 CREATE_OBJECT RWindowGroup wingrp |
|
806 CREATE_OBJECT RWindow backwin |
|
807 CREATE_OBJECT RWindow win |
|
808 COMMAND ws new |
|
809 COMMAND ws Connect |
|
810 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
811 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
812 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
813 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
814 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
815 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
816 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
817 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
818 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
819 COMMAND backwin Activate |
|
820 COMMAND backwin BeginRedraw |
|
821 COMMAND backwin EndRedraw |
|
822 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
823 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
824 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
825 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
826 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
827 |
|
828 CREATE_OBJECT CFbsBitmap fbsbmp |
|
829 COMMAND fbsbmp new |
|
830 COMMAND fbsbmp Load GRAPHICS-WSERV-Window-PublicApi-0016-0001-Load_command002 |
|
831 COMMAND win SetTransparencyBitmap GRAPHICS-WSERV-Window-PublicApi-0016-0001-SetTransparencyBitmap_command004 |
|
832 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0016-0001-SetBackgroundColor_command005 |
|
833 COMMAND win Activate |
|
834 COMMAND win BeginRedraw |
|
835 COMMAND win EndRedraw |
|
836 |
|
837 COMMAND fbsbmp ~ |
|
838 COMMAND win Close |
|
839 COMMAND backwin Close |
|
840 COMMAND wingrp Close |
|
841 COMMAND wingc ~ |
|
842 COMMAND scrdev ~ |
|
843 COMMAND ws Close |
|
844 END_TEST_BLOCK |
|
845 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0016 |
|
846 |
|
847 |
|
848 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0017 |
|
849 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0017 |
|
850 //! @SYMAPI RWindow |
|
851 //! @SYMAuthor Victor Liu |
|
852 //! @SYMCreationDate 03/04/2007 |
|
853 //! @SYMTestCaseDesc SetTransparencyWsBitmap(const CWsBitmap &aTransparencyBitmap): set the tranpsarency bitmap for the window |
|
854 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, CWsBitmap::Load, |
|
855 //! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize, CWindowGc::Activate & Deactivate |
|
856 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
857 //! 1.1 New and connect a RWsSession |
|
858 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
859 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
860 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
861 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
862 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
863 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
864 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
865 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
866 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
867 //! 2. New and Load the transparency CWsBitmap |
|
868 //! 3. Execute SetTransparencyWsBitmap to set the tranpsarency CWsBitmap for the window |
|
869 //! 4. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow |
|
870 //! 5. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow |
|
871 //! 6. Check if the foreground RWindow is displayed with the specified transparency CWsBitmap |
|
872 //! i.e. alpha blending with source = foreground RWindow color, window = background RWindow color, alpha = transparency CWsBitmap |
|
873 //! 7. Destruct and close all the objects used |
|
874 //! @SYMTestStatus Implemented |
|
875 //! @SYMTestPriority High |
|
876 //! @SYMTestExpectedResults 1. SetTransparencyWsBitmap() returns KErrNone without causing panic |
|
877 //! 2. The foreground RWindow is displayed with the specified tranpsarency CWsBitmap |
|
878 //! i.e. alpha blending with source = foreground RWindow color TRgb(0,0,255) |
|
879 //! with window = background RWindow color TRgb(255,255,0) |
|
880 //! with alpha factor = map pixel color of transparency CWsBitmap to Gray256 |
|
881 //! @SYMTestType CIT |
|
882 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
883 CREATE_OBJECT RWsSession ws |
|
884 CREATE_OBJECT CWsScreenDevice scrdev |
|
885 CREATE_OBJECT CWindowGc wingc |
|
886 CREATE_OBJECT RWindowGroup wingrp |
|
887 CREATE_OBJECT RWindow backwin |
|
888 CREATE_OBJECT RWindow win |
|
889 COMMAND ws new |
|
890 COMMAND ws Connect |
|
891 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
892 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
893 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
894 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
895 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
896 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
897 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
898 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
899 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
900 COMMAND backwin Activate |
|
901 COMMAND backwin BeginRedraw |
|
902 COMMAND backwin EndRedraw |
|
903 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
904 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
905 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
906 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
907 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
908 |
|
909 CREATE_OBJECT CWsBitmap wsbmp |
|
910 COMMAND wsbmp new GRAPHICS-WSERV-Window-PublicApi-0017-0001-new_command001 |
|
911 COMMAND wsbmp Load GRAPHICS-WSERV-Window-PublicApi-0017-0001-Load_command002 |
|
912 COMMAND win SetTransparencyWsBitmap GRAPHICS-WSERV-Window-PublicApi-0017-0001-SetTransparencyWsBitmap_command004 |
|
913 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0017-0001-SetBackgroundColor_command005 |
|
914 COMMAND win Activate |
|
915 COMMAND win BeginRedraw |
|
916 COMMAND win EndRedraw |
|
917 |
|
918 COMMAND wsbmp ~ |
|
919 COMMAND win Close |
|
920 COMMAND backwin Close |
|
921 COMMAND wingrp Close |
|
922 COMMAND wingc ~ |
|
923 COMMAND scrdev ~ |
|
924 COMMAND ws Close |
|
925 END_TEST_BLOCK |
|
926 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0017 |
|
927 |
|
928 |
|
929 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0018 |
|
930 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0018 |
|
931 //! @SYMAPI RWindow |
|
932 //! @SYMAuthor Victor Liu |
|
933 //! @SYMCreationDate 26/03/2007 |
|
934 //! @SYMTestCaseDesc SetNonTransparent(): set the window to not be transparent |
|
935 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, |
|
936 //! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize, CWindowGc::Activate & Deactivate |
|
937 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
938 //! 1.1 New and connect a RWsSession |
|
939 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
940 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
941 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
942 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
943 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
944 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
945 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
946 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
947 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
948 //! 2. Execute SetNonTransparent to set the window to not be transparent |
|
949 //! 3. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow |
|
950 //! 4. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow |
|
951 //! 5. Check if the foreground RWindow is displayed with non-transparent, i.e. its background color TRgb(0,0,255) |
|
952 //! 6. Destruct and close all the objects used |
|
953 //! @SYMTestStatus Implemented |
|
954 //! @SYMTestPriority High |
|
955 //! @SYMTestExpectedResults 1. Run SetNonTransparent() method without causing panic |
|
956 //! 2. The foreground RWindow is displayed with non-transparent, i.e. its background color TRgb(0,0,255) |
|
957 //! only check sample rectangle area ((0,0),(80,10)) |
|
958 //! @SYMTestType CIT |
|
959 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
960 CREATE_OBJECT RWsSession ws |
|
961 CREATE_OBJECT CWsScreenDevice scrdev |
|
962 CREATE_OBJECT CWindowGc wingc |
|
963 CREATE_OBJECT RWindowGroup wingrp |
|
964 CREATE_OBJECT RWindow backwin |
|
965 CREATE_OBJECT RWindow win |
|
966 COMMAND ws new |
|
967 COMMAND ws Connect |
|
968 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
969 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
970 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
971 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
972 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
973 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
974 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
975 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
976 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
977 COMMAND backwin Activate |
|
978 COMMAND backwin BeginRedraw |
|
979 COMMAND backwin EndRedraw |
|
980 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
981 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
982 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
983 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
984 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
985 |
|
986 COMMAND win SetNonTransparent |
|
987 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0018-0001-SetBackgroundColor_command002 |
|
988 COMMAND win Activate |
|
989 COMMAND win BeginRedraw |
|
990 COMMAND win EndRedraw |
|
991 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0018-0001-checkRectColor_command007 |
|
992 |
|
993 COMMAND win Close |
|
994 COMMAND backwin Close |
|
995 COMMAND wingrp Close |
|
996 COMMAND wingc ~ |
|
997 COMMAND scrdev ~ |
|
998 COMMAND ws Close |
|
999 END_TEST_BLOCK |
|
1000 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0018 |
|
1001 |
|
1002 |
|
1003 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0019 |
|
1004 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0019 |
|
1005 //! @SYMAPI RWindow |
|
1006 //! @SYMAuthor Victor Liu |
|
1007 //! @SYMCreationDate 14/03/2007 |
|
1008 //! @SYMTestCaseDesc EnableRedrawStore(TBool aEnabled): enable or diable the redraw store for a window |
|
1009 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct & IsRedrawStoreEnabled |
|
1010 //! @SYMTestActions 1. Create and construct a simple RWindow to test |
|
1011 //! 1.1 New and connect a RWsSession |
|
1012 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
1013 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
1014 //! 2. Execute EnableRedrawStore to FALSE to disable the redraw store for the RWindow |
|
1015 //! 3. Use IsRedrawStoreEnabled to check if the redraw store flag for the RWindow is FALSE |
|
1016 //! 4. Close all objects used |
|
1017 //! @SYMTestStatus Implemented |
|
1018 //! @SYMTestPriority High |
|
1019 //! @SYMTestExpectedResults 1. Run EnableRedrawStore() method without causing panic |
|
1020 //! 2. The redraw store flag for the RWindow is the same as specified, i.e. FALSE |
|
1021 //! @SYMTestType CIT |
|
1022 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1023 CREATE_OBJECT RWsSession ws |
|
1024 CREATE_OBJECT RWindowGroup wingrp |
|
1025 CREATE_OBJECT RWindow win |
|
1026 COMMAND ws new |
|
1027 COMMAND ws Connect |
|
1028 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
1029 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
1030 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
1031 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
1032 |
|
1033 COMMAND win EnableRedrawStore GRAPHICS-WSERV-Window-PublicApi-0019-0001-EnableRedrawStore_command001 |
|
1034 COMMAND win IsRedrawStoreEnabled GRAPHICS-WSERV-Window-PublicApi-0019-0001-IsRedrawStoreEnabled_command002 |
|
1035 |
|
1036 COMMAND win Close |
|
1037 COMMAND wingrp Close |
|
1038 COMMAND ws Close |
|
1039 END_TEST_BLOCK |
|
1040 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0019 |
|
1041 |
|
1042 |
|
1043 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0020 |
|
1044 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0020 |
|
1045 //! @SYMAPI RWindow |
|
1046 //! @SYMAuthor Victor Liu |
|
1047 //! @SYMCreationDate 04/05/2007 |
|
1048 //! @SYMTestCaseDesc SetTransparencyAlphaChannel(): set the window to be transparent using the alpha channel |
|
1049 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, |
|
1050 //! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize & EnableRedrawStore & IsRedrawStoreEnabled, CWindowGc::Activate & Deactivate |
|
1051 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
1052 //! 1.1 New and connect a RWsSession |
|
1053 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1054 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1055 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1056 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
1057 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
1058 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
1059 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
1060 //! and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
1061 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
1062 //! 2. for the foreground RWindow, SetRequiredDisplayMode to EColor16MA |
|
1063 //! and SetBackgroundColor to TRgb(0,0,255) with alpha value (=196) |
|
1064 //! 3. Use DisplayMode to check if the display mode of the foreground RWindow is EColor16MA |
|
1065 //! 4. Use EnableRedrawStore to disable the redraw store of the foreground RWindow |
|
1066 //! and use IsRedrawStoreEnabled to check its redraw store flag is FALSE |
|
1067 //! 5. Execute SetTransparencyAlphaChannel to set the foreground RWindow to be transparent using the alpha channel |
|
1068 //! 6. Use IsRedrawStoreEnabled to check its redraw store flag is TRUE (turned on by SetTransparencyAlphaChannel) |
|
1069 //! 7. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow |
|
1070 //! 8. Check the display of the foreground RWindow with the transparent alpha channel |
|
1071 //! 9. Destruct and close all the objects used |
|
1072 //! @SYMTestStatus Implemented |
|
1073 //! @SYMTestPriority High |
|
1074 //! @SYMTestExpectedResults 1. SetTransparencyAlphaChannel() returns KErrNone without causing panic |
|
1075 //! 2. The foreground RWindow is displayed with the tranpsarency factor specified by alpha channel |
|
1076 //! i.e. alpha blending with source = foreground RWindow color TRgb(0,0,255) |
|
1077 //! with window = background RWindow color TRgb(255,255,0) |
|
1078 //! with alpha factor with the value in alpha channel (=196) |
|
1079 //! @SYMTestType CIT |
|
1080 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1081 CREATE_OBJECT RWsSession ws |
|
1082 CREATE_OBJECT CWsScreenDevice scrdev |
|
1083 CREATE_OBJECT CWindowGc wingc |
|
1084 CREATE_OBJECT RWindowGroup wingrp |
|
1085 CREATE_OBJECT RWindow backwin |
|
1086 CREATE_OBJECT RWindow win |
|
1087 COMMAND ws new |
|
1088 COMMAND ws Connect |
|
1089 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
1090 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
1091 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
1092 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
1093 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
1094 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
1095 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
1096 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
1097 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
1098 COMMAND backwin Activate |
|
1099 COMMAND backwin BeginRedraw |
|
1100 COMMAND backwin EndRedraw |
|
1101 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
1102 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
1103 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
1104 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
1105 |
|
1106 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-PublicApi-0020-0001-SetRequiredDisplayMode_command001 |
|
1107 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0020-0001-SetBackgroundColor_command002 |
|
1108 COMMAND win DisplayMode GRAPHICS-WSERV-Window-PublicApi-0020-0001-DisplayMode_command003 |
|
1109 COMMAND win EnableRedrawStore GRAPHICS-WSERV-Window-PublicApi-0020-0001-EnableRedrawStore_command004 |
|
1110 COMMAND win IsRedrawStoreEnabled GRAPHICS-WSERV-Window-PublicApi-0020-0001-IsRedrawStoreEnabled_command005 |
|
1111 COMMAND win SetTransparencyAlphaChannel |
|
1112 COMMAND win IsRedrawStoreEnabled GRAPHICS-WSERV-Window-PublicApi-0020-0001-IsRedrawStoreEnabled_command007 |
|
1113 COMMAND win Activate |
|
1114 COMMAND win BeginRedraw |
|
1115 COMMAND win EndRedraw |
|
1116 |
|
1117 COMMAND win Close |
|
1118 COMMAND backwin Close |
|
1119 COMMAND wingrp Close |
|
1120 COMMAND wingc ~ |
|
1121 COMMAND scrdev ~ |
|
1122 COMMAND ws Close |
|
1123 END_TEST_BLOCK |
|
1124 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0020 |
|
1125 |
|
1126 |
|
1127 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0021 |
|
1128 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0021 |
|
1129 //! @SYMAPI RWindow |
|
1130 //! @SYMAuthor Victor Liu |
|
1131 //! @SYMCreationDate 29/03/2007 |
|
1132 //! @SYMTestCaseDesc SetTransparentRegion(const TRegion &aRegion): set transparent region of the RWindow |
|
1133 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, |
|
1134 //! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize & SetTransparencyFactor, CWindowGc::Activate & Deactivate |
|
1135 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
1136 //! 1.1 New and connect a RWsSession |
|
1137 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1138 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1139 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1140 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
1141 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
1142 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
1143 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
1144 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
1145 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
1146 //! 2. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow |
|
1147 //! 3. Use SetTransparencyFactor to TRgb(0,28,0) to set transparency color |
|
1148 //! 4. Execute SetTransparentRegion to set the transparent region of the RWindow |
|
1149 //! 5. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow |
|
1150 //! 6. Check the display of the foreground RWindow within and beyond the transparency region |
|
1151 //! 7. Destruct and close all the objects used |
|
1152 //! @SYMTestStatus Implemented |
|
1153 //! @SYMTestPriority High |
|
1154 //! @SYMTestExpectedResults 1. SetTransparentRegion() returns KErrNone without causing panic |
|
1155 //! 2. Check the display of the foreground RWindow |
|
1156 //! 2.1 beyond the transparency region, displayed with its background color, i.e. TRgb(0,0,255) |
|
1157 //! 2.2 within the transparency region, displayed with the transparency factor |
|
1158 //! i.e. alpha blending with source = foreground RWindow color, window = background RWindow color, alpha = transparency color |
|
1159 //! @SYMTestType CIT |
|
1160 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1161 CREATE_OBJECT RWsSession ws |
|
1162 CREATE_OBJECT CWsScreenDevice scrdev |
|
1163 CREATE_OBJECT CWindowGc wingc |
|
1164 CREATE_OBJECT RWindowGroup wingrp |
|
1165 CREATE_OBJECT RWindow backwin |
|
1166 CREATE_OBJECT RWindow win |
|
1167 COMMAND ws new |
|
1168 COMMAND ws Connect |
|
1169 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
1170 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
1171 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
1172 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
1173 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
1174 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
1175 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
1176 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
1177 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
1178 COMMAND backwin Activate |
|
1179 COMMAND backwin BeginRedraw |
|
1180 COMMAND backwin EndRedraw |
|
1181 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
1182 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
1183 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
1184 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
1185 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
1186 |
|
1187 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0021-0001-SetBackgroundColor_command001 |
|
1188 COMMAND win SetTransparencyAlphaChannel |
|
1189 COMMAND win SetTransparentRegion GRAPHICS-WSERV-Window-PublicApi-0021-0001-SetTransparentRegion_command003 |
|
1190 COMMAND win Activate |
|
1191 COMMAND win BeginRedraw |
|
1192 COMMAND win EndRedraw |
|
1193 |
|
1194 COMMAND win Close |
|
1195 COMMAND backwin Close |
|
1196 COMMAND wingrp Close |
|
1197 COMMAND wingc ~ |
|
1198 COMMAND scrdev ~ |
|
1199 COMMAND ws Close |
|
1200 END_TEST_BLOCK |
|
1201 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0021 |
|
1202 |
|
1203 |
|
1204 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0022 |
|
1205 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0022 |
|
1206 //! @SYMAPI RWindow |
|
1207 //! @SYMAuthor Victor Liu |
|
1208 //! @SYMCreationDate 02/05/2007 |
|
1209 //! @SYMTestCaseDesc SetTransparencyPolicy(TWsTransparencyPolicy aPolicy): set RWindow transparency policy |
|
1210 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, |
|
1211 //! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize & SetTransparencyFactor, CWindowGc::Activate & Deactivate |
|
1212 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
1213 //! 1.1 New and connect a RWsSession |
|
1214 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1215 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1216 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1217 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
1218 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
1219 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
1220 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
1221 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
1222 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
1223 //! 2. for the foreground RWindow, SetBackgroundColor to TRgb(0,0,255) |
|
1224 //! and SetTransparencyFactor to TRgb(51,51,51), i.e. alpha factor = 51 |
|
1225 //! 3. Execute SetTransparencyPolicy to set foreground RWindow to ETransparencyDefault |
|
1226 //! 4. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow |
|
1227 //! 5. Check if the foreground RWindow is displayed with the transparency factor |
|
1228 //! 6. Use SetBackgroundColor to change the background RWindow to TRgb(255,0,0) (from TRgb(255,255,0)) |
|
1229 //! 7. Invalidate the background RWindow, execute BeginRedraw & EndRedraw to redraw the background RWindow |
|
1230 //! 8. Check if the foreground RWindow is displayed with the transparency factor (over new background RWindow color) |
|
1231 //! 9. Destruct and close all the objects used |
|
1232 //! @SYMTestStatus Implemented |
|
1233 //! @SYMTestPriority High |
|
1234 //! @SYMTestExpectedResults 1. SetTransparencyPolicy() method returns KErrNone without causing panic |
|
1235 //! 2. Check if the foreground RWindow is displayed as expected |
|
1236 //! 2.1 before the background RWindow changes its background color |
|
1237 //! the foreground RWindow is displayed as the result of alpha blending with source = foreground RWindow color TRgb(0,0,255) |
|
1238 //! with window = the background RWindow color before change TRgb(255,255,0), and alpha factor = 51 |
|
1239 //! 2.2 after the background RWindow changes its background color |
|
1240 //! the foreground RWindow is displayed as the result of alpha blending with source = foreground RWindow color TRgb(0,0,255) |
|
1241 //! with window = the changed background RWindow color TRgb(255,0,0), and alpha factor = 51 |
|
1242 //! @SYMTestType CIT |
|
1243 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1244 CREATE_OBJECT RWsSession ws |
|
1245 CREATE_OBJECT CWsScreenDevice scrdev |
|
1246 CREATE_OBJECT CWindowGc wingc |
|
1247 CREATE_OBJECT RWindowGroup wingrp |
|
1248 CREATE_OBJECT RWindow backwin |
|
1249 CREATE_OBJECT RWindow win |
|
1250 COMMAND ws new |
|
1251 COMMAND ws Connect |
|
1252 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
1253 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
1254 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
1255 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
1256 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
1257 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
1258 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
1259 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
1260 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
1261 COMMAND backwin Activate |
|
1262 COMMAND backwin BeginRedraw |
|
1263 COMMAND backwin EndRedraw |
|
1264 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
1265 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
1266 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
1267 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
1268 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
1269 |
|
1270 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0022-0001-SetBackgroundColor_command001 |
|
1271 COMMAND win SetTransparencyAlphaChannel |
|
1272 COMMAND win SetTransparencyPolicy GRAPHICS-WSERV-Window-PublicApi-0022-0001-SetTransparencyPolicy_command003 |
|
1273 COMMAND win Activate |
|
1274 COMMAND win BeginRedraw |
|
1275 COMMAND win EndRedraw |
|
1276 COMMAND wingc Deactivate |
|
1277 COMMAND wingc Activate GRAPHICS-WSERV-Window-PublicApi-0022-0001-Activate_command013 |
|
1278 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0022-0001-SetBackgroundColor_command015 |
|
1279 COMMAND backwin Invalidate |
|
1280 COMMAND backwin BeginRedraw |
|
1281 COMMAND backwin EndRedraw |
|
1282 COMMAND wingc Deactivate |
|
1283 |
|
1284 COMMAND wingc Deactivate |
|
1285 COMMAND win Close |
|
1286 COMMAND backwin Close |
|
1287 COMMAND wingrp Close |
|
1288 COMMAND wingc ~ |
|
1289 COMMAND scrdev ~ |
|
1290 COMMAND ws Close |
|
1291 END_TEST_BLOCK |
|
1292 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0022 |
|
1293 |
|
1294 |
|
1295 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0023 |
|
1296 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0023 |
|
1297 //! @SYMAPI RWindow |
|
1298 //! @SYMAuthor Victor Liu |
|
1299 //! @SYMCreationDate 14/03/2007 |
|
1300 //! @SYMTestCaseDesc IsRedrawStoreEnabled(): returns whether the window uses a redraw store to store drawing commands |
|
1301 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
1302 //! @SYMTestActions 1. Create and construct a simple RWindow to test |
|
1303 //! 1.1 New and connect a RWsSession |
|
1304 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
1305 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
1306 //! 2. Execute IsRedrawStoreEnabled to get and check if the default redraw store flag of the window is TRUE |
|
1307 //! 3. Close all objects used |
|
1308 //! @SYMTestStatus Implemented |
|
1309 //! @SYMTestPriority High |
|
1310 //! @SYMTestExpectedResults 1. Run IsRedrawStoreEnabled() method without causing panic |
|
1311 //! 2. The default redraw store flag for the RWindow is TRUE |
|
1312 //! @SYMTestType CIT |
|
1313 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1314 CREATE_OBJECT RWsSession ws |
|
1315 CREATE_OBJECT RWindowGroup wingrp |
|
1316 CREATE_OBJECT RWindow win |
|
1317 COMMAND ws new |
|
1318 COMMAND ws Connect |
|
1319 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
1320 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
1321 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
1322 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
1323 |
|
1324 COMMAND win IsRedrawStoreEnabled GRAPHICS-WSERV-Window-PublicApi-0023-0001-IsRedrawStoreEnabled_command001 |
|
1325 |
|
1326 COMMAND win Close |
|
1327 COMMAND wingrp Close |
|
1328 COMMAND ws Close |
|
1329 END_TEST_BLOCK |
|
1330 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0023 |
|
1331 |
|
1332 |
|
1333 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0024 |
|
1334 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0024 |
|
1335 //! @SYMAPI RWindow |
|
1336 //! @SYMAuthor Victor Liu |
|
1337 //! @SYMCreationDate 03/05/2007 |
|
1338 //! @SYMTestCaseDesc EnableOSB(TBool): enables the WSERV to use its OSB |
|
1339 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, |
|
1340 //! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize, CWindowGc::Activate & Deactivate & DrawRect |
|
1341 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
1342 //! 1.1 New and connect a RWsSession |
|
1343 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1344 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1345 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1346 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
1347 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
1348 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
1349 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
1350 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
1351 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
1352 //! 2. Execute EnableOSB to enable WSERV to use its OSB |
|
1353 //! 3. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow |
|
1354 //! 4. Activate the CWindowGc to the foreground RWindow |
|
1355 //! 5. 1st redraw: Activate the foreground RWindow, then BeginRedraw |
|
1356 //! DrawRect to draw a rectangle in the left TRect((10,10),(30,30)), and EndRedraw to display it |
|
1357 //! 6. Check if the left rectangle is correctly filled |
|
1358 //! and beyond the drawing is drawn with the background color TRgb(0,0,255) |
|
1359 //! 7. 2nd redraw: Invalidate the whole foreground RWindow, then BeginRedraw |
|
1360 //! DrawRect to draw a rectangle in the right TRect((40,10),(60,30)), and EndRedraw to display it |
|
1361 //! 8. Check if the right rectangle is correctly filled, and the left rectangle is cleared |
|
1362 //! 9. Deactivate the CWindowGc from the foreground RWindow |
|
1363 //! 10. Destruct and close all the objects used |
|
1364 //! @SYMTestStatus Implemented |
|
1365 //! @SYMTestPriority High |
|
1366 //! @SYMTestExpectedResults 1. Run EnableOSB() method without causing panic |
|
1367 //! 2. Check the display of the foreground RWindow |
|
1368 //! 2.1 after 1st redraw, inside the left is filled with the brush color TRgb(255,0,0): TRect((11,11),(29,29)) |
|
1369 //! beyond left rectangle is drawn with the background color TRgb(0,0,255): TRect((31,11),(49,29)), TRect((51,11),(69,29)) |
|
1370 //! 2.2 after 2nd redraw, inside the right is filled with the brush color TRgb(255,0,0): TRect((51,11),(69,29)) |
|
1371 //! the left rectangle is cleared to the background color TRgb(0,0,255): TRect((31,11),(49,29)) |
|
1372 //! beyond left and right rectangle is drawn with the background color TRgb(0,0,255): TRect((31,11),(49,29)) |
|
1373 //! @SYMTestType CIT |
|
1374 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1375 CREATE_OBJECT RWsSession ws |
|
1376 CREATE_OBJECT CWsScreenDevice scrdev |
|
1377 CREATE_OBJECT CWindowGc wingc |
|
1378 CREATE_OBJECT RWindowGroup wingrp |
|
1379 CREATE_OBJECT RWindow backwin |
|
1380 CREATE_OBJECT RWindow win |
|
1381 COMMAND ws new |
|
1382 COMMAND ws Connect |
|
1383 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
1384 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
1385 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
1386 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
1387 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
1388 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
1389 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
1390 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
1391 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
1392 COMMAND backwin Activate |
|
1393 COMMAND backwin BeginRedraw |
|
1394 COMMAND backwin EndRedraw |
|
1395 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
1396 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
1397 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
1398 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
1399 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
1400 |
|
1401 COMMAND win EnableOSB GRAPHICS-WSERV-Window-PublicApi-0024-0001-EnableOSB_command001 |
|
1402 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0024-0001-SetBackgroundColor_command002 |
|
1403 COMMAND win Activate |
|
1404 COMMAND wingc Activate GRAPHICS-WSERV-Window-PublicApi-0024-0001-Activate_command003 |
|
1405 COMMAND win BeginRedraw |
|
1406 COMMAND wingc SetBrushColor GRAPHICS-WSERV-Window-PublicApi-0024-0001-SetBrushColor_command006 |
|
1407 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-Window-PublicApi-0024-0001-SetBrushStyle_command007 |
|
1408 COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0024-0001-DrawRect_command008 |
|
1409 COMMAND win EndRedraw |
|
1410 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0024-0001-checkRectColor_command012 |
|
1411 COMMAND win Invalidate |
|
1412 COMMAND win BeginRedraw |
|
1413 COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0024-0001-DrawRect_command017 |
|
1414 COMMAND win EndRedraw |
|
1415 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0024-0001-checkRectColor_command021 |
|
1416 |
|
1417 COMMAND wingc Deactivate |
|
1418 COMMAND win Close |
|
1419 COMMAND backwin Close |
|
1420 COMMAND wingrp Close |
|
1421 COMMAND wingc ~ |
|
1422 COMMAND scrdev ~ |
|
1423 COMMAND ws Close |
|
1424 END_TEST_BLOCK |
|
1425 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0024 |
|
1426 |
|
1427 |
|
1428 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0025 |
|
1429 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0025 |
|
1430 //! @SYMAPI RWindow |
|
1431 //! @SYMAuthor Victor Liu |
|
1432 //! @SYMCreationDate 03/05/2007 |
|
1433 //! @SYMTestCaseDesc EnableOSB(TBool): Disables the WSERV to force it to not use its OSB |
|
1434 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, |
|
1435 //! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize, CWindowGc::Activate & Deactivate & DrawRect |
|
1436 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
1437 //! 1.1 New and connect a RWsSession |
|
1438 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1439 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1440 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1441 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
1442 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
1443 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
1444 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
1445 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
1446 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
1447 //! 2. Execute EnableOSB to enable WSERV to use its OSB |
|
1448 //! 3. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow |
|
1449 //! 4. Activate the CWindowGc to the foreground RWindow |
|
1450 //! 5. 1st redraw: Activate the foreground RWindow, then BeginRedraw |
|
1451 //! DrawRect to draw a rectangle in the left TRect((10,10),(30,30)), and EndRedraw to display it |
|
1452 //! 6. Check if the left rectangle is correctly filled |
|
1453 //! and beyond the drawing is drawn with the background color TRgb(0,0,255) |
|
1454 //! 7. 2nd redraw: Invalidate the whole foreground RWindow, then BeginRedraw |
|
1455 //! DrawRect to draw a rectangle in the right TRect((40,10),(60,30)), and EndRedraw to display it |
|
1456 //! 8. Check if the right rectangle is correctly filled, and the left rectangle is cleared |
|
1457 //! 9. Deactivate the CWindowGc from the foreground RWindow |
|
1458 //! 10. Destruct and close all the objects used |
|
1459 //! @SYMTestStatus Implemented |
|
1460 //! @SYMTestPriority High |
|
1461 //! @SYMTestExpectedResults 1. Run EnableOSB() method without causing panic |
|
1462 //! 2. Check the display of the foreground RWindow |
|
1463 //! 2.1 after 1st redraw, inside the left is filled with the brush color TRgb(255,0,0): TRect((11,11),(29,29)) |
|
1464 //! beyond left rectangle is drawn with the background color TRgb(0,0,255): TRect((31,11),(49,29)), TRect((51,11),(69,29)) |
|
1465 //! 2.2 after 2nd redraw, inside the right is filled with the brush color TRgb(255,0,0): TRect((51,11),(69,29)) |
|
1466 //! the left rectangle is cleared to the background color TRgb(0,0,255): TRect((31,11),(49,29)) |
|
1467 //! beyond left and right rectangle is drawn with the background color TRgb(0,0,255): TRect((31,11),(49,29)) |
|
1468 //! @SYMTestType CIT |
|
1469 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1470 CREATE_OBJECT RWsSession ws |
|
1471 CREATE_OBJECT CWsScreenDevice scrdev |
|
1472 CREATE_OBJECT CWindowGc wingc |
|
1473 CREATE_OBJECT RWindowGroup wingrp |
|
1474 CREATE_OBJECT RWindow backwin |
|
1475 CREATE_OBJECT RWindow win |
|
1476 COMMAND ws new |
|
1477 COMMAND ws Connect |
|
1478 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
1479 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
1480 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
1481 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
1482 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
1483 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
1484 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
1485 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
1486 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
1487 COMMAND backwin Activate |
|
1488 COMMAND backwin BeginRedraw |
|
1489 COMMAND backwin EndRedraw |
|
1490 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
1491 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
1492 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
1493 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
1494 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
1495 |
|
1496 COMMAND win EnableOSB GRAPHICS-WSERV-Window-PublicApi-0025-0001-EnableOSB_command001 |
|
1497 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0025-0001-SetBackgroundColor_command002 |
|
1498 COMMAND win Activate |
|
1499 COMMAND wingc Activate GRAPHICS-WSERV-Window-PublicApi-0025-0001-Activate_command003 |
|
1500 COMMAND win BeginRedraw |
|
1501 COMMAND wingc SetBrushColor GRAPHICS-WSERV-Window-PublicApi-0025-0001-SetBrushColor_command006 |
|
1502 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-Window-PublicApi-0025-0001-SetBrushStyle_command007 |
|
1503 COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0025-0001-DrawRect_command008 |
|
1504 COMMAND win EndRedraw |
|
1505 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0025-0001-checkRectColor_command012 |
|
1506 |
|
1507 COMMAND wingc Deactivate |
|
1508 COMMAND win Close |
|
1509 COMMAND backwin Close |
|
1510 COMMAND wingrp Close |
|
1511 COMMAND wingc ~ |
|
1512 COMMAND scrdev ~ |
|
1513 COMMAND ws Close |
|
1514 END_TEST_BLOCK |
|
1515 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0025 |
|
1516 |
|
1517 |
|
1518 |
|
1519 // **************************************************************************** |
|
1520 // RWindow Public APIs inherited from RDrawableWindow |
|
1521 // **************************************************************************** |
|
1522 |
|
1523 |
|
1524 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0101 |
|
1525 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0101 |
|
1526 //! @SYMAPI RDrawableWindow |
|
1527 //! @SYMAuthor Victor Liu |
|
1528 //! @SYMCreationDate 19/04/2007 |
|
1529 //! @SYMTestCaseDesc Scroll(const TPoint &aOffset): scroll the window content by the specified offset |
|
1530 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CopyScreenToBitmap & GetPixel, RWindowGroup::Construct, |
|
1531 //! RWindow::Construct & BeginRedraw & EndRedraw & GetInvalidRegion, CWindowGc::Construct & Activate & Deactivate & DrawRect |
|
1532 //! @SYMTestActions 1. Setup and display a RWindow to test |
|
1533 //! 1.1 New and connect a RWsSession |
|
1534 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1535 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1536 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1537 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1538 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it |
|
1539 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1540 //! 1.7 Activate the CWindowGc to the RWindow |
|
1541 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1542 //! 1.8 Set RWindow size to height 100, width 100, and Activate the window |
|
1543 //! 2. Draw something on the RWindow: BeginRedraw, DrawRect ((3,2),(40,30)), then EndRedraw |
|
1544 //! 3. Use RWindow::GetInvalidRegion to check if the invalid region of the RWindow is empty |
|
1545 //! 4. Execute Scroll to scroll the window content by the specified offset (5,4) |
|
1546 //! 5. Check if the invalid region after scroll is as expected |
|
1547 //! 6. Check if the drawing on the screen as expected |
|
1548 //! 7. Destruct and close all objects used |
|
1549 //! @SYMTestStatus Implemented |
|
1550 //! @SYMTestPriority High |
|
1551 //! @SYMTestExpectedResults 1. Scroll() was executed without causing panic |
|
1552 //! 2. Check the drawing result after scroll: to scroll TRect((0,0),(100,100)) to ((5,4),(105,104)) |
|
1553 //! 2.1 the scrolled destination in TRect((5,4),(100,100)) is the same as the source of TRect((0,0),(95,96)) |
|
1554 //! 2.2 beyond the scrolled destination area should keep the same as the drawing before scroll |
|
1555 //! only sample the areas of TRect((0,0),(100,4)) ((0,4),(5,100)) |
|
1556 //! 3. Check the invalid region |
|
1557 //! 3.1 before scroll: the invalid region is empty: TRect((0,0),(0,0)) |
|
1558 //! 3.2 after scroll: beyond the destination window context in TRect((5,4),(100,100)) |
|
1559 //! the invalid region should be TRect((0,0),(100,4)) & TRect((0,4),(5,100)) |
|
1560 //! @SYMTestType CIT |
|
1561 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1562 CREATE_OBJECT RWsSession ws |
|
1563 CREATE_OBJECT CWsScreenDevice scrdev |
|
1564 CREATE_OBJECT CWindowGc wingc |
|
1565 CREATE_OBJECT RWindowGroup wingrp |
|
1566 CREATE_OBJECT RWindow win |
|
1567 COMMAND ws new |
|
1568 COMMAND ws Connect |
|
1569 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004 |
|
1570 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005 |
|
1571 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006 |
|
1572 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
1573 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
1574 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
1575 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
1576 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1577 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 |
|
1578 COMMAND wingc Activate GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017 |
|
1579 COMMAND wingc SetBrushColor GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushColor_command18 |
|
1580 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushStyle_command19 |
|
1581 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0002-0001-SetSize_command20 |
|
1582 COMMAND win Activate |
|
1583 |
|
1584 COMMAND win BeginRedraw |
|
1585 COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0101-0001-DrawRect_command03 |
|
1586 COMMAND win EndRedraw |
|
1587 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0101-0001-GetInvalidRegion_command06 |
|
1588 COMMAND win Scroll GRAPHICS-WSERV-Window-PublicApi-0101-0001-Scroll_command10 |
|
1589 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0101-0001-GetInvalidRegion_command11 |
|
1590 COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0101-0001-checkLineColor_command13 |
|
1591 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0101-0001-checkRectColor_command14 |
|
1592 COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0101-0001-checkLineColor_command15 |
|
1593 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0101-0001-checkRectColor_command16 |
|
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-Window-PublicApi-0101 |
|
1603 |
|
1604 |
|
1605 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0102 |
|
1606 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0102 |
|
1607 //! @SYMAPI RDrawableWindow |
|
1608 //! @SYMAuthor Victor Liu |
|
1609 //! @SYMCreationDate 19/04/2007 |
|
1610 //! @SYMTestCaseDesc Scroll(const TRect &aClipRect, const TPoint &aOffset): scroll the window content within the clip rectangle |
|
1611 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CopyScreenToBitmap & GetPixel, RWindowGroup::Construct, |
|
1612 //! RWindow::Construct & BeginRedraw & EndRedraw & GetInvalidRegion, CWindowGc::Construct & Activate & Deactivate & DrawRect |
|
1613 //! @SYMTestActions 1. Setup and display a RWindow to test |
|
1614 //! 1.1 New and connect a RWsSession |
|
1615 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1616 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1617 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1618 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1619 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it |
|
1620 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1621 //! 1.7 Activate the CWindowGc to the RWindow |
|
1622 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1623 //! 1.8 Set RWindow size to height 100, width 100, and Activate the window |
|
1624 //! 2. Draw something on the RWindow: BeginRedraw, DrawRect ((11,10),(41,30)), then EndRedraw |
|
1625 //! 3. Use RWindow::GetInvalidRegion to check if the invalid region of the RWindow is empty |
|
1626 //! 4. Execute Scroll to scroll the window content by the specified offset (10,5) within clip rectangle TRect((10,10),(30,40)) |
|
1627 //! 5. Check if the invalid region after scroll is as expected |
|
1628 //! 6. Check if the drawing on the screen as expected |
|
1629 //! 7. Destruct and close all objects used |
|
1630 //! @SYMTestStatus Implemented |
|
1631 //! @SYMTestPriority High |
|
1632 //! @SYMTestExpectedResults 1. Scroll() was executed without causing panic |
|
1633 //! 2. Check the drawing result after scroll: to scroll TRect((10,10),(30,40)) to ((20,15),(40,45)) within TRect((10,10),(30,40)) |
|
1634 //! 2.1 the scrolled destination in TRect((20,15),(30,40)) is the same as the source of TRect((10,10),(20,35)) |
|
1635 //! 2.2 beyond the scrolled destination area should keep the same as the drawing before scroll |
|
1636 //! only sample the areas of TRect((0,0),(50,15)) ((0,15),(20,40)) ((30,15),(50,40)) ((0,40),(50,50)) |
|
1637 //! 3. Check the invalid region |
|
1638 //! 3.1 before scroll: the invalid region is empty: TRect((0,0),(0,0)) |
|
1639 //! 3.2 after scroll: beyond the destination window context in TRect((20,15),(30,40)) and within TRect((10,10),(30,40)) |
|
1640 //! the invalid region should be TRect((10,10),(30,15)) & TRect((10,15),(20,40)) |
|
1641 //! @SYMTestType CIT |
|
1642 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1643 CREATE_OBJECT RWsSession ws |
|
1644 CREATE_OBJECT CWsScreenDevice scrdev |
|
1645 CREATE_OBJECT CWindowGc wingc |
|
1646 CREATE_OBJECT RWindowGroup wingrp |
|
1647 CREATE_OBJECT RWindow win |
|
1648 COMMAND ws new |
|
1649 COMMAND ws Connect |
|
1650 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004 |
|
1651 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005 |
|
1652 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006 |
|
1653 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
1654 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
1655 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
1656 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
1657 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1658 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 |
|
1659 COMMAND wingc Activate GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017 |
|
1660 COMMAND wingc SetBrushColor GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushColor_command18 |
|
1661 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushStyle_command19 |
|
1662 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0002-0001-SetSize_command20 |
|
1663 COMMAND win Activate |
|
1664 |
|
1665 COMMAND win BeginRedraw |
|
1666 COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0102-0001-DrawRect_command03 |
|
1667 COMMAND win EndRedraw |
|
1668 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0102-0001-GetInvalidRegion_command06 |
|
1669 COMMAND win Scroll GRAPHICS-WSERV-Window-PublicApi-0102-0001-Scroll_command10 |
|
1670 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0102-0001-GetInvalidRegion_command11 |
|
1671 COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0102-0001-checkLineColor_command13 |
|
1672 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0102-0001-checkRectColor_command14 |
|
1673 COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0102-0001-checkLineColor_command15 |
|
1674 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0102-0001-checkRectColor_command16 |
|
1675 |
|
1676 COMMAND wingc Deactivate |
|
1677 COMMAND win Close |
|
1678 COMMAND wingrp Close |
|
1679 COMMAND wingc ~ |
|
1680 COMMAND scrdev ~ |
|
1681 COMMAND ws Close |
|
1682 END_TEST_BLOCK |
|
1683 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0102 |
|
1684 |
|
1685 |
|
1686 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0103 |
|
1687 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0103 |
|
1688 //! @SYMAPI RDrawableWindow |
|
1689 //! @SYMAuthor Victor Liu |
|
1690 //! @SYMCreationDate 19/04/2007 |
|
1691 //! @SYMTestCaseDesc Scroll(const TPoint &aOffset, const TRect &aRect): scroll a rectangle within a window |
|
1692 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CopyScreenToBitmap & GetPixel, RWindowGroup::Construct, |
|
1693 //! RWindow::Construct & BeginRedraw & EndRedraw & GetInvalidRegion, CWindowGc::Construct & Activate & Deactivate & DrawRect |
|
1694 //! @SYMTestActions 1. Setup and display a RWindow to test |
|
1695 //! 1.1 New and connect a RWsSession |
|
1696 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1697 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1698 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1699 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1700 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it |
|
1701 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1702 //! 1.7 Activate the CWindowGc to the RWindow |
|
1703 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1704 //! 1.8 Set RWindow size to height 100, width 100, and Activate the window |
|
1705 //! 2. Draw something on the RWindow: BeginRedraw, DrawRect ((11,10),(41,30)), then EndRedraw |
|
1706 //! 3. Use RWindow::GetInvalidRegion to check if the invalid region of the RWindow is empty |
|
1707 //! 4. Execute Scroll to scroll the TRect((10,10),(30,40)) by the specified offset (10,5) within the window |
|
1708 //! 5. Check if the invalid region after scroll is still empty |
|
1709 //! 6. Check if the drawing on the screen as expected |
|
1710 //! 7. Destruct and close all objects used |
|
1711 //! @SYMTestStatus Implemented |
|
1712 //! @SYMTestPriority High |
|
1713 //! @SYMTestExpectedResults 1. Scroll was executed without causing panic |
|
1714 //! 2. Check the drawing result after scroll: to scroll TRect((10,10),(30,40)) to ((20,15),(40,45)) |
|
1715 //! 2.1 the scrolled destination in TRect((20,15),(40,45)) ahould be the same the source of TRect((10,10),(30,40)) |
|
1716 //! 2.2 beyond the scrolled destination area should keep the same as the drawing before scroll |
|
1717 //! only sample the areas of TRect((0,0),(100,15)) ((0,15),(20,45)) ((40,15),(100,45)) ((0,45),(100,60)) |
|
1718 //! 3. Check the invalid region |
|
1719 //! 3.1 before scroll: the invalid region is empty: TRect((0,0),(0,0)) |
|
1720 //! 3.2 after scroll: the invalid region is empty: TRect((0,0),(0,0)) |
|
1721 //! @SYMTestType CIT |
|
1722 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1723 CREATE_OBJECT RWsSession ws |
|
1724 CREATE_OBJECT CWsScreenDevice scrdev |
|
1725 CREATE_OBJECT CWindowGc wingc |
|
1726 CREATE_OBJECT RWindowGroup wingrp |
|
1727 CREATE_OBJECT RWindow win |
|
1728 COMMAND ws new |
|
1729 COMMAND ws Connect |
|
1730 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004 |
|
1731 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005 |
|
1732 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006 |
|
1733 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
1734 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
1735 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
1736 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
1737 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1738 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 |
|
1739 COMMAND wingc Activate GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017 |
|
1740 COMMAND wingc SetBrushColor GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushColor_command18 |
|
1741 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushStyle_command19 |
|
1742 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0002-0001-SetSize_command20 |
|
1743 COMMAND win Activate |
|
1744 |
|
1745 COMMAND win BeginRedraw |
|
1746 COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0103-0001-DrawRect_command03 |
|
1747 COMMAND win EndRedraw |
|
1748 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0103-0001-GetInvalidRegion_command06 |
|
1749 COMMAND win Scroll GRAPHICS-WSERV-Window-PublicApi-0103-0001-Scroll_command10 |
|
1750 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0103-0001-GetInvalidRegion_command11 |
|
1751 COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0103-0001-checkLineColor_command13 |
|
1752 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0103-0001-checkRectColor_command14 |
|
1753 COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0103-0001-checkLineColor_command15 |
|
1754 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0103-0001-checkRectColor_command16 |
|
1755 |
|
1756 COMMAND wingc Deactivate |
|
1757 COMMAND win Close |
|
1758 COMMAND wingrp Close |
|
1759 COMMAND wingc ~ |
|
1760 COMMAND scrdev ~ |
|
1761 COMMAND ws Close |
|
1762 END_TEST_BLOCK |
|
1763 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0103 |
|
1764 |
|
1765 |
|
1766 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0104 |
|
1767 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0104 |
|
1768 //! @SYMAPI RDrawableWindow |
|
1769 //! @SYMAuthor Victor Liu |
|
1770 //! @SYMCreationDate 19/04/2007 |
|
1771 //! @SYMTestCaseDesc Scroll(const TRect &aClipRect, const TPoint &aOffset, const TRect &aRect): scroll a source rectangle content within the clip rectangle |
|
1772 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CopyScreenToBitmap & GetPixel, RWindowGroup::Construct, |
|
1773 //! RWindow::Construct & BeginRedraw & EndRedraw & GetInvalidRegion, CWindowGc::Construct & Activate & Deactivate & DrawRect |
|
1774 //! @SYMTestActions 1. Setup and display a RWindow to test |
|
1775 //! 1.1 New and connect a RWsSession |
|
1776 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
1777 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
1778 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
1779 //! 1.5 New and construct a RWindow as the child of the RWindowGroup |
|
1780 //! and SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it |
|
1781 //! 1.6 SetAutoFlush to TRUE for the RWsSession |
|
1782 //! 1.7 Activate the CWindowGc to the RWindow |
|
1783 //! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush |
|
1784 //! 1.8 Set RWindow size to height 100, width 100, and Activate the window |
|
1785 //! 2. Draw something on the RWindow: BeginRedraw, DrawRect ((11,10),(41,30)), then EndRedraw |
|
1786 //! 3. Use RWindow::GetInvalidRegion to check if the invalid region of the RWindow is empty |
|
1787 //! 4. Execute Scroll to scroll the TRect((10,10),(41,30)) by the specified offset (40,30) within clip rectangle TRect((20,15),(100,100)) |
|
1788 //! 5. Check if the invalid region after scroll is as expected |
|
1789 //! 6. Check if the drawing on the screen as expected |
|
1790 //! 7. Destruct and close all objects used |
|
1791 //! @SYMTestStatus Implemented |
|
1792 //! @SYMTestPriority High |
|
1793 //! @SYMTestExpectedResults 1. Scroll() was executed without causing panic |
|
1794 //! 2. Check the drawing result after scroll: to scroll TRect((10,10),(41,30)) to ((50,40),(81,60)) within TRect((20,15),(100,100)) |
|
1795 //! 2.1 check the scrolled destination should match its source: the area needs the following calculation |
|
1796 //! 2.1.1 from the source within clip rectangle only: TRect((20,15),(41,30)) |
|
1797 //! 2.1.2 scroll 2.1.1 area and within clip rectangle makes the scrolled destination: TRect((60,45),(81,60)) |
|
1798 //! 2.1.3 the scrolled destination should be the same as the source of TRect((20,15),(41,30)) |
|
1799 //! 2.2 beyond the scrolled destination area should keep the same as the drawing before scroll |
|
1800 //! only sample the areas of TRect((10,10),(41,30)) ((50,40),(81,45)) ((50,45),(60,60)) |
|
1801 //! 3. Check the invalid region |
|
1802 //! 3.1 before scroll: the invalid region is empty: TRect((0,0),(0,0)) |
|
1803 //! 3.2 after scroll: the invalid region needs the following calculation |
|
1804 //! 3.2.1 from the source beyond clip rectangle: TRect((10,10),(41,15)) ((10,15),(20,30)) |
|
1805 //! 3.2.2 scroll 3.2.1 area and within clip rectangle makes the invalid region: TRect((50,40),(81,45)) ((50,45),(60,60)) |
|
1806 //! @SYMTestType CIT |
|
1807 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1808 CREATE_OBJECT RWsSession ws |
|
1809 CREATE_OBJECT CWsScreenDevice scrdev |
|
1810 CREATE_OBJECT CWindowGc wingc |
|
1811 CREATE_OBJECT RWindowGroup wingrp |
|
1812 CREATE_OBJECT RWindow win |
|
1813 COMMAND ws new |
|
1814 COMMAND ws Connect |
|
1815 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004 |
|
1816 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005 |
|
1817 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006 |
|
1818 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
1819 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
1820 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
1821 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
1822 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013 |
|
1823 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 |
|
1824 COMMAND wingc Activate GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017 |
|
1825 COMMAND wingc SetBrushColor GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushColor_command18 |
|
1826 COMMAND wingc SetBrushStyle GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushStyle_command19 |
|
1827 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0002-0001-SetSize_command20 |
|
1828 COMMAND win Activate |
|
1829 |
|
1830 COMMAND win BeginRedraw |
|
1831 COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0104-0001-DrawRect_command03 |
|
1832 COMMAND win EndRedraw |
|
1833 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0104-0001-GetInvalidRegion_command06 |
|
1834 COMMAND win Scroll GRAPHICS-WSERV-Window-PublicApi-0104-0001-Scroll_command10 |
|
1835 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0104-0001-GetInvalidRegion_command11 |
|
1836 COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0104-0001-checkLineColor_command13 |
|
1837 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0104-0001-checkRectColor_command14 |
|
1838 COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0104-0001-checkLineColor_command15 |
|
1839 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0104-0001-checkRectColor_command16 |
|
1840 |
|
1841 COMMAND wingc Deactivate |
|
1842 COMMAND win Close |
|
1843 COMMAND wingrp Close |
|
1844 COMMAND wingc ~ |
|
1845 COMMAND scrdev ~ |
|
1846 COMMAND ws Close |
|
1847 END_TEST_BLOCK |
|
1848 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0104 |
|
1849 |
|
1850 |
|
1851 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0105 |
|
1852 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0105 |
|
1853 //! @SYMAPI RDrawableWindow |
|
1854 //! @SYMAuthor Victor Liu |
|
1855 //! @SYMCreationDate 29/01/2007 |
|
1856 //! @SYMTestCaseDesc GetDrawRect(): Obtain the current rectangle being drawn to this window (test in RWindow object) |
|
1857 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw |
|
1858 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
1859 //! 1.1 New and connect a RWsSession |
|
1860 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
1861 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
1862 //! 2. Execute GetDrawRect to check if the drawing rectangle is empty |
|
1863 //! 3. Use RWindow::BeginRedraw() method with specified redraw rectangle: TRect((21,20),(51,50)) |
|
1864 //! 4. Execute GetDrawRect again to check if the drawing rectangle the same as the specified |
|
1865 //! 5. Use RWindow::EndRedraw() to end the redraw cycle |
|
1866 //! 6. Execute GetDrawRect again to check if the drawing rectangle is cleared back to empty |
|
1867 //! 7. Destruct and close all objects used |
|
1868 //! @SYMTestStatus Implemented |
|
1869 //! @SYMTestPriority Medium |
|
1870 //! @SYMTestExpectedResults 1. GetDrawRect() was called without causing panic |
|
1871 //! 2. The returned rectangle is the same as expected |
|
1872 //! 2.1 beyond window's redraw cycle, the drawing rectangle should be empty: TRect((0,0),(0,0)) |
|
1873 //! 2.2 inside window's redraw cycle, the drawing rectangle should be the same as the specified TRect((21,20),(51,50)) |
|
1874 //! @SYMTestType CIT |
|
1875 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1876 CREATE_OBJECT RWsSession ws |
|
1877 CREATE_OBJECT RWindowGroup wingrp |
|
1878 CREATE_OBJECT RWindow win |
|
1879 COMMAND ws new |
|
1880 COMMAND ws Connect |
|
1881 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
1882 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
1883 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
1884 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
1885 |
|
1886 COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0105-0001-GetDrawRect_command01 |
|
1887 COMMAND win BeginRedraw GRAPHICS-WSERV-Window-PublicApi-0105-0001-BeginRedraw_command02 |
|
1888 COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0105-0001-GetDrawRect_command03 |
|
1889 COMMAND win EndRedraw |
|
1890 COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0105-0001-GetDrawRect_command05 |
|
1891 |
|
1892 COMMAND win Close |
|
1893 COMMAND wingrp Close |
|
1894 COMMAND ws Close |
|
1895 END_TEST_BLOCK |
|
1896 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0105 |
|
1897 |
|
1898 |
|
1899 |
|
1900 |
|
1901 |
|
1902 |
|
1903 // **************************************************************************** |
|
1904 // RWindow Public APIs inherited from RWindowBase |
|
1905 // **************************************************************************** |
|
1906 |
|
1907 |
|
1908 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0201 |
|
1909 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0201 |
|
1910 //! @SYMAPI RWindowBase |
|
1911 //! @SYMAuthor Ryan Lu |
|
1912 //! @SYMCreationDate 20/12/2006 |
|
1913 //! @SYMTestCaseDesc Activate(): display the window and enable it to receive events |
|
1914 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
1915 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
1916 //! 1.1 New and connect a RWsSession |
|
1917 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
1918 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
1919 //! 2. Execute Activate() for the RWindow |
|
1920 //! 3. Close all objects used |
|
1921 //! @SYMTestStatus Implemented |
|
1922 //! @SYMTestPriority Low |
|
1923 //! @SYMTestExpectedResults Activate() method called without causing panic |
|
1924 //! @SYMTestType CIT |
|
1925 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1926 CREATE_OBJECT RWsSession ws |
|
1927 CREATE_OBJECT RWindowGroup wingrp |
|
1928 CREATE_OBJECT RWindow win |
|
1929 COMMAND ws new |
|
1930 COMMAND ws Connect |
|
1931 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
1932 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
1933 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
1934 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
1935 |
|
1936 COMMAND win Activate |
|
1937 |
|
1938 COMMAND win Close |
|
1939 COMMAND wingrp Close |
|
1940 COMMAND ws Close |
|
1941 END_TEST_BLOCK |
|
1942 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0201 |
|
1943 |
|
1944 |
|
1945 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0202 |
|
1946 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0202 |
|
1947 //! @SYMAPI RWindowBase |
|
1948 //! @SYMAuthor Ryan Lu |
|
1949 //! @SYMCreationDate 20/12/2006 |
|
1950 //! @SYMTestCaseDesc SetPosition(const TPoint &point): set the window (test in RWindow) position relative to its parent |
|
1951 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::InquireOffset |
|
1952 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
1953 //! 1.1 New and connect a RWsSession |
|
1954 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
1955 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
1956 //! 2. Execute SetPosition set the RWindow position as the specified in test data (11,12) |
|
1957 //! 3. Use InquireOffset() to check if the window position relative to its parent as specified |
|
1958 //! 4. Close all objects used |
|
1959 //! @SYMTestStatus Implemented |
|
1960 //! @SYMTestPriority High |
|
1961 //! @SYMTestExpectedResults 1. SetPosition() method called without causing panic |
|
1962 //! 2. The offset between (0,0) and RWindow is the same as specifed (11,12) |
|
1963 //! @SYMTestType CIT |
|
1964 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
1965 CREATE_OBJECT RWsSession ws |
|
1966 CREATE_OBJECT RWindowGroup wingrp |
|
1967 CREATE_OBJECT RWindow win |
|
1968 COMMAND ws new |
|
1969 COMMAND ws Connect |
|
1970 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
1971 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
1972 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
1973 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
1974 |
|
1975 COMMAND win SetPosition GRAPHICS-WSERV-Window-PublicApi-0202-0001-SetPosition_command01 |
|
1976 COMMAND win Position GRAPHICS-WSERV-Window-PublicApi-0202-0001-Position_command02 |
|
1977 |
|
1978 COMMAND win Close |
|
1979 COMMAND wingrp Close |
|
1980 COMMAND ws Close |
|
1981 END_TEST_BLOCK |
|
1982 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0202 |
|
1983 |
|
1984 |
|
1985 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0203 |
|
1986 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0203 |
|
1987 //! @SYMAPI RWindowBase |
|
1988 //! @SYMAuthor Ryan Lu |
|
1989 //! @SYMCreationDate 20/12/2006 |
|
1990 //! @SYMTestCaseDesc SetSizeErr(const TSize &size): set the window (test in RWindow) size |
|
1991 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::Size |
|
1992 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
1993 //! 1.1 New and connect a RWsSession |
|
1994 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
1995 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
1996 //! 2. Execute SetSizeErr to set the child RWindow size as the specified in test data (width=40,height=50) |
|
1997 //! 3. Use Size() to check if the window size as specified |
|
1998 //! 4. Close all objects used |
|
1999 //! @SYMTestStatus Implemented |
|
2000 //! @SYMTestPriority High |
|
2001 //! @SYMTestExpectedResults 1. SetSizeErr() method returns KErrNone without causing panic |
|
2002 //! 2. The size of child RWindow is the same as specifed (width=40,height=50) |
|
2003 //! @SYMTestType CIT |
|
2004 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2005 CREATE_OBJECT RWsSession ws |
|
2006 CREATE_OBJECT RWindowGroup wingrp |
|
2007 CREATE_OBJECT RWindow win |
|
2008 COMMAND ws new |
|
2009 COMMAND ws Connect |
|
2010 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2011 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2012 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2013 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2014 |
|
2015 COMMAND win SetSizeErr GRAPHICS-WSERV-Window-PublicApi-0203-0001-SetSizeErr_command01 |
|
2016 COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-0203-0001-Size_command02 |
|
2017 |
|
2018 COMMAND win Close |
|
2019 COMMAND wingrp Close |
|
2020 COMMAND ws Close |
|
2021 END_TEST_BLOCK |
|
2022 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0203 |
|
2023 |
|
2024 |
|
2025 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0204 |
|
2026 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0204 |
|
2027 //! @SYMAPI RWindowBase |
|
2028 //! @SYMAuthor Ryan Lu |
|
2029 //! @SYMCreationDate 20/12/2006 |
|
2030 //! @SYMTestCaseDesc SetExtentErr(const TPoint &point, const TSize &size): set the window (test in RWindow) extent |
|
2031 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::InquireOffset & Size |
|
2032 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2033 //! 1.1 New and connect a RWsSession |
|
2034 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2035 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
2036 //! 2. Execute SetExtentErr to set the child RWindow extent as the specified test data (at (11,12) and width=40,height=50) |
|
2037 //! 3. Use InquireOffset() and Size() to check if the window position and size as specified |
|
2038 //! 4. Close all objects used |
|
2039 //! @SYMTestStatus Implemented |
|
2040 //! @SYMTestPriority High |
|
2041 //! @SYMTestExpectedResults 1. SetExtentErr() method returns KErrNone without causing panic |
|
2042 //! 2. The offset and size of the child RWindow should be the same as specified |
|
2043 //! 2.1 The offset between parent and child RWindow is (11,12) |
|
2044 //! 2.2 The size of child RWindow is width=40,height=50 |
|
2045 //! @SYMTestType CIT |
|
2046 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2047 CREATE_OBJECT RWsSession ws |
|
2048 CREATE_OBJECT RWindowGroup wingrp |
|
2049 CREATE_OBJECT RWindow win |
|
2050 COMMAND ws new |
|
2051 COMMAND ws Connect |
|
2052 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2053 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2054 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2055 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2056 |
|
2057 COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-0204-0001-SetExtentErr_command01 |
|
2058 COMMAND win Position GRAPHICS-WSERV-Window-PublicApi-0204-0001-Position_command02 |
|
2059 COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-0204-0001-Size_command03 |
|
2060 |
|
2061 COMMAND win Close |
|
2062 COMMAND wingrp Close |
|
2063 COMMAND ws Close |
|
2064 END_TEST_BLOCK |
|
2065 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0204 |
|
2066 |
|
2067 |
|
2068 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0205 |
|
2069 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0205 |
|
2070 //! @SYMAPI RWindowBase |
|
2071 //! @SYMAuthor Ryan Lu |
|
2072 //! @SYMCreationDate 12/02/2007 |
|
2073 //! @SYMTestCaseDesc Size(): get the window (test in RWindow) current size |
|
2074 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::SetSizeErr |
|
2075 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2076 //! 1.1 New and connect a RWsSession |
|
2077 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2078 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
2079 //! 2. Execute Size to get the current size of child RWindow, and check if it's the same as the default (screen size) |
|
2080 //! 3. Use SetSizeErr() to change the RWindow size as specified (width=120, height=200) |
|
2081 //! 4. Execute Size again to check if the RWindow size as specified |
|
2082 //! 5. Close all objects used |
|
2083 //! @SYMTestStatus Implemented |
|
2084 //! @SYMTestPriority High |
|
2085 //! @SYMTestExpectedResults 1. Size() method called without causing panic |
|
2086 //! 2.1 The initial child RWindow is the same as the screen size |
|
2087 //! 2.2 The size of child RWindow is the same as new size specified by SetSizeErr (width=120, height=200) |
|
2088 //! @SYMTestType CIT |
|
2089 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2090 CREATE_OBJECT RWsSession ws |
|
2091 CREATE_OBJECT RWindowGroup wingrp |
|
2092 CREATE_OBJECT RWindow win |
|
2093 COMMAND ws new |
|
2094 COMMAND ws Connect |
|
2095 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2096 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2097 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2098 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2099 |
|
2100 COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-0205-0001-Size_command01 |
|
2101 COMMAND win SetSizeErr GRAPHICS-WSERV-Window-PublicApi-0205-0001-SetSizeErr_command02 |
|
2102 COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-0205-0001-Size_command03 |
|
2103 |
|
2104 COMMAND win Close |
|
2105 COMMAND wingrp Close |
|
2106 COMMAND ws Close |
|
2107 END_TEST_BLOCK |
|
2108 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0205 |
|
2109 |
|
2110 |
|
2111 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0206 |
|
2112 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0206 |
|
2113 //! @SYMAPI RWindowBase |
|
2114 //! @SYMAuthor Ryan Lu |
|
2115 //! @SYMCreationDate 12/02/2007 |
|
2116 //! @SYMTestCaseDesc InquireOffset(const RWindowTreeNode &aWindow): enquire the offset between the window (test in RWindow) and another window |
|
2117 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::SetPosition |
|
2118 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2119 //! 1.1 New and connect a RWsSession |
|
2120 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2121 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
2122 //! 2. Execute InquireOffset to get the offset between child RWindow and WindowGroup, and check if it returns the default (0,0) |
|
2123 //! 3. Use SetPosition() to change the window position (11,12) |
|
2124 //! 4. Execute InquireOffset again to check if the offset is the new position as specified |
|
2125 //! 5. Close all objects used |
|
2126 //! @SYMTestStatus Implemented |
|
2127 //! @SYMTestPriority High |
|
2128 //! @SYMTestExpectedResults 1. InquireOffset() method called without causing panic |
|
2129 //! 2.1 The initial offset between child RWindow and RWindowGroup is the same as (0,0) |
|
2130 //! 2.2 The offset between child RWindow and RWindowGroup is the same as new position specified by SetPosition (11,12) |
|
2131 //! @SYMTestType CIT |
|
2132 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2133 CREATE_OBJECT RWsSession ws |
|
2134 CREATE_OBJECT RWindowGroup wingrp |
|
2135 CREATE_OBJECT RWindow win |
|
2136 COMMAND ws new |
|
2137 COMMAND ws Connect |
|
2138 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2139 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2140 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2141 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2142 |
|
2143 COMMAND win InquireOffset GRAPHICS-WSERV-Window-PublicApi-0206-0001-InquireOffset_command01 |
|
2144 COMMAND win SetPosition GRAPHICS-WSERV-Window-PublicApi-0206-0001-SetPosition_command02 |
|
2145 COMMAND win InquireOffset GRAPHICS-WSERV-Window-PublicApi-0206-0001-InquireOffset_command03 |
|
2146 |
|
2147 COMMAND win Close |
|
2148 COMMAND wingrp Close |
|
2149 COMMAND ws Close |
|
2150 END_TEST_BLOCK |
|
2151 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0206 |
|
2152 |
|
2153 |
|
2154 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0207 |
|
2155 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0207 |
|
2156 //! @SYMAPI RWindowBase |
|
2157 //! @SYMAuthor Ryan Lu |
|
2158 //! @SYMCreationDate 05/07/2007 |
|
2159 //! @SYMTestCaseDesc PointerFilter(TUint32 aFilterMask, TUint32 aFilter): set the filter which controls which pointer events are sent to the client session (test in RWindow) |
|
2160 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
2161 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2162 //! 1.1 New and connect a RWsSession |
|
2163 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2164 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
2165 //! 2. Execute PointerFilter with FilerMask=EPointerFilterEnterExit|EPointerFilterMove & Filter=EPointerFilterMove |
|
2166 //! 3. Close all objects used |
|
2167 //! @SYMTestStatus Defined |
|
2168 //! @SYMTestPriority High |
|
2169 //! @SYMTestExpectedResults PointerFilter() method called without causing panic |
|
2170 //! @SYMTestType CIT |
|
2171 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2172 CREATE_OBJECT RWsSession ws |
|
2173 CREATE_OBJECT RWindowGroup wingrp |
|
2174 CREATE_OBJECT RWindow win |
|
2175 COMMAND ws new |
|
2176 COMMAND ws Connect |
|
2177 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2178 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2179 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2180 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2181 |
|
2182 COMMAND win PointerFilter GRAPHICS-WSERV-Window-PublicApi-0207-0001-PointerFilter_command01 |
|
2183 |
|
2184 COMMAND win Close |
|
2185 COMMAND wingrp Close |
|
2186 COMMAND ws Close |
|
2187 END_TEST_BLOCK |
|
2188 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0207 |
|
2189 |
|
2190 |
|
2191 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0208 |
|
2192 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0208 |
|
2193 //! @SYMAPI RWindowBase |
|
2194 //! @SYMAuthor Ryan Lu |
|
2195 //! @SYMCreationDate 02/07/2007 |
|
2196 //! @SYMTestCaseDesc SetPointerGrab(TBool aState): allow/disallow pointer grabs in a window (test in RWindow) |
|
2197 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
2198 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2199 //! 1.1 New and connect a RWsSession |
|
2200 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2201 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
2202 //! 2. Execute SetPointerGrab() with state=TRUE |
|
2203 //! 3. Close all objects used |
|
2204 //! @SYMTestStatus Implemented |
|
2205 //! @SYMTestPriority Medium |
|
2206 //! @SYMTestExpectedResults SetPointerGrab called without causing panic |
|
2207 //! @SYMTestType CIT |
|
2208 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2209 CREATE_OBJECT RWsSession ws |
|
2210 CREATE_OBJECT RWindowGroup wingrp |
|
2211 CREATE_OBJECT RWindow win |
|
2212 COMMAND ws new |
|
2213 COMMAND ws Connect |
|
2214 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2215 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2216 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2217 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2218 |
|
2219 COMMAND win SetPointerGrab GRAPHICS-WSERV-Window-PublicApi-0000-0001-SetPointerGrab_TRUE |
|
2220 |
|
2221 COMMAND win Close |
|
2222 COMMAND wingrp Close |
|
2223 COMMAND ws Close |
|
2224 END_TEST_BLOCK |
|
2225 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0208 |
|
2226 |
|
2227 |
|
2228 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0209 |
|
2229 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0209 |
|
2230 //! @SYMAPI RWindowBase |
|
2231 //! @SYMAuthor Ryan Lu |
|
2232 //! @SYMCreationDate 02/07/2007 |
|
2233 //! @SYMTestCaseDesc ClaimPointerGrab(TBool aSendUpEvent=ETrue): (test in RWindow) |
|
2234 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
2235 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2236 //! 1.1 New and connect a RWsSession |
|
2237 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2238 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
2239 //! 2. Execute ClaimPointerGrab() with sendupevent=TRUE |
|
2240 //! 3. Close all objects used |
|
2241 //! @SYMTestStatus Implemented |
|
2242 //! @SYMTestPriority Medium |
|
2243 //! @SYMTestExpectedResults ClaimPointerGrab called without causing panic |
|
2244 //! @SYMTestType CIT |
|
2245 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2246 CREATE_OBJECT RWsSession ws |
|
2247 CREATE_OBJECT RWindowGroup wingrp |
|
2248 CREATE_OBJECT RWindow win |
|
2249 COMMAND ws new |
|
2250 COMMAND ws Connect |
|
2251 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2252 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2253 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2254 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2255 |
|
2256 COMMAND win ClaimPointerGrab GRAPHICS-WSERV-Window-PublicApi-0000-0001-ClaimPointerGrab_TRUE |
|
2257 |
|
2258 COMMAND win Close |
|
2259 COMMAND wingrp Close |
|
2260 COMMAND ws Close |
|
2261 END_TEST_BLOCK |
|
2262 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0209 |
|
2263 |
|
2264 |
|
2265 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0210 |
|
2266 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0210 |
|
2267 //! @SYMAPI RWindowBase |
|
2268 //! @SYMAuthor Ryan Lu |
|
2269 //! @SYMCreationDate 04/07/2007 |
|
2270 //! @SYMTestCaseDesc SetPointerCapture(): set the pointer capture state (test in RWindow) |
|
2271 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
2272 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2273 //! 1.1 New and connect a RWsSession |
|
2274 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2275 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
2276 //! 2. Execute SetPointerCapture() with flags of TCaptureFlagEnabled | TCaptureFlagDragDrop | TCaptureFlagAllGroups |
|
2277 //! 3. Close all objects used |
|
2278 //! @SYMTestStatus Implemented |
|
2279 //! @SYMTestPriority Medium |
|
2280 //! @SYMTestExpectedResults SetPointerCapture called without causing panic |
|
2281 //! @SYMTestType CIT |
|
2282 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2283 CREATE_OBJECT RWsSession ws |
|
2284 CREATE_OBJECT RWindowGroup wingrp |
|
2285 CREATE_OBJECT RWindow win |
|
2286 COMMAND ws new |
|
2287 COMMAND ws Connect |
|
2288 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2289 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2290 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2291 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2292 |
|
2293 COMMAND win SetPointerCapture GRAPHICS-WSERV-Window-PublicApi-0210-0001-SetPointerCapture_command01 |
|
2294 |
|
2295 COMMAND win Close |
|
2296 COMMAND wingrp Close |
|
2297 COMMAND ws Close |
|
2298 END_TEST_BLOCK |
|
2299 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0210 |
|
2300 |
|
2301 |
|
2302 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0211 |
|
2303 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0211 |
|
2304 //! @SYMAPI RWindowBase |
|
2305 //! @SYMAuthor Ryan Lu |
|
2306 //! @SYMCreationDate 25/06/2007 |
|
2307 //! @SYMTestCaseDesc SetPointerCapturePriority(TInt aPriority): set the window's pointer capture priority (test in RWindow) |
|
2308 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::GetPointerCapturePriority, RWindow::Construct |
|
2309 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2310 //! 1.1 New and connect a RWsSession |
|
2311 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2312 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
2313 //! 2. Execute SetPointerCapturePriority() to set window's pointer capture priority to 5 |
|
2314 //! 3. Use GetPointerCapturePriority() to check the window's pointer capture priority as specified |
|
2315 //! 4. Close all objects used |
|
2316 //! @SYMTestStatus Implemented |
|
2317 //! @SYMTestPriority Medium |
|
2318 //! @SYMTestExpectedResults Test passes with no error or panic |
|
2319 //! @SYMTestType CIT |
|
2320 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2321 CREATE_OBJECT RWsSession ws |
|
2322 CREATE_OBJECT RWindowGroup wingrp |
|
2323 CREATE_OBJECT RWindow win |
|
2324 COMMAND ws new |
|
2325 COMMAND ws Connect |
|
2326 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2327 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2328 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2329 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2330 COMMAND win SetPointerCapturePriority GRAPHICS-WSERV-Window-PublicApi-0211-0001-SetPointerCapturePriority_command01 |
|
2331 COMMAND win GetPointerCapturePriority GRAPHICS-WSERV-Window-PublicApi-0211-0001-GetPointerCapturePriority_command02 |
|
2332 COMMAND win Close |
|
2333 COMMAND wingrp Close |
|
2334 COMMAND ws Close |
|
2335 END_TEST_BLOCK |
|
2336 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0211 |
|
2337 |
|
2338 |
|
2339 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0212 |
|
2340 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0212 |
|
2341 //! @SYMAPI RWindowBase |
|
2342 //! @SYMAuthor Ryan Lu |
|
2343 //! @SYMCreationDate 25/06/2007 |
|
2344 //! @SYMTestCaseDesc TInt GetPointerCapturePriority(): get the window's pointer capture priority (test in RWindow) |
|
2345 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
2346 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2347 //! 1.1 New and connect a RWsSession |
|
2348 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2349 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
2350 //! 2. Execute GetPointerCapturePriority() and check the default window's pointer capture priority = 0 |
|
2351 //! 3. Close all objects used |
|
2352 //! @SYMTestStatus Implemented |
|
2353 //! @SYMTestPriority Medium |
|
2354 //! @SYMTestExpectedResults Test passes with no error or panic |
|
2355 //! @SYMTestType CIT |
|
2356 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2357 CREATE_OBJECT RWsSession ws |
|
2358 CREATE_OBJECT RWindowGroup wingrp |
|
2359 CREATE_OBJECT RWindow win |
|
2360 COMMAND ws new |
|
2361 COMMAND ws Connect |
|
2362 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2363 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2364 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2365 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2366 COMMAND win GetPointerCapturePriority GRAPHICS-WSERV-Window-PublicApi-0212-0001-GetPointerCapturePriority_command01 |
|
2367 COMMAND win Close |
|
2368 COMMAND wingrp Close |
|
2369 COMMAND ws Close |
|
2370 END_TEST_BLOCK |
|
2371 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0212 |
|
2372 |
|
2373 |
|
2374 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0213 |
|
2375 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0213 |
|
2376 //! @SYMAPI RWindowBase |
|
2377 //! @SYMAuthor Ryan Lu |
|
2378 //! @SYMCreationDate 13/02/2007 |
|
2379 //! @SYMTestCaseDesc SetVisible(TBool aState): set the visibility of the window (test in RWindow) |
|
2380 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindowBase::SetRequiredDisplayMode & Activate, RWindow::Construct & SetColor |
|
2381 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
2382 //! 1.1 New and connect a RWsSession |
|
2383 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2384 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2385 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2386 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
2387 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
2388 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
2389 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
2390 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
2391 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
2392 //! 2. Use SetBackgroundColor to set the background color of the foreground RWindow to TRgb(255,0,0) |
|
2393 //! 3. Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the foreground RWindow |
|
2394 //! 4. Check the drawing result: the whole screen should be the specified background color |
|
2395 //! 5. Execute SetVisible to FALSE for the child RWindow |
|
2396 //! 6. Use BeginRedraw & EndRedraw to redraw and display the foreground RWindow |
|
2397 //! 7. Check the drawing result: the whole screen should be the background color of the background RWindow TRgb(255,255,0) |
|
2398 //! 8. Destruct and close all objects used |
|
2399 //! @SYMTestStatus Implemented |
|
2400 //! @SYMTestPriority Low |
|
2401 //! @SYMTestExpectedResults 1. SetVisible() method called without causing panic |
|
2402 //! 2. Check the drawing result: only check sample TRect((0,0),(10,10)) ((90,90),(100,100)) |
|
2403 //! 2.1 before SetVisible() to FALSE, the foreground RWindow is displayed with TRgb(255,0,0) |
|
2404 //! 2.2 after SetVisible() to FALSE, the background RWindow is displayed with TRgb(255,255,0) |
|
2405 //! @SYMTestType CIT |
|
2406 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2407 CREATE_OBJECT RWsSession ws |
|
2408 CREATE_OBJECT CWsScreenDevice scrdev |
|
2409 CREATE_OBJECT CWindowGc wingc |
|
2410 CREATE_OBJECT RWindowGroup wingrp |
|
2411 CREATE_OBJECT RWindow backwin |
|
2412 CREATE_OBJECT RWindow win |
|
2413 COMMAND ws new |
|
2414 COMMAND ws Connect |
|
2415 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
2416 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
2417 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
2418 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
2419 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
2420 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
2421 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
2422 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
2423 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
2424 COMMAND backwin Activate |
|
2425 COMMAND backwin BeginRedraw |
|
2426 COMMAND backwin EndRedraw |
|
2427 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
2428 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
2429 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
2430 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
2431 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
2432 |
|
2433 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0213-0001-SetBackgroundColor_command01 |
|
2434 COMMAND win Activate |
|
2435 COMMAND win BeginRedraw |
|
2436 COMMAND win EndRedraw |
|
2437 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0213-0001-checkRectColor_command03 |
|
2438 COMMAND win SetVisible GRAPHICS-WSERV-Window-PublicApi-0213-0001-SetVisible_command05 |
|
2439 COMMAND win BeginRedraw |
|
2440 COMMAND win EndRedraw |
|
2441 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0213-0001-checkRectColor_command07 |
|
2442 |
|
2443 COMMAND win Close |
|
2444 COMMAND backwin Close |
|
2445 COMMAND wingrp Close |
|
2446 COMMAND wingc ~ |
|
2447 COMMAND scrdev ~ |
|
2448 COMMAND ws Close |
|
2449 END_TEST_BLOCK |
|
2450 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0213 |
|
2451 |
|
2452 |
|
2453 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0214 |
|
2454 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0214 |
|
2455 //! @SYMAPI RWindowBase |
|
2456 //! @SYMAuthor Ryan Lu |
|
2457 //! @SYMCreationDate 13/06/2007 |
|
2458 //! @SYMTestCaseDesc SetShadowHeight(TInt aHeight): set a window's shadow height (test in RWindow) |
|
2459 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindowBase::SetRequiredDisplayMode & Activate, RWindow::Construct & SetColor & SetSizeErr |
|
2460 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
2461 //! 1.1 New and connect a RWsSession |
|
2462 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2463 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2464 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2465 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
2466 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
2467 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
2468 //! 1.7 New and construct a foreground RWindow as the child of the RWindowGroup |
|
2469 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
2470 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
2471 //! 2. Use SetBackgroundColor to set the background color of the foreground RWindow to TRgb(255,0,0) |
|
2472 //! and SetSizeErr to set the child RWindow size to width=30,height=30 |
|
2473 //! 3. Use SetShadowDisabled to enable the foreground RWindow shadow |
|
2474 //! 4. Execute SetShadowHeight to set the foreground RWindow with shadow height 1 |
|
2475 //! 5. Check the display of the foreground RWindow shadow |
|
2476 //! 6. Execute SetShadowHeight to set the foreground RWindow with shadow height 3 |
|
2477 //! 7. Check the display of the foreground RWindow shadow |
|
2478 //! 8. Destruct and close all objects used |
|
2479 //! @SYMTestStatus Implemented |
|
2480 //! @SYMTestPriority High |
|
2481 //! @SYMTestExpectedResults 1. SetShadowHeight() method called without causing panic |
|
2482 //! 2. Check the drawing result: check the shadow area should be drawn with the color TRgb(170,170,0) |
|
2483 //! 2.1 when shadow height is 1, the shadow area is TRect((10+2*1,40),(40+2*1,40+2*1)) & ((40,10+2*1),,(40+2*1,40+2*1)) |
|
2484 //! 2.2 when shadow height is 3, the shadow area is TRect((10+2*3,40),(40+2*3,40+2*3)) & ((40,10+2*3),,(40+2*3,40+2*3)) |
|
2485 //! @SYMTestType CIT |
|
2486 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2487 CREATE_OBJECT RWsSession ws |
|
2488 CREATE_OBJECT CWsScreenDevice scrdev |
|
2489 CREATE_OBJECT CWindowGc wingc |
|
2490 CREATE_OBJECT RWindowGroup wingrp |
|
2491 CREATE_OBJECT RWindow backwin |
|
2492 CREATE_OBJECT RWindow win |
|
2493 COMMAND ws new |
|
2494 COMMAND ws Connect |
|
2495 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
2496 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
2497 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
2498 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
2499 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
2500 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
2501 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
2502 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
2503 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
2504 COMMAND backwin Activate |
|
2505 COMMAND backwin BeginRedraw |
|
2506 COMMAND backwin EndRedraw |
|
2507 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
2508 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command024 |
|
2509 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
2510 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
2511 |
|
2512 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetBackgroundColor_command01 |
|
2513 COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetExtentErr_command02 |
|
2514 COMMAND win SetShadowDisabled GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetShadowDisabled_command03 |
|
2515 COMMAND win SetShadowHeight GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetShadowHeight_command04 |
|
2516 COMMAND win Activate |
|
2517 COMMAND win BeginRedraw |
|
2518 COMMAND win EndRedraw |
|
2519 COMMAND win SetShadowHeight GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetShadowHeight_command07 |
|
2520 |
|
2521 COMMAND win Close |
|
2522 COMMAND backwin Close |
|
2523 COMMAND wingrp Close |
|
2524 COMMAND wingc ~ |
|
2525 COMMAND scrdev ~ |
|
2526 COMMAND ws Close |
|
2527 END_TEST_BLOCK |
|
2528 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0214 |
|
2529 |
|
2530 |
|
2531 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0215 |
|
2532 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0215 |
|
2533 //! @SYMAPI RWindowBase |
|
2534 //! @SYMAuthor Ryan Lu |
|
2535 //! @SYMCreationDate 14/06/2007 |
|
2536 //! @SYMTestCaseDesc SetShadowDisabled(TBool aState): enable/disable whether a window casts a shadow (test in RWindow) |
|
2537 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindowBase::SetRequiredDisplayMode & Activate, RWindow::Construct & SetColor & SetSizeErr |
|
2538 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
2539 //! 1.1 New and connect a RWsSession |
|
2540 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2541 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2542 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2543 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
2544 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
2545 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
2546 //! 1.7 New and construct a foreground RWindow as the child of the RWindowGroup |
|
2547 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
2548 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
2549 //! 2. Use SetBackgroundColor to set the background color of the foreground RWindow to TRgb(255,0,0) |
|
2550 //! and SetSizeErr to set the child RWindow size to width=30,height=30 |
|
2551 //! 3. Execute SetShadowDisabled to enable the foreground RWindow shadow |
|
2552 //! 4. Use SetShadowHeight to set the foreground RWindow with shadow height 1 |
|
2553 //! 5. Check the display of the foreground RWindow shadow |
|
2554 //! 6. Execute SetShadowDisabled to set disable the foreground RWindow shadow |
|
2555 //! 7. Check the originally displayed foreground RWindow shadow is cleared |
|
2556 //! 8. Destruct and close all objects used |
|
2557 //! @SYMTestStatus Implemented |
|
2558 //! @SYMTestPriority High |
|
2559 //! @SYMTestExpectedResults 1. SetShadowDisabled() method called without causing panic |
|
2560 //! 2. Check the drawing result: only check the shadow area TRect((10+2*1,40),(40+2*1,40+2*1)) & ((40,10+2*1),,(40+2*1,40+2*1)) |
|
2561 //! 2.1 when shadow is enabled (state=FALSE), the shadow area is drawn with TRgb(170,170,0) |
|
2562 //! 2.2 when shadow is disabled (state=TRUE), the shadow area is cleared, i.e. drawn with TRgb(255,255,0) |
|
2563 //! @SYMTestType CIT |
|
2564 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2565 CREATE_OBJECT RWsSession ws |
|
2566 CREATE_OBJECT CWsScreenDevice scrdev |
|
2567 CREATE_OBJECT CWindowGc wingc |
|
2568 CREATE_OBJECT RWindowGroup wingrp |
|
2569 CREATE_OBJECT RWindow backwin |
|
2570 CREATE_OBJECT RWindow win |
|
2571 COMMAND ws new |
|
2572 COMMAND ws Connect |
|
2573 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
2574 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
2575 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
2576 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
2577 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
2578 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
2579 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
2580 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
2581 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
2582 COMMAND backwin Activate |
|
2583 COMMAND backwin BeginRedraw |
|
2584 COMMAND backwin EndRedraw |
|
2585 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
2586 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command024 |
|
2587 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
2588 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
2589 |
|
2590 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetBackgroundColor_command01 |
|
2591 COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetExtentErr_command02 |
|
2592 COMMAND win SetShadowDisabled GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetShadowDisabled_command03 |
|
2593 COMMAND win SetShadowHeight GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetShadowHeight_command04 |
|
2594 COMMAND win Activate |
|
2595 COMMAND win BeginRedraw |
|
2596 COMMAND win EndRedraw |
|
2597 COMMAND win SetShadowDisabled GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetShadowDisabled_command07 |
|
2598 |
|
2599 COMMAND win Close |
|
2600 COMMAND backwin Close |
|
2601 COMMAND wingrp Close |
|
2602 COMMAND wingc ~ |
|
2603 COMMAND scrdev ~ |
|
2604 COMMAND ws Close |
|
2605 END_TEST_BLOCK |
|
2606 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0215 |
|
2607 |
|
2608 |
|
2609 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0216 |
|
2610 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0216 |
|
2611 //! @SYMAPI RWindowBase |
|
2612 //! @SYMAuthor Ryan Lu |
|
2613 //! @SYMCreationDate 12/02/2007 |
|
2614 //! @SYMTestCaseDesc Position(): get the window (test in RWindow) position relative to its parent |
|
2615 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::SetPosition |
|
2616 //! @SYMTestActions 1. Create and construct a foreground and background RWindow to test |
|
2617 //! 1.1 New and connect a RWsSession |
|
2618 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2619 //! 1.3 New and construct a background RWindow as the child of the RWindowGroup |
|
2620 //! 1.4 New and construct a foreground RWindow as the child of the background RWindow |
|
2621 //! 2. Execute Position to get the child RWindow position, and check if it returns the default (0,0) |
|
2622 //! 3. Use SetPosition to change the position of the top-level RWindow to (11,12) |
|
2623 //! 4. Execute Position for child RWindow again, check if the position relative to its parent remains (0,0) |
|
2624 //! 5. Use SetPosition to change the position of the child RWindow to (20,30) |
|
2625 //! 6. Execute Position for child RWindow again, check if the position is the same as specified |
|
2626 //! 7. Close all objects used |
|
2627 //! @SYMTestStatus Implemented |
|
2628 //! @SYMTestPriority High |
|
2629 //! @SYMTestExpectedResults 1. Position() method called without causing panic |
|
2630 //! 2. Check Position() return value for child RWindow |
|
2631 //! 2.1 The initial value should be the same as (0,0) |
|
2632 //! 2.2 If its parent window change the position, the returned position not changed |
|
2633 //! 2.3 If the child RWindow change the position, the returned position is changed as specified offset (20,30) |
|
2634 //! @SYMTestType CIT |
|
2635 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2636 CREATE_OBJECT RWsSession ws |
|
2637 CREATE_OBJECT RWindowGroup wingrp |
|
2638 CREATE_OBJECT RWindow backwin |
|
2639 CREATE_OBJECT RWindow win |
|
2640 COMMAND ws new |
|
2641 COMMAND ws Connect |
|
2642 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2643 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2644 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2645 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2646 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command010 |
|
2647 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command011 |
|
2648 |
|
2649 COMMAND win Position GRAPHICS-WSERV-Window-PublicApi-0216-0001-Position_command01 |
|
2650 COMMAND backwin SetPosition GRAPHICS-WSERV-Window-PublicApi-0216-0001-SetPosition_command03 |
|
2651 COMMAND win Position GRAPHICS-WSERV-Window-PublicApi-0216-0001-Position_command05 |
|
2652 COMMAND win SetPosition GRAPHICS-WSERV-Window-PublicApi-0216-0001-SetPosition_command06 |
|
2653 COMMAND win Position GRAPHICS-WSERV-Window-PublicApi-0216-0001-Position_command07 |
|
2654 |
|
2655 COMMAND win Close |
|
2656 COMMAND backwin Close |
|
2657 COMMAND wingrp Close |
|
2658 COMMAND ws Close |
|
2659 END_TEST_BLOCK |
|
2660 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0216 |
|
2661 |
|
2662 |
|
2663 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0217 |
|
2664 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0217 |
|
2665 //! @SYMAPI RWindowBase |
|
2666 //! @SYMAuthor Ryan Lu |
|
2667 //! @SYMCreationDate 12/02/2007 |
|
2668 //! @SYMTestCaseDesc AbsPosition(): get the window (test in RWindow) absolute position |
|
2669 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::SetPosition |
|
2670 //! @SYMTestActions 1. Create and construct a foreground and background RWindow to test |
|
2671 //! 1.1 New and connect a RWsSession |
|
2672 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2673 //! 1.3 New and construct a background RWindow as the child of the RWindowGroup |
|
2674 //! 1.4 New and construct a foreground RWindow as the child of the background RWindow |
|
2675 //! 2. Execute AbsPosition to get the child RWindow position, and check if it returns the default (0,0) |
|
2676 //! 3. Use SetPosition to change the position of the top-level RWindow to (11,12) |
|
2677 //! 4. Execute AbsPosition for child RWindow again, check if the absolute position is (11,12) |
|
2678 //! 5. Use SetPosition to change the position of the child RWindow to (20,30) |
|
2679 //! 6. Execute AbsPosition for child RWindow again, check if the absolute position is (31,42)=(11,12)+(20,30) |
|
2680 //! 7. Close all objects used |
|
2681 //! @SYMTestStatus Implemented |
|
2682 //! @SYMTestPriority High |
|
2683 //! @SYMTestExpectedResults 1. AbsPosition() method called without causing panic |
|
2684 //! 2. Check AbsPosition() return value for child RWindow |
|
2685 //! 2.1 The initial value should be the same as (0,0) |
|
2686 //! 2.2 If its parent window change the position, the returned position is changed |
|
2687 //! 2.3 If the child RWindow change the position, the returned position is also changed |
|
2688 //! @SYMTestType CIT |
|
2689 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2690 CREATE_OBJECT RWsSession ws |
|
2691 CREATE_OBJECT RWindowGroup wingrp |
|
2692 CREATE_OBJECT RWindow backwin |
|
2693 CREATE_OBJECT RWindow win |
|
2694 COMMAND ws new |
|
2695 COMMAND ws Connect |
|
2696 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2697 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2698 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2699 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2700 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command010 |
|
2701 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command011 |
|
2702 |
|
2703 COMMAND win AbsPosition GRAPHICS-WSERV-Window-PublicApi-0217-0001-AbsPosition_command01 |
|
2704 COMMAND backwin SetPosition GRAPHICS-WSERV-Window-PublicApi-0217-0001-SetPosition_command03 |
|
2705 COMMAND win AbsPosition GRAPHICS-WSERV-Window-PublicApi-0217-0001-AbsPosition_command05 |
|
2706 COMMAND win SetPosition GRAPHICS-WSERV-Window-PublicApi-0217-0001-SetPosition_command06 |
|
2707 COMMAND win AbsPosition GRAPHICS-WSERV-Window-PublicApi-0217-0001-AbsPosition_command07 |
|
2708 |
|
2709 COMMAND win Close |
|
2710 COMMAND backwin Close |
|
2711 COMMAND wingrp Close |
|
2712 COMMAND ws Close |
|
2713 END_TEST_BLOCK |
|
2714 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0217 |
|
2715 |
|
2716 |
|
2717 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0218 |
|
2718 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0218 |
|
2719 //! @SYMAPI RWindowBase |
|
2720 //! @SYMAuthor Ryan Lu |
|
2721 //! @SYMCreationDate 13/02/2007 |
|
2722 //! @SYMTestCaseDesc SetCornerType(TCornerType aCornerType, TInt aCornerFlags=0): set the corner shape of the window (test in RWindow) |
|
2723 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindowBase::SetRequiredDisplayMode & Activate, RWindow::Construct & SetColor & SetSizeErr |
|
2724 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
2725 //! 1.1 New and connect a RWsSession |
|
2726 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2727 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2728 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2729 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
2730 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
2731 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
2732 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
2733 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
2734 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
2735 //! 2. Use SetBackgroundColor to set the background color of the child RWindow to TRgb(255,0,0) |
|
2736 //! and SetSizeErr to set the child RWindow size to width=30,height=30 |
|
2737 //! 3. Execute SetCornerType with corner type EWindowCorner3 and corner flag to only include bottom right |
|
2738 //! 4. Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the foreground RWindow |
|
2739 //! 5. Check the drawing result |
|
2740 //! 6. Destruct and close all objects used |
|
2741 //! @SYMTestStatus Implemented |
|
2742 //! @SYMTestPriority High |
|
2743 //! @SYMTestExpectedResults 1. SetCornerType() method returns KErrNone without causing panic |
|
2744 //! 2. Check the drawing result: consider the 4 corner (width=5,height=5) |
|
2745 //! 2.1 inside the window except the 4 corners, it should be drawn with background color TRgb(255,0,0) |
|
2746 //! TRect((5,0),(25,5)), ((0,5),(30,25)), ((5,25),(25,30)) |
|
2747 //! 2.2 for the corners not included in the SetCornerType, it should also be drawn with background color TRgb(255,0,0) |
|
2748 //! TRect((0,0),(5,5)), ((25,0),(30,5)), ((25,0),(30,0)) |
|
2749 //! 2.3 for the corners included in the SetCornerType |
|
2750 //! 2.3.1 check the removed pixels, should be drawn with TRgb(255,255,0) |
|
2751 //! for EWindowCorner3, check 5 pixels (29,27), (29,28), (27,29), (28,29), (29,29) |
|
2752 //! 2.3.2 check other pixels not removed, should be drawn with the background color TRgb(255,0,0) |
|
2753 //! only check sample pixels: (29,26), (28,27), (28,27), (28,28), (27,28) |
|
2754 //! @SYMTestType CIT |
|
2755 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2756 CREATE_OBJECT RWsSession ws |
|
2757 CREATE_OBJECT CWsScreenDevice scrdev |
|
2758 CREATE_OBJECT CWindowGc wingc |
|
2759 CREATE_OBJECT RWindowGroup wingrp |
|
2760 CREATE_OBJECT RWindow backwin |
|
2761 CREATE_OBJECT RWindow win |
|
2762 COMMAND ws new |
|
2763 COMMAND ws Connect |
|
2764 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
2765 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
2766 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
2767 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
2768 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
2769 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
2770 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
2771 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
2772 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
2773 COMMAND backwin Activate |
|
2774 COMMAND backwin BeginRedraw |
|
2775 COMMAND backwin EndRedraw |
|
2776 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
2777 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
2778 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
2779 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
2780 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
2781 |
|
2782 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0218-0001-SetBackgroundColor_command01 |
|
2783 COMMAND win SetSize GRAPHICS-WSERV-Window-PublicApi-0218-0001-SetSize_command02 |
|
2784 COMMAND win SetCornerType GRAPHICS-WSERV-Window-PublicApi-0218-0001-SetCornerType_command03 |
|
2785 COMMAND win Activate |
|
2786 COMMAND win BeginRedraw |
|
2787 COMMAND win EndRedraw |
|
2788 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0218-0001-checkRectColor_command05 |
|
2789 COMMAND scrdev checkPixels GRAPHICS-WSERV-Window-PublicApi-0218-0001-checkPixels_command06 |
|
2790 |
|
2791 COMMAND win Close |
|
2792 COMMAND backwin Close |
|
2793 COMMAND wingrp Close |
|
2794 COMMAND wingc ~ |
|
2795 COMMAND scrdev ~ |
|
2796 COMMAND ws Close |
|
2797 END_TEST_BLOCK |
|
2798 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0218 |
|
2799 |
|
2800 |
|
2801 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0219 |
|
2802 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0219 |
|
2803 //! @SYMAPI RWindowBase |
|
2804 //! @SYMAuthor Ryan Lu |
|
2805 //! @SYMCreationDate 13/02/2007 |
|
2806 //! @SYMTestCaseDesc SetShape(const TRegion &aRegion): set the shape of the window (test in RWindow) |
|
2807 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindowBase::SetRequiredDisplayMode & Activate, RWindow::Construct & SetColor |
|
2808 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
2809 //! 1.1 New and connect a RWsSession |
|
2810 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
2811 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
2812 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
2813 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
2814 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
2815 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
2816 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
2817 //! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) |
|
2818 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
2819 //! 2. Execute SetShape to set the child RWindow shape as the specified region |
|
2820 //! 3. Use SetBackgroundColor to set the background color of the child RWindow to TRgb(255,0,0) |
|
2821 //! 4. Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the foreground RWindow |
|
2822 //! 5. Check the drawing result |
|
2823 //! 6. Destruct and close all objects used |
|
2824 //! @SYMTestStatus Implemented |
|
2825 //! @SYMTestPriority High |
|
2826 //! @SYMTestExpectedResults 1. SetShape() method returns KErrNone without causing panic |
|
2827 //! 2. Check the drawing result: |
|
2828 //! 2.1 inside the window shape rectangles, it should be drawn with background color TRgb(255,0,0) |
|
2829 //! TRect((10,10),(20,40)), ((20,20),(30,30)), ((30,10),(40,40)) |
|
2830 //! 2.2 outside the window shape rectangles, it should also be drawn with background color TRgb(255,255,0) |
|
2831 //! TRect((0,0),(50,10)), ((20,10),(30,20)), ((20,30),(30,40)), ((0,40),(50,50)), ((0,10),(10,40)), ((40,10),(50,40)) |
|
2832 //! @SYMTestType CIT |
|
2833 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2834 CREATE_OBJECT RWsSession ws |
|
2835 CREATE_OBJECT CWsScreenDevice scrdev |
|
2836 CREATE_OBJECT CWindowGc wingc |
|
2837 CREATE_OBJECT RWindowGroup wingrp |
|
2838 CREATE_OBJECT RWindow backwin |
|
2839 CREATE_OBJECT RWindow win |
|
2840 COMMAND ws new |
|
2841 COMMAND ws Connect |
|
2842 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
2843 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
2844 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
2845 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
2846 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
2847 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
2848 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
2849 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
2850 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
2851 COMMAND backwin Activate |
|
2852 COMMAND backwin BeginRedraw |
|
2853 COMMAND backwin EndRedraw |
|
2854 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
2855 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 |
|
2856 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
2857 COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 |
|
2858 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
2859 |
|
2860 COMMAND win SetShape GRAPHICS-WSERV-Window-PublicApi-0219-0001-SetShape_command01 |
|
2861 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0219-0001-SetBackgroundColor_command02 |
|
2862 COMMAND win Activate |
|
2863 COMMAND win BeginRedraw |
|
2864 COMMAND win EndRedraw |
|
2865 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0219-0001-checkRectColor_command04 |
|
2866 |
|
2867 COMMAND win Close |
|
2868 COMMAND backwin Close |
|
2869 COMMAND wingrp Close |
|
2870 COMMAND wingc ~ |
|
2871 COMMAND scrdev ~ |
|
2872 COMMAND ws Close |
|
2873 END_TEST_BLOCK |
|
2874 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0219 |
|
2875 |
|
2876 |
|
2877 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0220 |
|
2878 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0220 |
|
2879 //! @SYMAPI RWindowBase |
|
2880 //! @SYMAuthor Ryan Lu |
|
2881 //! @SYMCreationDate 13/02/2007 |
|
2882 //! @SYMTestCaseDesc SetRequiredDisplayMode(TDisplayMode aMode): set required display mode of a window (test in RWindow) |
|
2883 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
2884 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2885 //! 1.1 New and connect a RWsSession |
|
2886 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2887 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
2888 //! 2. Execute SetRequiredDisplayMode to the specified display mode (EColor256) |
|
2889 //! and check if it returns the display mode as specified |
|
2890 //! 3. Close all objects used |
|
2891 //! @SYMTestStatus Implemented |
|
2892 //! @SYMTestPriority High |
|
2893 //! @SYMTestExpectedResults SetRequiredDisplayMode() method called without causing panic and the retuned value is the same as the displayed mode specified |
|
2894 //! @SYMTestType CIT |
|
2895 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2896 CREATE_OBJECT RWsSession ws |
|
2897 CREATE_OBJECT RWindowGroup wingrp |
|
2898 CREATE_OBJECT RWindow win |
|
2899 COMMAND ws new |
|
2900 COMMAND ws Connect |
|
2901 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2902 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2903 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2904 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2905 |
|
2906 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-PublicApi-0220-0001-SetRequiredDisplayMode_command01 |
|
2907 |
|
2908 COMMAND win Close |
|
2909 COMMAND wingrp Close |
|
2910 COMMAND ws Close |
|
2911 END_TEST_BLOCK |
|
2912 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0220 |
|
2913 |
|
2914 |
|
2915 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0221 |
|
2916 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0221 |
|
2917 //! @SYMAPI RWindowBase |
|
2918 //! @SYMAuthor Ryan Lu |
|
2919 //! @SYMCreationDate 13/02/2007 |
|
2920 //! @SYMTestCaseDesc DisplayMode(): get current display mode of a window (test in RWindow) |
|
2921 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
2922 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2923 //! 1.1 New and connect a RWsSession |
|
2924 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2925 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
2926 //! 2. Execute DisplayMode() to get current display mode of child RWindow and check if it's as expected default (EColor256) |
|
2927 //! 3. Close all objects used |
|
2928 //! @SYMTestStatus Implemented |
|
2929 //! @SYMTestPriority High |
|
2930 //! @SYMTestExpectedResults DisplayMode() method called without causing panic and the retuned value is as expected default (EColor64K) |
|
2931 //! @SYMTestType CIT |
|
2932 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2933 CREATE_OBJECT RWsSession ws |
|
2934 CREATE_OBJECT RWindowGroup wingrp |
|
2935 CREATE_OBJECT RWindow win |
|
2936 COMMAND ws new |
|
2937 COMMAND ws Connect |
|
2938 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2939 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2940 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2941 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2942 |
|
2943 COMMAND win DisplayMode GRAPHICS-WSERV-Window-PublicApi-0221-0001-DisplayMode_command01 |
|
2944 |
|
2945 COMMAND win Close |
|
2946 COMMAND wingrp Close |
|
2947 COMMAND ws Close |
|
2948 END_TEST_BLOCK |
|
2949 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0221 |
|
2950 |
|
2951 |
|
2952 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0222 |
|
2953 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0222 |
|
2954 //! @SYMAPI RWindowBase |
|
2955 //! @SYMAuthor Ryan Lu |
|
2956 //! @SYMCreationDate 29/06/2007 |
|
2957 //! @SYMTestCaseDesc EnableBackup(TUint aBackupType=EWindowBackupAreaBehind): request to backup all or part of the window's contents on screen (test in RWindow) |
|
2958 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
2959 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2960 //! 1.1 New and connect a RWsSession |
|
2961 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
2962 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
2963 //! 2. Execute EnableBackup() with backup type EWindowBackupFullScreen |
|
2964 //! 3. Execute EnableBackup() back to backup type EWindowBackupAreaBehind |
|
2965 //! 4. Close all objects used |
|
2966 //! @SYMTestStatus Implemented |
|
2967 //! @SYMTestPriority Medium |
|
2968 //! @SYMTestExpectedResults EnableBackup called without causing panic |
|
2969 //! @SYMTestType CIT |
|
2970 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
2971 CREATE_OBJECT RWsSession ws |
|
2972 CREATE_OBJECT RWindowGroup wingrp |
|
2973 CREATE_OBJECT RWindow win |
|
2974 COMMAND ws new |
|
2975 COMMAND ws Connect |
|
2976 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
2977 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
2978 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
2979 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
2980 |
|
2981 COMMAND win EnableBackup GRAPHICS-WSERV-Window-PublicApi-0000-0001-EnableBackup_EWindowBackupFullScreen |
|
2982 COMMAND win EnableBackup GRAPHICS-WSERV-Window-PublicApi-0000-0001-EnableBackup_EWindowBackupAreaBehind |
|
2983 |
|
2984 COMMAND win Close |
|
2985 COMMAND wingrp Close |
|
2986 COMMAND ws Close |
|
2987 END_TEST_BLOCK |
|
2988 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0222 |
|
2989 |
|
2990 |
|
2991 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0223 |
|
2992 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0223 |
|
2993 //! @SYMAPI RWindowBase |
|
2994 //! @SYMAuthor Ryan Lu |
|
2995 //! @SYMCreationDate 28/06/2007 |
|
2996 //! @SYMTestCaseDesc RequestPointerRepeatEvent(TTimeIntervalMicroSeconds32 aTime, const TRect &aRect): request a pointer repeat event (test in RWindow) |
|
2997 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
2998 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
2999 //! 1.1 New and connect a RWsSession |
|
3000 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3001 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
3002 //! 2. Execute RequestPointerRepeatEvent() to request a pointer repeat event within TRect((10,10),(100,100)) and 1000000 micro seconds |
|
3003 //! 3. Close all objects used |
|
3004 //! @SYMTestStatus Implemented |
|
3005 //! @SYMTestPriority Medium |
|
3006 //! @SYMTestExpectedResults RequestPointerRepeatEvent called without causing panic |
|
3007 //! @SYMTestType CIT |
|
3008 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3009 CREATE_OBJECT RWsSession ws |
|
3010 CREATE_OBJECT RWindowGroup wingrp |
|
3011 CREATE_OBJECT RWindow win |
|
3012 COMMAND ws new |
|
3013 COMMAND ws Connect |
|
3014 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3015 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3016 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3017 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3018 |
|
3019 COMMAND win RequestPointerRepeatEvent GRAPHICS-WSERV-Window-PublicApi-0223-0001-RequestPointerRepeatEvent_command01 |
|
3020 |
|
3021 COMMAND win Close |
|
3022 COMMAND wingrp Close |
|
3023 COMMAND ws Close |
|
3024 END_TEST_BLOCK |
|
3025 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0223 |
|
3026 |
|
3027 |
|
3028 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0224 |
|
3029 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0224 |
|
3030 //! @SYMAPI RWindowBase |
|
3031 //! @SYMAuthor Ryan Lu |
|
3032 //! @SYMCreationDate 28/06/2007 |
|
3033 //! @SYMTestCaseDesc CancelPointerRepeatEventRequest(): cancel a request for a pointer repeat event (test in RWindow) |
|
3034 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::RequestPointerRepeatEvent, RWindow::Construct |
|
3035 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
3036 //! 1.1 New and connect a RWsSession |
|
3037 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3038 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
3039 //! 2. Use RequestPointerRepeatEvent() to request a pointer repeat event within TRect((10,10),(100,100)) and 1000000 micro seconds |
|
3040 //! 3. Execute CancelPointerRepeatEventRequest() to cancel the request |
|
3041 //! 4. Close all objects used |
|
3042 //! @SYMTestStatus Implemented |
|
3043 //! @SYMTestPriority Medium |
|
3044 //! @SYMTestExpectedResults CancelPointerRepeatEventRequest called without causing panic |
|
3045 //! @SYMTestType CIT |
|
3046 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3047 CREATE_OBJECT RWsSession ws |
|
3048 CREATE_OBJECT RWindowGroup wingrp |
|
3049 CREATE_OBJECT RWindow win |
|
3050 COMMAND ws new |
|
3051 COMMAND ws Connect |
|
3052 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3053 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3054 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3055 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3056 |
|
3057 COMMAND win RequestPointerRepeatEvent GRAPHICS-WSERV-Window-PublicApi-0224-0001-RequestPointerRepeatEvent_command01 |
|
3058 COMMAND win CancelPointerRepeatEventRequest |
|
3059 |
|
3060 COMMAND win Close |
|
3061 COMMAND wingrp Close |
|
3062 COMMAND ws Close |
|
3063 END_TEST_BLOCK |
|
3064 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0224 |
|
3065 |
|
3066 |
|
3067 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0225 |
|
3068 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0225 |
|
3069 //! @SYMAPI RWindowBase |
|
3070 //! @SYMAuthor Ryan Lu |
|
3071 //! @SYMCreationDate 26/06/2007 |
|
3072 //! @SYMTestCaseDesc TInt AllocPointerMoveBuffer(TInt aMaxPoints, TUint aFlags): allocate a buffer for storing pointer movements (test in RWindow) |
|
3073 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
3074 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
3075 //! 1.1 New and connect a RWsSession |
|
3076 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3077 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
3078 //! 2. Execute AllocPointerMoveBuffer() to allocate pointer buffer for 1000 points and flags 0 |
|
3079 //! 3. Close all objects used |
|
3080 //! @SYMTestStatus Implemented |
|
3081 //! @SYMTestPriority Medium |
|
3082 //! @SYMTestExpectedResults AllocPointerMoveBuffer method returns KErrNone without causing panic |
|
3083 //! @SYMTestType CIT |
|
3084 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3085 CREATE_OBJECT RWsSession ws |
|
3086 CREATE_OBJECT RWindowGroup wingrp |
|
3087 CREATE_OBJECT RWindow win |
|
3088 COMMAND ws new |
|
3089 COMMAND ws Connect |
|
3090 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3091 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3092 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3093 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3094 |
|
3095 COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-0225-0001-AllocPointerMoveBuffer_command01 |
|
3096 |
|
3097 COMMAND win Close |
|
3098 COMMAND wingrp Close |
|
3099 COMMAND ws Close |
|
3100 END_TEST_BLOCK |
|
3101 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0225 |
|
3102 |
|
3103 |
|
3104 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0226 |
|
3105 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0226 |
|
3106 //! @SYMAPI RWindowBase |
|
3107 //! @SYMAuthor Ryan Lu |
|
3108 //! @SYMCreationDate 26/06/2007 |
|
3109 //! @SYMTestCaseDesc FreePointerMoveBuffer(): free the pointer move buffer (test in RWindow) |
|
3110 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::AllocPointerMoveBuffer, RWindow::Construct |
|
3111 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
3112 //! 1.1 New and connect a RWsSession |
|
3113 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3114 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
3115 //! 2. Use AllocPointerMoveBuffer() to allocate pointer buffer for 1000 points and flags 0 |
|
3116 //! 3. Execute FreePointerMoveBuffer() to free the allocated pointer buffer |
|
3117 //! 4. Close all objects used |
|
3118 //! @SYMTestStatus Implemented |
|
3119 //! @SYMTestPriority Medium |
|
3120 //! @SYMTestExpectedResults FreePointerMoveBuffer called without causing panic |
|
3121 //! @SYMTestType CIT |
|
3122 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3123 CREATE_OBJECT RWsSession ws |
|
3124 CREATE_OBJECT RWindowGroup wingrp |
|
3125 CREATE_OBJECT RWindow win |
|
3126 COMMAND ws new |
|
3127 COMMAND ws Connect |
|
3128 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3129 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3130 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3131 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3132 |
|
3133 COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-0226-0001-AllocPointerMoveBuffer_command01 |
|
3134 COMMAND win FreePointerMoveBuffer |
|
3135 |
|
3136 COMMAND win Close |
|
3137 COMMAND wingrp Close |
|
3138 COMMAND ws Close |
|
3139 END_TEST_BLOCK |
|
3140 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0226 |
|
3141 |
|
3142 |
|
3143 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0227 |
|
3144 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0227 |
|
3145 //! @SYMAPI RWindowBase |
|
3146 //! @SYMAuthor Ryan Lu |
|
3147 //! @SYMCreationDate 27/06/2007 |
|
3148 //! @SYMTestCaseDesc EnablePointerMoveBuffer(): enable the pointer move buffer for receiving pointer move events (test in RWindow) |
|
3149 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::AllocPointerMoveBuffer & FreePointerMoveBuffer, RWindow::Construct |
|
3150 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
3151 //! 1.1 New and connect a RWsSession |
|
3152 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3153 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
3154 //! 2. Use AllocPointerMoveBuffer() to allocate pointer buffer for 1000 points and flags 0 |
|
3155 //! 3. Execute EnablePointerMoveBuffer() to enable the pointer move buffer for receiving pointer move events |
|
3156 //! 4. Use FreePointerMoveBuffer() to free the allocated pointer buffer |
|
3157 //! 5. Close all objects used |
|
3158 //! @SYMTestStatus Implemented |
|
3159 //! @SYMTestPriority Medium |
|
3160 //! @SYMTestExpectedResults EnablePointerMoveBuffer called without causing panic |
|
3161 //! @SYMTestType CIT |
|
3162 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3163 CREATE_OBJECT RWsSession ws |
|
3164 CREATE_OBJECT RWindowGroup wingrp |
|
3165 CREATE_OBJECT RWindow win |
|
3166 COMMAND ws new |
|
3167 COMMAND ws Connect |
|
3168 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3169 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3170 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3171 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3172 |
|
3173 COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-0227-0001-AllocPointerMoveBuffer_command01 |
|
3174 COMMAND win EnablePointerMoveBuffer |
|
3175 COMMAND win FreePointerMoveBuffer |
|
3176 |
|
3177 COMMAND win Close |
|
3178 COMMAND wingrp Close |
|
3179 COMMAND ws Close |
|
3180 END_TEST_BLOCK |
|
3181 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0227 |
|
3182 |
|
3183 |
|
3184 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0228 |
|
3185 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0228 |
|
3186 //! @SYMAPI RWindowBase |
|
3187 //! @SYMAuthor Ryan Lu |
|
3188 //! @SYMCreationDate 27/06/2007 |
|
3189 //! @SYMTestCaseDesc DisablePointerMoveBuffer(): instruct WSERV to stop adding pointer events to the pointer move buffer (test in RWindow) |
|
3190 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::AllocPointerMoveBuffer & EnablePointerMoveBuffer & FreePointerMoveBuffer, RWindow::Construct |
|
3191 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
3192 //! 1.1 New and connect a RWsSession |
|
3193 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3194 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
3195 //! 2. Use AllocPointerMoveBuffer() to allocate pointer buffer for 1000 points and flags 0 |
|
3196 //! 3. Use EnablePointerMoveBuffer() to enable the pointer move buffer for receiving pointer move events |
|
3197 //! 4. Execute DisablePointerMoveBuffer() to instruct WSERV to stop adding pointer events to the pointer move buffer |
|
3198 //! 5. Use FreePointerMoveBuffer() to free the allocated pointer buffer |
|
3199 //! 6. Close all objects used |
|
3200 //! @SYMTestStatus Implemented |
|
3201 //! @SYMTestPriority Medium |
|
3202 //! @SYMTestExpectedResults DisablePointerMoveBuffer called without causing panic |
|
3203 //! @SYMTestType CIT |
|
3204 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3205 CREATE_OBJECT RWsSession ws |
|
3206 CREATE_OBJECT RWindowGroup wingrp |
|
3207 CREATE_OBJECT RWindow win |
|
3208 COMMAND ws new |
|
3209 COMMAND ws Connect |
|
3210 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3211 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3212 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3213 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3214 |
|
3215 COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-0228-0001-AllocPointerMoveBuffer_command01 |
|
3216 COMMAND win EnablePointerMoveBuffer |
|
3217 COMMAND win DisablePointerMoveBuffer |
|
3218 COMMAND win FreePointerMoveBuffer |
|
3219 |
|
3220 COMMAND win Close |
|
3221 COMMAND wingrp Close |
|
3222 COMMAND ws Close |
|
3223 END_TEST_BLOCK |
|
3224 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0228 |
|
3225 |
|
3226 |
|
3227 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0230 |
|
3228 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0230 |
|
3229 //! @SYMAPI RWindowBase |
|
3230 //! @SYMAuthor Ryan Lu |
|
3231 //! @SYMCreationDate 27/06/2007 |
|
3232 //! @SYMTestCaseDesc DiscardPointerMoveBuffer(): discard all events in the pointer move buffer (test in RWindow) |
|
3233 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
3234 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
3235 //! 1.1 New and connect a RWsSession |
|
3236 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3237 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
3238 //! 2. Execute DiscardPointerMoveBuffer() to discard all events in the pointer move buffer |
|
3239 //! 3. Close all objects used |
|
3240 //! @SYMTestStatus Implemented |
|
3241 //! @SYMTestPriority Medium |
|
3242 //! @SYMTestExpectedResults DiscardPointerMoveBuffer called without causing panic |
|
3243 //! @SYMTestType CIT |
|
3244 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3245 CREATE_OBJECT RWsSession ws |
|
3246 CREATE_OBJECT RWindowGroup wingrp |
|
3247 CREATE_OBJECT RWindow win |
|
3248 COMMAND ws new |
|
3249 COMMAND ws Connect |
|
3250 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3251 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3252 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3253 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3254 |
|
3255 COMMAND win DiscardPointerMoveBuffer |
|
3256 |
|
3257 COMMAND win Close |
|
3258 COMMAND wingrp Close |
|
3259 COMMAND ws Close |
|
3260 END_TEST_BLOCK |
|
3261 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0230 |
|
3262 |
|
3263 |
|
3264 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0231 |
|
3265 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0231 |
|
3266 //! @SYMAPI RWindowBase |
|
3267 //! @SYMAuthor Ryan Lu |
|
3268 //! @SYMCreationDate 03/07/2007 |
|
3269 //! @SYMTestCaseDesc AddKeyRect(const TRect &aRect, TInt aScanCode, TBool aActivatedByPointerSwitchOn): add an on-screen key rectangle (test in RWindow) |
|
3270 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
3271 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
3272 //! 1.1 New and connect a RWsSession |
|
3273 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3274 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
3275 //! 2. Execute AddKeyRect() to add an on-screen key rectangle |
|
3276 //! 3. Close all objects used |
|
3277 //! @SYMTestStatus Implemented |
|
3278 //! @SYMTestPriority Medium |
|
3279 //! @SYMTestExpectedResults AddKeyRect method returns KErrNone without causing panic |
|
3280 //! @SYMTestType CIT |
|
3281 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3282 CREATE_OBJECT RWsSession ws |
|
3283 CREATE_OBJECT RWindowGroup wingrp |
|
3284 CREATE_OBJECT RWindow win |
|
3285 COMMAND ws new |
|
3286 COMMAND ws Connect |
|
3287 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3288 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3289 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3290 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3291 |
|
3292 COMMAND win AddKeyRect GRAPHICS-WSERV-Window-PublicApi-0231-0001-AddKeyRect_command01 |
|
3293 |
|
3294 COMMAND win Close |
|
3295 COMMAND wingrp Close |
|
3296 COMMAND ws Close |
|
3297 END_TEST_BLOCK |
|
3298 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0231 |
|
3299 |
|
3300 |
|
3301 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0232 |
|
3302 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0232 |
|
3303 //! @SYMAPI RWindowBase |
|
3304 //! @SYMAuthor Ryan Lu |
|
3305 //! @SYMCreationDate 03/07/2007 |
|
3306 //! @SYMTestCaseDesc RemoveAllKeyRects(): remove all the on-screen keys that have been added to this window (test in RWindow) |
|
3307 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
3308 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
3309 //! 1.1 New and connect a RWsSession |
|
3310 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3311 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
3312 //! 2. Execute RemoveAllKeyRects() to remove all the on-screen keys |
|
3313 //! 3. Close all objects used |
|
3314 //! @SYMTestStatus Implemented |
|
3315 //! @SYMTestPriority Medium |
|
3316 //! @SYMTestExpectedResults RemoveAllKeyRects method called without causing panic |
|
3317 //! @SYMTestType CIT |
|
3318 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3319 CREATE_OBJECT RWsSession ws |
|
3320 CREATE_OBJECT RWindowGroup wingrp |
|
3321 CREATE_OBJECT RWindow win |
|
3322 COMMAND ws new |
|
3323 COMMAND ws Connect |
|
3324 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3325 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3326 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3327 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3328 |
|
3329 COMMAND win RemoveAllKeyRects |
|
3330 |
|
3331 COMMAND win Close |
|
3332 COMMAND wingrp Close |
|
3333 COMMAND ws Close |
|
3334 END_TEST_BLOCK |
|
3335 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0232 |
|
3336 |
|
3337 |
|
3338 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0234 |
|
3339 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0234 |
|
3340 //! @SYMAPI RWindowBase |
|
3341 //! @SYMAuthor Ryan Lu |
|
3342 //! @SYMCreationDate 20/06/2007 |
|
3343 //! @SYMTestCaseDesc FadeBehind(TBool aFade): set whether or not all windows behind the current window, in the same window group, should be faded or unfaded (test in RWindow) |
|
3344 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindowBase::SetRequiredDisplayMode & Activate, RWindow::Construct & SetColor |
|
3345 //! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test |
|
3346 //! 1.1 New and connect a RWsSession |
|
3347 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
3348 //! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) |
|
3349 //! 1.4 New and construct a RWindowGroup within the RWsSession |
|
3350 //! 1.5 New and construct a background RWindow as the child of the RWindowGroup |
|
3351 //! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow |
|
3352 //! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow |
|
3353 //! 1.7 New and construct a foreground RWindow as the child of the background RWindow |
|
3354 //! and SetRequiredDisplayMode (to EColor4K) |
|
3355 //! 1.8 SetAutoFlush to TRUE for the RWsSession |
|
3356 //! 2. Use SetBackgroundColor to set the background color of the foreground RWindow to green TRgb(0,0,255) |
|
3357 //! and SetExtentErr to set the foreground RWindow to (10,10) with height=30, width=30 |
|
3358 //! 3. Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the foreground RWindow |
|
3359 //! 4. check both the foreground and background RWindow are displayed correctly |
|
3360 //! 5. Execute FadeBehind() to set the faded flag of the foreground RWindow to TRUE |
|
3361 //! 6. check the foreground RWindow is still displayed the same, but the background RWindow is displayed with faded |
|
3362 //! 7. Destruct and close all objects used |
|
3363 //! @SYMTestStatus Implemented |
|
3364 //! @SYMTestPriority High |
|
3365 //! @SYMTestExpectedResults 1. FadeBehind() method called without causing panic |
|
3366 //! 2. Check the drawing result: the whole foreground RWindow |
|
3367 //! and parts of background RWindow: TRect((0,0),(50,10)), ((0,40),(50,50)), ((0,10),(10,40)), ((40,10),(50,40)) |
|
3368 //! 2.1 before set FadeBehind to TRUE for the foreground RWindow |
|
3369 //! the foreground RWindow is drawn with TRgb(0,0,255) and background RWindow is drawn with TRgb(255,255,0) |
|
3370 //! 2.2 before set FadeBehind to TRUE for the foreground RWindow |
|
3371 //! the foreground RWindow is still TRgb(0,0,255) but background RWindow is faded and drawn with TRgb(255,255,136) |
|
3372 //! @SYMTestType CIT |
|
3373 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3374 CREATE_OBJECT RWsSession ws |
|
3375 CREATE_OBJECT CWsScreenDevice scrdev |
|
3376 CREATE_OBJECT CWindowGc wingc |
|
3377 CREATE_OBJECT RWindowGroup wingrp |
|
3378 CREATE_OBJECT RWindow backwin |
|
3379 CREATE_OBJECT RWindow win |
|
3380 COMMAND ws new |
|
3381 COMMAND ws Connect |
|
3382 COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 |
|
3383 COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 |
|
3384 COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 |
|
3385 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 |
|
3386 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 |
|
3387 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 |
|
3388 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 |
|
3389 COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 |
|
3390 COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 |
|
3391 COMMAND backwin Activate |
|
3392 COMMAND backwin BeginRedraw |
|
3393 COMMAND backwin EndRedraw |
|
3394 COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 |
|
3395 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command024 |
|
3396 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 |
|
3397 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 |
|
3398 |
|
3399 COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0234-0001-SetBackgroundColor_command01 |
|
3400 COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-0234-0001-SetExtentErr_command02 |
|
3401 COMMAND win Activate |
|
3402 COMMAND win BeginRedraw |
|
3403 COMMAND win EndRedraw |
|
3404 COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0234-0001-checkRectColor_command03 |
|
3405 COMMAND win FadeBehind GRAPHICS-WSERV-Window-PublicApi-0000-0001-FadeBehind_TRUE |
|
3406 |
|
3407 COMMAND win Close |
|
3408 COMMAND backwin Close |
|
3409 COMMAND wingrp Close |
|
3410 COMMAND wingc ~ |
|
3411 COMMAND scrdev ~ |
|
3412 COMMAND ws Close |
|
3413 END_TEST_BLOCK |
|
3414 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0234 |
|
3415 |
|
3416 |
|
3417 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0235 |
|
3418 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0235 |
|
3419 //! @SYMAPI RWindowBase |
|
3420 //! @SYMAuthor Ryan Lu |
|
3421 //! @SYMCreationDate 18/06/2007 |
|
3422 //! @SYMTestCaseDesc IsFaded(): test whether the current window (test in RWindow) is faded |
|
3423 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::FadeBehind, RWindow::Construct |
|
3424 //! @SYMTestActions 1. Create and construct a foreground and background RWindow to test |
|
3425 //! 1.1 New and connect a RWsSession |
|
3426 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3427 //! 1.3 New and construct a background RWindow as the child of the RWindowGroup |
|
3428 //! 1.4 New and construct a foreground RWindow as the child of the background RWindow |
|
3429 //! 2. Execute IsFaded() to check the default faded flag of both foreground and background RWindow |
|
3430 //! 3. Use FadeBehind() to set the faded flag of the foreground RWindow to TRUE |
|
3431 //! 4. Execute IsFaded() to check the faded flag of both foreground and background RWindow |
|
3432 //! 5. Use FadeBehind() to set the faded flag of the foreground RWindow to FALSE |
|
3433 //! 6. Execute IsFaded() to check the faded flag of both foreground and background RWindow |
|
3434 //! 7. Close all objects used |
|
3435 //! @SYMTestStatus Implemented |
|
3436 //! @SYMTestPriority Low |
|
3437 //! @SYMTestExpectedResults 1. IsFaded() method called without causing panic |
|
3438 //! 2. IsFaded() returns the expected faded flag of the window |
|
3439 //! 2.1 the default faded flag for RWindow is FALSE |
|
3440 //! 2.2 after set FadeBehind to TRUE for the foreground RWindow |
|
3441 //! the background RWindow is TRUE, and the foreground RWindow is still FALSE |
|
3442 //! 2.3 after set FadeBehind to FALSE for the foreground RWindow |
|
3443 //! the background RWindow is changed back to FALSE, and the foreground RWindow is still FALSE |
|
3444 //! @SYMTestType CIT |
|
3445 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3446 CREATE_OBJECT RWsSession ws |
|
3447 CREATE_OBJECT RWindowGroup wingrp |
|
3448 CREATE_OBJECT RWindow backwin |
|
3449 CREATE_OBJECT RWindow win |
|
3450 COMMAND ws new |
|
3451 COMMAND ws Connect |
|
3452 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3453 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3454 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3455 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3456 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command010 |
|
3457 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command011 |
|
3458 |
|
3459 COMMAND backwin IsFaded GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE |
|
3460 COMMAND win IsFaded GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE |
|
3461 COMMAND win FadeBehind GRAPHICS-WSERV-Window-PublicApi-0000-0001-FadeBehind_TRUE |
|
3462 COMMAND backwin IsFaded GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_TRUE |
|
3463 COMMAND win IsFaded GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE |
|
3464 COMMAND win FadeBehind GRAPHICS-WSERV-Window-PublicApi-0000-0001-FadeBehind_FALSE |
|
3465 COMMAND backwin IsFaded GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE |
|
3466 COMMAND win IsFaded GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE |
|
3467 |
|
3468 COMMAND win Close |
|
3469 COMMAND backwin Close |
|
3470 COMMAND wingrp Close |
|
3471 COMMAND ws Close |
|
3472 END_TEST_BLOCK |
|
3473 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0235 |
|
3474 |
|
3475 |
|
3476 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0236 |
|
3477 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0236 |
|
3478 //! @SYMAPI RWindowBase |
|
3479 //! @SYMAuthor Ryan Lu |
|
3480 //! @SYMCreationDate 19/06/2007 |
|
3481 //! @SYMTestCaseDesc IsNonFading(): test whether the current window (test in RWindow) is non-fading |
|
3482 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowTreeNode::SetNonFading, RWindow::Construct |
|
3483 //! @SYMTestActions 1. Create and construct a foreground and background RWindow to test |
|
3484 //! 1.1 New and connect a RWsSession |
|
3485 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3486 //! 1.3 New and construct a background RWindow as the child of the RWindowGroup |
|
3487 //! 1.4 New and construct a foreground RWindow as the child of the background RWindow |
|
3488 //! 2. Execute IsNonFading() to check the default faded flag of both foreground and background RWindow |
|
3489 //! 3. Use SetNonFading() to set the non-fading flag of the foreground RWindow to TRUE |
|
3490 //! 4. Execute IsFaded() to check the faded flag of both foreground and background RWindow |
|
3491 //! 5. Use SetNonFading() to set the non-fading flag of the foreground RWindow to FALSE |
|
3492 //! 6. Execute IsFaded() to check the faded flag of both foreground and background RWindow |
|
3493 //! 7. Close all objects used |
|
3494 //! @SYMTestStatus Implemented |
|
3495 //! @SYMTestPriority Low |
|
3496 //! @SYMTestExpectedResults 1. IsNonFading() method called without causing panic |
|
3497 //! 2. IsNonFading() returns the expected non-fading flag of the window |
|
3498 //! 2.1 the default faded flag for RWindow is FALSE |
|
3499 //! 2.2 after set SetNonFading to TRUE for the foreground RWindow |
|
3500 //! the background RWindow is still FALSE, and the foreground RWindow is TRUE |
|
3501 //! 2.3 after set SetNonFading to FALSE for the foreground RWindow |
|
3502 //! the background RWindow is still FALSE, and the foreground RWindow is changed to FALSE |
|
3503 //! @SYMTestType CIT |
|
3504 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3505 CREATE_OBJECT RWsSession ws |
|
3506 CREATE_OBJECT RWindowGroup wingrp |
|
3507 CREATE_OBJECT RWindow backwin |
|
3508 CREATE_OBJECT RWindow win |
|
3509 COMMAND ws new |
|
3510 COMMAND ws Connect |
|
3511 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3512 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3513 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3514 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3515 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command010 |
|
3516 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command011 |
|
3517 |
|
3518 COMMAND backwin IsNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE |
|
3519 COMMAND win IsNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE |
|
3520 COMMAND win SetNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-SetNonFading_TRUE |
|
3521 COMMAND backwin IsNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE |
|
3522 COMMAND win IsNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_TRUE |
|
3523 COMMAND win SetNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-SetNonFading_FALSE |
|
3524 COMMAND backwin IsNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE |
|
3525 COMMAND win IsNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE |
|
3526 |
|
3527 COMMAND win Close |
|
3528 COMMAND backwin Close |
|
3529 COMMAND wingrp Close |
|
3530 COMMAND ws Close |
|
3531 END_TEST_BLOCK |
|
3532 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0236 |
|
3533 |
|
3534 |
|
3535 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0237 |
|
3536 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0237 |
|
3537 //! @SYMAPI RWindowBase |
|
3538 //! @SYMAuthor Ryan Lu |
|
3539 //! @SYMCreationDate 12/02/2007 |
|
3540 //! @SYMTestCaseDesc MoveToGroup(TInt aIdentifier): move this window (test in RWindow) to another window group |
|
3541 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowTreeNode::Parent |
|
3542 //! @SYMTestActions 1. Create and construct a foreground and background RWindow to test |
|
3543 //! 1.1 New and connect a RWsSession |
|
3544 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3545 //! 1.3 New and construct a background RWindow as the child of the RWindowGroup |
|
3546 //! 1.4 New and construct a foreground RWindow as the child of the background RWindow |
|
3547 //! 2. Construct a new RWindowGroup as the destination window group to move |
|
3548 //! 3. Use RWindowTreeNode::Parent to check if the parent node of the top-level RWindow is the old window group |
|
3549 //! 4. Execute MoveToGroup() to move top-level RWindow to the new RWindowGroup |
|
3550 //! 5. Use RWindowTreeNode::Parent() to check the parent node of the top-level RWindow is changed to the new window group |
|
3551 //! 6. Close all objects used |
|
3552 //! @SYMTestStatus Implemented |
|
3553 //! @SYMTestPriority Medium |
|
3554 //! @SYMTestExpectedResults 1. MoveToGroup() method returns KErrNone without causing panic |
|
3555 //! 1.1 before MoveToGroup, the parent node of the top-level RWindow is the old window group (id 1) |
|
3556 //! 1.2 after MoveToGroup, the parent node of the top-level RWindow is the new window group (id 100) |
|
3557 //! @SYMTestType CIT |
|
3558 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3559 CREATE_OBJECT RWsSession ws |
|
3560 CREATE_OBJECT RWindowGroup wingrp |
|
3561 CREATE_OBJECT RWindow backwin |
|
3562 CREATE_OBJECT RWindow win |
|
3563 COMMAND ws new |
|
3564 COMMAND ws Connect |
|
3565 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3566 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3567 COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3568 COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3569 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command010 |
|
3570 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command011 |
|
3571 |
|
3572 CREATE_OBJECT RWindowGroup wingrp1 |
|
3573 COMMAND wingrp1 new GRAPHICS-WSERV-Window-PublicApi-0237-0001-new_command01 |
|
3574 COMMAND wingrp1 Construct GRAPHICS-WSERV-Window-PublicApi-0237-0001-Construct_command02 |
|
3575 COMMAND backwin Parent GRAPHICS-WSERV-Window-PublicApi-0237-0001-Parent_command04 |
|
3576 COMMAND backwin MoveToGroup GRAPHICS-WSERV-Window-PublicApi-0237-0001-MoveToGroup_command05 |
|
3577 COMMAND backwin Parent GRAPHICS-WSERV-Window-PublicApi-0237-0001-Parent_command06 |
|
3578 |
|
3579 COMMAND win Close |
|
3580 COMMAND backwin Close |
|
3581 COMMAND wingrp Close |
|
3582 COMMAND wingrp1 Close |
|
3583 COMMAND ws Close |
|
3584 END_TEST_BLOCK |
|
3585 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0237 |
|
3586 |
|
3587 |
|
3588 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0238 |
|
3589 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0238 |
|
3590 //! @SYMAPI RWindowBase |
|
3591 //! @SYMAuthor Ryan Lu |
|
3592 //! @SYMCreationDate 27/06/2007 |
|
3593 //! @SYMTestCaseDesc PointerFilter(TUint32 aFilterMask, TUint32 aFilter): retrieve events from the pointer move buffer (test in RWindow) |
|
3594 //! Uses API elements: RWsSession::Connect & EventReady & GetEvent & Flush & SimulateRawEvent, RWindowGroup::Construct, RWindow::Construct & Activate & PointerFilter & TWsEvent::Type & Handle |
|
3595 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
3596 //! 1.1 New and connect a RWsSession |
|
3597 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3598 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
3599 //! 1.4 use Activate() RWindow to display and enable to receive events |
|
3600 //! 2. Use EventReady() & GetEvent() to wait and get TWsEvent, and check its type=EEventFocusGained and to RWindowGroup (handle=1) |
|
3601 //! 3. Use PointerFilter() to make RWindow not filter out EPointerMoveEvents|EPointerFilterDrag|EPointerFilterEnterExit |
|
3602 //! 4. Use SimulateRawEvent() to send a EButton1Down event (within RWindow area) |
|
3603 //! 5. Use EventReady() & GetEvent() to wait and get TWsEvent, and check its type=EEventPointerEnter and to RWindow (handle=2) |
|
3604 //! 6. Use EventReady() & GetEvent() to wait and get TWsEvent, and check its type=EEventPointer and to RWindow (handle=2) |
|
3605 //! 7. Use SimulateRawEvent() to send a EButton1Up event (within RWindow area) |
|
3606 //! 9. Use EventReady() & GetEvent() to wait and get TWsEvent, and check its type=EEventPointer and to RWindow (handle=2) |
|
3607 //! 10. Close all objects used |
|
3608 //! @SYMTestStatus Implemented |
|
3609 //! @SYMTestPriority Medium |
|
3610 //! @SYMTestExpectedResults All events as expected |
|
3611 //! @SYMTestType CIT |
|
3612 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3613 CREATE_OBJECT RWsSession ws |
|
3614 CREATE_OBJECT TWsEvent we |
|
3615 CREATE_OBJECT RWindowGroup wingrp |
|
3616 CREATE_OBJECT RWindow win |
|
3617 COMMAND ws new |
|
3618 COMMAND ws Connect |
|
3619 COMMAND we new |
|
3620 |
|
3621 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3622 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3623 |
|
3624 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3625 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3626 COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-0238-0001-SetExtentErr_command01 |
|
3627 COMMAND win Activate |
|
3628 COMMAND ws Flush |
|
3629 COMMAND ws EventReady |
|
3630 OUTSTANDING |
|
3631 COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0238-0001-GetEvent_command03 |
|
3632 COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0238-0001-Type_command04 |
|
3633 COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0238-0001-Handle_command05 |
|
3634 |
|
3635 COMMAND ws PurgePointerEvents |
|
3636 COMMAND ws Flush |
|
3637 COMMAND win PointerFilter GRAPHICS-WSERV-Window-PublicApi-0238-0001-PointerFilter_command01 |
|
3638 COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0238-0001-SimulateRawEvent_command02 |
|
3639 COMMAND ws Flush |
|
3640 COMMAND ws EventReady |
|
3641 OUTSTANDING |
|
3642 COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0238-0001-GetEvent_command03 |
|
3643 COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0238-0001-Type_command06 |
|
3644 COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0238-0001-Handle_command07 |
|
3645 COMMAND ws EventReady |
|
3646 OUTSTANDING |
|
3647 COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0238-0001-GetEvent_command03 |
|
3648 COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0238-0001-Type_command08 |
|
3649 COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0238-0001-Handle_command07 |
|
3650 |
|
3651 COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0238-0001-SimulateRawEvent_command03 |
|
3652 COMMAND ws Flush |
|
3653 COMMAND ws EventReady |
|
3654 OUTSTANDING |
|
3655 COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0238-0001-GetEvent_command03 |
|
3656 COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0238-0001-Type_command08 |
|
3657 COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0238-0001-Handle_command07 |
|
3658 |
|
3659 COMMAND win Close |
|
3660 COMMAND wingrp Close |
|
3661 COMMAND ws Close |
|
3662 END_TEST_BLOCK |
|
3663 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0238 |
|
3664 |
|
3665 |
|
3666 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0239 |
|
3667 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0239 |
|
3668 //! @SYMAPI RWindowBase |
|
3669 //! @SYMAuthor Ryan Lu |
|
3670 //! @SYMCreationDate 27/06/2007 |
|
3671 //! @SYMTestCaseDesc RetrievePointerMoveBuffer(TDes8 &aBuf): retrieve events from the pointer move buffer (test in RWindow) |
|
3672 //! Uses API elements: RWsSession::Connect & EventReady & GetEvent & Flush & SimulateRawEvent, RWindowGroup::Construct, RWindow::Construct & Activate & PointerFilter & AllocPointerMoveBuffer & EnablePointerMoveBuffer & DisablePointerMoveBuffer & FreePointerMoveBuffer, TWsEvent::Type & Handle |
|
3673 //! @SYMTestActions 1. Setup a simple RWindow to test |
|
3674 //! 1.1 New and connect a RWsSession |
|
3675 //! 1.2 New and construct a RWindowGroup within the RWsSession |
|
3676 //! 1.3 New and construct a RWindow as the child of the RWindowGroup |
|
3677 //! 1.4 use Activate() RWindow to display and enable to receive events |
|
3678 //! 2. Use EventReady() & GetEvent() to wait and get TWsEvent, and check its type=EEventFocusGained and to RWindowGroup (handle=1) |
|
3679 //! 3. Use PointerFilter() to make RWindow not filter out EPointerMoveEvents|EPointerFilterDrag|EPointerFilterEnterExit |
|
3680 //! 4. Use AllocPointerMoveBuffer() to allicate a 5 points buffer and EnablePointerMoveBuffer() |
|
3681 //! 5. Use SimulateRawEvent() to send 3 EPointerMove events |
|
3682 //! 6. Use EventReady() & GetEvent() to wait and get TWsEvent, and check its type=EEventPointerBufferReady and to RWindow (handle=2) |
|
3683 //! 7. Execute RetrievePointerMoveBuffer() to retrieve events from the pointer move buffer (with 5 points buffer) |
|
3684 //! and check if it retrieved the same as the 3 EPointerMove events |
|
3685 //! 8. Use DisablePointerMoveBuffer() and FreePointerMoveBuffer to disable and free the pointer move buffer |
|
3686 //! 9. Close all objects used |
|
3687 //! @SYMTestStatus Implemented |
|
3688 //! @SYMTestPriority Medium |
|
3689 //! @SYMTestExpectedResults RetrievePointerMoveBuffer returns KErrNone without causing panic, and retrive the points as expected |
|
3690 //! @SYMTestType CIT |
|
3691 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3692 CREATE_OBJECT RWsSession ws |
|
3693 CREATE_OBJECT TWsEvent we |
|
3694 CREATE_OBJECT RWindowGroup wingrp |
|
3695 CREATE_OBJECT RWindow win |
|
3696 COMMAND ws new |
|
3697 COMMAND ws Connect |
|
3698 COMMAND we new |
|
3699 |
|
3700 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3701 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3702 |
|
3703 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3704 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3705 COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-0239-0001-SetExtentErr_command01 |
|
3706 COMMAND win Activate |
|
3707 COMMAND ws Flush |
|
3708 COMMAND ws EventReady |
|
3709 OUTSTANDING |
|
3710 COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-GetEvent_command03 |
|
3711 COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0239-0001-Type_command04 |
|
3712 COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0239-0001-Handle_command05 |
|
3713 |
|
3714 COMMAND ws PurgePointerEvents |
|
3715 COMMAND win PointerFilter GRAPHICS-WSERV-Window-PublicApi-0239-0001-PointerFilter_command07 |
|
3716 COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-0239-0001-AllocPointerMoveBuffer_command09 |
|
3717 COMMAND win EnablePointerMoveBuffer |
|
3718 COMMAND win DiscardPointerMoveBuffer |
|
3719 COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command10 |
|
3720 COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command11 |
|
3721 COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command12 |
|
3722 COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command13 |
|
3723 COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command14 |
|
3724 COMMAND ws EventReady |
|
3725 OUTSTANDING |
|
3726 COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-GetEvent_command03 |
|
3727 COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0239-0001-Type_command15 |
|
3728 COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0239-0001-Handle_command06 |
|
3729 COMMAND ws EventReady |
|
3730 OUTSTANDING |
|
3731 COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-GetEvent_command03 |
|
3732 COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0239-0001-Type_command16 |
|
3733 COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0239-0001-Handle_command06 |
|
3734 |
|
3735 COMMAND ws EventReady |
|
3736 OUTSTANDING |
|
3737 COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-GetEvent_command03 |
|
3738 COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0239-0001-Type_command17 |
|
3739 COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0239-0001-Handle_command06 |
|
3740 COMMAND win RetrievePointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-0239-0001-RetrievePointerMoveBuffer_command18 |
|
3741 COMMAND win DisablePointerMoveBuffer |
|
3742 COMMAND win FreePointerMoveBuffer |
|
3743 |
|
3744 COMMAND win Close |
|
3745 COMMAND wingrp Close |
|
3746 COMMAND ws Close |
|
3747 END_TEST_BLOCK |
|
3748 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0239 |
|
3749 |
|
3750 |
|
3751 |
|
3752 |
|
3753 |
|
3754 |
|
3755 // **************************************************************************** |
|
3756 // RWindow Public APIs implemented for MWsClientClass |
|
3757 // **************************************************************************** |
|
3758 |
|
3759 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0401 |
|
3760 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0401 |
|
3761 //! @SYMAPI MWsClientClass |
|
3762 //! @SYMAuthor Ryan Lu |
|
3763 //! @SYMCreationDate 18/12/2006 |
|
3764 //! @SYMTestCaseDesc WsHandle: get the server side handle (test in RWindow) |
|
3765 //! Uses API elements: MWsClientClass::WsHandle, RWsSession::new & Connect & Close, RWindowGroup::new & Construct & Close, RWindow::new & Construct & Close |
|
3766 //! @SYMTestActions 1. Create and connect a RWsSession object |
|
3767 //! 2. Create and construct a RWindowGroup within the RWsSession |
|
3768 //! 3. Create a RWindow as the child of the RWindowGroup |
|
3769 //! 4. Execute WsHandle to get RWindow server side handle and check if it's zero before construction |
|
3770 //! 5. Construct the RWindow object |
|
3771 //! 6. Execute WsHandle to get RWindow server side handle and check if it's non-zero after construction |
|
3772 //! 7. Close the RWindow object |
|
3773 //! 8. Execute WsHandle to get RWindow server side handle and check if it's zero again after close |
|
3774 //! @SYMTestStatus Implemented |
|
3775 //! @SYMTestPriority Medium |
|
3776 //! @SYMTestExpectedResults Get the server side handle of RWindow without causing panic |
|
3777 //! and its value is zero before construction, non-zero after construction, back to zero after close |
|
3778 //! @SYMTestType CIT |
|
3779 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3780 CREATE_OBJECT RWsSession ws |
|
3781 CREATE_OBJECT RWindowGroup wingrp |
|
3782 CREATE_OBJECT RWindow win |
|
3783 COMMAND ws new |
|
3784 COMMAND ws Connect |
|
3785 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
3786 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
3787 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
3788 COMMAND win WsHandle GRAPHICS-WSERV-Window-PublicApi-0401-0001-WsHandle_expected0 |
|
3789 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
3790 COMMAND win WsHandle GRAPHICS-WSERV-Window-PublicApi-0401-0001-WsHandle_expectnot0 |
|
3791 COMMAND win Close |
|
3792 COMMAND win WsHandle GRAPHICS-WSERV-Window-PublicApi-0401-0001-WsHandle_expected0 |
|
3793 COMMAND wingrp Close |
|
3794 COMMAND ws Close |
|
3795 END_TEST_BLOCK |
|
3796 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0401 |
|
3797 |
|
3798 |
|
3799 |
|
3800 |
|
3801 |
|
3802 |
|
3803 |
|
3804 // **************************************************************************** |
|
3805 // RWindow Public APIs inherited from RWindowTreeNode |
|
3806 // **************************************************************************** |
|
3807 //----------------------------------------------------------------- |
|
3808 // RWindowGroup wingrp_100 |
|
3809 // +- RBlankWindow bnkwin_110 |
|
3810 // | +- RBlankWindow bnkwin_111 |
|
3811 // | +- RWindow win_112 |
|
3812 // +- RWindow win_120 |
|
3813 // +- RWindow win_121 |
|
3814 // +- RWindow win_122 |
|
3815 // +- RBankWindow bnkwin_123 |
|
3816 // |
|
3817 |
|
3818 |
|
3819 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3001 |
|
3820 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3001 |
|
3821 //! @SYMAPI RWindowTreeNode |
|
3822 //! @SYMAuthor Shirly Kuo |
|
3823 //! @SYMCreationDate 19/12/2006 |
|
3824 //! @SYMTestCaseDesc Close(): close the node |
|
3825 //! Uses API elements: RWsSession::Connect, RWindowGroup, RBlankWindow, RWindow::Construct |
|
3826 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
3827 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
3828 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
3829 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
3830 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
3831 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
3832 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
3833 //! 8. Closes all window nodes by using Close() and return KErrNone if successed. |
|
3834 //! 9. Close the window session by using Close() and return KErrNone if successed. |
|
3835 //! @SYMTestStatus Implemented |
|
3836 //! @SYMTestPriority Low |
|
3837 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are closed without causing panic |
|
3838 //! @SYMTestType CIT |
|
3839 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3840 CREATE_OBJECT RWsSession ws |
|
3841 CREATE_OBJECT RWindowGroup wingrp_100 |
|
3842 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
3843 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
3844 CREATE_OBJECT RWindow win_112 |
|
3845 CREATE_OBJECT RWindow win_120 |
|
3846 CREATE_OBJECT RWindow win_121 |
|
3847 CREATE_OBJECT RWindow win_122 |
|
3848 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
3849 COMMAND ws new |
|
3850 COMMAND ws Connect |
|
3851 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
3852 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
3853 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
3854 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
3855 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
3856 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
3857 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
3858 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
3859 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
3860 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
3861 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
3862 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
3863 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
3864 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
3865 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
3866 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
3867 |
|
3868 COMMAND bnkwin_123 Close |
|
3869 COMMAND win_122 Close |
|
3870 COMMAND win_121 Close |
|
3871 COMMAND win_120 Close |
|
3872 COMMAND win_112 Close |
|
3873 COMMAND bnkwin_111 Close |
|
3874 COMMAND bnkwin_110 Close |
|
3875 COMMAND wingrp_100 Close |
|
3876 COMMAND ws Close |
|
3877 END_TEST_BLOCK |
|
3878 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3001 |
|
3879 |
|
3880 |
|
3881 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3002 |
|
3882 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3002 |
|
3883 //! @SYMAPI RWindowTreeNode |
|
3884 //! @SYMAuthor Shirly Kuo |
|
3885 //! @SYMCreationDate 19/12/2006 |
|
3886 //! @SYMTestCaseDesc Destroy(): Closes and deletes the node. |
|
3887 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close |
|
3888 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
3889 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
3890 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
3891 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
3892 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
3893 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
3894 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
3895 //! 8. Destroy all window nodes by using Destroy() and return KErrNone if successed. |
|
3896 //! 9. Close the window session by using Close() and return KErrNone if successed. |
|
3897 //! @SYMTestStatus Implemented |
|
3898 //! @SYMTestPriority Low |
|
3899 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are destoried without causing panic |
|
3900 //! @SYMTestType CIT |
|
3901 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3902 CREATE_OBJECT RWsSession ws |
|
3903 CREATE_OBJECT RWindowGroup wingrp_100 |
|
3904 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
3905 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
3906 CREATE_OBJECT RWindow win_112 |
|
3907 CREATE_OBJECT RWindow win_120 |
|
3908 CREATE_OBJECT RWindow win_121 |
|
3909 CREATE_OBJECT RWindow win_122 |
|
3910 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
3911 COMMAND ws new |
|
3912 COMMAND ws Connect |
|
3913 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
3914 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
3915 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
3916 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
3917 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
3918 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
3919 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
3920 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
3921 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
3922 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
3923 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
3924 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
3925 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
3926 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
3927 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
3928 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
3929 |
|
3930 COMMAND bnkwin_123 Destroy |
|
3931 COMMAND bnkwin_123 ~ |
|
3932 COMMAND win_122 Destroy |
|
3933 COMMAND win_122 ~ |
|
3934 COMMAND win_121 Destroy |
|
3935 COMMAND win_121 ~ |
|
3936 COMMAND win_120 Destroy |
|
3937 COMMAND win_120 ~ |
|
3938 COMMAND win_112 Destroy |
|
3939 COMMAND win_112 ~ |
|
3940 COMMAND bnkwin_111 Destroy |
|
3941 COMMAND bnkwin_111 ~ |
|
3942 COMMAND bnkwin_110 Destroy |
|
3943 COMMAND bnkwin_110 ~ |
|
3944 COMMAND wingrp_100 Destroy |
|
3945 COMMAND wingrp_100 ~ |
|
3946 COMMAND ws Close |
|
3947 END_TEST_BLOCK |
|
3948 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3002 |
|
3949 |
|
3950 |
|
3951 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3003 |
|
3952 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3003 |
|
3953 //! @SYMAPI RWindowTreeNode |
|
3954 //! @SYMAuthor Shirly Kuo |
|
3955 //! @SYMCreationDate 20/12/2006 |
|
3956 //! @SYMTestCaseDesc Parent(): get the client handle id of the node's parent |
|
3957 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, Parent |
|
3958 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
3959 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
3960 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
3961 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
3962 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
3963 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
3964 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
3965 //! 8. Get the client handle id of the node's parent by using Parent() and return handle ID for the parent, or zero for window groups if successed. |
|
3966 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
3967 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
3968 //! @SYMTestStatus Implemented |
|
3969 //! @SYMTestPriority Low |
|
3970 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with handle ID for the parent, or zero for window groups without causing panic |
|
3971 //! @SYMTestType CIT |
|
3972 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
3973 CREATE_OBJECT RWsSession ws |
|
3974 CREATE_OBJECT RWindowGroup wingrp_100 |
|
3975 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
3976 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
3977 CREATE_OBJECT RWindow win_112 |
|
3978 CREATE_OBJECT RWindow win_120 |
|
3979 CREATE_OBJECT RWindow win_121 |
|
3980 CREATE_OBJECT RWindow win_122 |
|
3981 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
3982 COMMAND ws new |
|
3983 COMMAND ws Connect |
|
3984 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
3985 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
3986 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
3987 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
3988 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
3989 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
3990 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
3991 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
3992 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
3993 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
3994 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
3995 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
3996 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
3997 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
3998 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
3999 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4000 |
|
4001 COMMAND bnkwin_123 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command002 |
|
4002 COMMAND win_122 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command004 |
|
4003 COMMAND win_121 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command006 |
|
4004 COMMAND win_120 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command008 |
|
4005 COMMAND win_112 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command010 |
|
4006 COMMAND bnkwin_111 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command012 |
|
4007 COMMAND bnkwin_110 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command014 |
|
4008 COMMAND wingrp_100 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command016 |
|
4009 |
|
4010 COMMAND bnkwin_123 Close |
|
4011 COMMAND win_122 Close |
|
4012 COMMAND win_121 Close |
|
4013 COMMAND win_120 Close |
|
4014 COMMAND win_112 Close |
|
4015 COMMAND bnkwin_111 Close |
|
4016 COMMAND bnkwin_110 Close |
|
4017 COMMAND wingrp_100 Close |
|
4018 COMMAND ws Close |
|
4019 END_TEST_BLOCK |
|
4020 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3003 |
|
4021 |
|
4022 |
|
4023 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3004 |
|
4024 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3004 |
|
4025 //! @SYMAPI RWindowTreeNode |
|
4026 //! @SYMAuthor Shirly Kuo |
|
4027 //! @SYMCreationDate 20/12/2006 |
|
4028 //! @SYMTestCaseDesc PrevSibling(): get the client handle id of the previous node in the sibling list |
|
4029 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, PrevSibling |
|
4030 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4031 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4032 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4033 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4034 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4035 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4036 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4037 //! 8. Get the client handle id of previous node in the sibling list by using PrevSibling() and return handle ID for the previous sibling, or zero if no previous sibling exists if successed. |
|
4038 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
4039 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
4040 //! @SYMTestStatus Implemented |
|
4041 //! @SYMTestPriority Low |
|
4042 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with handle ID for the previous sibling, or zero if no previous sibling exists without causing panic |
|
4043 //! @SYMTestType CIT |
|
4044 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4045 CREATE_OBJECT RWsSession ws |
|
4046 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4047 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4048 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4049 CREATE_OBJECT RWindow win_112 |
|
4050 CREATE_OBJECT RWindow win_120 |
|
4051 CREATE_OBJECT RWindow win_121 |
|
4052 CREATE_OBJECT RWindow win_122 |
|
4053 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4054 COMMAND ws new |
|
4055 COMMAND ws Connect |
|
4056 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4057 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4058 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4059 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4060 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4061 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4062 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4063 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4064 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4065 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4066 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4067 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4068 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4069 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4070 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4071 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4072 |
|
4073 COMMAND bnkwin_123 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command002 |
|
4074 COMMAND win_122 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command004 |
|
4075 COMMAND win_121 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command006 |
|
4076 COMMAND win_120 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command008 |
|
4077 COMMAND win_112 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command010 |
|
4078 COMMAND bnkwin_111 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command012 |
|
4079 COMMAND bnkwin_110 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command014 |
|
4080 COMMAND wingrp_100 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command016 |
|
4081 |
|
4082 COMMAND bnkwin_123 Close |
|
4083 COMMAND win_122 Close |
|
4084 COMMAND win_121 Close |
|
4085 COMMAND win_120 Close |
|
4086 COMMAND win_112 Close |
|
4087 COMMAND bnkwin_111 Close |
|
4088 COMMAND bnkwin_110 Close |
|
4089 COMMAND wingrp_100 Close |
|
4090 COMMAND ws Close |
|
4091 END_TEST_BLOCK |
|
4092 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3004 |
|
4093 |
|
4094 |
|
4095 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3005 |
|
4096 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3005 |
|
4097 //! @SYMAPI RWindowTreeNode |
|
4098 //! @SYMAuthor Shirly Kuo |
|
4099 //! @SYMCreationDate 20/12/2006 |
|
4100 //! @SYMTestCaseDesc NextSibling(): get the client handle id of the next node in the sibling list |
|
4101 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, NextSibling |
|
4102 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4103 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4104 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4105 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4106 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4107 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4108 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4109 //! 8. Get the client handle id of the next node in the sibling list by using NextSibling() and return window handle of next sibling, or 0 if no next sibling exists if successed. |
|
4110 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
4111 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
4112 //! @SYMTestStatus Implemented |
|
4113 //! @SYMTestPriority Low |
|
4114 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with window handle of next sibling, or 0 if no next sibling exists without causing panic |
|
4115 //! @SYMTestType CIT |
|
4116 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4117 CREATE_OBJECT RWsSession ws |
|
4118 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4119 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4120 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4121 CREATE_OBJECT RWindow win_112 |
|
4122 CREATE_OBJECT RWindow win_120 |
|
4123 CREATE_OBJECT RWindow win_121 |
|
4124 CREATE_OBJECT RWindow win_122 |
|
4125 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4126 COMMAND ws new |
|
4127 COMMAND ws Connect |
|
4128 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4129 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4130 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4131 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4132 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4133 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4134 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4135 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4136 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4137 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4138 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4139 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4140 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4141 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4142 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4143 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4144 |
|
4145 COMMAND bnkwin_123 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command002 |
|
4146 COMMAND win_122 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command004 |
|
4147 COMMAND win_121 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command006 |
|
4148 COMMAND win_120 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command008 |
|
4149 COMMAND win_112 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command010 |
|
4150 COMMAND bnkwin_111 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command012 |
|
4151 COMMAND bnkwin_110 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command014 |
|
4152 COMMAND wingrp_100 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command016 |
|
4153 |
|
4154 COMMAND bnkwin_123 Close |
|
4155 COMMAND win_122 Close |
|
4156 COMMAND win_121 Close |
|
4157 COMMAND win_120 Close |
|
4158 COMMAND win_112 Close |
|
4159 COMMAND bnkwin_111 Close |
|
4160 COMMAND bnkwin_110 Close |
|
4161 COMMAND wingrp_100 Close |
|
4162 COMMAND ws Close |
|
4163 END_TEST_BLOCK |
|
4164 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3005 |
|
4165 |
|
4166 |
|
4167 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3006 |
|
4168 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3006 |
|
4169 //! @SYMAPI RWindowTreeNode |
|
4170 //! @SYMAuthor Shirly Kuo |
|
4171 //! @SYMCreationDate 20/12/2006 |
|
4172 //! @SYMTestCaseDesc Child(): get the client handle id of the nodes' first child |
|
4173 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, Child |
|
4174 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4175 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4176 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4177 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4178 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4179 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4180 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4181 //! 8. Get the client handle id of the nodes' first child by using Child() and return the client handle of the child node that currently has ordinal position 0. This is 0 if there isn't a child if successed. |
|
4182 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
4183 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
4184 //! @SYMTestStatus Implemented |
|
4185 //! @SYMTestPriority Low |
|
4186 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the client handle of the child node that currently has ordinal position 0. This is 0 if there isn't a child without causing panic |
|
4187 //! @SYMTestType CIT |
|
4188 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4189 CREATE_OBJECT RWsSession ws |
|
4190 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4191 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4192 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4193 CREATE_OBJECT RWindow win_112 |
|
4194 CREATE_OBJECT RWindow win_120 |
|
4195 CREATE_OBJECT RWindow win_121 |
|
4196 CREATE_OBJECT RWindow win_122 |
|
4197 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4198 COMMAND ws new |
|
4199 COMMAND ws Connect |
|
4200 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4201 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4202 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4203 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4204 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4205 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4206 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4207 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4208 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4209 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4210 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4211 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4212 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4213 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4214 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4215 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4216 |
|
4217 COMMAND bnkwin_123 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command002 |
|
4218 COMMAND win_122 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command004 |
|
4219 COMMAND win_121 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command006 |
|
4220 COMMAND win_120 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command008 |
|
4221 COMMAND win_112 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command010 |
|
4222 COMMAND bnkwin_111 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command012 |
|
4223 COMMAND bnkwin_110 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command014 |
|
4224 COMMAND wingrp_100 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command016 |
|
4225 |
|
4226 COMMAND bnkwin_123 Close |
|
4227 COMMAND win_122 Close |
|
4228 COMMAND win_121 Close |
|
4229 COMMAND win_120 Close |
|
4230 COMMAND win_112 Close |
|
4231 COMMAND bnkwin_111 Close |
|
4232 COMMAND bnkwin_110 Close |
|
4233 COMMAND wingrp_100 Close |
|
4234 COMMAND ws Close |
|
4235 END_TEST_BLOCK |
|
4236 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3006 |
|
4237 |
|
4238 |
|
4239 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3007 |
|
4240 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3007 |
|
4241 //! @SYMAPI RWindowTreeNode |
|
4242 //! @SYMAuthor Shirly Kuo |
|
4243 //! @SYMCreationDate 20/12/2006 |
|
4244 //! @SYMTestCaseDesc OrdinalPriority(): Gets the ordinal priority of the specified window. |
|
4245 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, OrdinalPriority |
|
4246 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4247 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4248 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4249 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4250 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4251 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4252 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4253 //! 8. Get the ordinal priority of the specified window by using OrdinalPriority() and return the ordinal priority of the specified window if successed. |
|
4254 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
4255 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
4256 //! @SYMTestStatus Implemented |
|
4257 //! @SYMTestPriority Low |
|
4258 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the ordinal priority of the specified window without causing panic |
|
4259 //! @SYMTestType CIT |
|
4260 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4261 CREATE_OBJECT RWsSession ws |
|
4262 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4263 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4264 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4265 CREATE_OBJECT RWindow win_112 |
|
4266 CREATE_OBJECT RWindow win_120 |
|
4267 CREATE_OBJECT RWindow win_121 |
|
4268 CREATE_OBJECT RWindow win_122 |
|
4269 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4270 COMMAND ws new |
|
4271 COMMAND ws Connect |
|
4272 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4273 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4274 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4275 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4276 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4277 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4278 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4279 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4280 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4281 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4282 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4283 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4284 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4285 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4286 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4287 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4288 |
|
4289 COMMAND bnkwin_123 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command002 |
|
4290 COMMAND win_122 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command004 |
|
4291 COMMAND win_121 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command006 |
|
4292 COMMAND win_120 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command008 |
|
4293 COMMAND win_112 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command010 |
|
4294 COMMAND bnkwin_111 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command012 |
|
4295 COMMAND bnkwin_110 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command014 |
|
4296 COMMAND wingrp_100 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command016 |
|
4297 |
|
4298 COMMAND bnkwin_123 Close |
|
4299 COMMAND win_122 Close |
|
4300 COMMAND win_121 Close |
|
4301 COMMAND win_120 Close |
|
4302 COMMAND win_112 Close |
|
4303 COMMAND bnkwin_111 Close |
|
4304 COMMAND bnkwin_110 Close |
|
4305 COMMAND wingrp_100 Close |
|
4306 COMMAND ws Close |
|
4307 END_TEST_BLOCK |
|
4308 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3007 |
|
4309 |
|
4310 |
|
4311 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3008 |
|
4312 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3008 |
|
4313 //! @SYMAPI RWindowTreeNode |
|
4314 //! @SYMAuthor Shirly Kuo |
|
4315 //! @SYMCreationDate 20/12/2006 |
|
4316 //! @SYMTestCaseDesc OrdinalPosition(): Gets the current ordinal position of the window tree node. |
|
4317 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, OrdinalPosition |
|
4318 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4319 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4320 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4321 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4322 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4323 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4324 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4325 //! 8. Get the current ordinal position of the window tree node by using OrdinalPosition() and return the window's ordinal position if successed. |
|
4326 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
4327 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
4328 //! @SYMTestStatus Implemented |
|
4329 //! @SYMTestPriority Low |
|
4330 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window's ordinal position without causing panic |
|
4331 //! @SYMTestType CIT |
|
4332 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4333 CREATE_OBJECT RWsSession ws |
|
4334 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4335 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4336 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4337 CREATE_OBJECT RWindow win_112 |
|
4338 CREATE_OBJECT RWindow win_120 |
|
4339 CREATE_OBJECT RWindow win_121 |
|
4340 CREATE_OBJECT RWindow win_122 |
|
4341 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4342 COMMAND ws new |
|
4343 COMMAND ws Connect |
|
4344 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4345 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4346 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4347 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4348 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4349 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4350 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4351 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4352 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4353 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4354 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4355 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4356 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4357 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4358 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4359 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4360 |
|
4361 COMMAND bnkwin_123 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command002 |
|
4362 COMMAND win_122 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command004 |
|
4363 COMMAND win_121 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command006 |
|
4364 COMMAND win_120 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command008 |
|
4365 COMMAND win_112 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command010 |
|
4366 COMMAND bnkwin_111 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command012 |
|
4367 COMMAND bnkwin_110 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command014 |
|
4368 COMMAND wingrp_100 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command016 |
|
4369 |
|
4370 COMMAND bnkwin_123 Close |
|
4371 COMMAND win_122 Close |
|
4372 COMMAND win_121 Close |
|
4373 COMMAND win_120 Close |
|
4374 COMMAND win_112 Close |
|
4375 COMMAND bnkwin_111 Close |
|
4376 COMMAND bnkwin_110 Close |
|
4377 COMMAND wingrp_100 Close |
|
4378 COMMAND ws Close |
|
4379 END_TEST_BLOCK |
|
4380 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3008 |
|
4381 |
|
4382 |
|
4383 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3009 |
|
4384 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3009 |
|
4385 //! @SYMAPI RWindowTreeNode |
|
4386 //! @SYMAuthor Shirly Kuo |
|
4387 //! @SYMCreationDate 20/12/2006 |
|
4388 //! @SYMTestCaseDesc FullOrdinalPosition(): Get the current full ordinal position of a window. |
|
4389 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, FullOrdinalPosition |
|
4390 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4391 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4392 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4393 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4394 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4395 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4396 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4397 //! 8. Get the current full ordinal position of a window by using FullOrdinalPosition() and return the window's full ordinal position if successed. |
|
4398 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
4399 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
4400 //! @SYMTestStatus Implemented |
|
4401 //! @SYMTestPriority Low |
|
4402 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window's full ordinal position without causing panic |
|
4403 //! @SYMTestType CIT |
|
4404 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4405 CREATE_OBJECT RWsSession ws |
|
4406 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4407 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4408 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4409 CREATE_OBJECT RWindow win_112 |
|
4410 CREATE_OBJECT RWindow win_120 |
|
4411 CREATE_OBJECT RWindow win_121 |
|
4412 CREATE_OBJECT RWindow win_122 |
|
4413 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4414 COMMAND ws new |
|
4415 COMMAND ws Connect |
|
4416 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4417 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4418 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4419 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4420 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4421 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4422 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4423 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4424 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4425 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4426 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4427 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4428 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4429 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4430 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4431 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4432 |
|
4433 COMMAND bnkwin_123 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command002 |
|
4434 COMMAND win_122 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command004 |
|
4435 COMMAND win_121 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command006 |
|
4436 COMMAND win_120 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command008 |
|
4437 COMMAND win_112 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command010 |
|
4438 COMMAND bnkwin_111 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command012 |
|
4439 COMMAND bnkwin_110 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command014 |
|
4440 |
|
4441 COMMAND bnkwin_123 Close |
|
4442 COMMAND win_122 Close |
|
4443 COMMAND win_121 Close |
|
4444 COMMAND win_120 Close |
|
4445 COMMAND win_112 Close |
|
4446 COMMAND bnkwin_111 Close |
|
4447 COMMAND bnkwin_110 Close |
|
4448 COMMAND wingrp_100 Close |
|
4449 COMMAND ws Close |
|
4450 END_TEST_BLOCK |
|
4451 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3009 |
|
4452 |
|
4453 |
|
4454 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3010 |
|
4455 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3010 |
|
4456 //! @SYMAPI RWindowTreeNode |
|
4457 //! @SYMAuthor Shirly Kuo |
|
4458 //! @SYMCreationDate 20/12/2006 |
|
4459 //! @SYMTestCaseDesc SetOrdinalPosition(): Sets the ordinal position of a window. |
|
4460 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetOrdinalPosition |
|
4461 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4462 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4463 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4464 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4465 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4466 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4467 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4468 //! 8. Sets the ordinal position of a window by using SetOrdinalPosition() and return the window's new ordinal position if successed. |
|
4469 //! 9. Get the current ordinal position of the window tree node by using OrdinalPosition() and return the window's ordinal position if successed. |
|
4470 //! 10. Verifies the window's ordinal position is same as the setting of the ordinal position of a window if it is same and successed. |
|
4471 //! 11. Close all window nodes by using Close() and return KErrNone if successed. |
|
4472 //! 12. Close the window session by using Close() and return KErrNone if successed. |
|
4473 //! @SYMTestStatus Implemented |
|
4474 //! @SYMTestPriority Medium |
|
4475 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window's ordinal position and same as setting of ordinal position without causing panic. |
|
4476 //! @SYMTestType CIT |
|
4477 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4478 CREATE_OBJECT RWsSession ws |
|
4479 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4480 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4481 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4482 CREATE_OBJECT RWindow win_112 |
|
4483 CREATE_OBJECT RWindow win_120 |
|
4484 CREATE_OBJECT RWindow win_121 |
|
4485 CREATE_OBJECT RWindow win_122 |
|
4486 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4487 COMMAND ws new |
|
4488 COMMAND ws Connect |
|
4489 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4490 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4491 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4492 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4493 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4494 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4495 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4496 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4497 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4498 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4499 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4500 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4501 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4502 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4503 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4504 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4505 |
|
4506 COMMAND bnkwin_123 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3010-0001-SetOrdinalPosition_command002 |
|
4507 COMMAND win_122 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3010-0001-SetOrdinalPosition_command004 |
|
4508 COMMAND win_121 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3010-0001-SetOrdinalPosition_command006 |
|
4509 COMMAND bnkwin_123 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3010-0001-OrdinalPosition_command008 |
|
4510 COMMAND win_122 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3010-0001-OrdinalPosition_command010 |
|
4511 COMMAND win_121 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3010-0001-OrdinalPosition_command012 |
|
4512 |
|
4513 COMMAND bnkwin_123 Close |
|
4514 COMMAND win_122 Close |
|
4515 COMMAND win_121 Close |
|
4516 COMMAND win_120 Close |
|
4517 COMMAND win_112 Close |
|
4518 COMMAND bnkwin_111 Close |
|
4519 COMMAND bnkwin_110 Close |
|
4520 COMMAND wingrp_100 Close |
|
4521 COMMAND ws Close |
|
4522 END_TEST_BLOCK |
|
4523 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3010 |
|
4524 |
|
4525 |
|
4526 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3011 |
|
4527 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3011 |
|
4528 //! @SYMAPI RWindowTreeNode |
|
4529 //! @SYMAuthor Shirly Kuo |
|
4530 //! @SYMCreationDate 20/12/2006 |
|
4531 //! @SYMTestCaseDesc SetOrdinalPosition(): Sets the ordinal position and ordinal priority of a window. |
|
4532 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetOrdinalPosition |
|
4533 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4534 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4535 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4536 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4537 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4538 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4539 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4540 //! 8. Sets the ordinal position and ordinal priority of a window by using SetOrdinalPosition() and return the window's new ordinal position if successed. |
|
4541 //! 9. Get the current ordinal position of the window tree node by using OrdinalPosition() and return the window's ordinal position if successed. |
|
4542 //! 10. Gets the ordinal priority of the specified window by using OrdinalPriority() and return the ordinal priority of the specified window if successed. |
|
4543 //! 11. Verifies the window's ordinal position is same as the setting of the ordinal position of a window if it is same and successed. |
|
4544 //! 12. Verifies the window's ordinal priority is same as the setting of the ordinal priority of a window if it is same and successed. |
|
4545 //! 13. Close all window nodes by using Close() and return KErrNone if successed. |
|
4546 //! 14. Close the window session by using Close() and return KErrNone if successed. |
|
4547 //! @SYMTestStatus Implemented |
|
4548 //! @SYMTestPriority Medium |
|
4549 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window's ordinal position, ordinal priority and same as setting of ordinal position without causing panic. |
|
4550 //! @SYMTestType CIT |
|
4551 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4552 CREATE_OBJECT RWsSession ws |
|
4553 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4554 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4555 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4556 CREATE_OBJECT RWindow win_112 |
|
4557 CREATE_OBJECT RWindow win_120 |
|
4558 CREATE_OBJECT RWindow win_121 |
|
4559 CREATE_OBJECT RWindow win_122 |
|
4560 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4561 COMMAND ws new |
|
4562 COMMAND ws Connect |
|
4563 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4564 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4565 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4566 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4567 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4568 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4569 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4570 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4571 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4572 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4573 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4574 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4575 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4576 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4577 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4578 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4579 |
|
4580 COMMAND bnkwin_123 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3011-0001-SetOrdinalPosition_command002 |
|
4581 COMMAND win_122 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3011-0001-SetOrdinalPosition_command004 |
|
4582 COMMAND win_121 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3011-0001-SetOrdinalPosition_command006 |
|
4583 COMMAND bnkwin_123 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPosition_command008 |
|
4584 COMMAND win_122 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPosition_command010 |
|
4585 COMMAND win_121 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPosition_command012 |
|
4586 COMMAND bnkwin_123 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPriority_command014 |
|
4587 COMMAND win_122 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPriority_command016 |
|
4588 COMMAND win_121 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPriority_command018 |
|
4589 |
|
4590 COMMAND bnkwin_123 Close |
|
4591 COMMAND win_122 Close |
|
4592 COMMAND win_121 Close |
|
4593 COMMAND win_120 Close |
|
4594 COMMAND win_112 Close |
|
4595 COMMAND bnkwin_111 Close |
|
4596 COMMAND bnkwin_110 Close |
|
4597 COMMAND wingrp_100 Close |
|
4598 COMMAND ws Close |
|
4599 END_TEST_BLOCK |
|
4600 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3011 |
|
4601 |
|
4602 |
|
4603 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3012 |
|
4604 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3012 |
|
4605 //! @SYMAPI RWindowTreeNode |
|
4606 //! @SYMAuthor Shirly Kuo |
|
4607 //! @SYMCreationDate 20/12/2006 |
|
4608 //! @SYMTestCaseDesc WindowGroupId(): Returns the window group Id of the parent window group. |
|
4609 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, WindowGroupId |
|
4610 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4611 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4612 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4613 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4614 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4615 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4616 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4617 //! 8. Returns the window group Id of the parent window group by using WindowGroupId() if successed. |
|
4618 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
4619 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
4620 //! @SYMTestStatus Implemented |
|
4621 //! @SYMTestPriority Low |
|
4622 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window group Id of the parent window group without causing panic |
|
4623 //! @SYMTestType CIT |
|
4624 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4625 CREATE_OBJECT RWsSession ws |
|
4626 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4627 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4628 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4629 CREATE_OBJECT RWindow win_112 |
|
4630 CREATE_OBJECT RWindow win_120 |
|
4631 CREATE_OBJECT RWindow win_121 |
|
4632 CREATE_OBJECT RWindow win_122 |
|
4633 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4634 COMMAND ws new |
|
4635 COMMAND ws Connect |
|
4636 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4637 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4638 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4639 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4640 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4641 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4642 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4643 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4644 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4645 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4646 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4647 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4648 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4649 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4650 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4651 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4652 |
|
4653 COMMAND bnkwin_123 WindowGroupId |
|
4654 COMMAND win_122 WindowGroupId |
|
4655 COMMAND win_121 WindowGroupId |
|
4656 COMMAND win_120 WindowGroupId |
|
4657 COMMAND win_112 WindowGroupId |
|
4658 COMMAND bnkwin_111 WindowGroupId |
|
4659 COMMAND bnkwin_110 WindowGroupId |
|
4660 COMMAND wingrp_100 WindowGroupId |
|
4661 |
|
4662 COMMAND bnkwin_123 Close |
|
4663 COMMAND win_122 Close |
|
4664 COMMAND win_121 Close |
|
4665 COMMAND win_120 Close |
|
4666 COMMAND win_112 Close |
|
4667 COMMAND bnkwin_111 Close |
|
4668 COMMAND bnkwin_110 Close |
|
4669 COMMAND wingrp_100 Close |
|
4670 COMMAND ws Close |
|
4671 END_TEST_BLOCK |
|
4672 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3012 |
|
4673 |
|
4674 |
|
4675 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3013 |
|
4676 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3013 |
|
4677 //! @SYMAPI RWindowTreeNode |
|
4678 //! @SYMAuthor Shirly Kuo |
|
4679 //! @SYMCreationDate 20/12/2006 |
|
4680 //! @SYMTestCaseDesc SetPointerCursor(): Sets the pointer cursor from the system pointer cursor list. |
|
4681 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetPointerCursor |
|
4682 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4683 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4684 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4685 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4686 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4687 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4688 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4689 //! 8. Sets the pointer cursor from the system pointer cursor list by using SetPointerCursor() and return KErrNone if successed. |
|
4690 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
4691 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
4692 //! @SYMTestStatus Implemented |
|
4693 //! @SYMTestPriority Low |
|
4694 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are set with the pointer cursor from the system pointer cursor list without causing panic |
|
4695 //! @SYMTestType CIT |
|
4696 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4697 CREATE_OBJECT RWsSession ws |
|
4698 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4699 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4700 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4701 CREATE_OBJECT RWindow win_112 |
|
4702 CREATE_OBJECT RWindow win_120 |
|
4703 CREATE_OBJECT RWindow win_121 |
|
4704 CREATE_OBJECT RWindow win_122 |
|
4705 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4706 COMMAND ws new |
|
4707 COMMAND ws Connect |
|
4708 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4709 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4710 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4711 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4712 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4713 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4714 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4715 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4716 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4717 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4718 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4719 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4720 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4721 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4722 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4723 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4724 |
|
4725 COMMAND win_122 SetPointerCursor GRAPHICS-WSERV-Window-PublicApi-3013-0001-SetPointerCursor_command002 |
|
4726 |
|
4727 COMMAND bnkwin_123 Close |
|
4728 COMMAND win_122 Close |
|
4729 COMMAND win_121 Close |
|
4730 COMMAND win_120 Close |
|
4731 COMMAND win_112 Close |
|
4732 COMMAND bnkwin_111 Close |
|
4733 COMMAND bnkwin_110 Close |
|
4734 COMMAND wingrp_100 Close |
|
4735 COMMAND ws Close |
|
4736 END_TEST_BLOCK |
|
4737 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3013 |
|
4738 |
|
4739 |
|
4740 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3014 |
|
4741 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3014 |
|
4742 //! @SYMAPI RWindowTreeNode |
|
4743 //! @SYMAuthor Shirly Kuo |
|
4744 //! @SYMCreationDate 20/12/2006 |
|
4745 //! @SYMTestCaseDesc SetCustomPointerCursor(): Sets the pointer cursor to an application-defined cursor. |
|
4746 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetCustomPointerCursor |
|
4747 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4748 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4749 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4750 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4751 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4752 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4753 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4754 //! 8. Sets the pointer cursor to an application-defined cursor by using SetCustomPointerCursor() and return KErrNone if successed. |
|
4755 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
4756 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
4757 //! @SYMTestStatus Implemented |
|
4758 //! @SYMTestPriority Low |
|
4759 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are set with the pointer cursor to an application-defined cursor without causing panic |
|
4760 //! @SYMTestType CIT |
|
4761 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4762 CREATE_OBJECT RWsSession ws |
|
4763 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4764 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4765 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4766 CREATE_OBJECT RWindow win_112 |
|
4767 CREATE_OBJECT RWindow win_120 |
|
4768 CREATE_OBJECT RWindow win_121 |
|
4769 CREATE_OBJECT RWindow win_122 |
|
4770 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4771 COMMAND ws new |
|
4772 COMMAND ws Connect |
|
4773 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4774 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4775 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4776 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4777 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4778 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4779 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4780 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4781 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4782 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4783 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4784 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4785 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4786 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4787 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4788 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4789 |
|
4790 COMMAND win_122 SetCustomPointerCursor GRAPHICS-WSERV-Window-PublicApi-3014-0001-SetCustomPointerCursor_command002 |
|
4791 |
|
4792 COMMAND bnkwin_123 Close |
|
4793 COMMAND win_122 Close |
|
4794 COMMAND win_121 Close |
|
4795 COMMAND win_120 Close |
|
4796 COMMAND win_112 Close |
|
4797 COMMAND bnkwin_111 Close |
|
4798 COMMAND bnkwin_110 Close |
|
4799 COMMAND wingrp_100 Close |
|
4800 COMMAND ws Close |
|
4801 END_TEST_BLOCK |
|
4802 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3014 |
|
4803 |
|
4804 |
|
4805 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3015 |
|
4806 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3015 |
|
4807 //! @SYMAPI RWindowTreeNode |
|
4808 //! @SYMAuthor Shirly Kuo |
|
4809 //! @SYMCreationDate 20/12/2006 |
|
4810 //! @SYMTestCaseDesc EnableOnEvents(): Requests notification of 'on' events. |
|
4811 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableOnEvents |
|
4812 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4813 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4814 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4815 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4816 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4817 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4818 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4819 //! 8. Requests notification of 'on' events by using EnableOnEvents() and return KErrNone if successed. |
|
4820 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
4821 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
4822 //! @SYMTestStatus Implemented |
|
4823 //! @SYMTestPriority Low |
|
4824 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are requests notification of 'on' events without causing panic |
|
4825 //! @SYMTestType CIT |
|
4826 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4827 CREATE_OBJECT RWsSession ws |
|
4828 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4829 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4830 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4831 CREATE_OBJECT RWindow win_112 |
|
4832 CREATE_OBJECT RWindow win_120 |
|
4833 CREATE_OBJECT RWindow win_121 |
|
4834 CREATE_OBJECT RWindow win_122 |
|
4835 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4836 COMMAND ws new |
|
4837 COMMAND ws Connect |
|
4838 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4839 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4840 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4841 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4842 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4843 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4844 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4845 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4846 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4847 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4848 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4849 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4850 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4851 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4852 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4853 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4854 |
|
4855 COMMAND win_120 EnableOnEvents GRAPHICS-WSERV-Window-PublicApi-3015-0001-EnableOnEvents_command002 |
|
4856 |
|
4857 COMMAND bnkwin_123 Close |
|
4858 COMMAND win_122 Close |
|
4859 COMMAND win_121 Close |
|
4860 COMMAND win_120 Close |
|
4861 COMMAND win_112 Close |
|
4862 COMMAND bnkwin_111 Close |
|
4863 COMMAND bnkwin_110 Close |
|
4864 COMMAND wingrp_100 Close |
|
4865 COMMAND ws Close |
|
4866 END_TEST_BLOCK |
|
4867 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3015 |
|
4868 |
|
4869 |
|
4870 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3016 |
|
4871 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3016 |
|
4872 //! @SYMAPI RWindowTreeNode |
|
4873 //! @SYMAuthor Shirly Kuo |
|
4874 //! @SYMCreationDate 20/12/2006 |
|
4875 //! @SYMTestCaseDesc DisableOnEvents(): Cancels notification of 'on' events. |
|
4876 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableOnEvents |
|
4877 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4878 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4879 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4880 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4881 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4882 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4883 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4884 //! 8. Requests notification of 'on' events by using EnableOnEvents() and return KErrNone if successed. |
|
4885 //! 9. Cancels notification of 'on' events by using DisableOnEvents(). |
|
4886 //! 10. Close all window nodes by using Close() and return KErrNone if successed. |
|
4887 //! 11. Close the window session by using Close() and return KErrNone if successed. |
|
4888 //! @SYMTestStatus Implemented |
|
4889 //! @SYMTestPriority Low |
|
4890 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are cancels notification of 'on' events without causing panic |
|
4891 //! @SYMTestType CIT |
|
4892 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4893 CREATE_OBJECT RWsSession ws |
|
4894 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4895 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4896 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4897 CREATE_OBJECT RWindow win_112 |
|
4898 CREATE_OBJECT RWindow win_120 |
|
4899 CREATE_OBJECT RWindow win_121 |
|
4900 CREATE_OBJECT RWindow win_122 |
|
4901 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4902 COMMAND ws new |
|
4903 COMMAND ws Connect |
|
4904 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4905 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4906 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4907 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4908 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4909 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4910 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4911 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4912 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4913 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4914 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4915 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4916 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4917 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4918 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4919 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4920 |
|
4921 COMMAND win_120 EnableOnEvents GRAPHICS-WSERV-Window-PublicApi-3016-0001-EnableOnEvents_command002 |
|
4922 COMMAND win_120 DisableOnEvents |
|
4923 |
|
4924 COMMAND bnkwin_123 Close |
|
4925 COMMAND win_122 Close |
|
4926 COMMAND win_121 Close |
|
4927 COMMAND win_120 Close |
|
4928 COMMAND win_112 Close |
|
4929 COMMAND bnkwin_111 Close |
|
4930 COMMAND bnkwin_110 Close |
|
4931 COMMAND wingrp_100 Close |
|
4932 COMMAND ws Close |
|
4933 END_TEST_BLOCK |
|
4934 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3016 |
|
4935 |
|
4936 |
|
4937 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3017 |
|
4938 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3017 |
|
4939 //! @SYMAPI RWindowTreeNode |
|
4940 //! @SYMAuthor Shirly Kuo |
|
4941 //! @SYMCreationDate 20/12/2006 |
|
4942 //! @SYMTestCaseDesc EnableGroupChangeEvents(): Requests notification of group-change events. |
|
4943 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableGroupChangeEvents |
|
4944 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
4945 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
4946 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
4947 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
4948 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
4949 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
4950 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
4951 //! 8. Requests notification of group-change events by using EnableGroupChangeEvents() and return KErrNone if successed. |
|
4952 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
4953 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
4954 //! @SYMTestStatus Implemented |
|
4955 //! @SYMTestPriority Low |
|
4956 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are requests notification of group-change events without causing panic |
|
4957 //! @SYMTestType CIT |
|
4958 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
4959 CREATE_OBJECT RWsSession ws |
|
4960 CREATE_OBJECT RWindowGroup wingrp_100 |
|
4961 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
4962 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
4963 CREATE_OBJECT RWindow win_112 |
|
4964 CREATE_OBJECT RWindow win_120 |
|
4965 CREATE_OBJECT RWindow win_121 |
|
4966 CREATE_OBJECT RWindow win_122 |
|
4967 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
4968 COMMAND ws new |
|
4969 COMMAND ws Connect |
|
4970 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
4971 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
4972 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
4973 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
4974 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
4975 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
4976 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
4977 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
4978 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
4979 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
4980 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
4981 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
4982 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
4983 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
4984 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
4985 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
4986 |
|
4987 COMMAND wingrp_100 EnableGroupChangeEvents |
|
4988 |
|
4989 COMMAND bnkwin_123 Close |
|
4990 COMMAND win_122 Close |
|
4991 COMMAND win_121 Close |
|
4992 COMMAND win_120 Close |
|
4993 COMMAND win_112 Close |
|
4994 COMMAND bnkwin_111 Close |
|
4995 COMMAND bnkwin_110 Close |
|
4996 COMMAND wingrp_100 Close |
|
4997 COMMAND ws Close |
|
4998 END_TEST_BLOCK |
|
4999 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3017 |
|
5000 |
|
5001 |
|
5002 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3018 |
|
5003 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3018 |
|
5004 //! @SYMAPI RWindowTreeNode |
|
5005 //! @SYMAuthor Shirly Kuo |
|
5006 //! @SYMCreationDate 20/12/2006 |
|
5007 //! @SYMTestCaseDesc DisableGroupChangeEvents(): Sets the pointer cursor to an application-defined cursor. |
|
5008 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableGroupChangeEvents |
|
5009 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5010 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5011 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5012 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5013 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5014 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5015 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5016 //! 8. Requests notification of group-change events by using EnableGroupChangeEvents() and return KErrNone if successed. |
|
5017 //! 9. Cancels notification of group changed events by using DisableGroupChangeEvents(). |
|
5018 //! 10. Close all window nodes by using Close() and return KErrNone if successed. |
|
5019 //! 11. Close the window session by using Close() and return KErrNone if successed. |
|
5020 //! @SYMTestStatus Implemented |
|
5021 //! @SYMTestPriority Low |
|
5022 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are cancels notification of group changed events without causing panic |
|
5023 //! @SYMTestType CIT |
|
5024 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5025 CREATE_OBJECT RWsSession ws |
|
5026 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5027 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5028 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5029 CREATE_OBJECT RWindow win_112 |
|
5030 CREATE_OBJECT RWindow win_120 |
|
5031 CREATE_OBJECT RWindow win_121 |
|
5032 CREATE_OBJECT RWindow win_122 |
|
5033 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5034 COMMAND ws new |
|
5035 COMMAND ws Connect |
|
5036 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5037 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5038 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5039 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5040 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5041 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5042 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5043 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5044 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5045 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5046 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5047 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5048 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5049 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5050 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5051 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5052 |
|
5053 COMMAND wingrp_100 EnableGroupChangeEvents |
|
5054 COMMAND wingrp_100 DisableGroupChangeEvents |
|
5055 |
|
5056 COMMAND bnkwin_123 Close |
|
5057 COMMAND win_122 Close |
|
5058 COMMAND win_121 Close |
|
5059 COMMAND win_120 Close |
|
5060 COMMAND win_112 Close |
|
5061 COMMAND bnkwin_111 Close |
|
5062 COMMAND bnkwin_110 Close |
|
5063 COMMAND wingrp_100 Close |
|
5064 COMMAND ws Close |
|
5065 END_TEST_BLOCK |
|
5066 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3018 |
|
5067 |
|
5068 |
|
5069 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3019 |
|
5070 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3019 |
|
5071 //! @SYMAPI RWindowTreeNode |
|
5072 //! @SYMAuthor Shirly Kuo |
|
5073 //! @SYMCreationDate 20/12/2006 |
|
5074 //! @SYMTestCaseDesc EnableFocusChangeEvents(): Enables focus changed events. |
|
5075 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableFocusChangeEvents |
|
5076 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5077 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5078 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5079 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5080 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5081 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5082 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5083 //! 8. Enables focus changed events by using EnableFocusChangeEvents() and return KErrNone if successed. |
|
5084 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
5085 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
5086 //! @SYMTestStatus Implemented |
|
5087 //! @SYMTestPriority Low |
|
5088 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are enables focus changed events without causing panic |
|
5089 //! @SYMTestType CIT |
|
5090 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5091 CREATE_OBJECT RWsSession ws |
|
5092 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5093 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5094 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5095 CREATE_OBJECT RWindow win_112 |
|
5096 CREATE_OBJECT RWindow win_120 |
|
5097 CREATE_OBJECT RWindow win_121 |
|
5098 CREATE_OBJECT RWindow win_122 |
|
5099 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5100 COMMAND ws new |
|
5101 COMMAND ws Connect |
|
5102 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5103 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5104 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5105 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5106 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5107 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5108 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5109 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5110 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5111 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5112 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5113 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5114 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5115 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5116 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5117 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5118 |
|
5119 COMMAND wingrp_100 EnableFocusChangeEvents |
|
5120 |
|
5121 COMMAND bnkwin_123 Close |
|
5122 COMMAND win_122 Close |
|
5123 COMMAND win_121 Close |
|
5124 COMMAND win_120 Close |
|
5125 COMMAND win_112 Close |
|
5126 COMMAND bnkwin_111 Close |
|
5127 COMMAND bnkwin_110 Close |
|
5128 COMMAND wingrp_100 Close |
|
5129 COMMAND ws Close |
|
5130 END_TEST_BLOCK |
|
5131 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3019 |
|
5132 |
|
5133 |
|
5134 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3020 |
|
5135 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3020 |
|
5136 //! @SYMAPI RWindowTreeNode |
|
5137 //! @SYMAuthor Shirly Kuo |
|
5138 //! @SYMCreationDate 20/12/2006 |
|
5139 //! @SYMTestCaseDesc DisableFocusChangeEvents(): Disables delivery of focus changed events. |
|
5140 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableFocusChangeEvents |
|
5141 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5142 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5143 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5144 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5145 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5146 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5147 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5148 //! 8. Enables focus changed events by using EnableFocusChangeEvents() and return KErrNone if successed. |
|
5149 //! 9. Disables delivery of focus changed events by using DisableFocusChangeEvents(). |
|
5150 //! 10. Close all window nodes by using Close() and return KErrNone if successed. |
|
5151 //! 11. Close the window session by using Close() and return KErrNone if successed. |
|
5152 //! @SYMTestStatus Implemented |
|
5153 //! @SYMTestPriority Low |
|
5154 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are disables delivery of focus changed events without causing panic |
|
5155 //! @SYMTestType CIT |
|
5156 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5157 CREATE_OBJECT RWsSession ws |
|
5158 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5159 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5160 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5161 CREATE_OBJECT RWindow win_112 |
|
5162 CREATE_OBJECT RWindow win_120 |
|
5163 CREATE_OBJECT RWindow win_121 |
|
5164 CREATE_OBJECT RWindow win_122 |
|
5165 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5166 COMMAND ws new |
|
5167 COMMAND ws Connect |
|
5168 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5169 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5170 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5171 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5172 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5173 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5174 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5175 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5176 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5177 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5178 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5179 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5180 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5181 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5182 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5183 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5184 |
|
5185 COMMAND wingrp_100 EnableFocusChangeEvents |
|
5186 COMMAND wingrp_100 DisableFocusChangeEvents |
|
5187 |
|
5188 COMMAND bnkwin_123 Close |
|
5189 COMMAND win_122 Close |
|
5190 COMMAND win_121 Close |
|
5191 COMMAND win_120 Close |
|
5192 COMMAND win_112 Close |
|
5193 COMMAND bnkwin_111 Close |
|
5194 COMMAND bnkwin_110 Close |
|
5195 COMMAND wingrp_100 Close |
|
5196 COMMAND ws Close |
|
5197 END_TEST_BLOCK |
|
5198 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3020 |
|
5199 |
|
5200 |
|
5201 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3021 |
|
5202 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3021 |
|
5203 //! @SYMAPI RWindowTreeNode |
|
5204 //! @SYMAuthor Shirly Kuo |
|
5205 //! @SYMCreationDate 20/12/2006 |
|
5206 //! @SYMTestCaseDesc EnableGroupListChangeEvents(): Enables reporting of window group list change events. |
|
5207 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableGroupListChangeEvents |
|
5208 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5209 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5210 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5211 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5212 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5213 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5214 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5215 //! 8. Enables reporting of window group list change events by using EnableGroupListChangeEvents() and return KErrNone if successed. |
|
5216 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
5217 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
5218 //! @SYMTestStatus Implemented |
|
5219 //! @SYMTestPriority Low |
|
5220 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are enables reporting of window group list change events without causing panic |
|
5221 //! @SYMTestType CIT |
|
5222 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5223 CREATE_OBJECT RWsSession ws |
|
5224 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5225 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5226 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5227 CREATE_OBJECT RWindow win_112 |
|
5228 CREATE_OBJECT RWindow win_120 |
|
5229 CREATE_OBJECT RWindow win_121 |
|
5230 CREATE_OBJECT RWindow win_122 |
|
5231 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5232 COMMAND ws new |
|
5233 COMMAND ws Connect |
|
5234 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5235 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5236 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5237 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5238 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5239 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5240 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5241 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5242 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5243 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5244 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5245 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5246 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5247 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5248 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5249 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5250 |
|
5251 COMMAND wingrp_100 EnableGroupListChangeEvents |
|
5252 |
|
5253 COMMAND bnkwin_123 Close |
|
5254 COMMAND win_122 Close |
|
5255 COMMAND win_121 Close |
|
5256 COMMAND win_120 Close |
|
5257 COMMAND win_112 Close |
|
5258 COMMAND bnkwin_111 Close |
|
5259 COMMAND bnkwin_110 Close |
|
5260 COMMAND wingrp_100 Close |
|
5261 COMMAND ws Close |
|
5262 END_TEST_BLOCK |
|
5263 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3021 |
|
5264 |
|
5265 |
|
5266 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3022 |
|
5267 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3022 |
|
5268 //! @SYMAPI RWindowTreeNode |
|
5269 //! @SYMAuthor Shirly Kuo |
|
5270 //! @SYMCreationDate 20/12/2006 |
|
5271 //! @SYMTestCaseDesc DisableGroupListChangeEvents(): Disables reporting of window group list change events. |
|
5272 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableGroupListChangeEvents |
|
5273 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5274 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5275 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5276 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5277 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5278 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5279 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5280 //! 8. Enables reporting of window group list change events by using EnableGroupListChangeEvents() and return KErrNone if successed. |
|
5281 //! 9. Disables reporting of window group list change events by using DisableGroupListChangeEvents(). |
|
5282 //! 10. Close all window nodes by using Close() and return KErrNone if successed. |
|
5283 //! 11. Close the window session by using Close() and return KErrNone if successed. |
|
5284 //! @SYMTestStatus Implemented |
|
5285 //! @SYMTestPriority Low |
|
5286 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are disables reporting of window group list change events without causing panic |
|
5287 //! @SYMTestType CIT |
|
5288 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5289 CREATE_OBJECT RWsSession ws |
|
5290 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5291 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5292 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5293 CREATE_OBJECT RWindow win_112 |
|
5294 CREATE_OBJECT RWindow win_120 |
|
5295 CREATE_OBJECT RWindow win_121 |
|
5296 CREATE_OBJECT RWindow win_122 |
|
5297 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5298 COMMAND ws new |
|
5299 COMMAND ws Connect |
|
5300 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5301 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5302 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5303 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5304 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5305 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5306 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5307 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5308 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5309 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5310 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5311 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5312 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5313 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5314 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5315 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5316 |
|
5317 COMMAND wingrp_100 EnableGroupListChangeEvents |
|
5318 COMMAND wingrp_100 DisableGroupListChangeEvents |
|
5319 |
|
5320 COMMAND bnkwin_123 Close |
|
5321 COMMAND win_122 Close |
|
5322 COMMAND win_121 Close |
|
5323 COMMAND win_120 Close |
|
5324 COMMAND win_112 Close |
|
5325 COMMAND bnkwin_111 Close |
|
5326 COMMAND bnkwin_110 Close |
|
5327 COMMAND wingrp_100 Close |
|
5328 COMMAND ws Close |
|
5329 END_TEST_BLOCK |
|
5330 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3022 |
|
5331 |
|
5332 |
|
5333 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3023 |
|
5334 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3023 |
|
5335 //! @SYMAPI RWindowTreeNode |
|
5336 //! @SYMAuthor Shirly Kuo |
|
5337 //! @SYMCreationDate 20/12/2006 |
|
5338 //! @SYMTestCaseDesc EnableVisibilityChangeEvents(): Enables reporting of window visibility change events. |
|
5339 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableVisibilityChangeEvents |
|
5340 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5341 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5342 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5343 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5344 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5345 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5346 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5347 //! 8. Enables reporting of window visibility change events by using EnableVisibilityChangeEvents() and return KErrNone if successed. |
|
5348 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
5349 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
5350 //! @SYMTestStatus Implemented |
|
5351 //! @SYMTestPriority Low |
|
5352 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are enables reporting of window visibility change events without causing panic |
|
5353 //! @SYMTestType CIT |
|
5354 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5355 CREATE_OBJECT RWsSession ws |
|
5356 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5357 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5358 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5359 CREATE_OBJECT RWindow win_112 |
|
5360 CREATE_OBJECT RWindow win_120 |
|
5361 CREATE_OBJECT RWindow win_121 |
|
5362 CREATE_OBJECT RWindow win_122 |
|
5363 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5364 COMMAND ws new |
|
5365 COMMAND ws Connect |
|
5366 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5367 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5368 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5369 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5370 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5371 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5372 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5373 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5374 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5375 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5376 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5377 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5378 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5379 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5380 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5381 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5382 |
|
5383 COMMAND win_112 EnableVisibilityChangeEvents |
|
5384 |
|
5385 COMMAND bnkwin_123 Close |
|
5386 COMMAND win_122 Close |
|
5387 COMMAND win_121 Close |
|
5388 COMMAND win_120 Close |
|
5389 COMMAND win_112 Close |
|
5390 COMMAND bnkwin_111 Close |
|
5391 COMMAND bnkwin_110 Close |
|
5392 COMMAND wingrp_100 Close |
|
5393 COMMAND ws Close |
|
5394 END_TEST_BLOCK |
|
5395 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3023 |
|
5396 |
|
5397 |
|
5398 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3024 |
|
5399 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3024 |
|
5400 //! @SYMAPI RWindowTreeNode |
|
5401 //! @SYMAuthor Shirly Kuo |
|
5402 //! @SYMCreationDate 20/12/2006 |
|
5403 //! @SYMTestCaseDesc DisableVisibilityChangeEvents(): Disables reporting of window visibility change events. |
|
5404 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableVisibilityChangeEvents |
|
5405 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5406 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5407 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5408 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5409 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5410 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5411 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5412 //! 8. Enables reporting of window visibility change events by using EnableVisibilityChangeEvents() and return KErrNone if successed. |
|
5413 //! 9. Disables reporting of window visibility change events by using DisableVisibilityChangeEvents(). |
|
5414 //! 10. Close all window nodes by using Close() and return KErrNone if successed. |
|
5415 //! 11. Close the window session by using Close() and return KErrNone if successed. |
|
5416 //! @SYMTestStatus Implemented |
|
5417 //! @SYMTestPriority Low |
|
5418 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are disables reporting of window visibility change events without causing panic |
|
5419 //! @SYMTestType CIT |
|
5420 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5421 CREATE_OBJECT RWsSession ws |
|
5422 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5423 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5424 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5425 CREATE_OBJECT RWindow win_112 |
|
5426 CREATE_OBJECT RWindow win_120 |
|
5427 CREATE_OBJECT RWindow win_121 |
|
5428 CREATE_OBJECT RWindow win_122 |
|
5429 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5430 COMMAND ws new |
|
5431 COMMAND ws Connect |
|
5432 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5433 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5434 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5435 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5436 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5437 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5438 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5439 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5440 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5441 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5442 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5443 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5444 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5445 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5446 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5447 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5448 |
|
5449 COMMAND win_112 EnableVisibilityChangeEvents |
|
5450 COMMAND win_112 DisableVisibilityChangeEvents |
|
5451 |
|
5452 COMMAND bnkwin_123 Close |
|
5453 COMMAND win_122 Close |
|
5454 COMMAND win_121 Close |
|
5455 COMMAND win_120 Close |
|
5456 COMMAND win_112 Close |
|
5457 COMMAND bnkwin_111 Close |
|
5458 COMMAND bnkwin_110 Close |
|
5459 COMMAND wingrp_100 Close |
|
5460 COMMAND ws Close |
|
5461 END_TEST_BLOCK |
|
5462 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3024 |
|
5463 |
|
5464 |
|
5465 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3025 |
|
5466 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3025 |
|
5467 //! @SYMAPI RWindowTreeNode |
|
5468 //! @SYMAuthor Shirly Kuo |
|
5469 //! @SYMCreationDate 20/12/2006 |
|
5470 //! @SYMTestCaseDesc EnableErrorMessages(): Requests notification of error message events. |
|
5471 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableErrorMessages |
|
5472 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5473 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5474 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5475 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5476 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5477 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5478 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5479 //! 8. Requests notification of error message events by using EnableErrorMessages() and return KErrNone if successed. |
|
5480 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
5481 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
5482 //! @SYMTestStatus Implemented |
|
5483 //! @SYMTestPriority Low |
|
5484 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are requests notification of error message events without causing panic |
|
5485 //! @SYMTestType CIT |
|
5486 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5487 CREATE_OBJECT RWsSession ws |
|
5488 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5489 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5490 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5491 CREATE_OBJECT RWindow win_112 |
|
5492 CREATE_OBJECT RWindow win_120 |
|
5493 CREATE_OBJECT RWindow win_121 |
|
5494 CREATE_OBJECT RWindow win_122 |
|
5495 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5496 COMMAND ws new |
|
5497 COMMAND ws Connect |
|
5498 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5499 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5500 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5501 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5502 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5503 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5504 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5505 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5506 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5507 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5508 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5509 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5510 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5511 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5512 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5513 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5514 |
|
5515 COMMAND win_112 EnableErrorMessages GRAPHICS-WSERV-Window-PublicApi-3025-0001-EnableErrorMessages_command002 |
|
5516 |
|
5517 COMMAND bnkwin_123 Close |
|
5518 COMMAND win_122 Close |
|
5519 COMMAND win_121 Close |
|
5520 COMMAND win_120 Close |
|
5521 COMMAND win_112 Close |
|
5522 COMMAND bnkwin_111 Close |
|
5523 COMMAND bnkwin_110 Close |
|
5524 COMMAND wingrp_100 Close |
|
5525 COMMAND ws Close |
|
5526 END_TEST_BLOCK |
|
5527 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3025 |
|
5528 |
|
5529 |
|
5530 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3026 |
|
5531 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3026 |
|
5532 //! @SYMAPI RWindowTreeNode |
|
5533 //! @SYMAuthor Shirly Kuo |
|
5534 //! @SYMCreationDate 20/12/2006 |
|
5535 //! @SYMTestCaseDesc DisableErrorMessages(): Cancels notification of error message events. |
|
5536 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableErrorMessages |
|
5537 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5538 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5539 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5540 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5541 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5542 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5543 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5544 //! 8. Requests notification of error message events by using EnableErrorMessages() and return KErrNone if successed. |
|
5545 //! 9. Cancels notification of error message events by using DisableErrorMessages(). |
|
5546 //! 10. Close all window nodes by using Close() and return KErrNone if successed. |
|
5547 //! 11. Close the window session by using Close() and return KErrNone if successed. |
|
5548 //! @SYMTestStatus Implemented |
|
5549 //! @SYMTestPriority Low |
|
5550 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are cancels notification of error message events without causing panic |
|
5551 //! @SYMTestType CIT |
|
5552 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5553 CREATE_OBJECT RWsSession ws |
|
5554 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5555 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5556 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5557 CREATE_OBJECT RWindow win_112 |
|
5558 CREATE_OBJECT RWindow win_120 |
|
5559 CREATE_OBJECT RWindow win_121 |
|
5560 CREATE_OBJECT RWindow win_122 |
|
5561 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5562 COMMAND ws new |
|
5563 COMMAND ws Connect |
|
5564 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5565 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5566 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5567 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5568 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5569 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5570 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5571 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5572 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5573 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5574 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5575 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5576 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5577 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5578 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5579 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5580 |
|
5581 COMMAND win_112 EnableErrorMessages GRAPHICS-WSERV-Window-PublicApi-3026-0001-EnableErrorMessages_command002 |
|
5582 COMMAND win_112 DisableErrorMessages |
|
5583 |
|
5584 COMMAND bnkwin_123 Close |
|
5585 COMMAND win_122 Close |
|
5586 COMMAND win_121 Close |
|
5587 COMMAND win_120 Close |
|
5588 COMMAND win_112 Close |
|
5589 COMMAND bnkwin_111 Close |
|
5590 COMMAND bnkwin_110 Close |
|
5591 COMMAND wingrp_100 Close |
|
5592 COMMAND ws Close |
|
5593 END_TEST_BLOCK |
|
5594 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3026 |
|
5595 |
|
5596 |
|
5597 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3027 |
|
5598 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3027 |
|
5599 //! @SYMAPI RWindowTreeNode |
|
5600 //! @SYMAuthor Shirly Kuo |
|
5601 //! @SYMCreationDate 20/12/2006 |
|
5602 //! @SYMTestCaseDesc EnableModifierChangedEvents(): Requests notification of modifier changed events. |
|
5603 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableModifierChangedEvents |
|
5604 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5605 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5606 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5607 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5608 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5609 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5610 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5611 //! 8. Requests notification of modifier changed events by using EnableModifierChangedEvents() and return KErrNone if successed. |
|
5612 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
5613 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
5614 //! @SYMTestStatus Implemented |
|
5615 //! @SYMTestPriority Low |
|
5616 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are requests notification of modifier changed events without causing panic |
|
5617 //! @SYMTestType CIT |
|
5618 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5619 CREATE_OBJECT RWsSession ws |
|
5620 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5621 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5622 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5623 CREATE_OBJECT RWindow win_112 |
|
5624 CREATE_OBJECT RWindow win_120 |
|
5625 CREATE_OBJECT RWindow win_121 |
|
5626 CREATE_OBJECT RWindow win_122 |
|
5627 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5628 COMMAND ws new |
|
5629 COMMAND ws Connect |
|
5630 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5631 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5632 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5633 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5634 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5635 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5636 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5637 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5638 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5639 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5640 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5641 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5642 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5643 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5644 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5645 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5646 |
|
5647 COMMAND win_112 EnableModifierChangedEvents GRAPHICS-WSERV-Window-PublicApi-3027-0001-EnableModifierChangedEvents_command002 |
|
5648 |
|
5649 COMMAND bnkwin_123 Close |
|
5650 COMMAND win_122 Close |
|
5651 COMMAND win_121 Close |
|
5652 COMMAND win_120 Close |
|
5653 COMMAND win_112 Close |
|
5654 COMMAND bnkwin_111 Close |
|
5655 COMMAND bnkwin_110 Close |
|
5656 COMMAND wingrp_100 Close |
|
5657 COMMAND ws Close |
|
5658 END_TEST_BLOCK |
|
5659 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3027 |
|
5660 |
|
5661 |
|
5662 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3028 |
|
5663 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3028 |
|
5664 //! @SYMAPI RWindowTreeNode |
|
5665 //! @SYMAuthor Shirly Kuo |
|
5666 //! @SYMCreationDate 20/12/2006 |
|
5667 //! @SYMTestCaseDesc DisableModifierChangedEvents(): Cancels notification of modifier changed events. |
|
5668 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableModifierChangedEvents |
|
5669 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5670 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5671 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5672 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5673 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5674 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5675 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5676 //! 8. Requests notification of modifier changed events by using EnableModifierChangedEvents() and return KErrNone if successed. |
|
5677 //! 9. Cancels notification of modifier changed events by using DisableModifierChangedEvents(). |
|
5678 //! 10. Close all window nodes by using Close() and return KErrNone if successed. |
|
5679 //! 11. Close the window session by using Close() and return KErrNone if successed. |
|
5680 //! @SYMTestStatus Implemented |
|
5681 //! @SYMTestPriority Low |
|
5682 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are cancels notification of modifier changed events without causing panic |
|
5683 //! @SYMTestType CIT |
|
5684 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5685 CREATE_OBJECT RWsSession ws |
|
5686 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5687 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5688 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5689 CREATE_OBJECT RWindow win_112 |
|
5690 CREATE_OBJECT RWindow win_120 |
|
5691 CREATE_OBJECT RWindow win_121 |
|
5692 CREATE_OBJECT RWindow win_122 |
|
5693 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5694 COMMAND ws new |
|
5695 COMMAND ws Connect |
|
5696 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5697 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5698 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5699 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5700 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5701 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5702 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5703 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5704 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5705 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5706 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5707 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5708 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5709 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5710 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5711 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5712 |
|
5713 COMMAND win_112 EnableModifierChangedEvents GRAPHICS-WSERV-Window-PublicApi-3028-0001-EnableModifierChangedEvents_command002 |
|
5714 COMMAND win_112 DisableModifierChangedEvents |
|
5715 |
|
5716 COMMAND bnkwin_123 Close |
|
5717 COMMAND win_122 Close |
|
5718 COMMAND win_121 Close |
|
5719 COMMAND win_120 Close |
|
5720 COMMAND win_112 Close |
|
5721 COMMAND bnkwin_111 Close |
|
5722 COMMAND bnkwin_110 Close |
|
5723 COMMAND wingrp_100 Close |
|
5724 COMMAND ws Close |
|
5725 END_TEST_BLOCK |
|
5726 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3028 |
|
5727 |
|
5728 |
|
5729 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3029 |
|
5730 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3029 |
|
5731 //! @SYMAPI RWindowTreeNode |
|
5732 //! @SYMAuthor Shirly Kuo |
|
5733 //! @SYMCreationDate 20/12/2006 |
|
5734 //! @SYMTestCaseDesc SetNonFading(): Sets whether a window is non-fading. |
|
5735 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetNonFading |
|
5736 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5737 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5738 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5739 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5740 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5741 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5742 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5743 //! 8. Sets whether a window is non-fading by using SetNonFading() and return KErrNone if successed. |
|
5744 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
5745 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
5746 //! @SYMTestStatus Implemented |
|
5747 //! @SYMTestPriority Low |
|
5748 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are set whether a window is non-fading without causing panic |
|
5749 //! @SYMTestType CIT |
|
5750 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5751 CREATE_OBJECT RWsSession ws |
|
5752 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5753 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5754 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5755 CREATE_OBJECT RWindow win_112 |
|
5756 CREATE_OBJECT RWindow win_120 |
|
5757 CREATE_OBJECT RWindow win_121 |
|
5758 CREATE_OBJECT RWindow win_122 |
|
5759 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5760 COMMAND ws new |
|
5761 COMMAND ws Connect |
|
5762 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5763 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5764 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5765 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5766 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5767 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5768 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5769 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5770 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5771 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5772 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5773 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5774 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5775 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5776 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5777 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5778 |
|
5779 COMMAND win_121 SetNonFading GRAPHICS-WSERV-Window-PublicApi-3029-0001-SetNonFading_command002 |
|
5780 |
|
5781 COMMAND bnkwin_123 Close |
|
5782 COMMAND win_122 Close |
|
5783 COMMAND win_121 Close |
|
5784 COMMAND win_120 Close |
|
5785 COMMAND win_112 Close |
|
5786 COMMAND bnkwin_111 Close |
|
5787 COMMAND bnkwin_110 Close |
|
5788 COMMAND wingrp_100 Close |
|
5789 COMMAND ws Close |
|
5790 END_TEST_BLOCK |
|
5791 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3029 |
|
5792 |
|
5793 |
|
5794 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3030 |
|
5795 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3030 |
|
5796 //! @SYMAPI RWindowTreeNode |
|
5797 //! @SYMAuthor Shirly Kuo |
|
5798 //! @SYMCreationDate 20/12/2006 |
|
5799 //! @SYMTestCaseDesc SetFaded(): Sets the window as faded or unfaded. |
|
5800 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetFaded |
|
5801 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5802 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5803 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5804 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5805 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5806 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5807 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5808 //! 8. Sets the window as faded or unfaded by using SetFaded() and return KErrNone if successed. |
|
5809 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
5810 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
5811 //! @SYMTestStatus Implemented |
|
5812 //! @SYMTestPriority Low |
|
5813 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are set the window as faded or unfaded without causing panic |
|
5814 //! @SYMTestType CIT |
|
5815 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5816 CREATE_OBJECT RWsSession ws |
|
5817 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5818 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5819 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5820 CREATE_OBJECT RWindow win_112 |
|
5821 CREATE_OBJECT RWindow win_120 |
|
5822 CREATE_OBJECT RWindow win_121 |
|
5823 CREATE_OBJECT RWindow win_122 |
|
5824 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5825 COMMAND ws new |
|
5826 COMMAND ws Connect |
|
5827 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5828 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5829 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5830 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5831 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5832 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5833 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5834 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5835 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5836 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5837 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5838 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5839 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5840 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5841 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5842 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5843 |
|
5844 COMMAND win_121 SetFaded GRAPHICS-WSERV-Window-PublicApi-3030-0001-SetFaded_command002 |
|
5845 |
|
5846 COMMAND bnkwin_123 Close |
|
5847 COMMAND win_122 Close |
|
5848 COMMAND win_121 Close |
|
5849 COMMAND win_120 Close |
|
5850 COMMAND win_112 Close |
|
5851 COMMAND bnkwin_111 Close |
|
5852 COMMAND bnkwin_110 Close |
|
5853 COMMAND wingrp_100 Close |
|
5854 COMMAND ws Close |
|
5855 END_TEST_BLOCK |
|
5856 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3030 |
|
5857 |
|
5858 |
|
5859 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3031 |
|
5860 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3031 |
|
5861 //! @SYMAPI RWindowTreeNode |
|
5862 //! @SYMAuthor Shirly Kuo |
|
5863 //! @SYMCreationDate 20/12/2006 |
|
5864 //! @SYMTestCaseDesc SetFaded(): Sets one or more windows as faded or unfaded, specifying a fading map. |
|
5865 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetFaded |
|
5866 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5867 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5868 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5869 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5870 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5871 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5872 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5873 //! 8. Sets one or more windows as faded or unfaded, specifying a fading map by using SetFaded() and return KErrNone if successed. |
|
5874 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
5875 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
5876 //! @SYMTestStatus Implemented |
|
5877 //! @SYMTestPriority Low |
|
5878 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are set one or more windows as faded or unfaded, specifying a fading map without causing panic |
|
5879 //! @SYMTestType CIT |
|
5880 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5881 CREATE_OBJECT RWsSession ws |
|
5882 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5883 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5884 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5885 CREATE_OBJECT RWindow win_112 |
|
5886 CREATE_OBJECT RWindow win_120 |
|
5887 CREATE_OBJECT RWindow win_121 |
|
5888 CREATE_OBJECT RWindow win_122 |
|
5889 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5890 COMMAND ws new |
|
5891 COMMAND ws Connect |
|
5892 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5893 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5894 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5895 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5896 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5897 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5898 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5899 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5900 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5901 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5902 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5903 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5904 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5905 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5906 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5907 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5908 |
|
5909 COMMAND win_121 SetFaded GRAPHICS-WSERV-Window-PublicApi-3031-0001-SetFaded_command002 |
|
5910 |
|
5911 COMMAND bnkwin_123 Close |
|
5912 COMMAND win_122 Close |
|
5913 COMMAND win_121 Close |
|
5914 COMMAND win_120 Close |
|
5915 COMMAND win_112 Close |
|
5916 COMMAND bnkwin_111 Close |
|
5917 COMMAND bnkwin_110 Close |
|
5918 COMMAND wingrp_100 Close |
|
5919 COMMAND ws Close |
|
5920 END_TEST_BLOCK |
|
5921 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3031 |
|
5922 |
|
5923 |
|
5924 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3032 |
|
5925 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3032 |
|
5926 //! @SYMAPI RWindowTreeNode |
|
5927 //! @SYMAuthor Shirly Kuo |
|
5928 //! @SYMCreationDate 20/12/2006 |
|
5929 //! @SYMTestCaseDesc ClearPointerCursor(): Clears pointer cursor settings. |
|
5930 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, ClearPointerCursor |
|
5931 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
5932 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
5933 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
5934 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
5935 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
5936 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
5937 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
5938 //! 8. Sets the pointer cursor from the system pointer cursor list by using SetPointerCursor() and return KErrNone if successed. |
|
5939 //! 9. Clears pointer cursor settings by using ClearPointerCursor(). |
|
5940 //! 10. Close all window nodes by using Close() and return KErrNone if successed. |
|
5941 //! 11. Close the window session by using Close() and return KErrNone if successed. |
|
5942 //! @SYMTestStatus Implemented |
|
5943 //! @SYMTestPriority Low |
|
5944 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are cleared pointer cursor settings without causing panic |
|
5945 //! @SYMTestType CIT |
|
5946 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
5947 CREATE_OBJECT RWsSession ws |
|
5948 CREATE_OBJECT RWindowGroup wingrp_100 |
|
5949 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
5950 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
5951 CREATE_OBJECT RWindow win_112 |
|
5952 CREATE_OBJECT RWindow win_120 |
|
5953 CREATE_OBJECT RWindow win_121 |
|
5954 CREATE_OBJECT RWindow win_122 |
|
5955 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
5956 COMMAND ws new |
|
5957 COMMAND ws Connect |
|
5958 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
5959 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
5960 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
5961 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
5962 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
5963 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
5964 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
5965 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
5966 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
5967 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
5968 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
5969 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
5970 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
5971 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
5972 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
5973 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
5974 |
|
5975 COMMAND win_122 SetPointerCursor GRAPHICS-WSERV-Window-PublicApi-3032-0001-SetPointerCursor_command002 |
|
5976 COMMAND win_122 ClearPointerCursor |
|
5977 |
|
5978 COMMAND bnkwin_123 Close |
|
5979 COMMAND win_122 Close |
|
5980 COMMAND win_121 Close |
|
5981 COMMAND win_120 Close |
|
5982 COMMAND win_112 Close |
|
5983 COMMAND bnkwin_111 Close |
|
5984 COMMAND bnkwin_110 Close |
|
5985 COMMAND wingrp_100 Close |
|
5986 COMMAND ws Close |
|
5987 END_TEST_BLOCK |
|
5988 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3032 |
|
5989 |
|
5990 |
|
5991 |
|
5992 |
|
5993 // **************************************************************************** |
|
5994 // Negative testcases of RWindow |
|
5995 // **************************************************************************** |
|
5996 |
|
5997 |
|
5998 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1208 |
|
5999 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1208 |
|
6000 //! @SYMAPI RWindow |
|
6001 //! @SYMAuthor Ryan Lu |
|
6002 //! @SYMCreationDate 19/10/2007 |
|
6003 //! @SYMTestCaseDesc SetRequiredDisplayMode(TDisplayMode aMode): SetRequiredDisplayMode() of a RWindow to display mode ENone |
|
6004 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6005 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6006 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6007 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6008 //! 4. Execute SetRequiredDisplayMode() of the RWindow to ENone and check if the returned display mode is EGray2 |
|
6009 //! 5. Close all objects used |
|
6010 //! @SYMTestStatus Implemented |
|
6011 //! @SYMTestPriority Medium |
|
6012 //! @SYMTestExpectedResults SetRequiredDisplayMode() of a RWindow to ENone would get returned value of display mode EGray2 (min Gray TDisplayMode) |
|
6013 //! @SYMTestType CIT |
|
6014 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6015 CREATE_OBJECT RWsSession ws |
|
6016 CREATE_OBJECT RWindowGroup wingrp |
|
6017 CREATE_OBJECT RWindow win |
|
6018 COMMAND ws new |
|
6019 COMMAND ws Connect |
|
6020 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6021 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6022 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6023 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6024 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-PublicApi-1208-0001-SetRequiredDisplayMode_command001 |
|
6025 COMMAND win Close |
|
6026 COMMAND wingrp Close |
|
6027 COMMAND ws Close |
|
6028 END_TEST_BLOCK |
|
6029 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1208 |
|
6030 |
|
6031 |
|
6032 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1209 |
|
6033 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1209 |
|
6034 //! @SYMAPI RWindow |
|
6035 //! @SYMAuthor Ryan Lu |
|
6036 //! @SYMCreationDate 19/10/2007 |
|
6037 //! @SYMTestCaseDesc SetRequiredDisplayMode(TDisplayMode aMode): SetRequiredDisplayMode() of a RWindow to display mode of negative value |
|
6038 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6039 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6040 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6041 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6042 //! 4. Execute SetRequiredDisplayMode() of the RWindow to negative value and check if the returned display mode is EGray2 |
|
6043 //! 5. Close all objects used |
|
6044 //! @SYMTestStatus Implemented |
|
6045 //! @SYMTestPriority Medium |
|
6046 //! @SYMTestExpectedResults SetRequiredDisplayMode() of a RWindow to negative value would get returned value of display mode EGray2 (min Gray TDisplayMode) |
|
6047 //! @SYMTestType CIT |
|
6048 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6049 CREATE_OBJECT RWsSession ws |
|
6050 CREATE_OBJECT RWindowGroup wingrp |
|
6051 CREATE_OBJECT RWindow win |
|
6052 COMMAND ws new |
|
6053 COMMAND ws Connect |
|
6054 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6055 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6056 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6057 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6058 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-PublicApi-1209-0001-SetRequiredDisplayMode_command001 |
|
6059 COMMAND win Close |
|
6060 COMMAND wingrp Close |
|
6061 COMMAND ws Close |
|
6062 END_TEST_BLOCK |
|
6063 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1209 |
|
6064 |
|
6065 //!START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1001 |
|
6066 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1001 |
|
6067 //! @SYMAPI RWindow |
|
6068 //! @SYMAuthor Victor Liu |
|
6069 //! @SYMCreationDate 05/10/2007 |
|
6070 //! @SYMTestCaseDesc RWindow(): fail to execute follow-up Construct for a RWindow that created by its default constructor |
|
6071 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6072 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6073 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6074 //! 3. new() a RWindow with its default C++ constructor |
|
6075 //! 4. Execute Contruct() the RWindow as the child of RWindowGroup and see if it meets expected panic code |
|
6076 //! 5. Close all objects used |
|
6077 //! @SYMTestStatus Implemented |
|
6078 //! @SYMTestPriority Low |
|
6079 //! @SYMTestExpectedResults Get panic KERN-EXEC code=3 |
|
6080 //! @SYMTestType CIT |
|
6081 //! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6082 //! CREATE_OBJECT RWsSession ws |
|
6083 //! CREATE_OBJECT RWindowGroup wingrp |
|
6084 //! CREATE_OBJECT RWindow win |
|
6085 //! COMMAND ws new |
|
6086 //! COMMAND ws Connect |
|
6087 //! COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
6088 //! COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
6089 //! COMMAND win new |
|
6090 //! COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
6091 //! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 |
|
6092 //! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6093 //!END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1001 |
|
6094 |
|
6095 |
|
6096 //!START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1002 |
|
6097 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1002 |
|
6098 //! @SYMAPI RWindow |
|
6099 //! @SYMAuthor Victor Liu |
|
6100 //! @SYMCreationDate 05/10/2007 |
|
6101 //! @SYMTestCaseDesc RWindow(RWsSession &aWs): fail to execute follow-up Construct for a RBackedUpWindow that new() within an unconnected RWsSession |
|
6102 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6103 //! @SYMTestActions 1. new() a RWsSession |
|
6104 //! 2. new() a RWindow within the RWsSession before Connect() it |
|
6105 //! 3. Connect() the RWsSession to WSERV |
|
6106 //! 4. new() and Construct() a RWindowGroup within the RWsSession |
|
6107 //! 5. Execute Contruct() the RWindow as the child of RWindowGroup and see if it meets expected panic code |
|
6108 //! 6. Close all objects used |
|
6109 //! @SYMTestStatus Implemented |
|
6110 //! @SYMTestPriority Medium |
|
6111 //! @SYMTestExpectedResults Get panic KERN-EXEC code=3 |
|
6112 //! @SYMTestType CIT |
|
6113 //! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6114 //! CREATE_OBJECT RWsSession ws |
|
6115 //! CREATE_OBJECT RWindowGroup wingrp |
|
6116 //! CREATE_OBJECT RWindow win |
|
6117 //! COMMAND ws new |
|
6118 //! COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
6119 //! COMMAND ws Connect |
|
6120 //! COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
6121 //! COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
6122 //! COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
6123 //! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 |
|
6124 //! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6125 //!END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1002 |
|
6126 |
|
6127 |
|
6128 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1003 |
|
6129 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1003 |
|
6130 //! @SYMAPI RWindow |
|
6131 //! @SYMAuthor Victor Liu |
|
6132 //! @SYMCreationDate 08/10/2007 |
|
6133 //! @SYMTestCaseDesc Construct(const RWindowTreeNode &parent, TUint32 aHandle): fail to Construct() a RBlankWindow as a child of a invalid parent RWindowTreeNode |
|
6134 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6135 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6136 //! 2. new() a RWindowGroup within the RWsSession but not Construct() it |
|
6137 //! 3. new() a RWindow within the RWsSession |
|
6138 //! 4. Execute Contruct() the RWindow as the child of RWindowGroup and see if it meets expected panic code |
|
6139 //! 5. Close all objects used |
|
6140 //! @SYMTestStatus Implemented |
|
6141 //! @SYMTestPriority Medium |
|
6142 //! @SYMTestExpectedResults Get panic WSERV code=6 (Invalid window handle) |
|
6143 //! @SYMTestType CIT |
|
6144 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6145 CREATE_OBJECT RWsSession ws |
|
6146 CREATE_OBJECT RWindowGroup wingrp |
|
6147 CREATE_OBJECT RWindow win |
|
6148 COMMAND ws new |
|
6149 COMMAND ws Connect |
|
6150 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
6151 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
6152 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
6153 END_TEST_BLOCK !PanicString=WSERV !PanicCode=6 |
|
6154 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6155 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1003 |
|
6156 |
|
6157 |
|
6158 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1005 |
|
6159 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1005 |
|
6160 //! @SYMAPI RWindow |
|
6161 //! @SYMAuthor Victor Liu |
|
6162 //! @SYMCreationDate 09/10/2007 |
|
6163 //! @SYMTestCaseDesc BeginRedraw(): execute BeginRedraw when already inside a redraw cycle |
|
6164 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6165 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6166 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6167 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6168 //! 4. Execute BeginRedraw() to begin a redraw cycle |
|
6169 //! 5. Execute BeginRedraw() again and see if it meets expected panic code |
|
6170 //! 6. Close all objects used |
|
6171 //! @SYMTestStatus Implemented |
|
6172 //! @SYMTestPriority Medium |
|
6173 //! @SYMTestExpectedResults Get panic WSERV code=69 (Already inside a begin/end redraw pair) |
|
6174 //! @SYMTestType CIT |
|
6175 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6176 CREATE_OBJECT RWsSession ws |
|
6177 CREATE_OBJECT RWindowGroup wingrp |
|
6178 CREATE_OBJECT RWindow win |
|
6179 COMMAND ws new |
|
6180 COMMAND ws Connect |
|
6181 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
6182 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
6183 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
6184 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
6185 COMMAND win BeginRedraw |
|
6186 COMMAND win BeginRedraw |
|
6187 END_TEST_BLOCK !PanicString=WSERV !PanicCode=69 |
|
6188 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6189 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1005 |
|
6190 |
|
6191 |
|
6192 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1006 |
|
6193 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1006 |
|
6194 //! @SYMAPI RWindow |
|
6195 //! @SYMAuthor Victor Liu |
|
6196 //! @SYMCreationDate 09/10/2007 |
|
6197 //! @SYMTestCaseDesc BeginRedraw(const TRect &aRect): execute BeginRedraw a rectangle when already inside a redraw cycle |
|
6198 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6199 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6200 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6201 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6202 //! 4. Execute BeginRedraw() to begin a redraw cycle in the specified rectangle |
|
6203 //! 5. Execute BeginRedraw() again and see if it meets expected panic code |
|
6204 //! 6. Close all objects used |
|
6205 //! @SYMTestStatus Implemented |
|
6206 //! @SYMTestPriority Medium |
|
6207 //! @SYMTestExpectedResults Get panic WSERV code=69 (Already inside a begin/end redraw pair) |
|
6208 //! @SYMTestType CIT |
|
6209 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6210 CREATE_OBJECT RWsSession ws |
|
6211 CREATE_OBJECT RWindowGroup wingrp |
|
6212 CREATE_OBJECT RWindow win |
|
6213 COMMAND ws new |
|
6214 COMMAND ws Connect |
|
6215 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
6216 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
6217 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
6218 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
6219 COMMAND win BeginRedraw GRAPHICS-WSERV-Window-PublicApi-1006-0001-BeginRedraw_command001 |
|
6220 COMMAND win BeginRedraw GRAPHICS-WSERV-Window-PublicApi-1006-0001-BeginRedraw_command001 |
|
6221 COMMAND win Close |
|
6222 COMMAND wingrp Close |
|
6223 COMMAND ws Close |
|
6224 END_TEST_BLOCK !PanicString=WSERV !PanicCode=69 |
|
6225 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6226 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1006 |
|
6227 |
|
6228 |
|
6229 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1007 |
|
6230 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1007 |
|
6231 //! @SYMAPI RWindow |
|
6232 //! @SYMAuthor Victor Liu |
|
6233 //! @SYMCreationDate 09/10/2007 |
|
6234 //! @SYMTestCaseDesc BeginRedraw(const TRect &aRect): execute BeginRedraw a invalid rectangle |
|
6235 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6236 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6237 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6238 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6239 //! 4. Execute BeginRedraw() to begin a redraw cycle in an invalid rectangle |
|
6240 //! 5. Use GetDrawRect() to get and check if the draw rectangle is the same as the invalid rectangle |
|
6241 //! 6. Close all objects used |
|
6242 //! @SYMTestStatus Implemented |
|
6243 //! @SYMTestPriority Medium |
|
6244 //! @SYMTestExpectedResults BeginRedraw a invalid rectangle would not generate error and the draw rectangle is the same as the specified invalid rectangle |
|
6245 //! @SYMTestType CIT |
|
6246 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6247 CREATE_OBJECT RWsSession ws |
|
6248 CREATE_OBJECT RWindowGroup wingrp |
|
6249 CREATE_OBJECT RWindow win |
|
6250 COMMAND ws new |
|
6251 COMMAND ws Connect |
|
6252 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
6253 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
6254 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
6255 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
6256 COMMAND win BeginRedraw GRAPHICS-WSERV-Window-PublicApi-1007-0001-BeginRedraw_command001 |
|
6257 COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-1007-0001-GetDrawRect_command002 |
|
6258 COMMAND win Close |
|
6259 COMMAND wingrp Close |
|
6260 COMMAND ws Close |
|
6261 END_TEST_BLOCK |
|
6262 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1007 |
|
6263 |
|
6264 |
|
6265 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1008 |
|
6266 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1008 |
|
6267 //! @SYMAPI RWindow |
|
6268 //! @SYMAuthor Victor Liu |
|
6269 //! @SYMCreationDate 09/10/2007 |
|
6270 //! @SYMTestCaseDesc EndRedraw(): execute EndRedraw() before begin a redraw cycle |
|
6271 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6272 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6273 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6274 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6275 //! 4. Execute EndRedraw() before begin a redraw cycle |
|
6276 //! 5. Close all objects used |
|
6277 //! @SYMTestStatus Implemented |
|
6278 //! @SYMTestPriority Medium |
|
6279 //! @SYMTestExpectedResults Execute EndRedraw() before begin a redraw cycle would get panic WSERV code=69 |
|
6280 //! @SYMTestType CIT |
|
6281 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6282 CREATE_OBJECT RWsSession ws |
|
6283 CREATE_OBJECT RWindowGroup wingrp |
|
6284 CREATE_OBJECT RWindow win |
|
6285 COMMAND ws new |
|
6286 COMMAND ws Connect |
|
6287 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
6288 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
6289 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
6290 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
6291 COMMAND win EndRedraw |
|
6292 COMMAND win Close |
|
6293 COMMAND wingrp Close |
|
6294 COMMAND ws Close |
|
6295 END_TEST_BLOCK !PanicString=WSERV !PanicCode=69 |
|
6296 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6297 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1008 |
|
6298 |
|
6299 |
|
6300 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1009 |
|
6301 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1009 |
|
6302 //! @SYMAPI RWindow |
|
6303 //! @SYMAuthor Victor Liu |
|
6304 //! @SYMCreationDate 11/10/2007 |
|
6305 //! @SYMTestCaseDesc Invalidate(const TRect &aRect): execute Invalidate() with a invalid rectangle |
|
6306 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6307 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6308 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6309 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6310 //! 4. Use GetInvalidRegion() to check if the invalid region is empty (i.e. NULL) |
|
6311 //! 5. Execute Invalidate() with a invalid rectangle |
|
6312 //! 6. Use GetInvalidRegion() to check if the invalid region is still empty (i.e. NULL) |
|
6313 //! 7. Close all objects used |
|
6314 //! @SYMTestStatus Implemented |
|
6315 //! @SYMTestPriority Medium |
|
6316 //! @SYMTestExpectedResults Invalidate() with a invalid rectangle would not generate error, and would not change the invalid region |
|
6317 //! @SYMTestType CIT |
|
6318 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6319 CREATE_OBJECT RWsSession ws |
|
6320 CREATE_OBJECT RWindowGroup wingrp |
|
6321 CREATE_OBJECT RWindow win |
|
6322 COMMAND ws new |
|
6323 COMMAND ws Connect |
|
6324 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
6325 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
6326 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
6327 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
6328 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-1009-0001-GetInvalidRegion_command001 |
|
6329 COMMAND win Invalidate GRAPHICS-WSERV-Window-PublicApi-1009-0001-Invalidate_command002 |
|
6330 COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-1009-0001-GetInvalidRegion_command001 |
|
6331 COMMAND win Close |
|
6332 COMMAND wingrp Close |
|
6333 COMMAND ws Close |
|
6334 END_TEST_BLOCK |
|
6335 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1009 |
|
6336 |
|
6337 |
|
6338 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1010 |
|
6339 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1010 |
|
6340 //! @SYMAPI RWindow |
|
6341 //! @SYMAuthor Victor Liu |
|
6342 //! @SYMCreationDate 11/10/2007 |
|
6343 //! @SYMTestCaseDesc SetSize(const TSize &size): set RWindow to invalid size (negative width/height) |
|
6344 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6345 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6346 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6347 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6348 //! 4. Execute SetSize() with a invalid size (negative width and height) |
|
6349 //! 5. Use Size() to check if the RWindow size is width 0 and height 0 |
|
6350 //! 6. Close all objects used |
|
6351 //! @SYMTestStatus Implemented |
|
6352 //! @SYMTestPriority Medium |
|
6353 //! @SYMTestExpectedResults SetSize() with negative width and height would not generate error and set RWindow size to width 0 and height 0 |
|
6354 //! @SYMTestType CIT |
|
6355 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6356 CREATE_OBJECT RWsSession ws |
|
6357 CREATE_OBJECT RWindowGroup wingrp |
|
6358 CREATE_OBJECT RWindow win |
|
6359 COMMAND ws new |
|
6360 COMMAND ws Connect |
|
6361 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
6362 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
6363 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
6364 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
6365 COMMAND win SetSize GRAPHICS-WSERV-Window-PublicApi-1010-0001-SetSize_command001 |
|
6366 COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-1010-0001-Size_command002 |
|
6367 COMMAND win Close |
|
6368 COMMAND wingrp Close |
|
6369 COMMAND ws Close |
|
6370 END_TEST_BLOCK |
|
6371 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1010 |
|
6372 |
|
6373 |
|
6374 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1011 |
|
6375 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1011 |
|
6376 //! @SYMAPI RWindow |
|
6377 //! @SYMAuthor Victor Liu |
|
6378 //! @SYMCreationDate 11/10/2007 |
|
6379 //! @SYMTestCaseDesc SetExtent(const TPoint &point, const TSize &size): set RWindow to invalid size (negative width/height) |
|
6380 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6381 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6382 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6383 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6384 //! 4. Execute SetExtent() with a invalid size (negative width and height) |
|
6385 //! 5. Use Size() to check if the RWindow size is width 0 and height 0 |
|
6386 //! 6. Close all objects used |
|
6387 //! @SYMTestStatus Implemented |
|
6388 //! @SYMTestPriority Medium |
|
6389 //! @SYMTestExpectedResults SetExtent() with negative width and height would not generate error and set RWindow size to width 0 and height 0 |
|
6390 //! @SYMTestType CIT |
|
6391 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6392 CREATE_OBJECT RWsSession ws |
|
6393 CREATE_OBJECT RWindowGroup wingrp |
|
6394 CREATE_OBJECT RWindow win |
|
6395 COMMAND ws new |
|
6396 COMMAND ws Connect |
|
6397 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 |
|
6398 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 |
|
6399 COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 |
|
6400 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 |
|
6401 COMMAND win SetExtent GRAPHICS-WSERV-Window-PublicApi-1011-0001-SetExtent_command001 |
|
6402 COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-1011-0001-Size_command002 |
|
6403 COMMAND win Close |
|
6404 COMMAND wingrp Close |
|
6405 COMMAND ws Close |
|
6406 END_TEST_BLOCK |
|
6407 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1011 |
|
6408 |
|
6409 |
|
6410 |
|
6411 |
|
6412 // **************************************************************************** |
|
6413 // Negative testcases of RWindow inherited from RDrawableWindow |
|
6414 // **************************************************************************** |
|
6415 |
|
6416 |
|
6417 |
|
6418 |
|
6419 // **************************************************************************** |
|
6420 // Negative testcases of RWindow inherited from RWindowBase |
|
6421 // **************************************************************************** |
|
6422 |
|
6423 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1201 |
|
6424 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1201 |
|
6425 //! @SYMAPI RWindow |
|
6426 //! @SYMAuthor Ryan Lu |
|
6427 //! @SYMCreationDate 15/10/2007 |
|
6428 //! @SYMTestCaseDesc SetSizeErr(const TSize &size): set RWindow to invalid size (negative width/height) |
|
6429 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6430 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6431 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6432 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6433 //! 4. SetAutoFlush() to TRUE for the RWsSession |
|
6434 //! 5. Execute Activate() the RWindow |
|
6435 //! 6. Execute Activate() the RWindow again and see if it meets expected panic code |
|
6436 //! 7. Close all objects used |
|
6437 //! @SYMTestStatus Implemented |
|
6438 //! @SYMTestPriority Medium |
|
6439 //! @SYMTestExpectedResults Get panic WSERV code=11 (Window already active) |
|
6440 //! @SYMTestType CIT |
|
6441 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6442 CREATE_OBJECT RWsSession ws |
|
6443 CREATE_OBJECT RWindowGroup wingrp |
|
6444 CREATE_OBJECT RWindow win |
|
6445 COMMAND ws new |
|
6446 COMMAND ws Connect |
|
6447 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6448 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6449 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6450 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6451 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 |
|
6452 COMMAND win Activate |
|
6453 COMMAND win Activate |
|
6454 END_TEST_BLOCK !PanicString=WSERV !PanicCode=11 |
|
6455 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6456 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1201 |
|
6457 |
|
6458 |
|
6459 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1202 |
|
6460 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1202 |
|
6461 //! @SYMAPI RWindow |
|
6462 //! @SYMAuthor Ryan Lu |
|
6463 //! @SYMCreationDate 15/10/2007 |
|
6464 //! @SYMTestCaseDesc SetSizeErr(const TSize &size): set RWindow to invalid size (negative width/height) |
|
6465 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6466 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6467 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6468 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6469 //! 4. Execute SetSizeErr() with a invalid size (negative width and height) |
|
6470 //! 5. Use Size() to check if the RWindow size is width 0 and height 0 |
|
6471 //! 6. Close all objects used |
|
6472 //! @SYMTestStatus Implemented |
|
6473 //! @SYMTestPriority Medium |
|
6474 //! @SYMTestExpectedResults SetSizeErr() with negative width and height would not generate error and set RWindow size to width 0 and height 0 |
|
6475 //! @SYMTestType CIT |
|
6476 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6477 CREATE_OBJECT RWsSession ws |
|
6478 CREATE_OBJECT RWindowGroup wingrp |
|
6479 CREATE_OBJECT RWindow win |
|
6480 COMMAND ws new |
|
6481 COMMAND ws Connect |
|
6482 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6483 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6484 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6485 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6486 COMMAND win SetSizeErr GRAPHICS-WSERV-Window-PublicApi-1202-0001-SetSizeErr_command001 |
|
6487 COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-1202-0001-Size_command002 |
|
6488 COMMAND win Close |
|
6489 COMMAND wingrp Close |
|
6490 COMMAND ws Close |
|
6491 END_TEST_BLOCK |
|
6492 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1202 |
|
6493 |
|
6494 |
|
6495 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1203 |
|
6496 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1203 |
|
6497 //! @SYMAPI RWindow |
|
6498 //! @SYMAuthor Ryan Lu |
|
6499 //! @SYMCreationDate 16/10/2007 |
|
6500 //! @SYMTestCaseDesc SetExtentErr(const TPoint &point, const TSize &size): set RWindow to invalid size (negative width/height) |
|
6501 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6502 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6503 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6504 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6505 //! 4. Execute SetExtentErr() with a invalid size (negative width and height) |
|
6506 //! 5. Use Size() to check if the RWindow size is width 0 and height 0 |
|
6507 //! 6. Close all objects used |
|
6508 //! @SYMTestStatus Implemented |
|
6509 //! @SYMTestPriority Medium |
|
6510 //! @SYMTestExpectedResults SetExtentErr() with negative width and height would not generate error and set RWindow size to width 0 and height 0 |
|
6511 //! @SYMTestType CIT |
|
6512 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6513 CREATE_OBJECT RWsSession ws |
|
6514 CREATE_OBJECT RWindowGroup wingrp |
|
6515 CREATE_OBJECT RWindow win |
|
6516 COMMAND ws new |
|
6517 COMMAND ws Connect |
|
6518 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6519 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6520 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6521 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6522 COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-1203-0001-SetExtentErr_command001 |
|
6523 COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-1203-0001-Size_command002 |
|
6524 COMMAND win Close |
|
6525 COMMAND wingrp Close |
|
6526 COMMAND ws Close |
|
6527 END_TEST_BLOCK |
|
6528 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1203 |
|
6529 |
|
6530 |
|
6531 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1204 |
|
6532 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1204 |
|
6533 //! @SYMAPI RWindow |
|
6534 //! @SYMAuthor Ryan Lu |
|
6535 //! @SYMCreationDate 16/10/2007 |
|
6536 //! @SYMTestCaseDesc InquireOffset(const RWindowTreeNode &aWindow): InquireOffset() with invalid RWindowTreeNode |
|
6537 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6538 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6539 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6540 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6541 //! 4. Execute InquireOffset() of RWindow with invalid RWindowTreeNode and see if it meets expected panic code |
|
6542 //! @SYMTestStatus Implemented |
|
6543 //! @SYMTestPriority Medium |
|
6544 //! @SYMTestExpectedResults Get panic WSERV code=6 (Invalid window handle) |
|
6545 //! @SYMTestType CIT |
|
6546 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6547 CREATE_OBJECT RWsSession ws |
|
6548 CREATE_OBJECT RWindowGroup wingrp |
|
6549 CREATE_OBJECT RWindow win |
|
6550 COMMAND ws new |
|
6551 COMMAND ws Connect |
|
6552 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6553 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6554 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6555 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6556 COMMAND win InquireOffset GRAPHICS-WSERV-Window-PublicApi-1204-0001-InquireOffset_command001 |
|
6557 END_TEST_BLOCK !PanicString=WSERV !PanicCode=6 |
|
6558 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6559 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1204 |
|
6560 |
|
6561 |
|
6562 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1205 |
|
6563 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1205 |
|
6564 //! @SYMAPI RWindow |
|
6565 //! @SYMAuthor Ryan Lu |
|
6566 //! @SYMCreationDate 17/10/2007 |
|
6567 //! @SYMTestCaseDesc SetShadowHeight(TInt aHeight): set RWindow shadow height to negative value |
|
6568 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6569 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6570 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6571 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6572 //! 4. Execute SetShadowHeight() with negative shadow height and see if it meets expected panic code |
|
6573 //! 5. Close all objects used |
|
6574 //! @SYMTestStatus Implemented |
|
6575 //! @SYMTestPriority Medium |
|
6576 //! @SYMTestExpectedResults Get panic WSERV code=29 (A client attempted to set a negative shadow height) |
|
6577 //! @SYMTestType CIT |
|
6578 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6579 CREATE_OBJECT RWsSession ws |
|
6580 CREATE_OBJECT RWindowGroup wingrp |
|
6581 CREATE_OBJECT RWindow win |
|
6582 COMMAND ws new |
|
6583 COMMAND ws Connect |
|
6584 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6585 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6586 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6587 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6588 COMMAND win SetShadowHeight GRAPHICS-WSERV-Window-PublicApi-1205-0001-SetShadowHeight_command001 |
|
6589 COMMAND win Close |
|
6590 COMMAND wingrp Close |
|
6591 COMMAND ws Close |
|
6592 END_TEST_BLOCK !PanicString=WSERV !PanicCode=29 |
|
6593 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6594 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1205 |
|
6595 |
|
6596 |
|
6597 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1206 |
|
6598 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1206 |
|
6599 //! @SYMAPI RWindow |
|
6600 //! @SYMAuthor Ryan Lu |
|
6601 //! @SYMCreationDate 17/10/2007 |
|
6602 //! @SYMTestCaseDesc SetCornerType(TCornerType aCornerType, TInt aCornerFlags=0): set RWindow with invalid corner type |
|
6603 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6604 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6605 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6606 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6607 //! 4. Execute SetCornerType() with invalid corner type and see if it meets expected panic code |
|
6608 //! @SYMTestStatus Implemented |
|
6609 //! @SYMTestPriority Medium |
|
6610 //! @SYMTestExpectedResults Get panic WSERV code=35 (A client passed an invalid or unrecognised corner type or flag) |
|
6611 //! @SYMTestType CIT |
|
6612 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6613 CREATE_OBJECT RWsSession ws |
|
6614 CREATE_OBJECT RWindowGroup wingrp |
|
6615 CREATE_OBJECT RWindow win |
|
6616 COMMAND ws new |
|
6617 COMMAND ws Connect |
|
6618 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6619 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6620 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6621 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6622 COMMAND win SetCornerType GRAPHICS-WSERV-Window-PublicApi-1206-0001-SetCornerType_command001 |
|
6623 END_TEST_BLOCK !PanicString=WSERV !PanicCode=35 |
|
6624 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6625 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1206 |
|
6626 |
|
6627 |
|
6628 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1207 |
|
6629 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1207 |
|
6630 //! @SYMAPI RWindow |
|
6631 //! @SYMAuthor Ryan Lu |
|
6632 //! @SYMCreationDate 17/10/2007 |
|
6633 //! @SYMTestCaseDesc SetCornerType(TCornerType aCornerType, TInt aCornerFlags=0): set RWindow with invalid corner flag |
|
6634 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6635 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6636 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6637 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6638 //! 4. Execute SetCornerType() with invalid corner flag and see if it meets expected panic code |
|
6639 //! @SYMTestStatus Implemented |
|
6640 //! @SYMTestPriority Medium |
|
6641 //! @SYMTestExpectedResults Get panic WSERV code=35 (A client passed an invalid or unrecognised corner type or flag) |
|
6642 //! @SYMTestType CIT |
|
6643 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6644 CREATE_OBJECT RWsSession ws |
|
6645 CREATE_OBJECT RWindowGroup wingrp |
|
6646 CREATE_OBJECT RWindow win |
|
6647 COMMAND ws new |
|
6648 COMMAND ws Connect |
|
6649 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6650 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6651 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6652 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6653 COMMAND win SetCornerType GRAPHICS-WSERV-Window-PublicApi-1207-0001-SetCornerType_command001 |
|
6654 END_TEST_BLOCK !PanicString=WSERV !PanicCode=35 |
|
6655 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6656 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1207 |
|
6657 |
|
6658 |
|
6659 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1210b |
|
6660 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1210b |
|
6661 //! @SYMAPI RWindow |
|
6662 //! @SYMAuthor Ryan Lu |
|
6663 //! @SYMCreationDate 19/10/2007 |
|
6664 //! @SYMTestCaseDesc SetRequiredDisplayMode(TDisplayMode aMode): SetRequiredDisplayMode() of a RWindow to display mode of invalid large value |
|
6665 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6666 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6667 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6668 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6669 //! 4. Execute SetRequiredDisplayMode() of the RWindow to invalid large value and check if the returned display mode is EColor16 |
|
6670 //! 5. Close all objects used |
|
6671 //! @SYMTestStatus Implemented |
|
6672 //! @SYMTestPriority Medium |
|
6673 //! @SYMTestExpectedResults SetRequiredDisplayMode() of a RWindow to invalid large value without causing any panic |
|
6674 //! @SYMTestType CIT |
|
6675 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6676 CREATE_OBJECT RWsSession ws |
|
6677 CREATE_OBJECT RWindowGroup wingrp |
|
6678 CREATE_OBJECT RWindow win |
|
6679 COMMAND ws new |
|
6680 COMMAND ws Connect |
|
6681 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6682 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6683 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6684 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6685 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-PublicApi-1210b-0001-SetRequiredDisplayMode_command001 |
|
6686 COMMAND win Close |
|
6687 COMMAND wingrp Close |
|
6688 COMMAND ws Close |
|
6689 END_TEST_BLOCK |
|
6690 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1210b |
|
6691 |
|
6692 |
|
6693 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1211 |
|
6694 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1211 |
|
6695 //! @SYMAPI RWindow |
|
6696 //! @SYMAuthor Ryan Lu |
|
6697 //! @SYMCreationDate 22/10/2007 |
|
6698 //! @SYMTestCaseDesc CancelPointerRepeatEventRequest(): CancelPointerRepeatEventRequest() before RequestPointerRepeatEvent() |
|
6699 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6700 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6701 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6702 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6703 //! 4. Execute CancelPointerRepeatEventRequest() before calling RequestPointerRepeatEvent() |
|
6704 //! 5. Close all objects used |
|
6705 //! @SYMTestStatus Implemented |
|
6706 //! @SYMTestPriority Low |
|
6707 //! @SYMTestExpectedResults CancelPointerRepeatEventRequest() before RequestPointerRepeatEvent() would not generate error |
|
6708 //! @SYMTestType CIT |
|
6709 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6710 CREATE_OBJECT RWsSession ws |
|
6711 CREATE_OBJECT RWindowGroup wingrp |
|
6712 CREATE_OBJECT RWindow win |
|
6713 COMMAND ws new |
|
6714 COMMAND ws Connect |
|
6715 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6716 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6717 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6718 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6719 COMMAND win CancelPointerRepeatEventRequest |
|
6720 COMMAND win Close |
|
6721 COMMAND wingrp Close |
|
6722 COMMAND ws Close |
|
6723 END_TEST_BLOCK |
|
6724 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1211 |
|
6725 |
|
6726 |
|
6727 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1212 |
|
6728 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1212 |
|
6729 //! @SYMAPI RWindow |
|
6730 //! @SYMAuthor Ryan Lu |
|
6731 //! @SYMCreationDate 23/10/2007 |
|
6732 //! @SYMTestCaseDesc AllocPointerMoveBuffer(): execute AllocPointerMoveBuffer() again when already allocated |
|
6733 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6734 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6735 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6736 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6737 //! 4. Execute AllocPointerMoveBuffer() |
|
6738 //! 5. Execute AllocPointerMoveBuffer() and see if it generates expected error |
|
6739 //! 6. Close all objects used |
|
6740 //! @SYMTestStatus Implemented |
|
6741 //! @SYMTestPriority Medium |
|
6742 //! @SYMTestExpectedResults Execute AllocPointerMoveBuffer() when already allocated would generate KErrInUse (-14) |
|
6743 //! @SYMTestType CIT |
|
6744 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6745 CREATE_OBJECT RWsSession ws |
|
6746 CREATE_OBJECT RWindowGroup wingrp |
|
6747 CREATE_OBJECT RWindow win |
|
6748 COMMAND ws new |
|
6749 COMMAND ws Connect |
|
6750 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6751 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6752 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6753 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6754 COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-1212-0001-AllocPointerMoveBuffer_command001 |
|
6755 COMMAND !Error=-14 win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-1212-0001-AllocPointerMoveBuffer_command001 |
|
6756 COMMAND win Close |
|
6757 COMMAND wingrp Close |
|
6758 COMMAND ws Close |
|
6759 END_TEST_BLOCK |
|
6760 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1212 |
|
6761 |
|
6762 |
|
6763 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1213 |
|
6764 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1213 |
|
6765 //! @SYMAPI RWindow |
|
6766 //! @SYMAuthor Ryan Lu |
|
6767 //! @SYMCreationDate 23/10/2007 |
|
6768 //! @SYMTestCaseDesc FreePointerMoveBuffer(): FreePointerMoveBuffer() before AllocPointerMoveBuffer() |
|
6769 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6770 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6771 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6772 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6773 //! 4. Execute FreePointerMoveBuffer() before calling AllocPointerMoveBuffer() |
|
6774 //! 5. Close all objects used |
|
6775 //! @SYMTestStatus Implemented |
|
6776 //! @SYMTestPriority Low |
|
6777 //! @SYMTestExpectedResults FreePointerMoveBuffer() before AllocPointerMoveBuffer() would not generate error |
|
6778 //! @SYMTestType CIT |
|
6779 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6780 CREATE_OBJECT RWsSession ws |
|
6781 CREATE_OBJECT RWindowGroup wingrp |
|
6782 CREATE_OBJECT RWindow win |
|
6783 COMMAND ws new |
|
6784 COMMAND ws Connect |
|
6785 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6786 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6787 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6788 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6789 COMMAND win FreePointerMoveBuffer |
|
6790 COMMAND win Close |
|
6791 COMMAND wingrp Close |
|
6792 COMMAND ws Close |
|
6793 END_TEST_BLOCK |
|
6794 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1213 |
|
6795 |
|
6796 |
|
6797 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1214 |
|
6798 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1214 |
|
6799 //! @SYMAPI RWindow |
|
6800 //! @SYMAuthor Ryan Lu |
|
6801 //! @SYMCreationDate 25/10/2007 |
|
6802 //! @SYMTestCaseDesc EnablePointerMoveBuffer(): EnablePointerMoveBuffer() without AllocPointerMoveBuffer() in advace |
|
6803 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6804 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6805 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6806 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6807 //! 4. Execute EnablePointerMoveBuffer() without AllocPointerMoveBuffer() in advace and see if it meets expected panic code |
|
6808 //! @SYMTestStatus Implemented |
|
6809 //! @SYMTestPriority Medium |
|
6810 //! @SYMTestExpectedResults Get panic WSERV code=43 (A client attempted to enable a pointer move buffer when none was allocated) |
|
6811 //! @SYMTestType CIT |
|
6812 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6813 CREATE_OBJECT RWsSession ws |
|
6814 CREATE_OBJECT RWindowGroup wingrp |
|
6815 CREATE_OBJECT RWindow win |
|
6816 COMMAND ws new |
|
6817 COMMAND ws Connect |
|
6818 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6819 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6820 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6821 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6822 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 |
|
6823 COMMAND win EnablePointerMoveBuffer |
|
6824 END_TEST_BLOCK !PanicString=WSERV !PanicCode=43 |
|
6825 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
6826 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1214 |
|
6827 |
|
6828 |
|
6829 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1215 |
|
6830 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1215 |
|
6831 //! @SYMAPI RWindow |
|
6832 //! @SYMAuthor Ryan Lu |
|
6833 //! @SYMCreationDate 25/10/2007 |
|
6834 //! @SYMTestCaseDesc EnablePointerMoveBuffer(): execute EnablePointerMoveBuffer() again when already enabled |
|
6835 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6836 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6837 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6838 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6839 //! 4. use AllocPointerMoveBuffer() to allocate pointer move buffer |
|
6840 //! 5. Execute EnablePointerMoveBuffer() |
|
6841 //! 6. Execute EnablePointerMoveBuffer() again |
|
6842 //! 7. Close all objects used |
|
6843 //! @SYMTestStatus Implemented |
|
6844 //! @SYMTestPriority Low |
|
6845 //! @SYMTestExpectedResults Execute EnablePointerMoveBuffer() again when already enabled would not generate error |
|
6846 //! @SYMTestType CIT |
|
6847 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6848 CREATE_OBJECT RWsSession ws |
|
6849 CREATE_OBJECT RWindowGroup wingrp |
|
6850 CREATE_OBJECT RWindow win |
|
6851 COMMAND ws new |
|
6852 COMMAND ws Connect |
|
6853 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6854 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6855 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6856 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6857 COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 |
|
6858 COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-1215-0001-AllocPointerMoveBuffer_command001 |
|
6859 COMMAND win EnablePointerMoveBuffer |
|
6860 COMMAND win EnablePointerMoveBuffer |
|
6861 COMMAND win Close |
|
6862 COMMAND wingrp Close |
|
6863 COMMAND ws Close |
|
6864 END_TEST_BLOCK |
|
6865 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1215 |
|
6866 |
|
6867 |
|
6868 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1216 |
|
6869 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1216 |
|
6870 //! @SYMAPI RWindow |
|
6871 //! @SYMAuthor Ryan Lu |
|
6872 //! @SYMCreationDate 25/10/2007 |
|
6873 //! @SYMTestCaseDesc DisablePointerMoveBuffer(): DisablePointerMoveBuffer() before EnablePointerMoveBuffer() |
|
6874 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct |
|
6875 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
6876 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
6877 //! 3. new() and Construct() a RWindow as the child of RWindowGroup |
|
6878 //! 4. Execute DisablePointerMoveBuffer() before calling EnablePointerMoveBuffer() |
|
6879 //! 5. Close all objects used |
|
6880 //! @SYMTestStatus Implemented |
|
6881 //! @SYMTestPriority Low |
|
6882 //! @SYMTestExpectedResults DisablePointerMoveBuffer() before EnablePointerMoveBuffer() would not generate error |
|
6883 //! @SYMTestType CIT |
|
6884 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6885 CREATE_OBJECT RWsSession ws |
|
6886 CREATE_OBJECT RWindowGroup wingrp |
|
6887 CREATE_OBJECT RWindow win |
|
6888 COMMAND ws new |
|
6889 COMMAND ws Connect |
|
6890 COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 |
|
6891 COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 |
|
6892 COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 |
|
6893 COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 |
|
6894 COMMAND win DisablePointerMoveBuffer |
|
6895 COMMAND win Close |
|
6896 COMMAND wingrp Close |
|
6897 COMMAND ws Close |
|
6898 END_TEST_BLOCK |
|
6899 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1216 |
|
6900 |
|
6901 |
|
6902 |
|
6903 |
|
6904 // **************************************************************************** |
|
6905 // Negative testcases of RWindow implemented for MWsClientClass |
|
6906 // **************************************************************************** |
|
6907 |
|
6908 |
|
6909 |
|
6910 |
|
6911 // **************************************************************************** |
|
6912 // Negative testcases of RWindow inherited from RWindowTreeNode |
|
6913 // **************************************************************************** |
|
6914 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3101 |
|
6915 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3101 |
|
6916 //! @SYMAPI RWindowTreeNode |
|
6917 //! @SYMAuthor Shirly Kuo |
|
6918 //! @SYMCreationDate 20/12/2006 |
|
6919 //! @SYMTestCaseDesc SetOrdinalPosition(): Sets the ordinal position of a window. |
|
6920 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetOrdinalPosition |
|
6921 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
6922 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
6923 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
6924 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
6925 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
6926 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
6927 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
6928 //! 8. Sets the ordinal position of a window by using SetOrdinalPosition() with negative position. |
|
6929 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
6930 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
6931 //! @SYMTestStatus Implemented |
|
6932 //! @SYMTestPriority Medium |
|
6933 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window's ordinal position. |
|
6934 //! @SYMTestType CIT |
|
6935 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
6936 CREATE_OBJECT RWsSession ws |
|
6937 CREATE_OBJECT RWindowGroup wingrp_100 |
|
6938 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
6939 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
6940 CREATE_OBJECT RWindow win_112 |
|
6941 CREATE_OBJECT RWindow win_120 |
|
6942 CREATE_OBJECT RWindow win_121 |
|
6943 CREATE_OBJECT RWindow win_122 |
|
6944 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
6945 COMMAND ws new |
|
6946 COMMAND ws Connect |
|
6947 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
6948 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
6949 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
6950 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
6951 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
6952 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
6953 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
6954 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
6955 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
6956 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
6957 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
6958 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
6959 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
6960 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
6961 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
6962 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
6963 |
|
6964 COMMAND bnkwin_123 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3101-0001-SetOrdinalPosition_command002 |
|
6965 COMMAND win_122 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3101-0001-SetOrdinalPosition_command004 |
|
6966 COMMAND win_121 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3101-0001-SetOrdinalPosition_command006 |
|
6967 |
|
6968 COMMAND bnkwin_123 Close |
|
6969 COMMAND win_122 Close |
|
6970 COMMAND win_121 Close |
|
6971 COMMAND win_120 Close |
|
6972 COMMAND win_112 Close |
|
6973 COMMAND bnkwin_111 Close |
|
6974 COMMAND bnkwin_110 Close |
|
6975 COMMAND wingrp_100 Close |
|
6976 COMMAND ws Close |
|
6977 END_TEST_BLOCK |
|
6978 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3101 |
|
6979 |
|
6980 |
|
6981 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3102 |
|
6982 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3102 |
|
6983 //! @SYMAPI RWindowTreeNode |
|
6984 //! @SYMAuthor Shirly Kuo |
|
6985 //! @SYMCreationDate 20/12/2006 |
|
6986 //! @SYMTestCaseDesc SetOrdinalPosition(): Sets the ordinal position and ordinal priority of a window. |
|
6987 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetOrdinalPosition |
|
6988 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
6989 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
6990 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
6991 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
6992 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
6993 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
6994 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
6995 //! 8. Sets the ordinal position of a window by using SetOrdinalPosition() with negative position. |
|
6996 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
6997 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
6998 //! @SYMTestStatus Implemented |
|
6999 //! @SYMTestPriority Medium |
|
7000 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window's ordinal position, ordinal priority and same as setting of ordinal position without causing panic. |
|
7001 //! @SYMTestType CIT |
|
7002 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
7003 CREATE_OBJECT RWsSession ws |
|
7004 CREATE_OBJECT RWindowGroup wingrp_100 |
|
7005 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
7006 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
7007 CREATE_OBJECT RWindow win_112 |
|
7008 CREATE_OBJECT RWindow win_120 |
|
7009 CREATE_OBJECT RWindow win_121 |
|
7010 CREATE_OBJECT RWindow win_122 |
|
7011 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
7012 COMMAND ws new |
|
7013 COMMAND ws Connect |
|
7014 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
7015 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
7016 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
7017 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
7018 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
7019 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
7020 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
7021 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
7022 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
7023 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
7024 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
7025 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
7026 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
7027 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
7028 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
7029 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
7030 |
|
7031 COMMAND bnkwin_123 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3102-0001-SetOrdinalPosition_command002 |
|
7032 COMMAND win_122 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3102-0001-SetOrdinalPosition_command004 |
|
7033 COMMAND win_121 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3102-0001-SetOrdinalPosition_command006 |
|
7034 |
|
7035 COMMAND bnkwin_123 Close |
|
7036 COMMAND win_122 Close |
|
7037 COMMAND win_121 Close |
|
7038 COMMAND win_120 Close |
|
7039 COMMAND win_112 Close |
|
7040 COMMAND bnkwin_111 Close |
|
7041 COMMAND bnkwin_110 Close |
|
7042 COMMAND wingrp_100 Close |
|
7043 COMMAND ws Close |
|
7044 END_TEST_BLOCK |
|
7045 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3102 |
|
7046 |
|
7047 |
|
7048 START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3103 |
|
7049 //! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3103 |
|
7050 //! @SYMAPI RWindowTreeNode |
|
7051 //! @SYMAuthor Shirly Kuo |
|
7052 //! @SYMCreationDate 20/12/2006 |
|
7053 //! @SYMTestCaseDesc SetFaded(): Sets one or more windows as faded or unfaded, specifying a fading map. |
|
7054 //! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetFaded |
|
7055 //! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. |
|
7056 //! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. |
|
7057 //! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. |
|
7058 //! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. |
|
7059 //! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. |
|
7060 //! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. |
|
7061 //! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. |
|
7062 //! 8. Sets one or more windows as faded or unfaded, specifying a fading map by using SetFaded() with negative black and white maps. |
|
7063 //! 9. Close all window nodes by using Close() and return KErrNone if successed. |
|
7064 //! 10. Close the window session by using Close() and return KErrNone if successed. |
|
7065 //! @SYMTestStatus Implemented |
|
7066 //! @SYMTestPriority Low |
|
7067 //! @SYMTestExpectedResults All nodes in the constructed window hierarchy are set one or more windows as faded or unfaded, specifying a fading map. |
|
7068 //! @SYMTestType CIT |
|
7069 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini |
|
7070 CREATE_OBJECT RWsSession ws |
|
7071 CREATE_OBJECT RWindowGroup wingrp_100 |
|
7072 CREATE_OBJECT RBlankWindow bnkwin_110 |
|
7073 CREATE_OBJECT RBlankWindow bnkwin_111 |
|
7074 CREATE_OBJECT RWindow win_112 |
|
7075 CREATE_OBJECT RWindow win_120 |
|
7076 CREATE_OBJECT RWindow win_121 |
|
7077 CREATE_OBJECT RWindow win_122 |
|
7078 CREATE_OBJECT RBlankWindow bnkwin_123 |
|
7079 COMMAND ws new |
|
7080 COMMAND ws Connect |
|
7081 COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 |
|
7082 COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 |
|
7083 COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 |
|
7084 COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 |
|
7085 COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 |
|
7086 COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 |
|
7087 COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 |
|
7088 COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 |
|
7089 COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 |
|
7090 COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 |
|
7091 COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 |
|
7092 COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 |
|
7093 COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 |
|
7094 COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 |
|
7095 COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 |
|
7096 COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 |
|
7097 |
|
7098 COMMAND win_121 SetFaded GRAPHICS-WSERV-Window-PublicApi-3103-0001-SetFaded_command002 |
|
7099 |
|
7100 COMMAND bnkwin_123 Close |
|
7101 COMMAND win_122 Close |
|
7102 COMMAND win_121 Close |
|
7103 COMMAND win_120 Close |
|
7104 COMMAND win_112 Close |
|
7105 COMMAND bnkwin_111 Close |
|
7106 COMMAND bnkwin_110 Close |
|
7107 COMMAND wingrp_100 Close |
|
7108 COMMAND ws Close |
|
7109 END_TEST_BLOCK |
|
7110 END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3103 |