|
1 // |
|
2 // Copyright (c) 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 ///////////////////////////////////////////////////////////////////// |
|
17 // graphics-wserv-integ-xga.script |
|
18 // |
|
19 // This test is a direct copy of graphics-wserv-integ-surface-0001-001 |
|
20 // using the emulator configured in xga mode |
|
21 // |
|
22 ///////////////////////////////////////////////////////////////////// |
|
23 |
|
24 //! @file |
|
25 //! @SYMTestSuiteName graphics-wserv-integ-surface |
|
26 //! @SYMScriptTestEnvironment This test is only only run on emulator |
|
27 LOAD_SUITE t_wservintegserver |
|
28 |
|
29 START_TESTCASE GRAPHICS-WSERV-INTEG-XGA-0001-0001 |
|
30 //! @SYMTestCaseID GRAPHICS-WSERV-INTEG-XGA-0001-0001 |
|
31 //! @SYMPREQ 1007 1019 |
|
32 //! @SYMREQ 8222 8223 8227 |
|
33 //! @SYMAPI RWindow |
|
34 //! @SYMAuthor John Mercer |
|
35 //! @SYMCreationDate 24/08/2007 |
|
36 //! @SYMTestCaseDependencies graphics-wserv-integ-surface.script |
|
37 //! @SYMTestCaseDesc Moving Image with opaque UI Components |
|
38 //! @SYMTestActions Environment settings: |
|
39 //! Emulator configured in xga mode |
|
40 //! Window Size: Full screen |
|
41 //! Image Size: Full screen |
|
42 //! Simulated Load: 0% |
|
43 //! Colour Depth: 16MAP |
|
44 //! Pixel Format: YUV |
|
45 //! Screen Number: 0 |
|
46 //! Rotation: 0 |
|
47 //! Screen Location: (0,0) |
|
48 //! Execution Time: 30s |
|
49 //! Frame Rate: 30fps |
|
50 //! Buffer Format: Multiple [exact details unknown at this point] |
|
51 //! Start SimLoadApp |
|
52 //! Start pseudo video playback application: |
|
53 //! Create RWindow (simulate DevVideo/Ecam usage) |
|
54 //! Create RsurfaceHandle with ‘first frame of video’ |
|
55 //! Use Surface data APIs to generate content. Since this is licensee replaceable, the test code implementation must allow for this to be replaceable, e.g. library dll. [exact details of data APIs unknown at this point] |
|
56 //! Content is to be simple but quickly indicative of failure to the human eye, e.g. a clock sweep with large numerals indicating the frame number.. |
|
57 //! Utilise multiple buffers to simulate real video usage, e.g. 4 buffers for MPEG4 decoding. |
|
58 //! Call RWindow::SetBackgroundImage() |
|
59 //! Create simulated UI Components |
|
60 //! Draw components using CwindowGC::BitBlt() with preloaded images of UI components (button, menu bar). |
|
61 //! Activate Window. |
|
62 //! Update Image with next frame |
|
63 //! Utilise RsurfaceHandle notification to indicate when surface has been consumed by GCE. Use Surface data APIs to update contents. Invalidate window to cause redraw. |
|
64 //! Continuously perform Image updates to simulate video playback. |
|
65 //! |
|
66 //! Measure the frame rate at which the display is updated. |
|
67 //! @SYMTestStatus Implemented |
|
68 //! @SYMTestPriority 1 |
|
69 //! @SYMTestExpectedResults Frame Rate: 30fps |
|
70 //! Display is composed of moving image in background, with opaque UI components in foreground. The moving image is that of a clock sweep with large numerals indicating the frame number. |
|
71 //! @SYMTestType IT |
|
72 |
|
73 RUN_TEST_STEP 500 t_wservintegserver WServIntegSurface c:\graphics\graphics-wserv-integ-xga.ini graphics-wserv-integ-xga-0001-001 |
|
74 END_TESTCASE GRAPHICS-WSERV-INTEG-XGA-0001-0001 |