diff -r 000000000000 -r 5d03bc08d59c windowing/windowserver/test/t_genericplugin/scripts/graphics-wserv-genericplugin-load-nga.script --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/windowing/windowserver/test/t_genericplugin/scripts/graphics-wserv-genericplugin-load-nga.script Tue Feb 02 01:47:50 2010 +0200 @@ -0,0 +1,96 @@ +// +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// +///////////////////////////////////////////////////////////////////// +// graphics-wserv-genericplugin-load.script +// +// Tests the generic plug-in framework +// +// The test is fully automated. +///////////////////////////////////////////////////////////////////// + +LOAD_SUITE t_wservgenericpluginserver_nga +DELAY 5000 + +START_TESTCASE GRAPHICS-WSERV-1841-0001 +//!@SYMTestCaseID GRAPHICS-WSERV-1841-0001 +//!@SYMPREQ 1841 +//!@SYMTestCaseDesc Control of CWsPlugin loading from WSINI.INI +//!@SYMTestActions tests MWsIniFile specified by an ID and alternative +//! render stage specified by TYPE in wsini.ini file are loaded +//!@SYMTestStatus Implemented +//!@SYMTestPriority 2 +//!@SYMTestExpectedResults Alternative plugins are loaded as specified. +//! Window created in screen 0 is faded with custom fader and +//! two lines are drawn on the left top window by custom render stage. +//!@SYMTestType CT +RUN_TEST_STEP 100 t_wservgenericpluginserver_nga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nga.ini graphics-wserv-genericplugin-0001 +END_TESTCASE GRAPHICS-WSERV-1841-0001 + +START_TESTCASE GRAPHICS-WSERV-1841-0002 +//!@SYMTestCaseID GRAPHICS-WSERV-1841-0002 +//!@SYMPREQ 1841 +//!@SYMTestCaseDesc Test that plugins can be specified on a per-screen basis through WSINI.INI file +//!@SYMTestActions Create modified WSINI.INI file which specifies different render stage +//! plugins to be used on screens 0 and 1. +//!@SYMTestStatus Implemented +//!@SYMTestPriority 2 +//!@SYMTestExpectedResults Both sets of plugins are loaded, and the correct plugin is used on each screen. +//! Windows created in different screen are faded with different color. +//! Windows in screen 0 have two lines drawn on left top window by custom render stage +//! while windows in screen 1 use standard render stage. +//!@SYMTestType CT +RUN_TEST_STEP 100 t_wservgenericpluginserver_nga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nga.ini graphics-wserv-genericplugin-0002 +END_TESTCASE GRAPHICS-WSERV-1841-0002 + +START_TESTCASE GRAPHICS-WSERV-1841-0004 +//!@SYMTestCaseID GRAPHICS-WSERV-1841-0004 +//!@SYMPREQ 1841 +//!@SYMTestCaseDesc Integer and string attributes in WSINI.INI file can be read from CWsPlugin. +//!@SYMTestActions Create modified WSINI.INI file which specifies a test fader to be loaded to screen 0. +//! Specifies integer and string variables for default, custom, and screen sections +//!@SYMTestStatus Implemented +//!@SYMTestPriority 2 +//!@SYMTestExpectedResults Alternative plug-in is loaded as specified and attributes can be accessed from plug-in. +//!@SYMTestType CT +RUN_TEST_STEP 100 t_wservgenericpluginserver_nga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nga.ini graphics-wserv-genericplugin-0004 +END_TESTCASE GRAPHICS-WSERV-1841-0004 + +START_TESTCASE GRAPHICS-WSERV-1841-0005 +//!@SYMTestCaseID GRAPHICS-WSERV-1841-0005 +//!@SYMPREQ 1841 +//!@SYMTestCaseDesc CWsPlugin can gain information about closing windows using MWsWindow interface. +//!@SYMTestActions Create modified WSINI.INI file which specifies a test renderer to be loaded. +//! Register CWsPLugin as eventhandler receiving EWindowClosing events. +//!@SYMTestStatus Implemented +//!@SYMTestPriority 2 +//!@SYMTestExpectedResults Plugin can access information about closing windows through MWsWindow interface. +//! Windows with different size and position are created and closed in screen 0. +//!@SYMTestType CT +RUN_TEST_STEP 100 t_wservgenericpluginserver_nga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nga.ini graphics-wserv-genericplugin-0005 +END_TESTCASE GRAPHICS-WSERV-1841-0005 + +START_TESTCASE GRAPHICS-WSERV-1841-0006 +//!@SYMTestCaseID GRAPHICS-WSERV-1841-0006 +//!@SYMPREQ 1841 +//!@SYMTestCaseDesc CWsPlugin can obtain instance of another CWPlugin. +//!@SYMTestActions Create modified WSINI.INI file which specifies a test renderer, test mwsinifile, and service plug-in to be loaded. +//! Service plugin offers elementary service to other plug-ins. +//!@SYMTestStatus Implemented +//!@SYMTestPriority 2 +//!@SYMTestExpectedResults Test fader can access information set in service plugin by test renderer. +//!@SYMTestType CT +RUN_TEST_STEP 100 t_wservgenericpluginserver_nga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nga.ini graphics-wserv-genericplugin-0006 +END_TESTCASE GRAPHICS-WSERV-1841-0006