|
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-genericplugin-load.script |
|
18 // |
|
19 // Tests the generic plug-in framework |
|
20 // |
|
21 // The test is fully automated. |
|
22 ///////////////////////////////////////////////////////////////////// |
|
23 |
|
24 LOAD_SUITE t_wservgenericpluginserver_nga |
|
25 DELAY 5000 |
|
26 |
|
27 START_TESTCASE GRAPHICS-WSERV-1841-0001 |
|
28 //!@SYMTestCaseID GRAPHICS-WSERV-1841-0001 |
|
29 //!@SYMPREQ 1841 |
|
30 //!@SYMTestCaseDesc Control of CWsPlugin loading from WSINI.INI |
|
31 //!@SYMTestActions tests MWsIniFile specified by an ID and alternative |
|
32 //! render stage specified by TYPE in wsini.ini file are loaded |
|
33 //!@SYMTestStatus Implemented |
|
34 //!@SYMTestPriority 2 |
|
35 //!@SYMTestExpectedResults Alternative plugins are loaded as specified. |
|
36 //! Window created in screen 0 is faded with custom fader and |
|
37 //! two lines are drawn on the left top window by custom render stage. |
|
38 //!@SYMTestType CT |
|
39 RUN_TEST_STEP 100 t_wservgenericpluginserver_nga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nga.ini graphics-wserv-genericplugin-0001 |
|
40 END_TESTCASE GRAPHICS-WSERV-1841-0001 |
|
41 |
|
42 START_TESTCASE GRAPHICS-WSERV-1841-0002 |
|
43 //!@SYMTestCaseID GRAPHICS-WSERV-1841-0002 |
|
44 //!@SYMPREQ 1841 |
|
45 //!@SYMTestCaseDesc Test that plugins can be specified on a per-screen basis through WSINI.INI file |
|
46 //!@SYMTestActions Create modified WSINI.INI file which specifies different render stage |
|
47 //! plugins to be used on screens 0 and 1. |
|
48 //!@SYMTestStatus Implemented |
|
49 //!@SYMTestPriority 2 |
|
50 //!@SYMTestExpectedResults Both sets of plugins are loaded, and the correct plugin is used on each screen. |
|
51 //! Windows created in different screen are faded with different color. |
|
52 //! Windows in screen 0 have two lines drawn on left top window by custom render stage |
|
53 //! while windows in screen 1 use standard render stage. |
|
54 //!@SYMTestType CT |
|
55 RUN_TEST_STEP 100 t_wservgenericpluginserver_nga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nga.ini graphics-wserv-genericplugin-0002 |
|
56 END_TESTCASE GRAPHICS-WSERV-1841-0002 |
|
57 |
|
58 START_TESTCASE GRAPHICS-WSERV-1841-0004 |
|
59 //!@SYMTestCaseID GRAPHICS-WSERV-1841-0004 |
|
60 //!@SYMPREQ 1841 |
|
61 //!@SYMTestCaseDesc Integer and string attributes in WSINI.INI file can be read from CWsPlugin. |
|
62 //!@SYMTestActions Create modified WSINI.INI file which specifies a test fader to be loaded to screen 0. |
|
63 //! Specifies integer and string variables for default, custom, and screen sections |
|
64 //!@SYMTestStatus Implemented |
|
65 //!@SYMTestPriority 2 |
|
66 //!@SYMTestExpectedResults Alternative plug-in is loaded as specified and attributes can be accessed from plug-in. |
|
67 //!@SYMTestType CT |
|
68 RUN_TEST_STEP 100 t_wservgenericpluginserver_nga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nga.ini graphics-wserv-genericplugin-0004 |
|
69 END_TESTCASE GRAPHICS-WSERV-1841-0004 |
|
70 |
|
71 START_TESTCASE GRAPHICS-WSERV-1841-0005 |
|
72 //!@SYMTestCaseID GRAPHICS-WSERV-1841-0005 |
|
73 //!@SYMPREQ 1841 |
|
74 //!@SYMTestCaseDesc CWsPlugin can gain information about closing windows using MWsWindow interface. |
|
75 //!@SYMTestActions Create modified WSINI.INI file which specifies a test renderer to be loaded. |
|
76 //! Register CWsPLugin as eventhandler receiving EWindowClosing events. |
|
77 //!@SYMTestStatus Implemented |
|
78 //!@SYMTestPriority 2 |
|
79 //!@SYMTestExpectedResults Plugin can access information about closing windows through MWsWindow interface. |
|
80 //! Windows with different size and position are created and closed in screen 0. |
|
81 //!@SYMTestType CT |
|
82 RUN_TEST_STEP 100 t_wservgenericpluginserver_nga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nga.ini graphics-wserv-genericplugin-0005 |
|
83 END_TESTCASE GRAPHICS-WSERV-1841-0005 |
|
84 |
|
85 START_TESTCASE GRAPHICS-WSERV-1841-0006 |
|
86 //!@SYMTestCaseID GRAPHICS-WSERV-1841-0006 |
|
87 //!@SYMPREQ 1841 |
|
88 //!@SYMTestCaseDesc CWsPlugin can obtain instance of another CWPlugin. |
|
89 //!@SYMTestActions Create modified WSINI.INI file which specifies a test renderer, test mwsinifile, and service plug-in to be loaded. |
|
90 //! Service plugin offers elementary service to other plug-ins. |
|
91 //!@SYMTestStatus Implemented |
|
92 //!@SYMTestPriority 2 |
|
93 //!@SYMTestExpectedResults Test fader can access information set in service plugin by test renderer. |
|
94 //!@SYMTestType CT |
|
95 RUN_TEST_STEP 100 t_wservgenericpluginserver_nga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nga.ini graphics-wserv-genericplugin-0006 |
|
96 END_TESTCASE GRAPHICS-WSERV-1841-0006 |