windowing/windowserver/test/t_genericplugin/scripts/graphics-wserv-genericplugin-load-nga.script
author Faisal Memon <faisal.memon@nokia.com>
Fri, 14 May 2010 15:41:33 +0100
branchNewGraphicsArchitecture
changeset 64 5c983aa672ea
parent 0 5d03bc08d59c
permissions -rw-r--r--
Merge 1. Pull in cpp files in the performance enhanced Khronos RI OVG files which are newly added. I've ignored platform-specific cpp files for linux, macosx, and null operating systems because this local solution has its own platform glue (i.e. facility to target Bitmaps but no full windowing support). I've ignored sfEGLInterface.cpp because this is used as a bridge to go from EGL to Nokia's Platsim which offers an EGL service. That's not relevant to this implementation because this is ARM side code, not Intel side. I just left a comment to sfEGLInterface.cpp in case we need to pick up this later on. The current code compiles on winscw. Prior to this fix, the code works on winscw, and can launch the SVG tiger (tiger.exe). That takes about 20 seconds to render. I hope to always be able to show this icon on each commit, and the plan is for the render time to reduce with this series of submissions. On this commit, the tiger renders ok in 20 seconds.

//
// 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