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-surface-screenrotation.script sl@0: // sl@0: // Tests elements of the classes associated with RWindow and the Surface Update Server sl@0: // as a means of confidence that the APIs work as expected. sl@0: // sl@0: // The purpose is to provide a regression test suite of Public sl@0: // APIs for RWindow. Negative testing is performed to confirm that correct sl@0: // errors are returned when incorrect parameters are given. sl@0: // sl@0: // The tests are fully automated. sl@0: ///////////////////////////////////////////////////////////////////// sl@0: sl@0: //! @file sl@0: //! @SYMTestSuiteName graphics-wserv-integ-surface sl@0: //! @SYMScriptTestEnvironment This test script requires a basic ROM. sl@0: LOAD_SUITE t_wservintegserver sl@0: sl@0: START_TESTCASE GRAPHICS-WSERV-INTEG-SURFACE-0009-0001 sl@0: //! @SYMTestCaseID GRAPHICS-WSERV-INTEG-SURFACE-0009-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, whilst changing screen device orientation sl@0: //! @SYMTestActions With graphics-0001 as a base. sl@0: //! From a separate thread/process raise a screen orientation change event. sl@0: //! Use CWsScreenDevice::SetCurrentRotations() to change the screen rotation sl@0: //! Utilise CWsScreenDevice::GetRotationsList() to obtain the supported rotations. (NOTE: requires entry in wsini.ini) sl@0: //! Measure frame rate. 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: //! NOTE: Screen rotates through the available orientations. Application receives screen rotation event to redraw to a different perspective. sl@0: //! @SYMTestType CIT sl@0: sl@0: RUN_TEST_STEP !Heap=0x200000 100 t_wservintegserver WServIntegSurface c:\graphics\graphics-wserv-integ-surface.ini graphics-wserv-integ-surface-0009-001 sl@0: END_TESTCASE GRAPHICS-WSERV-INTEG-SURFACE-0009-0001 sl@0: sl@0: START_TESTCASE GRAPHICS-WSERV-INTEG-SURFACE-0024-0001 sl@0: //! @SYMTestCaseID GRAPHICS-WSERV-INTEG-SURFACE-0024-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 semi-transparent UI Components, whilst changing screen device orientation sl@0: //! @SYMTestActions With graphics-0001 as a base. sl@0: //! From a separate thread/process raise a screen orientation change event. sl@0: //! Use CWsScreenDevice::SetCurrentRotations() to change the screen rotation sl@0: //! Utilise CWsScreenDevice::GetRotationsList() to obtain the supported rotations. (NOTE: requires entry in wsini.ini) sl@0: //! Measure frame rate. 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 semi-transparent UI components in foreground. The moving image is that of a clock sweep with large numerals indicating the frame number. sl@0: //! NOTE: Screen rotates through the available orientations. Application receives screen rotation event to redraw to a different perspective. sl@0: //! @SYMTestType CIT sl@0: sl@0: RUN_TEST_STEP !Heap=0x200000 100 t_wservintegserver WServIntegSurface c:\graphics\graphics-wserv-integ-surface.ini graphics-wserv-integ-surface-0024-001 sl@0: END_TESTCASE GRAPHICS-WSERV-INTEG-SURFACE-0024-0001 sl@0: sl@0: START_TESTCASE GRAPHICS-WSERV-INTEG-SURFACE-0039-0001 sl@0: //! @SYMTestCaseID GRAPHICS-WSERV-INTEG-SURFACE-0039-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 Multiple Moving Images with opaque UI Components, whilst changing screen device orientation sl@0: //! @SYMTestActions With graphics-0001 as a base. sl@0: //! From a separate thread/process raise a screen orientation change event. sl@0: //! Use CWsScreenDevice::SetCurrentRotations() to change the screen rotation sl@0: //! Utilise CWsScreenDevice::GetRotationsList() to obtain the supported rotations. (NOTE: requires entry in wsini.ini) sl@0: //! Measure frame rate. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority 1 sl@0: //! @SYMTestExpectedResults Frame Rate: 30fps sl@0: //! Display is composed of 2 moving images in background, with opaque UI components in foreground. The moving images are that of a clock sweep with large numerals indicating the frame number (red on blue background for video, and yellow on green background for viewfinder). sl@0: //! NOTE: Screen rotates through the available orientations. Application receives screen rotation event to redraw to a different perspective. sl@0: //! @SYMTestType CIT sl@0: sl@0: RUN_TEST_STEP !Heap=0x200000 500 t_wservintegserver WServIntegSurface c:\graphics\graphics-wserv-integ-surface.ini graphics-wserv-integ-surface-0039-001 sl@0: END_TESTCASE GRAPHICS-WSERV-INTEG-SURFACE-0039-0001 sl@0: sl@0: START_TESTCASE GRAPHICS-WSERV-INTEG-SURFACE-0054-0001 sl@0: //! @SYMTestCaseID GRAPHICS-WSERV-INTEG-SURFACE-0054-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 Multiple Moving Images with semi-transparent UI Components, whilst changing screen device orientation sl@0: //! @SYMTestActions With graphics-0061 as a base. sl@0: //! From a separate thread/process raise a screen orientation change event. sl@0: //! Use CWsScreenDevice::SetCurrentRotations() to change the screen rotation sl@0: //! Utilise CWsScreenDevice::GetRotationsList() to obtain the supported rotations. (NOTE: requires entry in wsini.ini) sl@0: //! Measure frame rate. 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 semi-transparent UI components in foreground. The moving image is that of a clock sweep with large numerals indicating the frame number. sl@0: //! NOTE: Screen rotates through the available orientations. Application receives screen rotation event to redraw to a different perspective. sl@0: //! @SYMTestType CIT sl@0: sl@0: RUN_TEST_STEP !Heap=0x200000 100 t_wservintegserver WServIntegSurface c:\graphics\graphics-wserv-integ-surface.ini graphics-wserv-integ-surface-0054-001 sl@0: END_TESTCASE GRAPHICS-WSERV-INTEG-SURFACE-0054-0001