1 /* |
|
2 * Copyright (c) 2006 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: Active Palette 2 API tests |
|
15 * |
|
16 */ |
|
17 |
|
18 // ---------------------------------------------------------------------------- |
|
19 // Constants |
|
20 // ---------------------------------------------------------------------------- |
|
21 |
|
22 [Define] |
|
23 KPaletteSlideInDelay 100 |
|
24 KPaletteSlideInDuration 1000 |
|
25 KPaletteSlideOutDelay 0 |
|
26 KPaletteSlideOutDuration 500 |
|
27 KPaletteShowUpDelay 100 |
|
28 |
|
29 |
|
30 KPosition1X 50 |
|
31 KPosition1Y 50 |
|
32 KPosition2X 100 |
|
33 KPosition2Y 100 |
|
34 |
|
35 |
|
36 [Enddefine] |
|
37 |
|
38 // ---------------------------------------------------------------------------- |
|
39 // Test cases |
|
40 // ---------------------------------------------------------------------------- |
|
41 |
|
42 [Test] |
|
43 title ActivePalette2 Api Test: Basic UI Construction |
|
44 |
|
45 create ActivePalette2ApiTest test |
|
46 test CreateUi |
|
47 test DisposeUi |
|
48 delete test |
|
49 [Endtest] |
|
50 |
|
51 |
|
52 [Test] |
|
53 title ActivePalette2 Api Test: Full API testing |
|
54 |
|
55 create ActivePalette2ApiTest test |
|
56 |
|
57 test CreateUi |
|
58 |
|
59 test ListPlugins |
|
60 test SetNavigationKeys |
|
61 test SetPaletteVisibility false 0 false 0 |
|
62 test AddItems 0 1 2 3 4 5 6 7 8 9 10 11 12 |
|
63 test SetCurrentItem 0 |
|
64 test SetPaletteVisibility true KPaletteSlideInDelay true KPaletteSlideInDuration |
|
65 pause 2000 |
|
66 test SetPaletteVisibility false 0 true KPaletteSlideOutDuration |
|
67 pause 2000 |
|
68 test SetPaletteVisibility true KPaletteShowUpDelay false 0 |
|
69 pause 1000 |
|
70 |
|
71 test MovePalette KPosition1X KPosition1Y |
|
72 pause 1000 |
|
73 test MovePalette KPosition2X KPosition2Y |
|
74 pause 1000 |
|
75 |
|
76 test CheckItemList 0 1 2 3 4 5 6 7 8 9 10 11 12 |
|
77 test CheckCurrentItem 0 |
|
78 test SetCurrentItem 12 |
|
79 pause 2000 |
|
80 test SetCurrentItem 5 |
|
81 test CheckCurrentItem 5 |
|
82 pause 2000 |
|
83 |
|
84 test RemoveItems 0 2 4 6 8 10 12 |
|
85 test CheckItemList 1 3 5 7 9 11 |
|
86 pause 2000 |
|
87 |
|
88 test HideItems 1 5 9 |
|
89 test CheckItemVisibilities 1 false 3 true 5 false 7 true 9 false 11 true |
|
90 pause 2000 |
|
91 test ShowItems 1 5 9 |
|
92 test CheckItemVisibilities 1 true 3 true 5 true 7 true 9 true 11 true |
|
93 pause 2000 |
|
94 |
|
95 test TestKeyPrevious |
|
96 pause 1000 |
|
97 test TestKeyNext |
|
98 pause 5000 |
|
99 test TestKeySelect |
|
100 pause 1000 |
|
101 |
|
102 test TestOffscreenDrawing |
|
103 pause 500 |
|
104 |
|
105 test DisposeUi |
|
106 delete test |
|
107 [Endtest] |
|
108 |
|
109 |
|
110 // ---------------------------------------------------------------------------- |
|
111 // End of file |
|
112 // ---------------------------------------------------------------------------- |
|