|
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-DirectScreenAccess-PublicApi |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
|
20 /////////////////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script |
|
22 // |
|
23 // Tests all public elements of the CDirectScreenAccess 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 // CDirectScreenAccess 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 LOAD_SUITE T_GraphicsWservAPI |
|
35 |
|
36 // **************************************************************************** |
|
37 // CDirectScreenAccess & MDirectScreenAccess |
|
38 // **************************************************************************** |
|
39 |
|
40 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0001 |
|
41 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0001 |
|
42 //! @SYMAPI CDirectScreenAccess::NewL(RWsSession{ref} , CWsScreenDevice{ref}, RWindowBase{ref}, MDirectScreenAccess{ref}) |
|
43 //! @SYMAuthor Jeffery Zhao |
|
44 //! @SYMCreationDate 19/12/2007 |
|
45 //! @SYMTestCaseDesc Creates a DSA object but does not start it. |
|
46 //! @SYMTestActions 1. Create and connect a RWsSession |
|
47 //! 2. Create and construct a CWsScreenDevice attached to RWsSession. |
|
48 //! 3. Complete the construction. |
|
49 //! 4. Create and construct a RWindow |
|
50 //! 5. Create a CDirectScreenAccess. |
|
51 //! 6. Destruct and close all created object. |
|
52 //! @SYMTestStatus Implemented |
|
53 //! @SYMTestPriority High |
|
54 //! @SYMTestExpectedResults CDirectScreenAccess object was created successfully. |
|
55 //! @SYMTestType CIT |
|
56 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
57 CREATE_OBJECT RWsSession ws |
|
58 CREATE_OBJECT CWsScreenDevice scrdev |
|
59 CREATE_OBJECT RWindowGroup wingrp |
|
60 CREATE_OBJECT RWindow win |
|
61 CREATE_OBJECT CDirectScreenAccess dsa |
|
62 COMMAND ws new |
|
63 COMMAND ws Connect |
|
64 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
65 COMMAND scrdev Construct |
|
66 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
67 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 |
|
68 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
69 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 |
|
70 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 |
|
71 COMMAND dsa ~ |
|
72 COMMAND scrdev ~ |
|
73 COMMAND win Close |
|
74 COMMAND wingrp Close |
|
75 COMMAND ws Close |
|
76 END_TEST_BLOCK |
|
77 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0001 |
|
78 |
|
79 |
|
80 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0002 |
|
81 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0002 |
|
82 //! @SYMAPI CDirectScreenAccess::StartL() |
|
83 //! @SYMAuthor Jeffery Zhao |
|
84 //! @SYMCreationDate 19/12/2007 |
|
85 //! @SYMTestCaseDesc Informs the window server to start DSA. |
|
86 //! @SYMTestActions 1. Create and connect a RWsSession |
|
87 //! 2. Create and construct a CWsScreenDevice within the RWsSession |
|
88 //! 3. Create and construct a RWindow. |
|
89 //! 4. Create a CDirectScreenAccess |
|
90 //! 5. Start direct screen access. |
|
91 //! 6. Destruct and close all created objects. |
|
92 //! @SYMTestStatus Implemented |
|
93 //! @SYMTestPriority High |
|
94 //! @SYMTestExpectedResults DSA was started successfully. |
|
95 //! @SYMTestType CIT |
|
96 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
97 CREATE_OBJECT RWsSession ws |
|
98 CREATE_OBJECT CWsScreenDevice scrdev |
|
99 CREATE_OBJECT RWindowGroup wingrp |
|
100 CREATE_OBJECT RWindow win |
|
101 CREATE_OBJECT CDirectScreenAccess dsa |
|
102 COMMAND ws new |
|
103 COMMAND ws Connect |
|
104 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
105 COMMAND scrdev Construct |
|
106 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
107 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 |
|
108 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
109 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 |
|
110 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 |
|
111 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 |
|
112 COMMAND dsa Cancel |
|
113 OUTSTANDING |
|
114 COMMAND dsa ~ |
|
115 COMMAND scrdev ~ |
|
116 COMMAND win Close |
|
117 COMMAND wingrp Close |
|
118 COMMAND ws Close |
|
119 END_TEST_BLOCK |
|
120 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0002 |
|
121 |
|
122 |
|
123 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0003 |
|
124 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0003 |
|
125 //! @SYMAPI CDirectScreenAccess::Gc() |
|
126 //! @SYMAuthor Jeffery Zhao |
|
127 //! @SYMCreationDate 19/12/2007 |
|
128 //! @SYMTestCaseDesc Gets the graphics context for drawing to the screen. |
|
129 //! @SYMTestActions 1. Create and connect a RWsSession |
|
130 //! 2. Create and construct a CWsScreenDevice within the RWsSession |
|
131 //! 3. Create and construct a RWindow. |
|
132 //! 4. Create a CDirectScreenAccess. |
|
133 //! 5. Start direct screen access. |
|
134 //! 6. Gets the graphics context for drawing to the screen. |
|
135 //! 7. Destruct and close all created object. |
|
136 //! @SYMTestStatus Implemented |
|
137 //! @SYMTestPriority High |
|
138 //! @SYMTestExpectedResults The returned graphics context in DSA is valid. |
|
139 //! @SYMTestType CIT |
|
140 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
141 CREATE_OBJECT RWsSession ws |
|
142 CREATE_OBJECT CWsScreenDevice scrdev |
|
143 CREATE_OBJECT RWindowGroup wingrp |
|
144 CREATE_OBJECT RWindow win |
|
145 CREATE_OBJECT CDirectScreenAccess dsa |
|
146 CREATE_OBJECT CFbsBitGc bgc |
|
147 CREATE_OBJECT CFbsScreenDevice fbsScreenDevice |
|
148 COMMAND ws new |
|
149 COMMAND ws Connect |
|
150 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
151 COMMAND scrdev Construct |
|
152 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
153 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 |
|
154 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
155 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 |
|
156 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 |
|
157 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 |
|
158 COMMAND dsa Gc GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-GC_command001 |
|
159 COMMAND bgc Activate GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-GC_command002 |
|
160 COMMAND dsa Cancel |
|
161 COMMAND bgc disown |
|
162 OUTSTANDING |
|
163 COMMAND dsa ~ |
|
164 COMMAND scrdev ~ |
|
165 COMMAND win Close |
|
166 COMMAND wingrp Close |
|
167 COMMAND ws Close |
|
168 END_TEST_BLOCK |
|
169 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0003 |
|
170 |
|
171 |
|
172 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0004 |
|
173 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0004 |
|
174 //! @SYMAPI CDirectScreenAccess::ScreenDevice() |
|
175 //! @SYMAuthor Jeffery Zhao |
|
176 //! @SYMCreationDate 19/12/2007 |
|
177 //! @SYMTestCaseDesc Gets the screen device to draw to. |
|
178 //! @SYMTestActions 1. Create and connect a RWsSession |
|
179 //! 2. Create and construct a CWsScreenDevice within the RWsSession |
|
180 //! 3. Create and construct a RWindow. |
|
181 //! 4. Create a CDirectScreenAccess. |
|
182 //! 5. Gets the screen device to draw to. |
|
183 //! 6. Destruct and close all created object. |
|
184 //! @SYMTestStatus Implemented |
|
185 //! @SYMTestPriority High |
|
186 //! @SYMTestExpectedResults The returned screen device in DSA is valid. |
|
187 //! @SYMTestType CIT |
|
188 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
189 CREATE_OBJECT RWsSession ws |
|
190 CREATE_OBJECT CWsScreenDevice scrdev |
|
191 CREATE_OBJECT RWindowGroup wingrp |
|
192 CREATE_OBJECT RWindow win |
|
193 CREATE_OBJECT CDirectScreenAccess dsa |
|
194 CREATE_OBJECT CFbsScreenDevice fbsScreenDevice |
|
195 COMMAND ws new |
|
196 COMMAND ws Connect |
|
197 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
198 COMMAND scrdev Construct |
|
199 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
200 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 |
|
201 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
202 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 |
|
203 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 |
|
204 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 |
|
205 COMMAND dsa ScreenDevice GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-ScreenDevice_command001 |
|
206 COMMAND dsa Cancel |
|
207 OUTSTANDING |
|
208 COMMAND fbsScreenDevice disown |
|
209 COMMAND dsa ~ |
|
210 COMMAND scrdev ~ |
|
211 COMMAND win Close |
|
212 COMMAND wingrp Close |
|
213 COMMAND ws Close |
|
214 END_TEST_BLOCK |
|
215 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0004 |
|
216 |
|
217 |
|
218 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0005 |
|
219 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0005 |
|
220 //! @SYMAPI CDirectScreenAccess::DrawingRegion() |
|
221 //! @SYMAuthor Jeffery Zhao |
|
222 //! @SYMCreationDate 19/12/2007 |
|
223 //! @SYMTestCaseDesc Gets the graphics context for drawing to the screen. |
|
224 //! |
|
225 //! @SYMTestActions 1. Create and connect a RWsSession |
|
226 //! 2. Create and construct a CWsScreenDevice within the RWsSession |
|
227 //! 3. Create and construct a RWindow class. |
|
228 //! 4. Create a CDirectScreenAccess. |
|
229 //! 5. Start direct screen access. |
|
230 //! 6. Get the clipping region to draw to. |
|
231 //! 7. Destruct and close all created object. |
|
232 //! @SYMTestStatus Implemented |
|
233 //! @SYMTestPriority High |
|
234 //! @SYMTestExpectedResults The returned clipping region in DSA is valid. |
|
235 //! @SYMTestType CIT |
|
236 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
237 CREATE_OBJECT RWsSession ws |
|
238 CREATE_OBJECT CWsScreenDevice scrdev |
|
239 CREATE_OBJECT RWindowGroup wingrp |
|
240 CREATE_OBJECT RWindow win |
|
241 CREATE_OBJECT CDirectScreenAccess dsa |
|
242 COMMAND ws new |
|
243 COMMAND ws Connect |
|
244 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
245 COMMAND scrdev Construct |
|
246 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
247 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 |
|
248 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
249 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 |
|
250 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 |
|
251 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 |
|
252 COMMAND dsa DrawingRegion |
|
253 COMMAND dsa Cancel |
|
254 OUTSTANDING |
|
255 COMMAND dsa ~ |
|
256 COMMAND scrdev ~ |
|
257 COMMAND win Close |
|
258 COMMAND wingrp Close |
|
259 COMMAND ws Close |
|
260 END_TEST_BLOCK |
|
261 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0005 |
|
262 |
|
263 |
|
264 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0006 |
|
265 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0006 |
|
266 //! @SYMAPI CDirectScreenAccess::DrawingRegion() |
|
267 //! @SYMAuthor Jeffery Zhao |
|
268 //! @SYMCreationDate 19/12/2007 |
|
269 //! @SYMTestCaseDesc Gets the graphics context for drawing to the screen,without Starting. |
|
270 //! @SYMTestActions 1. Create and connect a RWsSession |
|
271 //! 2. Create and construct a CWsScreenDevice within the RWsSession |
|
272 //! 3. Create and construct a RWindow class. |
|
273 //! 4. Activate window and notify beginredraw/endredraw. |
|
274 //! 5. Create a CDirectScreenAccess and start. |
|
275 //! 6. Get the clipping region to draw to. |
|
276 //! 7. Destruct and close all created object. |
|
277 //! @SYMTestStatus Implemented |
|
278 //! @SYMTestPriority High |
|
279 //! @SYMTestExpectedResults 1.The returned clipping region in DSA is valid 2. Verify the returned region in DSA and the window shape is same. |
|
280 //! @SYMTestType CIT |
|
281 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
282 CREATE_OBJECT RWsSession ws |
|
283 CREATE_OBJECT CWsScreenDevice scrdev |
|
284 CREATE_OBJECT RWindowGroup wingrp |
|
285 CREATE_OBJECT RWindow win |
|
286 CREATE_OBJECT CDirectScreenAccess dsa |
|
287 COMMAND ws new |
|
288 COMMAND ws Connect |
|
289 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
290 COMMAND scrdev Construct |
|
291 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
292 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 |
|
293 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
294 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 |
|
295 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 |
|
296 COMMAND win SetShape GRAPHICS-WSERV-DirectScreenAccess-Setup-0006-0001-SetShape_command010 |
|
297 COMMAND win Activate |
|
298 COMMAND win BeginRedraw |
|
299 COMMAND win EndRedraw |
|
300 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 |
|
301 COMMAND dsa DrawingRegion GRAPHICS-WSERV-DirectScreenAccess-Setup-0006-0001-SetShape_command010 |
|
302 COMMAND dsa Cancel |
|
303 OUTSTANDING |
|
304 COMMAND dsa ~ |
|
305 COMMAND scrdev ~ |
|
306 COMMAND win Close |
|
307 COMMAND wingrp Close |
|
308 COMMAND ws Close |
|
309 END_TEST_BLOCK |
|
310 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0006 |
|
311 |
|
312 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0007 |
|
313 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0007 |
|
314 //! @SYMAPI CDirectScreenAccess::StartL() |
|
315 //! @SYMAuthor Jeffery Zhao |
|
316 //! @SYMCreationDate 19/12/2007 |
|
317 //! @SYMTestCaseDesc Create two DSA,set the priority of the second DSA to high and check that AbortNow() and Restart() are called. |
|
318 //! @SYMTestActions 1. Create and connect a RWsSession |
|
319 //! 2. Create and construct a CWsScreenDevice within the RWsSession |
|
320 //! 3. Create and construct a RWindow class. |
|
321 //! 4. Create two CDirectScreenAccess. |
|
322 //! 5. Start the second DSA with heigh priority to check first DSA's AbortNow be called. |
|
323 //! 6. Cancel the second DSA. |
|
324 //! 7. Destruct and close all created object. |
|
325 //! @SYMTestStatus Implemented |
|
326 //! @SYMTestPriority High |
|
327 //! @SYMTestExpectedResults 1. AbortNow() and Restart() be called sucessfully. 2.Terminate reason is ETerminateRegion. |
|
328 //! @SYMTestType CIT |
|
329 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
330 CREATE_OBJECT RWsSession ws |
|
331 CREATE_OBJECT CWsScreenDevice scrdev |
|
332 CREATE_OBJECT RWindowGroup wingrp |
|
333 CREATE_OBJECT RWindow win |
|
334 CREATE_OBJECT RWindow win2 |
|
335 CREATE_OBJECT CDirectScreenAccess dsa |
|
336 CREATE_OBJECT CDirectScreenAccess dsa2 |
|
337 COMMAND ws new |
|
338 COMMAND ws Connect |
|
339 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
340 COMMAND scrdev Construct |
|
341 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
342 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 |
|
343 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
344 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 |
|
345 COMMAND win2 new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
346 COMMAND win2 Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command009 |
|
347 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 |
|
348 COMMAND dsa2 NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command010 |
|
349 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 |
|
350 COMMAND win SetShape GRAPHICS-WSERV-DirectScreenAccess-Setup-0006-0001-SetShape_command010 |
|
351 COMMAND win Activate |
|
352 COMMAND win BeginRedraw |
|
353 COMMAND win EndRedraw |
|
354 COMMAND dsa2 SetPriority GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-SetPriority_command001 |
|
355 COMMAND dsa2 StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 |
|
356 COMMAND win2 SetShape GRAPHICS-WSERV-DirectScreenAccess-Setup-0006-0001-SetShape_command010 |
|
357 COMMAND win2 Activate |
|
358 COMMAND win2 BeginRedraw |
|
359 COMMAND win2 EndRedraw |
|
360 COMMAND dsa2 Cancel |
|
361 COMMAND dsa Cancel |
|
362 OUTSTANDING |
|
363 COMMAND dsa2 ~ |
|
364 COMMAND dsa ~ |
|
365 COMMAND win Close |
|
366 COMMAND win2 Close |
|
367 COMMAND wingrp Close |
|
368 COMMAND scrdev ~ |
|
369 COMMAND ws Close |
|
370 END_TEST_BLOCK |
|
371 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0007 |
|
372 |
|
373 |
|
374 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0008 |
|
375 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0008 |
|
376 //! @SYMAPI CDirectScreenAccess::StartL() |
|
377 //! @SYMAuthor Jeffery Zhao |
|
378 //! @SYMCreationDate 19/12/2007 |
|
379 //! @SYMTestCaseDesc Bring an app to foreground to check that AbortNow() and Restart() are called. |
|
380 //! @SYMTestActions 1. Create and connect a RWsSession |
|
381 //! 2. Create and construct a CWsScreenDevice within the RWsSession |
|
382 //! 3. Create CDirectScreenAccess and start. |
|
383 //! 4. Bringup an app to check DSA's AbortNow() and Restart() be called. |
|
384 //! 5. Destruct and close all created object. |
|
385 //! @SYMTestStatus Implemented |
|
386 //! @SYMTestPriority High |
|
387 //! @SYMTestExpectedResults 1. AbortNow() and Restart() be called sucessfully. 2.Terminate reason is ETerminateRegion. |
|
388 //! @SYMTestType CIT |
|
389 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
390 CREATE_OBJECT RWsSession ws |
|
391 CREATE_OBJECT CWsScreenDevice scrdev |
|
392 CREATE_OBJECT RWindowGroup wingrp |
|
393 CREATE_OBJECT RWindow win |
|
394 CREATE_OBJECT CDirectScreenAccess dsa |
|
395 COMMAND ws new |
|
396 COMMAND ws Connect |
|
397 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
398 COMMAND scrdev Construct |
|
399 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
400 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 |
|
401 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
402 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 |
|
403 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 |
|
404 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 |
|
405 COMMAND dsa Util_BringAppFg GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-BringAppFg_command011 |
|
406 OUTSTANDING |
|
407 COMMAND dsa ~ |
|
408 COMMAND scrdev ~ |
|
409 COMMAND win Close |
|
410 COMMAND wingrp Close |
|
411 COMMAND ws Close |
|
412 END_TEST_BLOCK |
|
413 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0008 |
|
414 |
|
415 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010 |
|
416 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010 |
|
417 //! @SYMAPI CDirectScreenAccess::NewL(RWsSession{ref} , CWsScreenDevice{ref}, RWindowBase{ref}, MDirectScreenAccess{ref}) |
|
418 //! @SYMAuthor Yue Zhang |
|
419 //! @SYMCreationDate 4/1/2008 |
|
420 //! @SYMTestCaseDesc negative test, uses a non-constructed CWsScreenDevice while creating CDirectScreenAcess. |
|
421 //! @SYMTestActions 1. Creates a RWsSession and connect to server. |
|
422 //! 2. Creates a CWsScreenDevice attached to RWsSession without construction. |
|
423 //! 3. Completes the construction. |
|
424 //! 4. Creates and constructs a RWindow. |
|
425 //! 5. Creates a CDirectScreenAccess. |
|
426 //! 6. Destructs and closes all created object. |
|
427 //! @SYMTestStatus Implemented |
|
428 //! @SYMTestPriority High |
|
429 //! @SYMTestExpectedResults WSERV 3 panic received at Test Action 5. |
|
430 //! @SYMTestType CIT |
|
431 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
432 CREATE_OBJECT RWsSession ws |
|
433 CREATE_OBJECT CWsScreenDevice scrdev |
|
434 CREATE_OBJECT RWindowGroup wingrp |
|
435 CREATE_OBJECT RWindow win |
|
436 CREATE_OBJECT CDirectScreenAccess dsa |
|
437 COMMAND ws new |
|
438 COMMAND ws Connect |
|
439 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-new_command003 |
|
440 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-new_command004 |
|
441 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-Construct_command005 |
|
442 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-new_command006 |
|
443 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-Construct_command007 |
|
444 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-NewL_command008 |
|
445 COMMAND dsa ~ |
|
446 COMMAND scrdev ~ |
|
447 COMMAND win Close |
|
448 COMMAND wingrp Close |
|
449 COMMAND ws Close |
|
450 END_TEST_BLOCK !PanicString=WSERV !PanicCode=3 |
|
451 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
452 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010 |
|
453 |
|
454 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011 |
|
455 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011 |
|
456 //! @SYMAPI CDirectScreenAccess::NewL(RWsSession{ref} , CWsScreenDevice{ref}, RWindowBase{ref}, MDirectScreenAccess{ref}) |
|
457 //! @SYMAuthor Yue Zhang |
|
458 //! @SYMCreationDate 4/1/2008 |
|
459 //! @SYMTestCaseDesc negative test, uses a non-constructed RWindowBase while creating CDirectScreenAccess. |
|
460 //! @SYMTestActions 1. Creates a RWsSession and connects to server. |
|
461 //! 2. Creates a CWsScreenDevice and contructs. |
|
462 //! 3. Completes the construction. |
|
463 //! 4. Creates an RWindow |
|
464 //! 5. Create a CDirectScreenAccess with non-construction RWindowBase. |
|
465 //! 6. Starts direct screen access. |
|
466 //! 7. Destructs and closes all created object. |
|
467 //! @SYMTestStatus Implemented |
|
468 //! @SYMTestPriority High |
|
469 //! @SYMTestExpectedResults 1. DSA object created and no panic. |
|
470 //! 2. WSERV 6 panic received at Test Action 6. |
|
471 //! @SYMTestType CIT |
|
472 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
473 CREATE_OBJECT RWsSession ws |
|
474 CREATE_OBJECT CWsScreenDevice scrdev |
|
475 CREATE_OBJECT RWindowGroup wingrp |
|
476 CREATE_OBJECT RWindow win |
|
477 CREATE_OBJECT CDirectScreenAccess dsa |
|
478 COMMAND ws new |
|
479 COMMAND ws Connect |
|
480 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011-0001-new_command003 |
|
481 COMMAND scrdev Construct |
|
482 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011-0001-new_command005 |
|
483 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011-0001-NewL_command006 |
|
484 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011-0001-StartL_command007 |
|
485 COMMAND dsa ~ |
|
486 COMMAND scrdev ~ |
|
487 COMMAND win Close |
|
488 COMMAND wingrp Close |
|
489 COMMAND ws Close |
|
490 END_TEST_BLOCK !PanicString=WSERV !PanicCode=6 |
|
491 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
492 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011 |
|
493 |
|
494 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012 |
|
495 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012 |
|
496 //! @SYMAPI CDirectScreenAccess::~CDirectScreenAccess() |
|
497 //! @SYMAuthor Yue Zhang |
|
498 //! @SYMCreationDate 3/1/2008 |
|
499 //! @SYMTestCaseDesc negative test, destructs CDirectScreenAccess without canceling it. |
|
500 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
501 //! 2. Creates and constructs a CWsScreenDevice within the RWsSession |
|
502 //! 3. Creates and constructs a RWindow. |
|
503 //! 4. Creates a CDirectScreenAccess |
|
504 //! 5. Starts direct screen access. |
|
505 //! 6. Destructs DSA without Cancels. |
|
506 //! 6. Destructs and closes all the others created objects. |
|
507 //! @SYMTestStatus Implemented |
|
508 //! @SYMTestPriority High |
|
509 //! @SYMTestExpectedResults DSA was descructed successfully (the DSA should be Cancelled at destruction). |
|
510 //! @SYMTestType CIT |
|
511 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
512 CREATE_OBJECT RWsSession ws |
|
513 CREATE_OBJECT CWsScreenDevice scrdev |
|
514 CREATE_OBJECT RWindowGroup wingrp |
|
515 CREATE_OBJECT RWindow win |
|
516 CREATE_OBJECT CDirectScreenAccess dsa |
|
517 COMMAND ws new |
|
518 COMMAND ws Connect |
|
519 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-new_command003 |
|
520 COMMAND scrdev Construct |
|
521 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-new_command005 |
|
522 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-Construct_command006 |
|
523 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-new_command007 |
|
524 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-Construct_command008 |
|
525 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-NewL_command009 |
|
526 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-StartL_command010 |
|
527 COMMAND dsa ~ |
|
528 COMMAND scrdev ~ |
|
529 COMMAND win Close |
|
530 COMMAND wingrp Close |
|
531 COMMAND ws Close |
|
532 END_TEST_BLOCK |
|
533 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012 |
|
534 |
|
535 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013 |
|
536 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013 |
|
537 //! @SYMAPI CDirectScreenAccess::StartL() |
|
538 //! @SYMAuthor Yue Zhang |
|
539 //! @SYMCreationDate 3/1/2008 |
|
540 //! @SYMTestCaseDesc negative test, starts DSA two times. |
|
541 //! Informs the window server to start DSA and start again. |
|
542 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
543 //! 2. Creates and constructs a CWsScreenDevice within the RWsSession |
|
544 //! 3. Creates and constructs a RWindow. |
|
545 //! 4. Creates a CDirectScreenAccess |
|
546 //! 5. Starts direct screen access. |
|
547 //! 6. Starts direct screen access again. |
|
548 //! 7. Destructs and closes all created objects. |
|
549 //! @SYMTestStatus Implemented |
|
550 //! @SYMTestPriority High |
|
551 //! @SYMTestExpectedResults WSERV 59 panic received at Test Action 6. |
|
552 //! @SYMTestType CIT |
|
553 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
554 CREATE_OBJECT RWsSession ws |
|
555 CREATE_OBJECT CWsScreenDevice scrdev |
|
556 CREATE_OBJECT RWindowGroup wingrp |
|
557 CREATE_OBJECT RWindow win |
|
558 CREATE_OBJECT CDirectScreenAccess dsa |
|
559 COMMAND ws new |
|
560 COMMAND ws Connect |
|
561 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-new_command003 |
|
562 COMMAND scrdev Construct |
|
563 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-new_command005 |
|
564 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-Construct_command006 |
|
565 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-new_command007 |
|
566 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-Construct_command008 |
|
567 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-NewL_command009 |
|
568 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-StartL_command010 |
|
569 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-StartL_command011 |
|
570 COMMAND dsa Cancel |
|
571 COMMAND dsa ~ |
|
572 COMMAND scrdev ~ |
|
573 COMMAND win Close |
|
574 COMMAND wingrp Close |
|
575 COMMAND ws Close |
|
576 END_TEST_BLOCK !PanicString=WSERV !PanicCode=59 |
|
577 RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg |
|
578 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013 |
|
579 |
|
580 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014 |
|
581 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014 |
|
582 //! @SYMAPI CDirectScreenAccess::ScreenDevice() |
|
583 //! @SYMAuthor Yue Zhang |
|
584 //! @SYMCreationDate 4/1/2008 |
|
585 //! @SYMTestCaseDesc negative test, gets the screen device without starting DSA. |
|
586 //! @SYMTestActions 1. Creates and connects a RWsSession. |
|
587 //! 2. Creates and constructs a CWsScreenDevice within the RWsSession |
|
588 //! 3. Creates and constructs a RWindow. |
|
589 //! 4. Creates a CDirectScreenAccess. |
|
590 //! 5. Gets ScreenDevice. |
|
591 //! 6. Destructs and closes all created objects. |
|
592 //! @SYMTestStatus Implemented |
|
593 //! @SYMTestPriority High |
|
594 //! @SYMTestExpectedResults Error -1 received at Test Action 5. |
|
595 //! @SYMTestType CIT |
|
596 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
597 CREATE_OBJECT RWsSession ws |
|
598 CREATE_OBJECT CWsScreenDevice scrdev |
|
599 CREATE_OBJECT RWindowGroup wingrp |
|
600 CREATE_OBJECT RWindow win |
|
601 CREATE_OBJECT CDirectScreenAccess dsa |
|
602 CREATE_OBJECT CFbsScreenDevice fbsScreenDevice |
|
603 COMMAND ws new |
|
604 COMMAND ws Connect |
|
605 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-new_command003 |
|
606 COMMAND scrdev Construct |
|
607 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-new_command005 |
|
608 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-Construct_command006 |
|
609 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-new_command007 |
|
610 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-Construct_command008 |
|
611 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-NewL_command009 |
|
612 COMMAND !Error=-1 dsa ScreenDevice GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-ScreenDevice_command010 |
|
613 COMMAND dsa ~ |
|
614 COMMAND scrdev ~ |
|
615 COMMAND win Close |
|
616 COMMAND wingrp Close |
|
617 COMMAND ws Close |
|
618 END_TEST_BLOCK |
|
619 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014 |
|
620 |
|
621 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015 |
|
622 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015 |
|
623 //! @SYMAPI CDirectScreenAccess::Gc() |
|
624 //! @SYMAuthor Yue Zhang |
|
625 //! @SYMCreationDate 4/1/2008 |
|
626 //! @SYMTestCaseDesc negative test, gets the graphic context without starting DSA. |
|
627 //! Creates the DirectscreenAccess object WITHOUT starts it, gets the Gc and verify it. |
|
628 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
629 //! 2. Creates and constructs a CWsScreenDevice within the RWsSession |
|
630 //! 3. Creates and constructs a RWindow. |
|
631 //! 4. Creates a CDirectScreenAccess. |
|
632 //! 5. Gets Gc |
|
633 //! 7. Destructs and closes all created object. |
|
634 //! @SYMTestStatus Implemented |
|
635 //! @SYMTestPriority High |
|
636 //! @SYMTestExpectedResults Error -1 received at Test Action 5. |
|
637 //! @SYMTestType CIT |
|
638 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
639 CREATE_OBJECT RWsSession ws |
|
640 CREATE_OBJECT CWsScreenDevice scrdev |
|
641 CREATE_OBJECT RWindowGroup wingrp |
|
642 CREATE_OBJECT RWindow win |
|
643 CREATE_OBJECT CDirectScreenAccess dsa |
|
644 CREATE_OBJECT CFbsBitGc bgc |
|
645 COMMAND ws new |
|
646 COMMAND ws Connect |
|
647 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-new_command003 |
|
648 COMMAND scrdev Construct |
|
649 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-new_command005 |
|
650 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-Construct_command006 |
|
651 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-new_command007 |
|
652 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-Construct_command008 |
|
653 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-NewL_command009 |
|
654 COMMAND !Error=-1 dsa Gc GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-Gc_command010 |
|
655 COMMAND dsa ~ |
|
656 COMMAND scrdev ~ |
|
657 COMMAND win Close |
|
658 COMMAND wingrp Close |
|
659 COMMAND ws Close |
|
660 END_TEST_BLOCK |
|
661 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015 |
|
662 |
|
663 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016 |
|
664 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016 |
|
665 //! @SYMAPI CDirectScreenAccess::ScreenDevice() |
|
666 //! @SYMAuthor Yue Zhang |
|
667 //! @SYMCreationDate 2/1/2008 |
|
668 //! @SYMTestCaseDesc gets the screen device and uses the returned CFbsScreenDevice to get the size of the device area. |
|
669 //! @SYMTestActions 1. Creates and connects a RWsSession. |
|
670 //! 2. Creates and constructs a CWsScreenDevice within the RWsSession. |
|
671 //! 3. Creates and constructs a RWindow. |
|
672 //! 4. Creates a CDirectScreenAccess and Starts it. |
|
673 //! 5. Gets the screen device. |
|
674 //! 6. Checks the Size of Screen Device. |
|
675 //! 7. Destructs and closes all created object. |
|
676 //! @SYMTestStatus Implemented |
|
677 //! @SYMTestPriority High |
|
678 //! @SYMTestExpectedResults 1. The returned screen device is not NULL. |
|
679 //! 2. The screen size is returned. |
|
680 //! @SYMTestType CIT |
|
681 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
682 CREATE_OBJECT RWsSession ws |
|
683 CREATE_OBJECT CWsScreenDevice scrdev |
|
684 CREATE_OBJECT RWindowGroup wingrp |
|
685 CREATE_OBJECT RWindow win |
|
686 CREATE_OBJECT CDirectScreenAccess dsa |
|
687 CREATE_OBJECT CFbsScreenDevice fbsScreenDevice |
|
688 COMMAND ws new |
|
689 COMMAND ws Connect |
|
690 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-new_command003 |
|
691 COMMAND scrdev Construct |
|
692 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-new_command005 |
|
693 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-Construct_command006 |
|
694 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-new_command007 |
|
695 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-Construct_command008 |
|
696 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-NewL_command009 |
|
697 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-StartL_command010 |
|
698 COMMAND dsa ScreenDevice GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-ScreenDevice_command011 |
|
699 COMMAND fbsScreenDevice SizeInTwips |
|
700 COMMAND dsa Cancel |
|
701 OUTSTANDING |
|
702 COMMAND fbsScreenDevice disown |
|
703 COMMAND dsa ~ |
|
704 COMMAND scrdev ~ |
|
705 COMMAND win Close |
|
706 COMMAND wingrp Close |
|
707 COMMAND ws Close |
|
708 END_TEST_BLOCK |
|
709 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016 |
|
710 |
|
711 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017 |
|
712 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017 |
|
713 //! @SYMAPI CDirectScreenAccess::Gc() |
|
714 //! @SYMAuthor Yue Zhang |
|
715 //! @SYMCreationDate 4/1/2008 |
|
716 //! @SYMTestCaseDesc gets the graphic context and draw two lines:(25,26)-(50,60),(-10000,-10000)-(500000,600000). |
|
717 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
718 //! 2. Creates and constructs a CWsScreenDevice within the RWsSession |
|
719 //! 3. Creates and constructs a RWindow. |
|
720 //! 4. Creates a CDirectScreenAccess and Starts it. |
|
721 //! 5. Gets and actives the Gc from DSA. |
|
722 //! 6. draws line (25,26)-(50,60). |
|
723 //! 7. draws line (-10000,-10000)-(500000,600000). |
|
724 //! 8. Destructs and closes all created object. |
|
725 //! @SYMTestStatus Implemented |
|
726 //! @SYMTestPriority High |
|
727 //! @SYMTestExpectedResults 1. The returned Gc is not NULL. |
|
728 //! 2. The line should be drawn no panic. |
|
729 //! @SYMTestType CIT |
|
730 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
731 CREATE_OBJECT RWsSession ws |
|
732 CREATE_OBJECT CWsScreenDevice scrdev |
|
733 CREATE_OBJECT RWindowGroup wingrp |
|
734 CREATE_OBJECT RWindow win |
|
735 CREATE_OBJECT CDirectScreenAccess dsa |
|
736 CREATE_OBJECT CFbsBitGc bgc |
|
737 CREATE_OBJECT CFbsScreenDevice fbsScreenDevice |
|
738 COMMAND ws new |
|
739 COMMAND ws Connect |
|
740 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-new_command003 |
|
741 COMMAND scrdev Construct |
|
742 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-new_command005 |
|
743 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-Construct_command006 |
|
744 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-new_command007 |
|
745 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-Construct_command008 |
|
746 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-NewL_command009 |
|
747 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-StartL_command010 |
|
748 COMMAND dsa ScreenDevice GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-ScreenDevice_command011 |
|
749 COMMAND dsa Gc GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-Gc_command012 |
|
750 COMMAND bgc Activate GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-Activate_command013 |
|
751 COMMAND bgc DrawLine GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-DrawLine_command014 |
|
752 COMMAND bgc DrawLine GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-DrawLine_command015 |
|
753 COMMAND fbsScreenDevice Update |
|
754 COMMAND dsa Cancel |
|
755 COMMAND bgc disown |
|
756 COMMAND fbsScreenDevice disown |
|
757 OUTSTANDING |
|
758 COMMAND dsa ~ |
|
759 COMMAND scrdev ~ |
|
760 COMMAND win Close |
|
761 COMMAND wingrp Close |
|
762 COMMAND ws Close |
|
763 END_TEST_BLOCK |
|
764 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017 |
|
765 |
|
766 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018 |
|
767 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018 |
|
768 //! @SYMAPI CDirectScreenAccess::StartL() |
|
769 //! @SYMAuthor Yue Zhang |
|
770 //! @SYMCreationDate 8/1/2008 |
|
771 //! @SYMTestCaseDesc sets a region ,starts the DSA, cancels it, changes the region and starts again. |
|
772 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
773 //! 2. Creates and constructs a CWsScreenDevice within the RWsSession |
|
774 //! 3. Creates and constructs a RWindow. |
|
775 //ŁĄ 4. Actives the RWindow. |
|
776 //! 5. Changes the sharp of the region of RWindow. |
|
777 //! 6. Creates a CDirectScreenAccess and Starts it. |
|
778 //! 7. Checks the DrawRegion. |
|
779 //! 8. Cancels the DSA. |
|
780 //! 9. Changes the sharp of the region of RWindow to another size. |
|
781 //! 10. Starts the DSA again. |
|
782 //! 11. Checks the DrawRegion again. |
|
783 //! 12. Destructs and closes all created object. |
|
784 //! @SYMTestStatus Implemented |
|
785 //! @SYMTestPriority High |
|
786 //! @SYMTestExpectedResults 1. DSA was started successfully at first time. |
|
787 //! 2. DSA was started successfully at second time. |
|
788 //! @SYMTestType CIT |
|
789 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
790 CREATE_OBJECT RWsSession ws |
|
791 CREATE_OBJECT CWsScreenDevice scrdev |
|
792 CREATE_OBJECT RWindowGroup wingrp |
|
793 CREATE_OBJECT RWindow win |
|
794 CREATE_OBJECT CDirectScreenAccess dsa |
|
795 COMMAND ws new |
|
796 COMMAND ws Connect |
|
797 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-new_command003 |
|
798 COMMAND scrdev Construct |
|
799 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-new_command005 |
|
800 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-Construct_command006 |
|
801 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-new_command007 |
|
802 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-Construct_command008 |
|
803 COMMAND win Activate |
|
804 COMMAND win SetShape GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-SetShape_command010 |
|
805 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-NewL_command011 |
|
806 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-StartL_command012 |
|
807 COMMAND dsa DrawingRegion GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-DrawingRegion_command013 |
|
808 COMMAND dsa Cancel |
|
809 OUTSTANDING |
|
810 COMMAND win SetShape GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-SetShape_command016 |
|
811 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-StartL_command017 |
|
812 COMMAND dsa DrawingRegion GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-DrawingRegion_command018 |
|
813 COMMAND dsa Cancel |
|
814 OUTSTANDING |
|
815 COMMAND dsa ~ |
|
816 COMMAND scrdev ~ |
|
817 COMMAND win Close |
|
818 COMMAND wingrp Close |
|
819 COMMAND ws Close |
|
820 END_TEST_BLOCK |
|
821 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018 |
|
822 |
|
823 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019 |
|
824 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019 |
|
825 //! @SYMAPI CDirectScreenAccess::StartL() |
|
826 //! @SYMAuthor Yue Zhang |
|
827 //! @SYMCreationDate 15/1/2008 |
|
828 //! @SYMTestCaseDesc Starts DSA , Brings an app to foreground , starts DSA again. |
|
829 //! @SYMTestActions 1. Creates and connects a RWsSession |
|
830 //! 2. Creates and constructs a CWsScreenDevice within the RWsSession |
|
831 //! 3. Creates CDirectScreenAccess and start. |
|
832 //! 4. Brings up an app to check DSA's AbortNow() and Restart() be called. |
|
833 //! 5. Starts DSA again. |
|
834 //! 5. Destruct and close all created object. |
|
835 //! @SYMTestStatus Implemented |
|
836 //! @SYMTestPriority High |
|
837 //! @SYMTestExpectedResults 1. AbortNow() and Restart() be called sucessfully after the app had been brought to foreground. |
|
838 //! 2. Terminate reason is ETerminateRegion. |
|
839 //! 3. DSA was started successfully at second time. |
|
840 //! @SYMTestType CIT |
|
841 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
842 CREATE_OBJECT RWsSession ws |
|
843 CREATE_OBJECT CWsScreenDevice scrdev |
|
844 CREATE_OBJECT RWindowGroup wingrp |
|
845 CREATE_OBJECT RWindow win |
|
846 CREATE_OBJECT CDirectScreenAccess dsa |
|
847 COMMAND ws new |
|
848 COMMAND ws Connect |
|
849 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-new_command003 |
|
850 COMMAND scrdev Construct |
|
851 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-new_command005 |
|
852 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-Construct_command006 |
|
853 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-new_command007 |
|
854 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-Construct_command008 |
|
855 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-NewL_command009 |
|
856 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-StartL_command010 |
|
857 COMMAND dsa Util_BringAppFg GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-BringAppFg_command011 |
|
858 OUTSTANDING |
|
859 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-StartL_command013 |
|
860 COMMAND dsa Cancel |
|
861 OUTSTANDING |
|
862 COMMAND dsa ~ |
|
863 COMMAND scrdev ~ |
|
864 COMMAND win Close |
|
865 COMMAND wingrp Close |
|
866 COMMAND ws Close |
|
867 END_TEST_BLOCK |
|
868 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019 |
|
869 |
|
870 START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020 |
|
871 //! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020 |
|
872 //! @SYMAPI CDirectScreenAccess::StartL() |
|
873 //! @SYMAuthor Jeffery Zhao |
|
874 //! @SYMCreationDate 16-05-2008 |
|
875 //! @SYMTestCaseDesc Informs the window server to start DSA and set window displaymode to EColor4K. |
|
876 //! @SYMTestActions 1. Create and connect a RWsSession |
|
877 //! 2. Create and construct a CWsScreenDevice within the RWsSession |
|
878 //! 3. Create and construct a RWindow. |
|
879 //! 4. Create a CDirectScreenAccess. |
|
880 //! 5. Set the window displaymode to EColor4K. |
|
881 //! 6. Get the window displaymode to verify. |
|
882 //! 7. Start direct screen access. |
|
883 //! 8. Destruct and close all created objects. |
|
884 //! @SYMTestStatus Implemented |
|
885 //! @SYMTestPriority High |
|
886 //! @SYMTestExpectedResults DSA was started successfully. |
|
887 //! @SYMTestType CIT |
|
888 START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini |
|
889 CREATE_OBJECT RWsSession ws |
|
890 CREATE_OBJECT CWsScreenDevice scrdev |
|
891 CREATE_OBJECT RWindowGroup wingrp |
|
892 CREATE_OBJECT RWindow win |
|
893 CREATE_OBJECT CDirectScreenAccess dsa |
|
894 COMMAND ws new |
|
895 COMMAND ws Connect |
|
896 COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
897 COMMAND scrdev Construct |
|
898 COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
899 COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 |
|
900 COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 |
|
901 COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 |
|
902 COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 |
|
903 COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020-0001-SetRequiredDisplayMode_command010 |
|
904 COMMAND win DisplayMode GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020-0001-DisplayMode_command011 |
|
905 COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020-0001-StartL_command012 |
|
906 COMMAND dsa Cancel |
|
907 OUTSTANDING |
|
908 COMMAND dsa ~ |
|
909 COMMAND scrdev ~ |
|
910 COMMAND win Close |
|
911 COMMAND wingrp Close |
|
912 COMMAND ws Close |
|
913 END_TEST_BLOCK |
|
914 END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020 |