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-BlankWindow-PublicApi |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
|
20 /////////////////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-WSERV-BlankWindow-PublicApi.script |
|
22 // |
|
23 // Tests all public elements of the RBlankWindow 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 // RBlankWindow 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 // RBlankWindow |
|
40 // **************************************************************************** |
|
41 |
|
42 START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0001 |
|
43 //! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0001 |
|
44 //! @SYMAPI RBlankWindow |
|
45 //! @SYMAuthor Ryan Lu |
|
46 //! @SYMCreationDate 18/12/2006 |
|
47 //! @SYMTestCaseDesc RBlankWindow(): create a RBlankWindow object by C++ defaut constructor |
|
48 //! Uses API elements: RBlankWindow() |
|
49 //! @SYMTestActions simply execute new() a RBlankWindow to create the object |
|
50 //! @SYMTestStatus Implemented |
|
51 //! @SYMTestPriority Low |
|
52 //! @SYMTestExpectedResults RBlankWindow object was created without causing panic |
|
53 //! @SYMTestType CIT |
|
54 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini |
|
55 CREATE_OBJECT RBlankWindow bnkwin |
|
56 COMMAND bnkwin new |
|
57 END_TEST_BLOCK |
|
58 END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0001 |
|
59 |
|
60 |
|
61 START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0002 |
|
62 //! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0002 |
|
63 //! @SYMAPI RBlankWindow |
|
64 //! @SYMAuthor Ryan Lu |
|
65 //! @SYMCreationDate 18/12/2006 |
|
66 //! @SYMTestCaseDesc RBlankWindow(RWsSession &aWs): create a RBlankWindow object within the specified RWsSession |
|
67 //! Uses API elements: RWsSession::Connect, RBlankWindow() |
|
68 //! @SYMTestActions 1. Create and connect a RWsSession |
|
69 //! 2. Create a RBlankWindow within the RWsSession |
|
70 //! @SYMTestStatus Implemented |
|
71 //! @SYMTestPriority Critical |
|
72 //! @SYMTestExpectedResults RBlankWindow object was created without causing panic |
|
73 //! @SYMTestType CIT |
|
74 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini |
|
75 CREATE_OBJECT RWsSession ws |
|
76 CREATE_OBJECT RBlankWindow bnkwin |
|
77 COMMAND ws new |
|
78 COMMAND ws Connect |
|
79 COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-PublicApi-0002-0001-new_command04 |
|
80 COMMAND ws Close |
|
81 END_TEST_BLOCK |
|
82 END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0002 |
|
83 |
|
84 |
|
85 START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0003 |
|
86 //! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0003 |
|
87 //! @SYMAPI RBlankWindow |
|
88 //! @SYMAuthor Ryan Lu |
|
89 //! @SYMCreationDate 19/12/2006 |
|
90 //! @SYMTestCaseDesc Construct(const RWindowTreeNode &parent, TUint32 aHandle): complete construction of a valid RBlankWindow handle |
|
91 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RBlankWindow::Construct |
|
92 //! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession |
|
93 //! 2. Create and construct a RWindowGroup (as the parent of RBlankWindow to be constructed) |
|
94 //! 3. Create and construct() the RBlankWindow as the child of the RWindowGroup |
|
95 //! @SYMTestStatus Implemented |
|
96 //! @SYMTestPriority Critical |
|
97 //! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic |
|
98 //! @SYMTestType CIT |
|
99 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini |
|
100 CREATE_OBJECT RWsSession ws |
|
101 CREATE_OBJECT RWindowGroup wingrp |
|
102 CREATE_OBJECT RBlankWindow bnkwin |
|
103 COMMAND ws new |
|
104 COMMAND ws Connect |
|
105 COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-PublicApi-0003-0001-new_command04 |
|
106 COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-PublicApi-0003-0001-Construct_command05 |
|
107 COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-PublicApi-0003-0001-new_command07 |
|
108 COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-PublicApi-0003-0001-Construct_command08 |
|
109 COMMAND bnkwin Close |
|
110 COMMAND wingrp Close |
|
111 COMMAND ws Close |
|
112 END_TEST_BLOCK |
|
113 END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0003 |
|
114 |
|
115 |
|
116 START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0004 |
|
117 //! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0004 |
|
118 //! @SYMAPI RBlankWindow |
|
119 //! @SYMAuthor Ryan Lu |
|
120 //! @SYMCreationDate 19/12/2006 |
|
121 //! @SYMTestCaseDesc SetColor(TRgb aColor): set the background color as specified of a RBlankWindow object |
|
122 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct |
|
123 //! RWindowBase::SetRequiredDisplayMode & Activate, RBlankWindow::Construct |
|
124 //! @SYMTestActions 1. Setup and display a RBlankWindow to test |
|
125 //! 1.1 New and connect a RWsSession |
|
126 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
127 //! 1.3 New and construct a RWindowGroup within the RWsSession |
|
128 //! 1.4 New and construct a RBlankWindow as the child of the RWindowGroup |
|
129 //! use RWindowBase::SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it |
|
130 //! 1.5 SetAutoFlush to TRUE for the RWsSession |
|
131 //! 2. Set the background color of RBlankWindow to TRgb(255,0,0) |
|
132 //! 3. Check the RBlankWindow is displayed on the screen with the specified background color |
|
133 //! 4. Destruct and close all objects used |
|
134 //! @SYMTestStatus Implemented |
|
135 //! @SYMTestPriority Critical |
|
136 //! @SYMTestExpectedResults 1. Set the background color of RBlankWindow without causing panic |
|
137 //! 2. RBlankWindow should be displayed with the specified background color TRgb(255,0,0) |
|
138 //! only check the sample rectangles ((0,0),(20,20)), ((180,0),(200,20)), ((0,180),(20,200)), ((180,180),(200,200)) |
|
139 //! @SYMTestType CIT |
|
140 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini |
|
141 CREATE_OBJECT RWsSession ws |
|
142 CREATE_OBJECT RWindowGroup wingrp |
|
143 CREATE_OBJECT RBlankWindow bnkwin |
|
144 CREATE_OBJECT CWsScreenDevice scrdev |
|
145 COMMAND ws new |
|
146 COMMAND ws Connect |
|
147 COMMAND scrdev new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command04 |
|
148 COMMAND scrdev Construct |
|
149 COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 |
|
150 COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08 |
|
151 COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 |
|
152 COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 |
|
153 COMMAND bnkwin SetRequiredDisplayMode GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetRequiredDisplayMode_command12 |
|
154 COMMAND bnkwin Activate |
|
155 COMMAND ws SetAutoFlush GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetAutoFlush_command15 |
|
156 COMMAND bnkwin SetColor GRAPHICS-WSERV-BlankWindow-PublicApi-0004-0001-SetColor_command01 |
|
157 COMMAND scrdev checkRectColor GRAPHICS-WSERV-BlankWindow-PublicApi-0004-0001-checkRectColor_command03 |
|
158 COMMAND bnkwin Close |
|
159 COMMAND wingrp Close |
|
160 COMMAND scrdev ~ |
|
161 COMMAND ws Close |
|
162 END_TEST_BLOCK |
|
163 END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0004 |
|
164 |
|
165 |
|
166 START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0005 |
|
167 //! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0005 |
|
168 //! @SYMAPI RBlankWindow |
|
169 //! @SYMAuthor Ryan Lu |
|
170 //! @SYMCreationDate 19/12/2006 |
|
171 //! @SYMTestCaseDesc SetColor(): set the background color for cleaning the window of a RBlankWindow object |
|
172 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, |
|
173 //! RWindowBase::SetRequiredDisplayMode & Activate, RBlankWindow::Construct |
|
174 //! @SYMTestActions 1. Setup and display a RBlankWindow to test |
|
175 //! 1.1 New and connect a RWsSession |
|
176 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
177 //! 1.3 New and construct a RWindowGroup within the RWsSession |
|
178 //! 1.4 New and construct a RBlankWindow as the child of the RWindowGroup |
|
179 //! use RWindowBase::SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it |
|
180 //! 1.5 SetAutoFlush to TRUE for the RWsSession |
|
181 //! 2. Clean the background color of RBlankWindow, to the default TRgb(255,255,255) |
|
182 //! 3. Check the RBlankWindow is displayed on the screen with the default background color |
|
183 //! 4. Destruct and close all objects used |
|
184 //! @SYMTestStatus Implemented |
|
185 //! @SYMTestPriority Critical |
|
186 //! @SYMTestExpectedResults 1. Clean the background color of RBlankWindow without causing panic |
|
187 //! 2. RBlankWindow should be displayed with the default background color TRgb(255,255,255) |
|
188 //! only check the sample rectangles ((0,0),(20,20)), ((180,0),(200,20)), ((0,180),(20,200)), ((180,180),(200,200)) |
|
189 //! @SYMTestType CIT |
|
190 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini |
|
191 CREATE_OBJECT RWsSession ws |
|
192 CREATE_OBJECT RWindowGroup wingrp |
|
193 CREATE_OBJECT RBlankWindow bnkwin |
|
194 CREATE_OBJECT CWsScreenDevice scrdev |
|
195 COMMAND ws new |
|
196 COMMAND ws Connect |
|
197 COMMAND scrdev new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command04 |
|
198 COMMAND scrdev Construct |
|
199 COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 |
|
200 COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08 |
|
201 COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 |
|
202 COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 |
|
203 COMMAND bnkwin SetRequiredDisplayMode GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetRequiredDisplayMode_command12 |
|
204 COMMAND bnkwin Activate |
|
205 COMMAND ws SetAutoFlush GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetAutoFlush_command15 |
|
206 |
|
207 COMMAND bnkwin SetColor |
|
208 COMMAND scrdev checkRectColor GRAPHICS-WSERV-BlankWindow-PublicApi-0005-0001-checkRectColor_command03 |
|
209 |
|
210 COMMAND bnkwin Close |
|
211 COMMAND wingrp Close |
|
212 COMMAND scrdev ~ |
|
213 COMMAND ws Close |
|
214 END_TEST_BLOCK |
|
215 END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0005 |
|
216 |
|
217 |
|
218 START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0006 |
|
219 //! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0006 |
|
220 //! @SYMAPI RBlankWindow |
|
221 //! @SYMAuthor Ryan Lu |
|
222 //! @SYMCreationDate 19/12/2006 |
|
223 //! @SYMTestCaseDesc SetSize(const TSize &size): set the size of a RBlankWindow object |
|
224 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, |
|
225 //! RWindowBase::SetRequiredDisplayMode & Activate & Size, RBlankWindow::Construct & SetColor |
|
226 //! @SYMTestActions 1. Setup and display a RBlankWindow to test |
|
227 //! 1.1 New and connect a RWsSession |
|
228 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
229 //! 1.3 New and construct a RWindowGroup within the RWsSession |
|
230 //! 1.4 New and construct a RBlankWindow as the child of the RWindowGroup |
|
231 //! use RWindowBase::SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it |
|
232 //! 1.5 SetAutoFlush to TRUE for the RWsSession |
|
233 //! 2. Execute SetSize to set the RBlankWindow size to (width 40, height 30) |
|
234 //! 3. Use RWindowBase::Size to get and check if the window size as specified |
|
235 //! 4. Set RBlankWindow background color to TRgb(255,0,0) |
|
236 //! 5. Check if the RBlankWindow is displayed on the screen with the specified background color |
|
237 //! 6. Destruct and close all objects used |
|
238 //! @SYMTestStatus Implemented |
|
239 //! @SYMTestPriority Critical |
|
240 //! @SYMTestExpectedResults 1. Set the size of RBlankWindow without causing panic |
|
241 //! 2. The specified window size is the same as what get from RWindowBase::Size |
|
242 //! 3. RBlankWindow (TRect((0,0),(40,30)) on the screen) should be drawn with the specified background color TRgb(255,0,0) |
|
243 //! @SYMTestType CIT |
|
244 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini |
|
245 CREATE_OBJECT RWsSession ws |
|
246 CREATE_OBJECT RWindowGroup wingrp |
|
247 CREATE_OBJECT RBlankWindow bnkwin |
|
248 CREATE_OBJECT CWsScreenDevice scrdev |
|
249 COMMAND ws new |
|
250 COMMAND ws Connect |
|
251 COMMAND scrdev new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command04 |
|
252 COMMAND scrdev Construct |
|
253 COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 |
|
254 COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08 |
|
255 COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 |
|
256 COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 |
|
257 COMMAND bnkwin SetRequiredDisplayMode GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetRequiredDisplayMode_command12 |
|
258 COMMAND bnkwin Activate |
|
259 COMMAND ws SetAutoFlush GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetAutoFlush_command15 |
|
260 |
|
261 COMMAND bnkwin SetSize GRAPHICS-WSERV-BlankWindow-PublicApi-0006-0001-SetSize_command01 |
|
262 COMMAND bnkwin Size GRAPHICS-WSERV-BlankWindow-PublicApi-0006-0001-Size_command02 |
|
263 COMMAND bnkwin SetColor GRAPHICS-WSERV-BlankWindow-PublicApi-0006-0001-SetColor_command03 |
|
264 COMMAND scrdev checkRectColor GRAPHICS-WSERV-BlankWindow-PublicApi-0006-0001-checkRectColor_command05 |
|
265 |
|
266 COMMAND bnkwin Close |
|
267 COMMAND wingrp Close |
|
268 COMMAND scrdev ~ |
|
269 COMMAND ws Close |
|
270 END_TEST_BLOCK |
|
271 END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0006 |
|
272 |
|
273 |
|
274 START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0007 |
|
275 //! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0007 |
|
276 //! @SYMAPI RBlankWindow |
|
277 //! @SYMAuthor Ryan Lu |
|
278 //! @SYMCreationDate 18/12/2006 |
|
279 //! @SYMTestCaseDesc SetExtent(const TPoint &point, const TSize &size): set the extent (position and size) of a RBlankWindow object |
|
280 //! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, |
|
281 //! RWindowBase::SetRequiredDisplayMode & Activate & AbsPosition & Size, RBlankWindow::Construct & SetColor |
|
282 //! @SYMTestActions 1. Setup and display a RBlankWindow to test |
|
283 //! 1.1 New and connect a RWsSession |
|
284 //! 1.2 New and construct a CWsScreenDevice within the RWsSession |
|
285 //! 1.3 New and construct a RWindowGroup within the RWsSession |
|
286 //! 1.4 New and construct a RBlankWindow as the child of the RWindowGroup |
|
287 //! use RWindowBase::SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it |
|
288 //! 1.5 SetAutoFlush to TRUE for the RWsSession |
|
289 //! 2. Execute SetExtent to set the RBlankWindow position to (10,11) and size to (width 30, height 40) |
|
290 //! 3. Use RWindowBase::AbsPosition to get and check if the window position as specified |
|
291 //! 4. Use RWindowBase::Size to get and check if the window size as specified |
|
292 //! 5. Set RBlankWindow background color to TRgb(255,0,0) |
|
293 //! 6. Check if the RBlankWindow is displayed on the screen with the specified background color |
|
294 //! 7. Destruct and close all objects used |
|
295 //! @SYMTestStatus Implemented |
|
296 //! @SYMTestPriority Critical |
|
297 //! @SYMTestExpectedResults 1. Set the extent of RBlankWindow without causing panic |
|
298 //! 2. The specified window position (10,11) is the same as what get from RWindowBase::AbsPosition |
|
299 //! 3. The specified window size (width 30, height 40) is the same as what get from RWindowBase::Size |
|
300 //! 4. RBlankWindow on the screen) should be drawn with the specified background color TRgb(255,0,0) |
|
301 //! the RBlankWindow is the rectangle area with the top-left at the specified position (10,11) and bottom-right at (40,51) = (10,11)+(30,40) |
|
302 //! @SYMTestType CIT |
|
303 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini |
|
304 CREATE_OBJECT RWsSession ws |
|
305 CREATE_OBJECT RWindowGroup wingrp |
|
306 CREATE_OBJECT RBlankWindow bnkwin |
|
307 CREATE_OBJECT CWsScreenDevice scrdev |
|
308 COMMAND ws new |
|
309 COMMAND ws Connect |
|
310 COMMAND scrdev new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command04 |
|
311 COMMAND scrdev Construct |
|
312 COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 |
|
313 COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08 |
|
314 COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 |
|
315 COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 |
|
316 COMMAND bnkwin SetRequiredDisplayMode GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetRequiredDisplayMode_command12 |
|
317 COMMAND bnkwin Activate |
|
318 COMMAND ws SetAutoFlush GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetAutoFlush_command15 |
|
319 |
|
320 COMMAND bnkwin SetExtent GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-SetExtent_command01 |
|
321 COMMAND bnkwin AbsPosition GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-AbsPosition_command02 |
|
322 COMMAND bnkwin Size GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-Size_command03 |
|
323 COMMAND bnkwin SetColor GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-SetColor_command04 |
|
324 COMMAND scrdev checkRectColor GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-checkRectColor_command06 |
|
325 |
|
326 COMMAND bnkwin Close |
|
327 COMMAND wingrp Close |
|
328 COMMAND scrdev ~ |
|
329 COMMAND ws Close |
|
330 END_TEST_BLOCK |
|
331 END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0007 |
|
332 |
|
333 |
|
334 |
|
335 |
|
336 // **************************************************************************** |
|
337 // Negative testcases of RBlankWindow |
|
338 // **************************************************************************** |
|
339 |
|
340 START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-1003 |
|
341 //! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-1003 |
|
342 //! @SYMAPI RBlankWindow |
|
343 //! @SYMAuthor Ryan Lu |
|
344 //! @SYMCreationDate 23/10/2007 |
|
345 //! @SYMTestCaseDesc Construct(const RWindowTreeNode &parent, TUint32 aHandle): fail to Construct() a RBlankWindow as a child of a invalid parent RWindowTreeNode |
|
346 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RBlankWindow::Construct |
|
347 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
348 //! 2. new() a RWindowGroup within the RWsSession but not Construct() it |
|
349 //! 3. new() a RBlankWindow within the RWsSession |
|
350 //! 4. Execute Construct() the RBlankWindow as the child of RWindowGroup and see if it meets expected panic code |
|
351 //! 5. Close all objects used |
|
352 //! @SYMTestStatus Implemented |
|
353 //! @SYMTestPriority Low |
|
354 //! @SYMTestExpectedResults get panic WSERV code=6 (Invalid window handle) |
|
355 //! @SYMTestType CIT |
|
356 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini |
|
357 CREATE_OBJECT RWsSession ws |
|
358 CREATE_OBJECT RWindowGroup wingrp |
|
359 CREATE_OBJECT RBlankWindow bnkwin |
|
360 COMMAND ws new |
|
361 COMMAND ws Connect |
|
362 COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 |
|
363 COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 |
|
364 COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 |
|
365 END_TEST_BLOCK !PanicString=WSERV !PanicCode=6 |
|
366 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
367 END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-1003 |
|
368 |
|
369 |
|
370 START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-1005 |
|
371 //! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-1005 |
|
372 //! @SYMAPI RBlankWindow |
|
373 //! @SYMAuthor Ryan Lu |
|
374 //! @SYMCreationDate 24/10/2007 |
|
375 //! @SYMTestCaseDesc SetSize(const TSize &size): set RBlankWindow to invalid size (negative width and height) |
|
376 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::Size, RBlankWindow::Construct |
|
377 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
378 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
379 //! 3. new() and Construct() a RBlankWindow as the child of the RWindowGroup |
|
380 //! 4. Execute SetSize() to set RBlankWindow to invalid size (negative width and height) |
|
381 //! 5. Close all objects used |
|
382 //! @SYMTestStatus Implemented |
|
383 //! @SYMTestPriority Medium |
|
384 //! @SYMTestExpectedResults SetSize() to negative width/height would not generate error, but actually set the negative width/height to zero value |
|
385 //! @SYMTestType CIT |
|
386 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini |
|
387 CREATE_OBJECT RWsSession ws |
|
388 CREATE_OBJECT RWindowGroup wingrp |
|
389 CREATE_OBJECT RBlankWindow bnkwin |
|
390 COMMAND ws new |
|
391 COMMAND ws Connect |
|
392 COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 |
|
393 COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08 |
|
394 COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 |
|
395 COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 |
|
396 COMMAND bnkwin SetSize GRAPHICS-WSERV-BlankWindow-PublicApi-1005-0001-SetSize_command01 |
|
397 COMMAND bnkwin Size GRAPHICS-WSERV-BlankWindow-PublicApi-1005-0001-Size_command02 |
|
398 COMMAND bnkwin Close |
|
399 COMMAND wingrp Close |
|
400 COMMAND ws Close |
|
401 END_TEST_BLOCK |
|
402 END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-1005 |
|
403 |
|
404 |
|
405 START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-1006 |
|
406 //! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-1006 |
|
407 //! @SYMAPI RBlankWindow |
|
408 //! @SYMAuthor Ryan Lu |
|
409 //! @SYMCreationDate 24/10/2007 |
|
410 //! @SYMTestCaseDesc SetSize(const TSize &size): set RBlankWindow to invalid size (negative width and height) |
|
411 //! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::Size, RBlankWindow::Construct |
|
412 //! @SYMTestActions 1. new() and Connect() a RWsSession |
|
413 //! 2. new() and Construct() a RWindowGroup within the RWsSession |
|
414 //! 3. new() and Construct() a RBlankWindow as the child of the RWindowGroup |
|
415 //! 4. Execute SetSize() to set RBlankWindow to invalid size (negative width and height) |
|
416 //! 5. Close all objects used |
|
417 //! @SYMTestStatus Implemented |
|
418 //! @SYMTestPriority Medium |
|
419 //! @SYMTestExpectedResults SetSize() to negative width/height would not generate error, but actually set the negative width/height to zero value |
|
420 //! @SYMTestType CIT |
|
421 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini |
|
422 CREATE_OBJECT RWsSession ws |
|
423 CREATE_OBJECT RWindowGroup wingrp |
|
424 CREATE_OBJECT RBlankWindow bnkwin |
|
425 COMMAND ws new |
|
426 COMMAND ws Connect |
|
427 COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 |
|
428 COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08 |
|
429 COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 |
|
430 COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 |
|
431 COMMAND bnkwin SetExtent GRAPHICS-WSERV-BlankWindow-PublicApi-1006-0001-SetExtent_command01 |
|
432 COMMAND bnkwin Size GRAPHICS-WSERV-BlankWindow-PublicApi-1006-0001-Size_command02 |
|
433 COMMAND bnkwin Close |
|
434 COMMAND wingrp Close |
|
435 COMMAND ws Close |
|
436 END_TEST_BLOCK |
|
437 END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-1006 |
|