|
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-WindowGroup-PublicApi |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
|
20 /////////////////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-WSERV-WindowGroup-PublicApi.script |
|
22 // |
|
23 // Tests all public elements of the RWindowGroup 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 // RWindowGroup 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 // RWindowGroup |
|
40 // **************************************************************************** |
|
41 |
|
42 |
|
43 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0001 |
|
44 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0001 |
|
45 //! @SYMAPI RWindowGroup |
|
46 //! @SYMAuthor Ryan Lu |
|
47 //! @SYMCreationDate 18/12/2006 |
|
48 //! @SYMTestCaseDesc RWindowGroup(): create a RWindowGroup object with default C++ constructor |
|
49 //! Uses API elements: RWindowGroup() |
|
50 //! @SYMTestActions simply execute new() a RWindowGroup to create the object |
|
51 //! @SYMTestStatus Implemented |
|
52 //! @SYMTestPriority Low |
|
53 //! @SYMTestExpectedResults RWindowGroup object was created without causing panic |
|
54 //! @SYMTestType CIT |
|
55 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
56 CREATE_OBJECT RWindowGroup wingrp |
|
57 COMMAND wingrp new |
|
58 END_TEST_BLOCK |
|
59 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0001 |
|
60 |
|
61 |
|
62 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0002 |
|
63 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0002 |
|
64 //! @SYMAPI RWindowGroup |
|
65 //! @SYMAuthor Ryan Lu |
|
66 //! @SYMCreationDate 18/12/2006 |
|
67 //! @SYMTestCaseDesc RWindowGroup(RWsSession &aWs): create a RWindowGroup object within the specified RWsSession |
|
68 //! Uses API elements: RWsSession::Connect, RWindowGroup() |
|
69 //! @SYMTestActions 1. Create and connect a RWsSession |
|
70 //! 2. Create a RWindowGroup within the RWsSession |
|
71 //! @SYMTestStatus Implemented |
|
72 //! @SYMTestPriority Critical |
|
73 //! @SYMTestExpectedResults RWindowGroup object was created without causing panic |
|
74 //! @SYMTestType CIT |
|
75 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
76 CREATE_OBJECT RWsSession ws |
|
77 CREATE_OBJECT RWindowGroup wingrp |
|
78 COMMAND ws new |
|
79 COMMAND ws Connect |
|
80 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0002-0001-new_command04 |
|
81 END_TEST_BLOCK |
|
82 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0002 |
|
83 |
|
84 |
|
85 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0003 |
|
86 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0003 |
|
87 //! @SYMAPI RWindowGroup |
|
88 //! @SYMAuthor Ryan Lu |
|
89 //! @SYMCreationDate 18/12/2006 |
|
90 //! @SYMTestCaseDesc Construct(TUint32 aClientHandle): complete construction of a RWindowGroup |
|
91 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct |
|
92 //! @SYMTestActions 1. Create and connect a RWsSession |
|
93 //! 2. Create and construct a RWindowGroup within the RWsSession |
|
94 //! 3. close all objects used |
|
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-WindowGroup-PublicApi.ini |
|
100 CREATE_OBJECT RWsSession ws |
|
101 CREATE_OBJECT RWindowGroup wingrp |
|
102 COMMAND ws new |
|
103 COMMAND ws Connect |
|
104 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0003-0001-new_command04 |
|
105 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0003-0001-Construct_command05 |
|
106 |
|
107 COMMAND wingrp Close |
|
108 COMMAND ws Close |
|
109 END_TEST_BLOCK |
|
110 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0003 |
|
111 |
|
112 |
|
113 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0004 |
|
114 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0004 |
|
115 //! @SYMAPI RWindowGroup |
|
116 //! @SYMAuthor Ryan Lu |
|
117 //! @SYMCreationDate 11/12/2006 |
|
118 //! @SYMTestCaseDesc Construct(TUint32 aClientHandle, TBool aIsFocusable): complete construction of a RWindowGroup and set initial focus state |
|
119 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct |
|
120 //! @SYMTestActions 1. Create and connect a RWsSession |
|
121 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state = TRUE |
|
122 //! 3. close all objects used |
|
123 //! @SYMTestStatus Implemented |
|
124 //! @SYMTestPriority Critical |
|
125 //! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic |
|
126 //! @SYMTestType CIT |
|
127 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
128 CREATE_OBJECT RWsSession ws |
|
129 CREATE_OBJECT RWindowGroup wingrp |
|
130 COMMAND ws new |
|
131 COMMAND ws Connect |
|
132 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0004-0001-new_command04 |
|
133 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0004-0001-Construct_command05 |
|
134 |
|
135 COMMAND wingrp Close |
|
136 COMMAND ws Close |
|
137 END_TEST_BLOCK |
|
138 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0004 |
|
139 |
|
140 |
|
141 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0005 |
|
142 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0005 |
|
143 //! @SYMAPI RWindowGroup |
|
144 //! @SYMAuthor Ryan Lu |
|
145 //! @SYMCreationDate 21/08/2007 |
|
146 //! @SYMTestCaseDesc Construct(TUint32 aClientHandle, CWsScreenDevice *aScreenDevice): complete construction of a RWindowGroup on a screen |
|
147 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct |
|
148 //! @SYMTestActions 1. Create and connect a RWsSession |
|
149 //! 2. Create a CWsScreenDevice within the RWsSession |
|
150 //! 3. Create and construct a RWindowGroup within the RWsSession and on the CWsScreenDevice |
|
151 //! 4. close all objects used |
|
152 //! @SYMTestStatus Implemented |
|
153 //! @SYMTestPriority Critical |
|
154 //! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic |
|
155 //! @SYMTestType CIT |
|
156 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
157 CREATE_OBJECT RWsSession ws |
|
158 CREATE_OBJECT CWsScreenDevice scrdev |
|
159 CREATE_OBJECT RWindowGroup wingrp |
|
160 COMMAND ws new |
|
161 COMMAND ws Connect |
|
162 COMMAND scrdev new GRAPHICS-WSERV-WindowGroup-PublicApi-0005-0001-new_command01 |
|
163 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0005-0001-new_command04 |
|
164 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0005-0001-Construct_command05 |
|
165 |
|
166 COMMAND wingrp Close |
|
167 COMMAND ws Close |
|
168 END_TEST_BLOCK |
|
169 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0005 |
|
170 |
|
171 |
|
172 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0006 |
|
173 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0006 |
|
174 //! @SYMAPI RWindowGroup |
|
175 //! @SYMAuthor Ryan Lu |
|
176 //! @SYMCreationDate 21/08/2007 |
|
177 //! @SYMTestCaseDesc Construct(TUint32 aClientHandle, TBool aIsFocusable, CWsScreenDevice *aScreenDevice): complete construction of a RWindowGroup on a screen |
|
178 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct |
|
179 //! @SYMTestActions 1. Create and connect a RWsSession |
|
180 //! 2. Create a CWsScreenDevice within the RWsSession |
|
181 //! 3. Create and construct a RWindowGroup within the RWsSession and on the CWsScreenDevice, and set initial focus state = TRUE |
|
182 //! 4. close all objects used |
|
183 //! @SYMTestStatus Implemented |
|
184 //! @SYMTestPriority Critical |
|
185 //! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic |
|
186 //! @SYMTestType CIT |
|
187 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
188 CREATE_OBJECT RWsSession ws |
|
189 CREATE_OBJECT CWsScreenDevice scrdev |
|
190 CREATE_OBJECT RWindowGroup wingrp |
|
191 COMMAND ws new |
|
192 COMMAND ws Connect |
|
193 COMMAND scrdev new GRAPHICS-WSERV-WindowGroup-PublicApi-0006-0001-new_command01 |
|
194 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0006-0001-new_command04 |
|
195 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0006-0001-Construct_command05 |
|
196 |
|
197 COMMAND wingrp Close |
|
198 COMMAND ws Close |
|
199 END_TEST_BLOCK |
|
200 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0006 |
|
201 |
|
202 |
|
203 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0007 |
|
204 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0007 |
|
205 //! @SYMAPI RWindowGroup |
|
206 //! @SYMAuthor Ryan Lu |
|
207 //! @SYMCreationDate 11/12/2006 |
|
208 //! @SYMTestCaseDesc ConstructChildApp(TInt aIdOfParentWindowGroup, TUint32 aClientHandle): Completes construction of a window group |
|
209 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
210 //! @SYMTestActions 1. Create and connect a RWsSession |
|
211 //! 2. Create and construct a parent RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
212 //! 3. Use new() to create a RWindowGroup as child window group |
|
213 //! 4. Execute ConstructChildApp() to construct window group as the child of the parent RWindowGroup |
|
214 //! 5. Close all objects used |
|
215 //! @SYMTestStatus Implemented |
|
216 //! @SYMTestPriority Critical |
|
217 //! @SYMTestExpectedResults ConstructChildApp() method returns KErrNone without causing panic |
|
218 //! @SYMTestType CIT |
|
219 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
220 CREATE_OBJECT RWsSession ws |
|
221 CREATE_OBJECT RWindowGroup wingrp |
|
222 CREATE_OBJECT RWindowGroup wingrp2 |
|
223 COMMAND ws new |
|
224 COMMAND ws Connect |
|
225 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0007-0001-new_command01 |
|
226 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0007-0001-Construct_command02 |
|
227 COMMAND wingrp Identifier |
|
228 COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0007-0001-new_command04 |
|
229 COMMAND wingrp2 ConstructChildApp GRAPHICS-WSERV-WindowGroup-PublicApi-0007-0001-ConstructChildApp_command05 |
|
230 COMMAND wingrp2 Close |
|
231 COMMAND wingrp Close |
|
232 COMMAND ws Close |
|
233 END_TEST_BLOCK |
|
234 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0007 |
|
235 |
|
236 |
|
237 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0008 |
|
238 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0008 |
|
239 //! @SYMAPI RWindowGroup |
|
240 //! @SYMAuthor Ryan Lu |
|
241 //! @SYMCreationDate 11/12/2006 |
|
242 //! @SYMTestCaseDesc ConstructChildApp(TInt aIdOfParentWindowGroup, TUint32 aClientHandle, TBool aIsFocusable): Completes construction of a window group |
|
243 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
244 //! @SYMTestActions 1. Create and connect a RWsSession |
|
245 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
246 //! 3. Use new() to create a RWindowGroup as child window group |
|
247 //! 4. Execute ConstructChildApp() to construct window group as the child of the parent RWindowGroup, and with IsFocusable=TRUE |
|
248 //! 5. Close all objects used |
|
249 //! @SYMTestStatus Implemented |
|
250 //! @SYMTestPriority Critical |
|
251 //! @SYMTestExpectedResults ConstructChildApp() method returns KErrNone without causing panic |
|
252 //! @SYMTestType CIT |
|
253 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
254 CREATE_OBJECT RWsSession ws |
|
255 CREATE_OBJECT RWindowGroup wingrp |
|
256 CREATE_OBJECT RWindowGroup wingrp2 |
|
257 COMMAND ws new |
|
258 COMMAND ws Connect |
|
259 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0008-0001-new_command01 |
|
260 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0008-0001-Construct_command02 |
|
261 COMMAND wingrp Identifier |
|
262 COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0008-0001-new_command01 |
|
263 COMMAND wingrp2 ConstructChildApp GRAPHICS-WSERV-WindowGroup-PublicApi-0008-0001-ConstructChildApp_command03 |
|
264 COMMAND wingrp2 Close |
|
265 COMMAND wingrp Close |
|
266 COMMAND ws Close |
|
267 END_TEST_BLOCK |
|
268 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0008 |
|
269 |
|
270 |
|
271 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0009 |
|
272 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0009 |
|
273 //! @SYMAPI RWindowGroup |
|
274 //! @SYMAuthor Ryan Lu |
|
275 //! @SYMCreationDate 11/12/2006 |
|
276 //! @SYMTestCaseDesc DefaultOwningWindow(): Makes this window group the default owning window group |
|
277 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
278 //! @SYMTestActions 1. Create and connect a RWsSession |
|
279 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
280 //! 3. Execute DefaultOwningWindow to set the RWindowGroup as the default owning window group |
|
281 //! 4. Close all objects used |
|
282 //! @SYMTestStatus Implemented |
|
283 //! @SYMTestPriority High |
|
284 //! @SYMTestExpectedResults Run DefaultOwningWindow() method without causing panic |
|
285 //! @SYMTestType CIT |
|
286 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
287 CREATE_OBJECT RWsSession ws |
|
288 CREATE_OBJECT RWindowGroup wingrp |
|
289 COMMAND ws new |
|
290 COMMAND ws Connect |
|
291 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0009-0001-new_command04 |
|
292 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0009-0001-Construct_command05 |
|
293 COMMAND wingrp DefaultOwningWindow |
|
294 COMMAND wingrp Close |
|
295 COMMAND ws Close |
|
296 END_TEST_BLOCK |
|
297 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0009 |
|
298 |
|
299 |
|
300 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0010 |
|
301 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0010 |
|
302 //! @SYMAPI RWindowGroup |
|
303 //! @SYMAuthor Ryan Lu |
|
304 //! @SYMCreationDate 11/12/2006 |
|
305 //! @SYMTestCaseDesc EnableReceiptOfFocus(TBool aState): enable/disable receipt of keyboard focus |
|
306 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
307 //! @SYMTestActions 1. Create and connect a RWsSession |
|
308 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
309 //! 3. Execute EnableReceiptOfFocus to enable RWindowGroup receipt of keyboard focus (state=TRUE) |
|
310 //! 4. Close all objects used |
|
311 //! @SYMTestStatus Implemented |
|
312 //! @SYMTestPriority High |
|
313 //! @SYMTestExpectedResults Run EnableReceiptOfFocus() method without causing panic |
|
314 //! @SYMTestType CIT |
|
315 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
316 CREATE_OBJECT RWsSession ws |
|
317 CREATE_OBJECT RWindowGroup wingrp |
|
318 COMMAND ws new |
|
319 COMMAND ws Connect |
|
320 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0010-0001-new_command04 |
|
321 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0010-0001-Construct_command05 |
|
322 COMMAND wingrp EnableReceiptOfFocus GRAPHICS-WSERV-WindowGroup-PublicApi-0010-0001-EnableReceiptOfFocus_command06 |
|
323 COMMAND wingrp Close |
|
324 COMMAND ws Close |
|
325 END_TEST_BLOCK |
|
326 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0010 |
|
327 |
|
328 |
|
329 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0011 |
|
330 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0011 |
|
331 //! @SYMAPI RWindowGroup |
|
332 //! @SYMAuthor Ryan Lu |
|
333 //! @SYMCreationDate 11/12/2006 |
|
334 //! @SYMTestCaseDesc EnableScreenChangeEvents(): enable screen change event sending |
|
335 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
336 //! @SYMTestActions 1. Create and connect a RWsSession |
|
337 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
338 //! 3. Execute EnableReceiptOfFocus to enable RWindowGroup screen change event sending |
|
339 //! 4. Close all objects used |
|
340 //! @SYMTestStatus Implemented |
|
341 //! @SYMTestPriority High |
|
342 //! @SYMTestExpectedResults Run EnableScreenChangeEvents() method without causing panic |
|
343 //! @SYMTestType CIT |
|
344 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
345 CREATE_OBJECT RWsSession ws |
|
346 CREATE_OBJECT RWindowGroup wingrp |
|
347 COMMAND ws new |
|
348 COMMAND ws Connect |
|
349 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0011-0001-new_command04 |
|
350 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0011-0001-Construct_command05 |
|
351 COMMAND wingrp EnableScreenChangeEvents |
|
352 COMMAND wingrp Close |
|
353 COMMAND ws Close |
|
354 END_TEST_BLOCK |
|
355 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0011 |
|
356 |
|
357 |
|
358 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0012 |
|
359 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0012 |
|
360 //! @SYMAPI RWindowGroup |
|
361 //! @SYMAuthor Ryan Lu |
|
362 //! @SYMCreationDate 11/12/2006 |
|
363 //! @SYMTestCaseDesc AutoForeground(TBool aState): Sets or disables auto-foreground behaviour |
|
364 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
365 //! @SYMTestActions 1. Create and connect a RWsSession |
|
366 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
367 //! 3. Execute AutoForeground to enable RWindowGroup auto-foreground behaviour (state=TRUE) |
|
368 //! 4. Close all objects used |
|
369 //! @SYMTestStatus Implemented |
|
370 //! @SYMTestPriority High |
|
371 //! @SYMTestExpectedResults Run AutoForeground() method without causing panic |
|
372 //! @SYMTestType CIT |
|
373 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
374 CREATE_OBJECT RWsSession ws |
|
375 CREATE_OBJECT RWindowGroup wingrp |
|
376 COMMAND ws new |
|
377 COMMAND ws Connect |
|
378 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0012-0001-new_command04 |
|
379 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0012-0001-Construct_command05 |
|
380 COMMAND wingrp AutoForeground GRAPHICS-WSERV-WindowGroup-PublicApi-0012-0001-AutoForeground_command06 |
|
381 COMMAND wingrp Close |
|
382 COMMAND ws Close |
|
383 END_TEST_BLOCK |
|
384 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0012 |
|
385 |
|
386 |
|
387 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0013 |
|
388 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0013 |
|
389 //! @SYMAPI RWindowGroup |
|
390 //! @SYMAuthor Ryan Lu |
|
391 //! @SYMCreationDate 11/12/2006 |
|
392 //! @SYMTestCaseDesc AllowProcessToCreateChildWindowGroups(TUid aProcessSID): allow a RWindowGroup in the specified process to be be a child of this one |
|
393 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
394 //! @SYMTestActions 1. Create and connect a RWsSession |
|
395 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
396 //! 3. Execute AllowProcessToCreateChildWindowGroups to allow the specified process (uid=1) to be a child of the RWindowGroup |
|
397 //! 4. Close all objects used |
|
398 //! @SYMTestStatus Implemented |
|
399 //! @SYMTestPriority Medium |
|
400 //! @SYMTestExpectedResults Run AllowProcessToCreateChildWindowGroups() method without causing panic |
|
401 //! @SYMTestType CIT |
|
402 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
403 CREATE_OBJECT RWsSession ws |
|
404 CREATE_OBJECT RWindowGroup wingrp |
|
405 COMMAND ws new |
|
406 COMMAND ws Connect |
|
407 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0013-0001-new_command04 |
|
408 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0013-0001-Construct_command05 |
|
409 COMMAND wingrp AllowProcessToCreateChildWindowGroups GRAPHICS-WSERV-WindowGroup-PublicApi-0013-0001-AllowProcessToCreateChildWindowGroups_command06 |
|
410 COMMAND wingrp Close |
|
411 COMMAND ws Close |
|
412 END_TEST_BLOCK |
|
413 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0013 |
|
414 |
|
415 |
|
416 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0014 |
|
417 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0014 |
|
418 //! @SYMAPI RWindowGroup |
|
419 //! @SYMAuthor Ryan Lu |
|
420 //! @SYMCreationDate 11/12/2006 |
|
421 //! @SYMTestCaseDesc AddPriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier): add a priority key |
|
422 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
423 //! @SYMTestActions 1. Create and connect a RWsSession |
|
424 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
425 //! 3. Execute AddPriorityKey to set a priority key as specified |
|
426 //! 4. Close all objects used |
|
427 //! @SYMTestStatus Implemented |
|
428 //! @SYMTestPriority High |
|
429 //! @SYMTestExpectedResults AddPriorityKey() method returns KErrNone without causing panic |
|
430 //! @SYMTestType CIT |
|
431 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
432 CREATE_OBJECT RWsSession ws |
|
433 CREATE_OBJECT RWindowGroup wingrp |
|
434 COMMAND ws new |
|
435 COMMAND ws Connect |
|
436 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0014-0001-new_command04 |
|
437 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0014-0001-Construct_command05 |
|
438 COMMAND wingrp AddPriorityKey GRAPHICS-WSERV-WindowGroup-PublicApi-0014-0001-AddPriorityKey_command06 |
|
439 COMMAND wingrp Close |
|
440 COMMAND ws Close |
|
441 END_TEST_BLOCK |
|
442 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0014 |
|
443 |
|
444 |
|
445 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0015 |
|
446 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0015 |
|
447 //! @SYMAPI RWindowGroup |
|
448 //! @SYMAuthor Ryan Lu |
|
449 //! @SYMCreationDate 11/12/2006 |
|
450 //! @SYMTestCaseDesc RemovePriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier): remove a priority key |
|
451 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
452 //! @SYMTestActions 1. Create and connect a RWsSession |
|
453 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
454 //! 3. Execute RemovePriorityKey to remove a priority key as specified |
|
455 //! 4. Close all objects used |
|
456 //! @SYMTestStatus Implemented |
|
457 //! @SYMTestPriority High |
|
458 //! @SYMTestExpectedResults Run RemovePriorityKey() method without causing panic |
|
459 //! @SYMTestType CIT |
|
460 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
461 CREATE_OBJECT RWsSession ws |
|
462 CREATE_OBJECT RWindowGroup wingrp |
|
463 COMMAND ws new |
|
464 COMMAND ws Connect |
|
465 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0015-0001-new_command04 |
|
466 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0015-0001-Construct_command05 |
|
467 COMMAND wingrp RemovePriorityKey GRAPHICS-WSERV-WindowGroup-PublicApi-0015-0001-RemovePriorityKey_command06 |
|
468 COMMAND wingrp Close |
|
469 COMMAND ws Close |
|
470 END_TEST_BLOCK |
|
471 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0015 |
|
472 |
|
473 |
|
474 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0016 |
|
475 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0016 |
|
476 //! @SYMAPI RWindowGroup |
|
477 //! @SYMAuthor Ryan Lu |
|
478 //! @SYMCreationDate 11/12/2006 |
|
479 //! @SYMTestCaseDesc SetName(const TDesC &aName): set the window group's name |
|
480 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close & Name |
|
481 //! @SYMTestActions 1. Create and connect a RWsSession |
|
482 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
483 //! 3. Execute SetName to set the name of the RWindowGroup as specified |
|
484 //! 4. Use Name to get and check if the RWindowGroup's name as specified |
|
485 //! 5. Close all objects used |
|
486 //! @SYMTestStatus Implemented |
|
487 //! @SYMTestPriority High |
|
488 //! @SYMTestExpectedResults 1. SetName() method returns KErrNone without causing panic |
|
489 //! 2. after execute SetName(), the RWindowGroup's name is the same as specified |
|
490 //! @SYMTestType CIT |
|
491 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
492 CREATE_OBJECT RWsSession ws |
|
493 CREATE_OBJECT RWindowGroup wingrp |
|
494 COMMAND ws new |
|
495 COMMAND ws Connect |
|
496 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0016-0001-new_command04 |
|
497 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0016-0001-Construct_command05 |
|
498 COMMAND wingrp SetName GRAPHICS-WSERV-WindowGroup-PublicApi-0016-0001-SetName_command06 |
|
499 COMMAND wingrp Name GRAPHICS-WSERV-WindowGroup-PublicApi-0016-0001-Name_command07 |
|
500 COMMAND wingrp Close |
|
501 COMMAND ws Close |
|
502 END_TEST_BLOCK |
|
503 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0016 |
|
504 |
|
505 |
|
506 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0017 |
|
507 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0017 |
|
508 //! @SYMAPI RWindowGroup |
|
509 //! @SYMAuthor Ryan Lu |
|
510 //! @SYMCreationDate 11/12/2006 |
|
511 //! @SYMTestCaseDesc Name(TDes &aWindowName) const: get the window group's name |
|
512 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
513 //! @SYMTestActions 1. Create and connect a RWsSession |
|
514 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
515 //! 3. Execute Name to get and check if the default RWindowGroup's name (should be an empty string) |
|
516 //! 4. Close all objects used |
|
517 //! @SYMTestStatus Implemented |
|
518 //! @SYMTestPriority High |
|
519 //! @SYMTestExpectedResults 1. Name() method returns KErrNone without causing panic |
|
520 //! 2. the default RWindowGroup's name is an empty string |
|
521 //! @SYMTestType CIT |
|
522 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
523 CREATE_OBJECT RWsSession ws |
|
524 CREATE_OBJECT RWindowGroup wingrp |
|
525 COMMAND ws new |
|
526 COMMAND ws Connect |
|
527 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0017-0001-new_command04 |
|
528 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0017-0001-Construct_command05 |
|
529 COMMAND wingrp Name GRAPHICS-WSERV-WindowGroup-PublicApi-0017-0001-Name_command06 |
|
530 COMMAND wingrp Close |
|
531 COMMAND ws Close |
|
532 END_TEST_BLOCK |
|
533 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0017 |
|
534 |
|
535 |
|
536 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0018 |
|
537 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0018 |
|
538 //! @SYMAPI RWindowGroup |
|
539 //! @SYMAuthor Ryan Lu |
|
540 //! @SYMCreationDate 11/12/2006 |
|
541 //! @SYMTestCaseDesc SetChildGroup: set a window group chain onto the current window group. |
|
542 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
543 //! @SYMTestActions 1. Create and connect a RWsSession |
|
544 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
545 //! 3. Create and construct another RWindowGroup (wingrp2) within the RWsSession, and set initial focus state TRUE |
|
546 //! 4. Execute SetChildGroup to set a window group chain (with identifier of wingrp2) onto the first created window group (wingrp) |
|
547 //! 5. Close all objects used |
|
548 //! @SYMTestStatus Implemented |
|
549 //! @SYMTestPriority High |
|
550 //! @SYMTestExpectedResults SetChildGroup() method returns KErrNone without causing panic |
|
551 //! @SYMTestType CIT |
|
552 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
553 CREATE_OBJECT RWsSession ws |
|
554 CREATE_OBJECT RWindowGroup wingrp |
|
555 CREATE_OBJECT RWindowGroup wingrp2 |
|
556 COMMAND ws new |
|
557 COMMAND ws Connect |
|
558 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-new_command01 |
|
559 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-Construct_command02 |
|
560 COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-new_command03 |
|
561 COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-Construct_command04 |
|
562 COMMAND wingrp2 Identifier |
|
563 COMMAND wingrp SetChildGroup GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-SetChildGroup_command06 |
|
564 COMMAND wingrp2 Close |
|
565 COMMAND wingrp Close |
|
566 COMMAND ws Close |
|
567 END_TEST_BLOCK |
|
568 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0018 |
|
569 |
|
570 |
|
571 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0019 |
|
572 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0019 |
|
573 //! @SYMAPI RWindowGroup |
|
574 //! @SYMAuthor Ryan Lu |
|
575 //! @SYMCreationDate 11/12/2006 |
|
576 //! @SYMTestCaseDesc ClearChildGroup: clear all children of the current window group |
|
577 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close & SetChildGroup |
|
578 //! @SYMTestActions 1. Create and connect a RWsSession |
|
579 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
580 //! 3. Create and construct another RWindowGroup (wingrp2) within the RWsSession, and set initial focus state TRUE |
|
581 //! 4. Use SetChildGroup to set a window group chain (with identifier of wingrp2) onto the first created window group (wingrp) |
|
582 //! 5. Execute ClearChildGroup on the first created window group (wingrp) |
|
583 //! 6. Close all objects used |
|
584 //! @SYMTestStatus Implemented |
|
585 //! @SYMTestPriority High |
|
586 //! @SYMTestExpectedResults ClearChildGroup() method returns KErrNone without causing panic |
|
587 //! @SYMTestType CIT |
|
588 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
589 CREATE_OBJECT RWsSession ws |
|
590 CREATE_OBJECT RWindowGroup wingrp |
|
591 CREATE_OBJECT RWindowGroup wingrp2 |
|
592 COMMAND ws new |
|
593 COMMAND ws Connect |
|
594 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-new_command01 |
|
595 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-Construct_command02 |
|
596 COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-new_command04 |
|
597 COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-Construct_command05 |
|
598 COMMAND wingrp2 Identifier |
|
599 COMMAND wingrp SetChildGroup GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-SetChildGroup_command07 |
|
600 COMMAND wingrp ClearChildGroup |
|
601 COMMAND wingrp2 Close |
|
602 COMMAND wingrp Close |
|
603 COMMAND ws Close |
|
604 END_TEST_BLOCK |
|
605 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0019 |
|
606 |
|
607 |
|
608 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0020 |
|
609 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0020 |
|
610 //! @SYMAPI RWindowGroup |
|
611 //! @SYMAuthor Ryan Lu |
|
612 //! @SYMCreationDate 11/12/2006 |
|
613 //! @SYMTestCaseDesc SetOwningWindowGroup(TInt aIdentifier): set the owning window group for this window group |
|
614 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
615 //! @SYMTestActions 1. Create and connect a RWsSession |
|
616 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
617 //! 3. Create and construct another RWindowGroup (wingrp2) within the RWsSession, and set initial focus state TRUE |
|
618 //! 4. Execute SetOwningWindowGroup on wingrp2 to set the owning window group (to the identifier of wingrp) |
|
619 //! 5. Close all objects used |
|
620 //! @SYMTestStatus Implemented |
|
621 //! @SYMTestPriority High |
|
622 //! @SYMTestExpectedResults Run SetOwningWindowGroup() method without causing panic |
|
623 //! @SYMTestType CIT |
|
624 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
625 CREATE_OBJECT RWsSession ws |
|
626 CREATE_OBJECT RWindowGroup wingrp |
|
627 CREATE_OBJECT RWindowGroup wingrp2 |
|
628 COMMAND ws new |
|
629 COMMAND ws Connect |
|
630 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-new_command01 |
|
631 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-Construct_command02 |
|
632 COMMAND wingrp Identifier |
|
633 COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-new_command04 |
|
634 COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-Construct_command05 |
|
635 COMMAND wingrp2 SetOwningWindowGroup GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-SetOwningWindowGroup_command06 |
|
636 COMMAND wingrp2 Close |
|
637 COMMAND wingrp Close |
|
638 COMMAND ws Close |
|
639 END_TEST_BLOCK |
|
640 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0020 |
|
641 |
|
642 |
|
643 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0021 |
|
644 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0021 |
|
645 //! @SYMAPI RWindowGroup |
|
646 //! @SYMAuthor Ryan Lu |
|
647 //! @SYMCreationDate 05/06/2007 |
|
648 //! @SYMTestCaseDesc SetOrdinalPriorityAdjust(TInt aAdjust): set the window group's priority adjust value |
|
649 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, WindowTreeNode::OrdinalPosition & OrdinalPriority |
|
650 //! @SYMTestActions 1. Create and connect a RWsSession |
|
651 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
652 //! 3. Create and construct another RWindowGroup (wingrp2) within the RWsSession, and set initial focus state TRUE |
|
653 //! 4. Use OrdinalPosition() & OrdinalPriority() to check the initial ordinal position and priority of both RWindowGroup |
|
654 //! 5. Execute SetOrdinalPriorityAdjust to adjust priority of wingrp (from 0) to 4 (different priority from the other RWindowGroup) |
|
655 //! 6. Use OrdinalPosition() & OrdinalPriority() to check the ordinal position and priority of both RWindowGroup |
|
656 //! 7. Execute SetOrdinalPriorityAdjust to adjust priority of wingrp (from 4) to 0 (the same priority as the other RWindowGroup) |
|
657 //! 8. Use OrdinalPosition() & OrdinalPriority() to check the ordinal position and priority of both RWindowGroup |
|
658 //! 9. Close all objects used |
|
659 //! @SYMTestStatus Implemented |
|
660 //! @SYMTestPriority High |
|
661 //! @SYMTestExpectedResults 1. SetOrdinalPriorityAdjust() method returns KErrNone without causing panic |
|
662 //! 2. SetOrdinalPriorityAdjust() would adjust ordinal position and priority of associated RWindowGroup as expected |
|
663 //! 2.1 initially, both RWindowGroup have ordinal priority = 0 |
|
664 //! RWindowGroup that constructed later (wingrp2) has ordinal position = 0, the other one (wingrp) has ordinal position = 1 |
|
665 //! 2.2 after SetOrdinalPriorityAdjust wingrp to 4 |
|
666 //! wingrp2 still has ordinal priority = 0, position = 0 |
|
667 //! wingrp is adjusted to priority = 4, and reset its postion = 0 |
|
668 //! 2.3 after SetOrdinalPriorityAdjust wingrp to 0 |
|
669 //! wingrp is adjusted to priority = 0 (same as the wingrp2), and reset its postion = 0 |
|
670 //! wingrp2 still has ordinal priority = 0, as position 0 is used by wingrp, adjust its position to next position = 1 |
|
671 //! @SYMTestType CIT |
|
672 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
673 CREATE_OBJECT RWsSession ws |
|
674 CREATE_OBJECT RWindowGroup wingrp |
|
675 CREATE_OBJECT RWindowGroup wingrp2 |
|
676 COMMAND ws new |
|
677 COMMAND ws Connect |
|
678 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-new_command01 |
|
679 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-Construct_command02 |
|
680 COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-new_command01 |
|
681 COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-Construct_command03 |
|
682 |
|
683 COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_1 |
|
684 COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 |
|
685 COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 |
|
686 COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 |
|
687 COMMAND wingrp SetOrdinalPriorityAdjust GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-SetOrdinalPriorityAdjust_command04 |
|
688 COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 |
|
689 COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_4 |
|
690 COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 |
|
691 COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 |
|
692 COMMAND wingrp SetOrdinalPriorityAdjust GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-SetOrdinalPriorityAdjust_command05 |
|
693 COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 |
|
694 COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 |
|
695 COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_1 |
|
696 COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 |
|
697 |
|
698 COMMAND wingrp2 Close |
|
699 COMMAND wingrp Close |
|
700 COMMAND ws Close |
|
701 END_TEST_BLOCK |
|
702 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0021 |
|
703 |
|
704 |
|
705 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0022 |
|
706 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0022 |
|
707 //! @SYMAPI RWindowGroup |
|
708 //! @SYMAuthor Ryan Lu |
|
709 //! @SYMCreationDate 06/06/2007 |
|
710 //! @SYMTestCaseDesc SetOrdinalPositionErr(TInt aPos, TInt aOrdinalPriority): set the ordinal position and ordinal priority of a window group |
|
711 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, WindowTreeNode::OrdinalPosition & OrdinalPriority |
|
712 //! @SYMTestActions 1. Create and connect a RWsSession |
|
713 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
714 //! 3. Create and construct another RWindowGroup (wingrp2) within the RWsSession, and set initial focus state TRUE |
|
715 //! 4. Use OrdinalPosition() & OrdinalPriority() to check the initial ordinal position and priority of both RWindowGroup |
|
716 //! 5. Execute SetOrdinalPositionErr to set wingrp to new ordinal position 4 and keep priority 0 (keep priority, new position case) |
|
717 //! 6. Use OrdinalPosition() & OrdinalPriority() to check if the ordinal position and priority of both RWindowGroup as expected |
|
718 //! 7. Execute SetOrdinalPositionErr to set wingrp to new ordinal position 0 and keep priority 0 (keep priority, collision position case) |
|
719 //! 8. Use OrdinalPosition() & OrdinalPriority() to check if the ordinal position and priority of both RWindowGroup as expected |
|
720 //! 9. Execute SetOrdinalPositionErr to set wingrp to new ordinal position 3 and priority 1 (new priority, new position case) |
|
721 //! 10. Use OrdinalPosition() & OrdinalPriority() to check if the ordinal position and priority of both RWindowGroup as expected |
|
722 //! 11. Execute SetOrdinalPositionErr to set wingrp to new ordinal position 3 and priority 0 (new priority, same position case) |
|
723 //! 12. Use OrdinalPosition() & OrdinalPriority() to check if the ordinal position and priority of both RWindowGroup as expected |
|
724 //! 13. Close all objects used |
|
725 //! @SYMTestStatus Implemented |
|
726 //! @SYMTestPriority High |
|
727 //! @SYMTestExpectedResults 1. SetOrdinalPositionErr() method returns KErrNone without causing panic |
|
728 //! 2. SetOrdinalPositionErr() |
|
729 //! 2.1 initially, both RWindowGroup have ordinal priority = 0 |
|
730 //! RWindowGroup that constructed later (wingrp2) has ordinal position = 0, the other one (wingrp) has ordinal position = 1 |
|
731 //! 2.2 after test action 5 (keep priority, new position case) |
|
732 //! wingrp2 still has ordinal priority = 0, position = 0 |
|
733 //! wingrp set its ordinal priority = 0, position = 4 (as specified) |
|
734 //! 2.3 after test action 7 (keep priority, collision position case) |
|
735 //! wingrp set its ordinal priority = 0, position = 4 (as specified) |
|
736 //! wingrp2 still has ordinal priority = 0, as position 0 is used by wingrp, adjust its position to next position = 1 |
|
737 //! 2.4 after test action 9 (new priority, new position case) |
|
738 //! wingrp set its ordinal priority = 1 (as specified), as no window group within priority 1, adjust its position = 0 |
|
739 //! wingrp2 still has ordinal priority = 0, as wingrp moved out from position 0, adjust its position to position = 0 |
|
740 //! 2.5 after test action 11 (new priority, same position case) |
|
741 //! wingrp set its ordinal priority = 0, position = 3 (as specified) |
|
742 //! wingrp2 still has ordinal priority = 0, position = 0 |
|
743 //! @SYMTestType CIT |
|
744 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
745 CREATE_OBJECT RWsSession ws |
|
746 CREATE_OBJECT RWindowGroup wingrp |
|
747 CREATE_OBJECT RWindowGroup wingrp2 |
|
748 COMMAND ws new |
|
749 COMMAND ws Connect |
|
750 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-new_command01 |
|
751 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-Construct_command02 |
|
752 COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-new_command01 |
|
753 COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-Construct_command03 |
|
754 |
|
755 COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_1 |
|
756 COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
757 COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
758 COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
759 COMMAND wingrp SetOrdinalPositionErr GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-SetOrdinalPositionErr_command04 |
|
760 COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_4 |
|
761 COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
762 COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
763 COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
764 COMMAND wingrp SetOrdinalPositionErr GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-SetOrdinalPositionErr_command05 |
|
765 COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
766 COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
767 COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_1 |
|
768 COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
769 COMMAND wingrp SetOrdinalPositionErr GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-SetOrdinalPositionErr_command06 |
|
770 COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
771 COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_1 |
|
772 COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
773 COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
774 COMMAND wingrp SetOrdinalPositionErr GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-SetOrdinalPositionErr_command07 |
|
775 COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_3 |
|
776 COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
777 COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
778 COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 |
|
779 |
|
780 COMMAND wingrp2 Close |
|
781 COMMAND wingrp Close |
|
782 COMMAND ws Close |
|
783 END_TEST_BLOCK |
|
784 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0022 |
|
785 |
|
786 |
|
787 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0023 |
|
788 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0023 |
|
789 //! @SYMAPI RWindowGroup |
|
790 //! @SYMAuthor Ryan Lu |
|
791 //! @SYMCreationDate 11/12/2006 |
|
792 //! @SYMTestCaseDesc SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor): set the text cursor |
|
793 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
794 //! @SYMTestActions 1. Create and connect a RWsSession |
|
795 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
796 //! 3. Execute SetTextCursor to set the text cursor |
|
797 //! 4. Close all objects used |
|
798 //! @SYMTestStatus Implemented |
|
799 //! @SYMTestPriority High |
|
800 //! @SYMTestExpectedResults Run SetTextCursor() method without causing panic |
|
801 //! @SYMTestType CIT |
|
802 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
803 CREATE_OBJECT RWsSession ws |
|
804 CREATE_OBJECT RWindowGroup wingrp |
|
805 CREATE_OBJECT RBlankWindow bnkwin |
|
806 COMMAND ws new |
|
807 COMMAND ws Connect |
|
808 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-new_command01 |
|
809 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-Construct_command02 |
|
810 COMMAND bnkwin new GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-new_command03 |
|
811 COMMAND bnkwin Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-Construct_command04 |
|
812 COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-SetTextCursor_command05 |
|
813 COMMAND bnkwin Close |
|
814 COMMAND wingrp Close |
|
815 COMMAND ws Close |
|
816 END_TEST_BLOCK |
|
817 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0023 |
|
818 |
|
819 |
|
820 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0024 |
|
821 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0024 |
|
822 //! @SYMAPI RWindowGroup |
|
823 //! @SYMAuthor Ryan Lu |
|
824 //! @SYMCreationDate 11/12/2006 |
|
825 //! @SYMTestCaseDesc CancelTextCursor():Removes the text cursor |
|
826 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
827 //! @SYMTestActions 1. Create and connect a RWsSession |
|
828 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
829 //! 3. Execute CancelTextCursor to remove the text cursor |
|
830 //! 4. Close all objects used |
|
831 //! @SYMTestStatus Implemented |
|
832 //! @SYMTestPriority High |
|
833 //! @SYMTestExpectedResults Run CancelTextCursor() method without causing panic |
|
834 //! @SYMTestType CIT |
|
835 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
836 CREATE_OBJECT RWsSession ws |
|
837 CREATE_OBJECT RWindowGroup wingrp |
|
838 COMMAND ws new |
|
839 COMMAND ws Connect |
|
840 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0024-0001-new_command04 |
|
841 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0024-0001-Construct_command05 |
|
842 COMMAND wingrp CancelTextCursor GRAPHICS-WSERV-WindowGroup-PublicApi-0024-0001-CancelTextCursor_command06 |
|
843 COMMAND wingrp Close |
|
844 COMMAND ws Close |
|
845 END_TEST_BLOCK |
|
846 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0024 |
|
847 |
|
848 |
|
849 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0025 |
|
850 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0025 |
|
851 //! @SYMAPI RWindowGroup |
|
852 //! @SYMAuthor Ryan Lu |
|
853 //! @SYMCreationDate 11/12/2006 |
|
854 //! @SYMTestCaseDesc SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor, const TRect &aClipRect): set the text cursor and its clipping rectangle |
|
855 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
856 //! @SYMTestActions 1. Create and connect a RWsSession |
|
857 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
858 //! 3. Execute SetTextCursor to set the text cursor and its clipping rectangle |
|
859 //! 4. Close all objects used |
|
860 //! @SYMTestStatus Implemented |
|
861 //! @SYMTestPriority High |
|
862 //! @SYMTestExpectedResults Run SetTextCursor() method without causing panic |
|
863 //! @SYMTestType CIT |
|
864 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
865 CREATE_OBJECT RWsSession ws |
|
866 CREATE_OBJECT RWindowGroup wingrp |
|
867 CREATE_OBJECT RBlankWindow bnkwin |
|
868 COMMAND ws new |
|
869 COMMAND ws Connect |
|
870 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-new_command01 |
|
871 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-Construct_command02 |
|
872 COMMAND bnkwin new GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-new_command03 |
|
873 COMMAND bnkwin Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-Construct_command04 |
|
874 COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-SetTextCursor_command05 |
|
875 COMMAND bnkwin Close |
|
876 COMMAND wingrp Close |
|
877 COMMAND ws Close |
|
878 END_TEST_BLOCK |
|
879 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0025 |
|
880 |
|
881 |
|
882 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0026 |
|
883 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0026 |
|
884 //! @SYMAPI RWindowGroup |
|
885 //! @SYMAuthor Ryan Lu |
|
886 //! @SYMCreationDate 11/12/2006 |
|
887 //! @SYMTestCaseDesc DisableKeyClick(TBool aState): disable key clicks |
|
888 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
889 //! @SYMTestActions 1. Create and connect a RWsSession |
|
890 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
891 //! 3. Execute DisableKeyClick to disable key clicks (state=TRUE) |
|
892 //! 4. Close all objects used |
|
893 //! @SYMTestStatus Implemented |
|
894 //! @SYMTestPriority High |
|
895 //! @SYMTestExpectedResults Run DisableKeyClick() method without causing panic |
|
896 //! @SYMTestType CIT |
|
897 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
898 CREATE_OBJECT RWsSession ws |
|
899 CREATE_OBJECT RWindowGroup wingrp |
|
900 COMMAND ws new |
|
901 COMMAND ws Connect |
|
902 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0026-0001-new_command04 |
|
903 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0026-0001-Construct_command05 |
|
904 COMMAND wingrp DisableKeyClick GRAPHICS-WSERV-WindowGroup-PublicApi-0026-0001-DisableKeyClick_command06 |
|
905 COMMAND wingrp Close |
|
906 COMMAND ws Close |
|
907 END_TEST_BLOCK |
|
908 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0026 |
|
909 |
|
910 |
|
911 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0027 |
|
912 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0027 |
|
913 //! @SYMAPI RWindowGroup |
|
914 //! @SYMAuthor Ryan Lu |
|
915 //! @SYMCreationDate 11/12/2006 |
|
916 //! @SYMTestCaseDesc DisableScreenChangeEvents(): disable screen change event sending |
|
917 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
918 //! @SYMTestActions 1. Create and connect a RWsSession |
|
919 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
920 //! 3. Execute DisableScreenChangeEvents to disable screen change event sending |
|
921 //! 4. Close all objects used |
|
922 //! @SYMTestStatus Implemented |
|
923 //! @SYMTestPriority High |
|
924 //! @SYMTestExpectedResults Run DisableScreenChangeEvents() method without causing panic |
|
925 //! @SYMTestType CIT |
|
926 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
927 CREATE_OBJECT RWsSession ws |
|
928 CREATE_OBJECT RWindowGroup wingrp |
|
929 COMMAND ws new |
|
930 COMMAND ws Connect |
|
931 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0027-0001-new_command04 |
|
932 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0027-0001-Construct_command05 |
|
933 COMMAND wingrp DisableScreenChangeEvents |
|
934 COMMAND wingrp Close |
|
935 COMMAND ws Close |
|
936 END_TEST_BLOCK |
|
937 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0027 |
|
938 |
|
939 |
|
940 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0028 |
|
941 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0028 |
|
942 //! @SYMAPI RWindowGroup |
|
943 //! @SYMAuthor Ryan Lu |
|
944 //! @SYMCreationDate 11/12/2006 |
|
945 //! @SYMTestCaseDesc SimulatePointerEvent(): simulate a pointer event |
|
946 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
947 //! @SYMTestActions 1. Create and connect a RWsSession |
|
948 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
949 //! 3. Execute SimulatePointerEvent to simulate a EPointerMove evnet |
|
950 //! 4. Close all objects used |
|
951 //! @SYMTestStatus Implemented |
|
952 //! @SYMTestPriority High |
|
953 //! @SYMTestExpectedResults Run SimulatePointerEvent() method without causing panic |
|
954 //! @SYMTestType CIT |
|
955 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
956 CREATE_OBJECT RWsSession ws |
|
957 CREATE_OBJECT RWindowGroup wingrp |
|
958 COMMAND ws new |
|
959 COMMAND ws Connect |
|
960 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0028-0001-new_command04 |
|
961 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0028-0001-Construct_command05 |
|
962 COMMAND wingrp SimulatePointerEvent GRAPHICS-WSERV-WindowGroup-PublicApi-0028-0001-SimulatePointerEvent_command06 |
|
963 COMMAND wingrp Close |
|
964 COMMAND ws Close |
|
965 END_TEST_BLOCK |
|
966 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0028 |
|
967 |
|
968 |
|
969 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0034 |
|
970 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0034 |
|
971 //! @SYMAPI RWindowGroup |
|
972 //! @SYMAuthor Ryan Lu |
|
973 //! @SYMCreationDate 11/12/2006 |
|
974 //! @SYMTestCaseDesc Identifier() const: get the identifier of the window group |
|
975 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
976 //! @SYMTestActions 1. Create and connect a RWsSession |
|
977 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
978 //! 3. Execute Identifier to get identifier of the RWindowGroup |
|
979 //! 4. Close all objects used |
|
980 //! @SYMTestStatus Implemented |
|
981 //! @SYMTestPriority High |
|
982 //! @SYMTestExpectedResults Run SimulatePointerEvent() method without causing panic |
|
983 //! @SYMTestType CIT |
|
984 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
985 CREATE_OBJECT RWsSession ws |
|
986 CREATE_OBJECT RWindowGroup wingrp |
|
987 COMMAND ws new |
|
988 COMMAND ws Connect |
|
989 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0034-0001-new_command04 |
|
990 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0034-0001-Construct_command05 |
|
991 COMMAND wingrp Identifier |
|
992 COMMAND wingrp Close |
|
993 COMMAND ws Close |
|
994 END_TEST_BLOCK |
|
995 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0034 |
|
996 |
|
997 |
|
998 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0035 |
|
999 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0035 |
|
1000 //! @SYMAPI RWindowGroup |
|
1001 //! @SYMAuthor Ryan Lu |
|
1002 //! @SYMCreationDate 11/12/2006 |
|
1003 //! @SYMTestCaseDesc CaptureKey: Requests key capture |
|
1004 //! Use API elements: Construct, CaptureKey |
|
1005 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1006 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state as specified |
|
1007 //! 3. Capture a key in the RWindowGroup |
|
1008 //! 4. Create and construct a second RWindowGroup within the RWsSession |
|
1009 //! 5. Capture the same key in the second RWindowGroup, with a priority |
|
1010 //! @SYMTestStatus Implemented |
|
1011 //! @SYMTestPriority Critical |
|
1012 //! @SYMTestExpectedResults The both CaptureKey returns successful. |
|
1013 //! @SYMTestType CIT |
|
1014 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1015 CREATE_OBJECT RWsSession ws |
|
1016 CREATE_OBJECT RWindowGroup wingrp |
|
1017 CREATE_OBJECT RWindowGroup wingrp2 |
|
1018 COMMAND ws new |
|
1019 COMMAND ws Connect |
|
1020 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 |
|
1021 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05 |
|
1022 COMMAND wingrp CaptureKey GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-CaptureKey_command6 |
|
1023 COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 |
|
1024 COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command09 |
|
1025 COMMAND wingrp2 CaptureKey GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-CaptureKey_command10 |
|
1026 END_TEST_BLOCK |
|
1027 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0035 |
|
1028 |
|
1029 |
|
1030 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0036 |
|
1031 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0036 |
|
1032 //! @SYMAPI RWindowGroup |
|
1033 //! @SYMAuthor Ryan Lu |
|
1034 //! @SYMCreationDate 11/12/2006 |
|
1035 //! @SYMTestCaseDesc CancelCaptureKey: Cancels a request for key capture |
|
1036 //! Use API elements: Construct, CaptureKey, CancelCaptureKey |
|
1037 //! @SYMTestActions 1. Recreate a RWsSession and a RWindowGroup and then Capture a key in the RWindowGroup |
|
1038 //! 2. Cancel the Captured Key. |
|
1039 //! @SYMTestStatus Implemented |
|
1040 //! @SYMTestPriority Low |
|
1041 //! @SYMTestExpectedResults CancelCaptureKey() method returns KErrNone without causing panic |
|
1042 //! @SYMTestType CIT |
|
1043 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1044 CREATE_OBJECT RWsSession ws |
|
1045 CREATE_OBJECT RWindowGroup wingrp |
|
1046 COMMAND ws new |
|
1047 COMMAND ws Connect |
|
1048 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 |
|
1049 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05 |
|
1050 COMMAND wingrp CaptureKey GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-CaptureKey_command6 |
|
1051 COMMAND wingrp CancelCaptureKey GRAPHICS-WSERV-WindowGroup-PublicApi-0036-0001-CancelCaptureKey_command7 |
|
1052 END_TEST_BLOCK |
|
1053 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0036 |
|
1054 |
|
1055 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0037 |
|
1056 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0037 |
|
1057 //! @SYMAPI RWindowGroup |
|
1058 //! @SYMAuthor Ryan Lu |
|
1059 //! @SYMCreationDate 11/12/2006 |
|
1060 //! @SYMTestCaseDesc CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier):Requests the capture of key-up and key-down events on behalf of a window group |
|
1061 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct,CaptureKeyUpAndDowns and close() |
|
1062 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1063 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state as specified |
|
1064 //! 3. Capture a key in the RWindowGroup |
|
1065 //! @SYMTestStatus Implemented |
|
1066 //! @SYMTestPriority Low |
|
1067 //! @SYMTestExpectedResults CaptureKeyUpAndDowns returns successful. |
|
1068 //! @SYMTestType CIT |
|
1069 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1070 CREATE_OBJECT RWsSession ws |
|
1071 CREATE_OBJECT RWindowGroup wingrp |
|
1072 COMMAND ws new |
|
1073 COMMAND ws Connect |
|
1074 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 |
|
1075 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05 |
|
1076 COMMAND wingrp CaptureKeyUpAndDowns GRAPHICS-WSERV-WindowGroup-PublicApi-0037-0001-CaptureKeyUpAndDowns_command6 |
|
1077 END_TEST_BLOCK |
|
1078 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0037 |
|
1079 |
|
1080 |
|
1081 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0038 |
|
1082 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0038 |
|
1083 //! @SYMAPI RWindowGroup |
|
1084 //! @SYMAuthor Ryan Lu |
|
1085 //! @SYMCreationDate 11/12/2006 |
|
1086 //! @SYMTestCaseDesc CancelCaptureKeyUpAndDowns(TInt32 aCaptureKey): Cancels a capture request for a key up or key down event. |
|
1087 //! Use API elements: Construct, CaptureKeyUpAndDowns, CancelCaptureKeyUpAndDowns |
|
1088 //! @SYMTestActions 1. Recreate a RWsSession and a RWindowGroup and then Capture a key in the RWindowGroup |
|
1089 //! 2. Cancel the Captured Key. |
|
1090 //! @SYMTestStatus Implemented |
|
1091 //! @SYMTestPriority Low |
|
1092 //! @SYMTestExpectedResults CancelCaptureKeyUpAndDowns() method returns KErrNone without causing panic |
|
1093 //! @SYMTestType CIT |
|
1094 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1095 CREATE_OBJECT RWsSession ws |
|
1096 CREATE_OBJECT RWindowGroup wingrp |
|
1097 COMMAND ws new |
|
1098 COMMAND ws Connect |
|
1099 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 |
|
1100 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05 |
|
1101 COMMAND wingrp CaptureKeyUpAndDowns GRAPHICS-WSERV-WindowGroup-PublicApi-0037-0001-CaptureKeyUpAndDowns_command6 |
|
1102 COMMAND wingrp CancelCaptureKeyUpAndDowns GRAPHICS-WSERV-WindowGroup-PublicApi-0038-0001-CancelCaptureKeyUpAndDOwns |
|
1103 END_TEST_BLOCK |
|
1104 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0038 |
|
1105 |
|
1106 |
|
1107 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0039 |
|
1108 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0039 |
|
1109 //! @SYMAPI RWindowGroup |
|
1110 //! @SYMAuthor Ryan Lu |
|
1111 //! @SYMCreationDate 11/12/2006 |
|
1112 //! @SYMTestCaseDesc CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier):Requests the capture of key-up and key-down events on behalf of a window group |
|
1113 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct,CaptureKeyUpAndDowns and close() |
|
1114 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1115 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state as specified |
|
1116 //! 3. Capture the same key in the second RWindowGroup, with a priority |
|
1117 //! @SYMTestStatus Implemented |
|
1118 //! @SYMTestPriority Low |
|
1119 //! @SYMTestExpectedResults CaptureKeyUpAndDowns returns successful. |
|
1120 //! @SYMTestType CIT |
|
1121 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1122 CREATE_OBJECT RWsSession ws |
|
1123 CREATE_OBJECT RWindowGroup wingrp |
|
1124 COMMAND ws new |
|
1125 COMMAND ws Connect |
|
1126 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 |
|
1127 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command09 |
|
1128 COMMAND wingrp CaptureKeyUpAndDowns GRAPHICS-WSERV-WindowGroup-PublicApi-0039-0001-CaptureKeyUpAndDowns_command10 |
|
1129 END_TEST_BLOCK |
|
1130 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0039 |
|
1131 |
|
1132 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0040 |
|
1133 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0040 |
|
1134 //! @SYMAPI RWindowGroup |
|
1135 //! @SYMAuthor Ryan Lu |
|
1136 //! @SYMCreationDate 11/12/2006 |
|
1137 //! @SYMTestCaseDesc CaptureLongKey: Requests capture of long key presses. |
|
1138 //! Use API elements: Construct, CaptureLongKey |
|
1139 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1140 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state as specified |
|
1141 //! 3. Capture a key in the RWindowGroup |
|
1142 //! @SYMTestStatus Implemented |
|
1143 //! @SYMTestPriority Low |
|
1144 //! @SYMTestExpectedResults CaptureLongKey returns successful. |
|
1145 //! @SYMTestType CIT |
|
1146 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1147 CREATE_OBJECT RWsSession ws |
|
1148 CREATE_OBJECT RWindowGroup wingrp |
|
1149 COMMAND ws new |
|
1150 COMMAND ws Connect |
|
1151 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 |
|
1152 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05 |
|
1153 COMMAND wingrp CaptureLongKey GRAPHICS-WSERV-WindowGroup-PublicApi-0040-0001-CaptureLongKey_command6 |
|
1154 END_TEST_BLOCK |
|
1155 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0040 |
|
1156 |
|
1157 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0041 |
|
1158 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0041 |
|
1159 //! @SYMAPI RWindowGroup |
|
1160 //! @SYMAuthor Ryan Lu |
|
1161 //! @SYMCreationDate 11/12/2006 |
|
1162 //! @SYMTestCaseDesc CancelCaptureLongKey: Cancels a previous long key capture request. |
|
1163 //! Use API elements: Construct, CaptureLongKey, CancelCaptureLongKey |
|
1164 //! @SYMTestActions 1. Recreate a RWsSession and a RWindowGroup and then Capture a key in the RWindowGroup |
|
1165 //! 2. Cancel the Captured Key. |
|
1166 //! @SYMTestStatus Implemented |
|
1167 //! @SYMTestPriority Low |
|
1168 //! @SYMTestExpectedResults CancelCaptureLongKey() method returns KErrNone without causing panic |
|
1169 //! @SYMTestType CIT |
|
1170 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1171 CREATE_OBJECT RWsSession ws |
|
1172 CREATE_OBJECT RWindowGroup wingrp |
|
1173 COMMAND ws new |
|
1174 COMMAND ws Connect |
|
1175 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 |
|
1176 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05 |
|
1177 COMMAND wingrp CaptureLongKey GRAPHICS-WSERV-WindowGroup-PublicApi-0040-0001-CaptureLongKey_command6 |
|
1178 COMMAND wingrp CancelCaptureLongKey GRAPHICS-WSERV-WindowGroup-PublicApi-0041-0001-CancelCaptureLongKey_command7 |
|
1179 END_TEST_BLOCK |
|
1180 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0041 |
|
1181 |
|
1182 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0042 |
|
1183 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0042 |
|
1184 //! @SYMAPI RWindowGroup |
|
1185 //! @SYMAuthor Ryan Lu |
|
1186 //! @SYMCreationDate 11/12/2006 |
|
1187 //! @SYMTestCaseDesc CaptureLongKey: Requests capture of long key presses. |
|
1188 //! Use API elements: Construct, CaptureLongKey |
|
1189 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1190 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state as specified |
|
1191 //! 3. Capture a key, with a priority |
|
1192 //! @SYMTestStatus Implemented |
|
1193 //! @SYMTestPriority Low |
|
1194 //! @SYMTestExpectedResults CaptureLongKey returns successful. |
|
1195 //! @SYMTestType CIT |
|
1196 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1197 CREATE_OBJECT RWsSession ws |
|
1198 CREATE_OBJECT RWindowGroup wingrp |
|
1199 COMMAND ws new |
|
1200 COMMAND ws Connect |
|
1201 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 |
|
1202 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command09 |
|
1203 COMMAND wingrp CaptureLongKey GRAPHICS-WSERV-WindowGroup-PublicApi-0042-0001-CaptureLongKey_command10 |
|
1204 END_TEST_BLOCK |
|
1205 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0042 |
|
1206 |
|
1207 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0043 |
|
1208 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0043 |
|
1209 //! @SYMAPI RWindowGroup |
|
1210 //! @SYMAuthor Ryan Lu |
|
1211 //! @SYMCreationDate 11/12/2006 |
|
1212 //! @SYMTestCaseDesc AddPriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier): add a priority key |
|
1213 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
1214 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1215 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
1216 //! 3. Execute AddPriorityKey to set a priority key as specified |
|
1217 //! 4. Close all objects used |
|
1218 //! @SYMTestStatus Implemented |
|
1219 //! @SYMTestPriority High |
|
1220 //! @SYMTestExpectedResults AddPriorityKey() method returns KErrNone without causing panic |
|
1221 //! @SYMTestType CIT |
|
1222 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1223 CREATE_OBJECT RWsSession ws |
|
1224 CREATE_OBJECT RWindowGroup wingrp |
|
1225 COMMAND ws new |
|
1226 COMMAND ws Connect |
|
1227 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0043-0001-new_command04 |
|
1228 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0043-0001-Construct_command05 |
|
1229 COMMAND wingrp AddPriorityKey GRAPHICS-WSERV-WindowGroup-PublicApi-0043-0001-AddPriorityKey_command06 |
|
1230 COMMAND wingrp Close |
|
1231 COMMAND ws Close |
|
1232 END_TEST_BLOCK |
|
1233 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0043 |
|
1234 |
|
1235 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0044 |
|
1236 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0044 |
|
1237 //! @SYMAPI RWindowGroup |
|
1238 //! @SYMAuthor Ryan Lu |
|
1239 //! @SYMCreationDate 11/12/2006 |
|
1240 //! @SYMTestCaseDesc DisableKeyClick(TBool aState): disable key clicks |
|
1241 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
1242 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1243 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
1244 //! 3. Execute DisableKeyClick to disable key clicks (state=FALSE) |
|
1245 //! 4. Close all objects used |
|
1246 //! @SYMTestStatus Implemented |
|
1247 //! @SYMTestPriority High |
|
1248 //! @SYMTestExpectedResults Run DisableKeyClick() method without causing panic |
|
1249 //! @SYMTestType CIT |
|
1250 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1251 CREATE_OBJECT RWsSession ws |
|
1252 CREATE_OBJECT RWindowGroup wingrp |
|
1253 COMMAND ws new |
|
1254 COMMAND ws Connect |
|
1255 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0044-0001-new_command04 |
|
1256 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0044-0001-Construct_command05 |
|
1257 COMMAND wingrp DisableKeyClick GRAPHICS-WSERV-WindowGroup-PublicApi-0044-0001-DisableKeyClick_command06 |
|
1258 COMMAND wingrp Close |
|
1259 COMMAND ws Close |
|
1260 END_TEST_BLOCK |
|
1261 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0044 |
|
1262 |
|
1263 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0045 |
|
1264 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0045 |
|
1265 //! @SYMAPI RWindowGroup |
|
1266 //! @SYMAuthor Ryan Lu |
|
1267 //! @SYMCreationDate 11/12/2006 |
|
1268 //! @SYMTestCaseDesc EnableReceiptOfFocus(TBool aState): enable/disable receipt of keyboard focus |
|
1269 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
1270 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1271 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
1272 //! 3. Execute EnableReceiptOfFocus to enable RWindowGroup receipt of keyboard focus (state=TRUE) |
|
1273 //! 4. Close all objects used |
|
1274 //! @SYMTestStatus Implemented |
|
1275 //! @SYMTestPriority High |
|
1276 //! @SYMTestExpectedResults Run EnableReceiptOfFocus() method without causing panic |
|
1277 //! @SYMTestType CIT |
|
1278 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1279 CREATE_OBJECT RWsSession ws |
|
1280 CREATE_OBJECT RWindowGroup wingrp |
|
1281 COMMAND ws new |
|
1282 COMMAND ws Connect |
|
1283 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0045-0001-new_command04 |
|
1284 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0045-0001-Construct_command05 |
|
1285 COMMAND wingrp EnableReceiptOfFocus GRAPHICS-WSERV-WindowGroup-PublicApi-0045-0001-EnableReceiptOfFocus_command06 |
|
1286 COMMAND wingrp Close |
|
1287 COMMAND ws Close |
|
1288 END_TEST_BLOCK |
|
1289 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0045 |
|
1290 |
|
1291 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0046 |
|
1292 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0046 |
|
1293 //! @SYMAPI RWindowGroup |
|
1294 //! @SYMAuthor Ryan Lu |
|
1295 //! @SYMCreationDate 11/12/2006 |
|
1296 //! @SYMTestCaseDesc SetName(const TDesC &aName): set the window group's name |
|
1297 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close & Name |
|
1298 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1299 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
1300 //! 3. Execute SetName to set the name of the RWindowGroup as specified |
|
1301 //! 4. Use Name to get and check if the RWindowGroup's name as specified |
|
1302 //! 5. Close all objects used |
|
1303 //! @SYMTestStatus Implemented |
|
1304 //! @SYMTestPriority High |
|
1305 //! @SYMTestExpectedResults 1. SetName() method returns KErrNone without causing panic |
|
1306 //! 2. after execute SetName(), the RWindowGroup's name is the same as specified |
|
1307 //! @SYMTestType CIT |
|
1308 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1309 CREATE_OBJECT RWsSession ws |
|
1310 CREATE_OBJECT RWindowGroup wingrp |
|
1311 COMMAND ws new |
|
1312 COMMAND ws Connect |
|
1313 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0046-0001-new_command04 |
|
1314 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0046-0001-Construct_command05 |
|
1315 COMMAND wingrp SetName GRAPHICS-WSERV-WindowGroup-PublicApi-0046-0001-SetName_command06 |
|
1316 COMMAND wingrp Name GRAPHICS-WSERV-WindowGroup-PublicApi-0046-0001-Name_command07 |
|
1317 COMMAND wingrp Close |
|
1318 COMMAND ws Close |
|
1319 END_TEST_BLOCK |
|
1320 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0046 |
|
1321 |
|
1322 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0047 |
|
1323 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0047 |
|
1324 //! @SYMAPI RWindowGroup |
|
1325 //! @SYMAuthor Ryan Lu |
|
1326 //! @SYMCreationDate 11/12/2006 |
|
1327 //! @SYMTestCaseDesc SetOwningWindowGroup(TInt aIdentifier): set the owning window group for this window group |
|
1328 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
1329 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1330 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
1331 //! 3. Create and construct another RWindowGroup (wingrp2) within the RWsSession, and set initial focus state TRUE |
|
1332 //! 4. Execute SetOwningWindowGroup on wingrp2 to set the owning window group (to the identifier of wingrp) |
|
1333 //! 5. Close all objects used |
|
1334 //! @SYMTestStatus Implemented |
|
1335 //! @SYMTestPriority High |
|
1336 //! @SYMTestExpectedResults Run SetOwningWindowGroup() method without causing panic |
|
1337 //! @SYMTestType CIT |
|
1338 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1339 CREATE_OBJECT RWsSession ws |
|
1340 CREATE_OBJECT RWindowGroup wingrp |
|
1341 CREATE_OBJECT RWindowGroup wingrp2 |
|
1342 COMMAND ws new |
|
1343 COMMAND ws Connect |
|
1344 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-new_command01 |
|
1345 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-Construct_command02 |
|
1346 COMMAND wingrp Identifier |
|
1347 COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-new_command04 |
|
1348 COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-Construct_command05 |
|
1349 COMMAND wingrp2 SetOwningWindowGroup GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-SetOwningWindowGroup_command06 |
|
1350 COMMAND wingrp2 Close |
|
1351 COMMAND wingrp Close |
|
1352 COMMAND ws Close |
|
1353 END_TEST_BLOCK |
|
1354 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0047 |
|
1355 |
|
1356 |
|
1357 //===== |
|
1358 |
|
1359 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0048 |
|
1360 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0048 |
|
1361 //! @SYMAPI RWindowGroup |
|
1362 //! @SYMAuthor Ryan Lu |
|
1363 //! @SYMCreationDate 18/12/2006 |
|
1364 //! @SYMTestCaseDesc Construct(TUint32 aClientHandle): complete construction of a RWindowGroup |
|
1365 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct |
|
1366 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1367 //! 2. Create and construct a RWindowGroup with client handle -99999999 within the RWsSession |
|
1368 //! 3. close all objects used |
|
1369 //! @SYMTestStatus Implemented |
|
1370 //! @SYMTestPriority Critical |
|
1371 //! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic |
|
1372 //! @SYMTestType CIT |
|
1373 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1374 CREATE_OBJECT RWsSession ws |
|
1375 CREATE_OBJECT RWindowGroup wingrp |
|
1376 COMMAND ws new |
|
1377 COMMAND ws Connect |
|
1378 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0048-0001-new_command04 |
|
1379 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0048-0001-Construct_command05 |
|
1380 |
|
1381 COMMAND wingrp Close |
|
1382 COMMAND ws Close |
|
1383 END_TEST_BLOCK |
|
1384 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0048 |
|
1385 |
|
1386 |
|
1387 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0049 |
|
1388 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0049 |
|
1389 //! @SYMAPI RWindowGroup |
|
1390 //! @SYMAuthor Ryan Lu |
|
1391 //! @SYMCreationDate 11/12/2006 |
|
1392 //! @SYMTestCaseDesc Construct(TUint32 aClientHandle, TBool aIsFocusable): complete construction of a RWindowGroup and set initial focus state |
|
1393 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct |
|
1394 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1395 //! 2. Create and construct a RWindowGroup with client handle -99999999 within the RWsSession, and set initial focus state = TRUE |
|
1396 //! 3. close all objects used |
|
1397 //! @SYMTestStatus Implemented |
|
1398 //! @SYMTestPriority Critical |
|
1399 //! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic |
|
1400 //! @SYMTestType CIT |
|
1401 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1402 CREATE_OBJECT RWsSession ws |
|
1403 CREATE_OBJECT RWindowGroup wingrp |
|
1404 COMMAND ws new |
|
1405 COMMAND ws Connect |
|
1406 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0049-0001-new_command04 |
|
1407 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0049-0001-Construct_command05 |
|
1408 |
|
1409 COMMAND wingrp Close |
|
1410 COMMAND ws Close |
|
1411 END_TEST_BLOCK |
|
1412 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0049 |
|
1413 |
|
1414 |
|
1415 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0050 |
|
1416 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0050 |
|
1417 //! @SYMAPI RWindowGroup |
|
1418 //! @SYMAuthor Ryan Lu |
|
1419 //! @SYMCreationDate 21/08/2007 |
|
1420 //! @SYMTestCaseDesc Construct(TUint32 aClientHandle, CWsScreenDevice *aScreenDevice): complete construction of a RWindowGroup on a screen |
|
1421 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct |
|
1422 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1423 //! 2. Create a CWsScreenDevice within the RWsSession |
|
1424 //! 3. Create and construct a RWindowGroup with client handle -99999999 within the RWsSession and on the CWsScreenDevice |
|
1425 //! 4. close all objects used |
|
1426 //! @SYMTestStatus Implemented |
|
1427 //! @SYMTestPriority Critical |
|
1428 //! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic |
|
1429 //! @SYMTestType CIT |
|
1430 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1431 CREATE_OBJECT RWsSession ws |
|
1432 CREATE_OBJECT CWsScreenDevice scrdev |
|
1433 CREATE_OBJECT RWindowGroup wingrp |
|
1434 COMMAND ws new |
|
1435 COMMAND ws Connect |
|
1436 COMMAND scrdev new GRAPHICS-WSERV-WindowGroup-PublicApi-0050-0001-new_command01 |
|
1437 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0050-0001-new_command04 |
|
1438 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0050-0001-Construct_command05 |
|
1439 |
|
1440 COMMAND wingrp Close |
|
1441 COMMAND ws Close |
|
1442 END_TEST_BLOCK |
|
1443 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0050 |
|
1444 |
|
1445 |
|
1446 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0051 |
|
1447 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0051 |
|
1448 //! @SYMAPI RWindowGroup |
|
1449 //! @SYMAuthor Ryan Lu |
|
1450 //! @SYMCreationDate 21/08/2007 |
|
1451 //! @SYMTestCaseDesc Construct(TUint32 aClientHandle, TBool aIsFocusable, CWsScreenDevice *aScreenDevice): complete construction of a RWindowGroup on a screen |
|
1452 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct |
|
1453 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1454 //! 2. Create a CWsScreenDevice within the RWsSession |
|
1455 //! 3. Create and construct a RWindowGroup with client handle -99999999 within the RWsSession and on the CWsScreenDevice, and set initial focus state = TRUE |
|
1456 //! 4. close all objects used |
|
1457 //! @SYMTestStatus Implemented |
|
1458 //! @SYMTestPriority Critical |
|
1459 //! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic |
|
1460 //! @SYMTestType CIT |
|
1461 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1462 CREATE_OBJECT RWsSession ws |
|
1463 CREATE_OBJECT CWsScreenDevice scrdev |
|
1464 CREATE_OBJECT RWindowGroup wingrp |
|
1465 COMMAND ws new |
|
1466 COMMAND ws Connect |
|
1467 COMMAND scrdev new GRAPHICS-WSERV-WindowGroup-PublicApi-0051-0001-new_command01 |
|
1468 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0051-0001-new_command04 |
|
1469 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0051-0001-Construct_command05 |
|
1470 |
|
1471 COMMAND wingrp Close |
|
1472 COMMAND ws Close |
|
1473 END_TEST_BLOCK |
|
1474 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0051 |
|
1475 |
|
1476 |
|
1477 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0052 |
|
1478 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0052 |
|
1479 //! @SYMAPI RWindowGroup |
|
1480 //! @SYMAuthor Ryan Lu |
|
1481 //! @SYMCreationDate 11/12/2006 |
|
1482 //! @SYMTestCaseDesc ConstructChildApp(TInt aIdOfParentWindowGroup, TUint32 aClientHandle): Completes construction of a window group |
|
1483 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
1484 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1485 //! 2. Create and construct a parent RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
1486 //! 3. Use new() to create a RWindowGroup as child window group |
|
1487 //! 4. Execute ConstructChildApp() to construct window group with client handle -99999999 as the child of the parent RWindowGroup |
|
1488 //! 5. Close all objects used |
|
1489 //! @SYMTestStatus Implemented |
|
1490 //! @SYMTestPriority Critical |
|
1491 //! @SYMTestExpectedResults ConstructChildApp() method returns KErrNone without causing panic |
|
1492 //! @SYMTestType CIT |
|
1493 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1494 CREATE_OBJECT RWsSession ws |
|
1495 CREATE_OBJECT RWindowGroup wingrp |
|
1496 CREATE_OBJECT RWindowGroup wingrp2 |
|
1497 COMMAND ws new |
|
1498 COMMAND ws Connect |
|
1499 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0052-0001-new_command01 |
|
1500 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0052-0001-Construct_command02 |
|
1501 COMMAND wingrp Identifier |
|
1502 COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0052-0001-new_command04 |
|
1503 COMMAND wingrp2 ConstructChildApp GRAPHICS-WSERV-WindowGroup-PublicApi-0052-0001-ConstructChildApp_command05 |
|
1504 COMMAND wingrp2 Close |
|
1505 COMMAND wingrp Close |
|
1506 COMMAND ws Close |
|
1507 END_TEST_BLOCK |
|
1508 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0052 |
|
1509 |
|
1510 |
|
1511 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0053 |
|
1512 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0053 |
|
1513 //! @SYMAPI RWindowGroup |
|
1514 //! @SYMAuthor Ryan Lu |
|
1515 //! @SYMCreationDate 11/12/2006 |
|
1516 //! @SYMTestCaseDesc ConstructChildApp(TInt aIdOfParentWindowGroup, TUint32 aClientHandle, TBool aIsFocusable): Completes construction of a window group |
|
1517 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
1518 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1519 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
1520 //! 3. Use new() to create a RWindowGroup as child window group |
|
1521 //! 4. Execute ConstructChildApp() to construct window group with client handle -99999999 as the child of the parent RWindowGroup, and with IsFocusable=TRUE |
|
1522 //! 5. Close all objects used |
|
1523 //! @SYMTestStatus Implemented |
|
1524 //! @SYMTestPriority Critical |
|
1525 //! @SYMTestExpectedResults ConstructChildApp() method returns KErrNone without causing panic |
|
1526 //! @SYMTestType CIT |
|
1527 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1528 CREATE_OBJECT RWsSession ws |
|
1529 CREATE_OBJECT RWindowGroup wingrp |
|
1530 CREATE_OBJECT RWindowGroup wingrp2 |
|
1531 COMMAND ws new |
|
1532 COMMAND ws Connect |
|
1533 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0053-0001-new_command01 |
|
1534 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0053-0001-Construct_command02 |
|
1535 COMMAND wingrp Identifier |
|
1536 COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0053-0001-new_command01 |
|
1537 COMMAND wingrp2 ConstructChildApp GRAPHICS-WSERV-WindowGroup-PublicApi-0053-0001-ConstructChildApp_command03 |
|
1538 COMMAND wingrp2 Close |
|
1539 COMMAND wingrp Close |
|
1540 COMMAND ws Close |
|
1541 END_TEST_BLOCK |
|
1542 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0053 |
|
1543 |
|
1544 |
|
1545 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0054 |
|
1546 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0054 |
|
1547 //! @SYMAPI RWindowGroup |
|
1548 //! @SYMAuthor Ryan Lu |
|
1549 //! @SYMCreationDate 11/12/2006 |
|
1550 //! @SYMTestCaseDesc AllowProcessToCreateChildWindowGroups(TUid aProcessSID): allow a RWindowGroup in the specified process to be be a child of this one |
|
1551 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
1552 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1553 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
1554 //! 3. Execute AllowProcessToCreateChildWindowGroups to allow the specified process (uid=-99999999) to be a child of the RWindowGroup |
|
1555 //! 4. Close all objects used |
|
1556 //! @SYMTestStatus Implemented |
|
1557 //! @SYMTestPriority Medium |
|
1558 //! @SYMTestExpectedResults Run AllowProcessToCreateChildWindowGroups() method without causing panic |
|
1559 //! @SYMTestType CIT |
|
1560 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1561 CREATE_OBJECT RWsSession ws |
|
1562 CREATE_OBJECT RWindowGroup wingrp |
|
1563 COMMAND ws new |
|
1564 COMMAND ws Connect |
|
1565 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0054-0001-new_command04 |
|
1566 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0054-0001-Construct_command05 |
|
1567 COMMAND wingrp AllowProcessToCreateChildWindowGroups GRAPHICS-WSERV-WindowGroup-PublicApi-0054-0001-AllowProcessToCreateChildWindowGroups_command06 |
|
1568 COMMAND wingrp Close |
|
1569 COMMAND ws Close |
|
1570 END_TEST_BLOCK |
|
1571 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0054 |
|
1572 |
|
1573 |
|
1574 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0055 |
|
1575 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0055 |
|
1576 //! @SYMAPI RWindowGroup |
|
1577 //! @SYMAuthor Ryan Lu |
|
1578 //! @SYMCreationDate 05/06/2007 |
|
1579 //! @SYMTestCaseDesc SetOrdinalPriorityAdjust(TInt aAdjust): set the window group's priority adjust value |
|
1580 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, WindowTreeNode::OrdinalPosition & OrdinalPriority |
|
1581 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1582 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
1583 //! 3. Execute SetOrdinalPriorityAdjust to adjust priority of wingrp with 99999999 priority value |
|
1584 //! 4. Close all objects used |
|
1585 //! @SYMTestStatus Implemented |
|
1586 //! @SYMTestPriority High |
|
1587 //! @SYMTestExpectedResults SetOrdinalPriorityAdjust() method returns KErrNone without causing panic |
|
1588 //! @SYMTestType CIT |
|
1589 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1590 CREATE_OBJECT RWsSession ws |
|
1591 CREATE_OBJECT RWindowGroup wingrp |
|
1592 COMMAND ws new |
|
1593 COMMAND ws Connect |
|
1594 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0055-0001-new_command01 |
|
1595 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0055-0001-Construct_command02 |
|
1596 |
|
1597 COMMAND wingrp SetOrdinalPriorityAdjust GRAPHICS-WSERV-WindowGroup-PublicApi-0055-0001-SetOrdinalPriorityAdjust_command03 |
|
1598 |
|
1599 COMMAND wingrp Close |
|
1600 COMMAND ws Close |
|
1601 END_TEST_BLOCK |
|
1602 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0055 |
|
1603 |
|
1604 |
|
1605 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0056 |
|
1606 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0056 |
|
1607 //! @SYMAPI RWindowGroup |
|
1608 //! @SYMAuthor Ryan Lu |
|
1609 //! @SYMCreationDate 06/06/2007 |
|
1610 //! @SYMTestCaseDesc SetOrdinalPositionErr(TInt aPos, TInt aOrdinalPriority): set the ordinal position and ordinal priority of a window group |
|
1611 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, WindowTreeNode::OrdinalPosition & OrdinalPriority |
|
1612 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1613 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
1614 //! 3. Execute SetOrdinalPositionErr to set wingrp to new ordinal position with negative value -99999999 and priority with 99999999 value |
|
1615 //! 4. Close all objects used |
|
1616 //! @SYMTestStatus Implemented |
|
1617 //! @SYMTestPriority High |
|
1618 //! @SYMTestExpectedResults SetOrdinalPositionErr() method returns KErrNone without causing panic |
|
1619 //! @SYMTestType CIT |
|
1620 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1621 CREATE_OBJECT RWsSession ws |
|
1622 CREATE_OBJECT RWindowGroup wingrp |
|
1623 COMMAND ws new |
|
1624 COMMAND ws Connect |
|
1625 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0056-0001-new_command01 |
|
1626 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0056-0001-Construct_command02 |
|
1627 |
|
1628 COMMAND wingrp SetOrdinalPositionErr GRAPHICS-WSERV-WindowGroup-PublicApi-0056-0001-SetOrdinalPositionErr_command03 |
|
1629 |
|
1630 COMMAND wingrp Close |
|
1631 COMMAND ws Close |
|
1632 END_TEST_BLOCK |
|
1633 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0056 |
|
1634 |
|
1635 |
|
1636 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0057 |
|
1637 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0057 |
|
1638 //! @SYMAPI RWindowGroup |
|
1639 //! @SYMAuthor Ryan Lu |
|
1640 //! @SYMCreationDate 11/12/2006 |
|
1641 //! @SYMTestCaseDesc SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor): set the text cursor |
|
1642 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
1643 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1644 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
1645 //! 3. Execute SetTextCursor to set the text cursor with negative value as its origin. |
|
1646 //! 4. Close all objects used |
|
1647 //! @SYMTestStatus Implemented |
|
1648 //! @SYMTestPriority High |
|
1649 //! @SYMTestExpectedResults Run SetTextCursor() method without causing panic |
|
1650 //! @SYMTestType CIT |
|
1651 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1652 CREATE_OBJECT RWsSession ws |
|
1653 CREATE_OBJECT RWindowGroup wingrp |
|
1654 CREATE_OBJECT RBlankWindow bnkwin |
|
1655 COMMAND ws new |
|
1656 COMMAND ws Connect |
|
1657 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-new_command01 |
|
1658 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-Construct_command02 |
|
1659 COMMAND bnkwin new GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-new_command03 |
|
1660 COMMAND bnkwin Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-Construct_command04 |
|
1661 COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-SetTextCursor_command05 |
|
1662 COMMAND bnkwin Close |
|
1663 COMMAND wingrp Close |
|
1664 COMMAND ws Close |
|
1665 END_TEST_BLOCK |
|
1666 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0057 |
|
1667 |
|
1668 |
|
1669 START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0058 |
|
1670 //! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0058 |
|
1671 //! @SYMAPI RWindowGroup |
|
1672 //! @SYMAuthor Ryan Lu |
|
1673 //! @SYMCreationDate 11/12/2006 |
|
1674 //! @SYMTestCaseDesc SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor, const TRect &aClipRect): set the text cursor and its clipping rectangle |
|
1675 //! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close |
|
1676 //! @SYMTestActions 1. Create and connect a RWsSession |
|
1677 //! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE |
|
1678 //! 3. Execute SetTextCursor to set the text cursor with negative value as its origin and its clipping rectangle with negative value as relative to its origin |
|
1679 //! 4. Close all objects used |
|
1680 //! @SYMTestStatus Implemented |
|
1681 //! @SYMTestPriority High |
|
1682 //! @SYMTestExpectedResults Run SetTextCursor() method without causing panic |
|
1683 //! @SYMTestType CIT |
|
1684 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini |
|
1685 CREATE_OBJECT RWsSession ws |
|
1686 CREATE_OBJECT RWindowGroup wingrp |
|
1687 CREATE_OBJECT RBlankWindow bnkwin |
|
1688 COMMAND ws new |
|
1689 COMMAND ws Connect |
|
1690 COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-new_command01 |
|
1691 COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-Construct_command02 |
|
1692 COMMAND bnkwin new GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-new_command03 |
|
1693 COMMAND bnkwin Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-Construct_command04 |
|
1694 COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-SetTextCursor_command05 |
|
1695 COMMAND bnkwin Close |
|
1696 COMMAND wingrp Close |
|
1697 COMMAND ws Close |
|
1698 END_TEST_BLOCK |
|
1699 END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0058 |