diff -r 61bc0f252b2b -r bac7acad7cb3 camera_plat/active_palette_2_api/tsrc/conf/ui_ActivePalette2ApiTest.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/camera_plat/active_palette_2_api/tsrc/conf/ui_ActivePalette2ApiTest.cfg Wed Sep 01 12:30:54 2010 +0100 @@ -0,0 +1,112 @@ +/* +* Copyright (c) 2006 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: Active Palette 2 API tests +* +*/ + +// ---------------------------------------------------------------------------- +// Constants +// ---------------------------------------------------------------------------- + +[Define] +KPaletteSlideInDelay 100 +KPaletteSlideInDuration 1000 +KPaletteSlideOutDelay 0 +KPaletteSlideOutDuration 500 +KPaletteShowUpDelay 100 + + +KPosition1X 50 +KPosition1Y 50 +KPosition2X 100 +KPosition2Y 100 + + +[Enddefine] + +// ---------------------------------------------------------------------------- +// Test cases +// ---------------------------------------------------------------------------- + +[Test] +title ActivePalette2 Api Test: Basic UI Construction + +create ActivePalette2ApiTest test +test CreateUi +test DisposeUi +delete test +[Endtest] + + +[Test] +title ActivePalette2 Api Test: Full API testing + +create ActivePalette2ApiTest test + +test CreateUi + +test ListPlugins +test SetNavigationKeys +test SetPaletteVisibility false 0 false 0 +test AddItems 0 1 2 3 4 5 6 7 8 9 10 11 12 +test SetCurrentItem 0 +test SetPaletteVisibility true KPaletteSlideInDelay true KPaletteSlideInDuration +pause 2000 +test SetPaletteVisibility false 0 true KPaletteSlideOutDuration +pause 2000 +test SetPaletteVisibility true KPaletteShowUpDelay false 0 +pause 1000 + +test MovePalette KPosition1X KPosition1Y +pause 1000 +test MovePalette KPosition2X KPosition2Y +pause 1000 + +test CheckItemList 0 1 2 3 4 5 6 7 8 9 10 11 12 +test CheckCurrentItem 0 +test SetCurrentItem 12 +pause 2000 +test SetCurrentItem 5 +test CheckCurrentItem 5 +pause 2000 + +test RemoveItems 0 2 4 6 8 10 12 +test CheckItemList 1 3 5 7 9 11 +pause 2000 + +test HideItems 1 5 9 +test CheckItemVisibilities 1 false 3 true 5 false 7 true 9 false 11 true +pause 2000 +test ShowItems 1 5 9 +test CheckItemVisibilities 1 true 3 true 5 true 7 true 9 true 11 true +pause 2000 + +test TestKeyPrevious +pause 1000 +test TestKeyNext +pause 5000 +test TestKeySelect +pause 1000 + +test TestOffscreenDrawing +pause 500 + +test DisposeUi +delete test +[Endtest] + + +// ---------------------------------------------------------------------------- +// End of file +// ----------------------------------------------------------------------------