1 // |
|
2 // Copyright (c) 2005-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 //! @file |
|
17 //! @SYMTestSuiteName GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi |
|
18 //! @SYMScriptTestEnvironment |
|
19 |
|
20 ///////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script |
|
22 // |
|
23 // Tests all public elements of the CFbsBitGcBitmap |
|
24 // classes as a means of confidence that the APIs work as expected. |
|
25 // |
|
26 // The purpose is to provide a regression test suite of PublishedAll APIs for CFbsBitGcBitmap |
|
27 // The tests are fully automated. |
|
28 ///////////////////////////////////////////////////////////////////// |
|
29 |
|
30 LOAD_SUITE T_GraphicsBitgdiApi |
|
31 DELAY 1000 |
|
32 |
|
33 START_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0001 |
|
34 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0001 |
|
35 //! @SYMAPI CFbsBitGcBitmap::Address() |
|
36 //! @SYMAuthor Dorothy Zhang |
|
37 //! @SYMCreationDate 09/01/2009 |
|
38 //! @SYMTestCaseDesc Get the bitmap address without bitmap created |
|
39 //! @SYMTestActions 1. Create a CFbsBitGcBitmap object |
|
40 //! 2. Create a RFbsSession with font and bitmap server |
|
41 //! 3. Call Address to get the bitmap address |
|
42 //! 4. Destroy the object anc close the session |
|
43 //! @SYMTestStatus Implemented |
|
44 //! @SYMTestPriority High |
|
45 //! @SYMTestExpectedResults The CFbsBitGcBitmap::Address() call returns NULL as expected and should not cause any panic. |
|
46 //! @SYMTestType CIT |
|
47 START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI.ini |
|
48 CREATE_OBJECT RFbsSession RFbsSession1 |
|
49 CREATE_OBJECT CFbsBitGcBitmap CFbsBitGcBitmap1 |
|
50 COMMAND RFbsSession1 Connect |
|
51 COMMAND CFbsBitGcBitmap1 new |
|
52 COMMAND CFbsBitGcBitmap1 Address |
|
53 COMMAND CFbsBitGcBitmap1 ~ |
|
54 COMMAND RFbsSession1 Disconnect |
|
55 END_TEST_BLOCK |
|
56 END_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0001 |
|
57 |
|
58 START_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0002 |
|
59 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0002 |
|
60 //! @SYMAPI CFbsBitGcBitmap::Address() |
|
61 //! @SYMAuthor Dorothy Zhang |
|
62 //! @SYMCreationDate 09/01/2009 |
|
63 //! @SYMTestCaseDesc Get a new created bitmap address |
|
64 //! @SYMTestActions 1. Create a CFbsBitGcBitmap object |
|
65 //! 2. Create a RFbsSession with font and bitmap server |
|
66 //! 3. Create a 100x200 bitmap |
|
67 //! 4. Call Address to get the bitmap address |
|
68 //! 5. Destroy the object and close the session |
|
69 //! @SYMTestStatus Implemented |
|
70 //! @SYMTestPriority High |
|
71 //! @SYMTestExpectedResults The CFbsBitGcBitmap::Address() call returns are expected and should not cause any panic. |
|
72 //! @SYMTestType CIT |
|
73 START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI.ini |
|
74 CREATE_OBJECT RFbsSession RFbsSession1 |
|
75 CREATE_OBJECT CFbsBitGcBitmap CFbsBitGcBitmap1 |
|
76 COMMAND RFbsSession1 Connect |
|
77 COMMAND CFbsBitGcBitmap1 new |
|
78 COMMAND CFbsBitGcBitmap1 Create GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0002-0001-Create_Command03 |
|
79 COMMAND CFbsBitGcBitmap1 Address GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0002-0001-Address_Command04 |
|
80 COMMAND CFbsBitGcBitmap1 ~ |
|
81 COMMAND RFbsSession1 Disconnect |
|
82 END_TEST_BLOCK |
|
83 END_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0002 |
|
84 |
|
85 |
|
86 START_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0003 |
|
87 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0003 |
|
88 //! @SYMAPI CFbsBitGcBitmap::LockHeap() |
|
89 //! @SYMAuthor Dorothy Zhang |
|
90 //! @SYMCreationDate 09/01/2009 |
|
91 //! @SYMTestCaseDesc Lock the global bitmap heap |
|
92 //! @SYMTestActions 1. Create a CFbsBitGcBitmap object |
|
93 //! 2. Create a RFbsSession with font and bitmap server |
|
94 //! 3. Call LockHeap to lock the global bitmap heap |
|
95 //! 4. Call UnlockHeap to unlock the global bitmap heap |
|
96 //! 5. Destroy the object and disconnect the session |
|
97 //! @SYMTestStatus Implemented |
|
98 //! @SYMTestPriority High |
|
99 //! @SYMTestExpectedResults The CFbsBitGcBitmap::LockHeap() call should not cause any panic. |
|
100 //! @SYMTestType CIT |
|
101 START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI.ini |
|
102 CREATE_OBJECT RFbsSession RFbsSession1 |
|
103 CREATE_OBJECT CFbsBitGcBitmap CFbsBitGcBitmap1 |
|
104 COMMAND RFbsSession1 Connect |
|
105 COMMAND CFbsBitGcBitmap1 new |
|
106 COMMAND CFbsBitGcBitmap1 LockHeap |
|
107 COMMAND CFbsBitGcBitmap1 UnlockHeap |
|
108 COMMAND CFbsBitGcBitmap1 ~ |
|
109 COMMAND RFbsSession1 Disconnect |
|
110 END_TEST_BLOCK |
|
111 END_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0003 |
|
112 |
|
113 START_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0004 |
|
114 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0004 |
|
115 //! @SYMAPI CFbsBitGcBitmap::LockHeap() |
|
116 //! @SYMAuthor Dorothy Zhang |
|
117 //! @SYMCreationDate 09/01/2009 |
|
118 //! @SYMTestCaseDesc Lock the global bitmap heap with a new bitmap created |
|
119 //! @SYMTestActions 1. Create a CFbsBitGcBitmap object |
|
120 //! 2. Create a RFbsSession with font and bitmap server |
|
121 //! 3. Create a 100x200 bitmap |
|
122 //! 4. Call LockHeap to lock the global bitmap heap |
|
123 //! 5. Call UnlockHeap to unlock the global bitmap heap |
|
124 //! 6. Destroy the object and disconnect the session |
|
125 //! @SYMTestStatus Implemented |
|
126 //! @SYMTestPriority High |
|
127 //! @SYMTestExpectedResults The CFbsBitGcBitmap::LockHeap() call should not cause any panic. |
|
128 //! @SYMTestType CIT |
|
129 START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI.ini |
|
130 CREATE_OBJECT RFbsSession RFbsSession1 |
|
131 CREATE_OBJECT CFbsBitGcBitmap CFbsBitGcBitmap1 |
|
132 COMMAND RFbsSession1 Connect |
|
133 COMMAND CFbsBitGcBitmap1 new |
|
134 COMMAND CFbsBitGcBitmap1 Create GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0004-0001-Create_Command03 |
|
135 COMMAND CFbsBitGcBitmap1 LockHeap |
|
136 COMMAND CFbsBitGcBitmap1 UnlockHeap |
|
137 COMMAND CFbsBitGcBitmap1 ~ |
|
138 COMMAND RFbsSession1 Disconnect |
|
139 END_TEST_BLOCK |
|
140 END_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0004 |
|
141 |
|
142 START_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0005 |
|
143 //! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0005 |
|
144 //! @SYMAPI CFbsBitGcBitmap::LockHeap() |
|
145 //! @SYMAuthor Dorothy Zhang |
|
146 //! @SYMCreationDate 09/01/2009 |
|
147 //! @SYMTestCaseDesc Get the address of the first pixel in the bitmap with LockHeap and UnlockHeap call in pairs |
|
148 //! @SYMTestActions 1. Create a CFbsBitGcBitmap object |
|
149 //! 2. Create a RFbsSession with font and bitmap server |
|
150 //! 3. Create a 100x200 bitmap |
|
151 //! 4. Call LockHeap to lock the global bitmap heap |
|
152 //! 5. Call DataAddress to get the address of the first pixel in the bitmap |
|
153 //! 6. Call UnlockHeap to unlock the global bitmap heap |
|
154 //! 7. Destroy the object and disconnect the session. |
|
155 //! @SYMTestStatus Implemented |
|
156 //! @SYMTestPriority High |
|
157 //! @SYMTestExpectedResults The CFbsBitGcBitmap::UnlockHeap() call should not cause any panic. |
|
158 //! @SYMTestType CIT |
|
159 START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI.ini |
|
160 CREATE_OBJECT RFbsSession RFbsSession1 |
|
161 CREATE_OBJECT CFbsBitGcBitmap CFbsBitGcBitmap1 |
|
162 COMMAND RFbsSession1 Connect |
|
163 COMMAND CFbsBitGcBitmap1 new |
|
164 COMMAND CFbsBitGcBitmap1 Create GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0005-0001-Create_Command03 |
|
165 COMMAND CFbsBitGcBitmap1 LockHeap |
|
166 COMMAND CFbsBitGcBitmap1 DataAddress |
|
167 COMMAND CFbsBitGcBitmap1 UnlockHeap |
|
168 COMMAND CFbsBitGcBitmap1 ~ |
|
169 COMMAND RFbsSession1 Disconnect |
|
170 END_TEST_BLOCK |
|
171 END_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0005 |
|
172 |
|