sl@0: // sl@0: // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: ///////////////////////////////////////////////////////////////////// sl@0: // graphics-wserv-integ-xga.script sl@0: // sl@0: // This test is a direct copy of graphics-wserv-integ-surface-0001-001 sl@0: // using the emulator configured in xga mode sl@0: // sl@0: ///////////////////////////////////////////////////////////////////// sl@0: sl@0: //! @file sl@0: //! @SYMTestSuiteName graphics-wserv-integ-surface sl@0: //! @SYMScriptTestEnvironment This test is only only run on emulator sl@0: LOAD_SUITE t_wservintegserver sl@0: sl@0: START_TESTCASE GRAPHICS-WSERV-INTEG-XGA-0001-0001 sl@0: //! @SYMTestCaseID GRAPHICS-WSERV-INTEG-XGA-0001-0001 sl@0: //! @SYMPREQ 1007 1019 sl@0: //! @SYMREQ 8222 8223 8227 sl@0: //! @SYMAPI RWindow sl@0: //! @SYMAuthor John Mercer sl@0: //! @SYMCreationDate 24/08/2007 sl@0: //! @SYMTestCaseDependencies graphics-wserv-integ-surface.script sl@0: //! @SYMTestCaseDesc Moving Image with opaque UI Components sl@0: //! @SYMTestActions Environment settings: sl@0: //! Emulator configured in xga mode sl@0: //! Window Size: Full screen sl@0: //! Image Size: Full screen sl@0: //! Simulated Load: 0% sl@0: //! Colour Depth: 16MAP sl@0: //! Pixel Format: YUV sl@0: //! Screen Number: 0 sl@0: //! Rotation: 0 sl@0: //! Screen Location: (0,0) sl@0: //! Execution Time: 30s sl@0: //! Frame Rate: 30fps sl@0: //! Buffer Format: Multiple [exact details unknown at this point] sl@0: //! Start SimLoadApp sl@0: //! Start pseudo video playback application: sl@0: //! Create RWindow (simulate DevVideo/Ecam usage) sl@0: //! Create RsurfaceHandle with ‘first frame of video’ sl@0: //! 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] sl@0: //! 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.. sl@0: //! Utilise multiple buffers to simulate real video usage, e.g. 4 buffers for MPEG4 decoding. sl@0: //! Call RWindow::SetBackgroundImage() sl@0: //! Create simulated UI Components sl@0: //! Draw components using CwindowGC::BitBlt() with preloaded images of UI components (button, menu bar). sl@0: //! Activate Window. sl@0: //! Update Image with next frame sl@0: //! Utilise RsurfaceHandle notification to indicate when surface has been consumed by GCE. Use Surface data APIs to update contents. Invalidate window to cause redraw. sl@0: //! Continuously perform Image updates to simulate video playback. sl@0: //! sl@0: //! Measure the frame rate at which the display is updated. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority 1 sl@0: //! @SYMTestExpectedResults Frame Rate: 30fps sl@0: //! 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. sl@0: //! @SYMTestType IT sl@0: sl@0: RUN_TEST_STEP 500 t_wservintegserver WServIntegSurface c:\graphics\graphics-wserv-integ-xga.ini graphics-wserv-integ-xga-0001-001 sl@0: END_TESTCASE GRAPHICS-WSERV-INTEG-XGA-0001-0001