|
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-FNTSTORE-OpenFontRasterizerContext-PublicApi |
|
18 //! @SYMScriptTestEnvironment |
|
19 |
|
20 ///////////////////////////////////////////////////////////////////// |
|
21 // GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.script |
|
22 // |
|
23 // Tests all public elements of the COpenFontRasterizerContext |
|
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 COpenFontRasterizerContext |
|
27 // The tests are fully automated. |
|
28 ///////////////////////////////////////////////////////////////////// |
|
29 |
|
30 LOAD_SUITE T_GraphicsFntstoreApi |
|
31 DELAY 1000 |
|
32 |
|
33 START_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0001 |
|
34 //! @SYMTestCaseID GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0001 |
|
35 //! @SYMAPI COpenFontRasterizerContext::COpenFontRasterizerContext() |
|
36 //! @SYMAuthor Felix Rao |
|
37 //! @SYMCreationDate 09/04/2009 |
|
38 //! @SYMTestCaseDesc Creates a new COpenFontRasterizerContext object. |
|
39 //! @SYMTestActions 1. Create a COpenFontRasterizerContext object. |
|
40 //! 2. Destroy the object. |
|
41 //! @SYMTestStatus Implemented |
|
42 //! @SYMTestPriority High |
|
43 //! @SYMTestExpectedResults COpenFontRasterizerContext::COpenFontRasterizerContext() is called successfully. |
|
44 //! @SYMTestType CIT |
|
45 START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini |
|
46 CREATE_OBJECT COpenFontRasterizerContext razContext |
|
47 COMMAND razContext new |
|
48 COMMAND razContext ~ |
|
49 END_TEST_BLOCK |
|
50 END_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0001 |
|
51 |
|
52 START_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0002 |
|
53 //! @SYMTestCaseID GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0002 |
|
54 //! @SYMAPI COpenFontRasterizerContext::StartGlyph(TOpenFontGlyphData{ptr}) |
|
55 //! @SYMAuthor Felix Rao |
|
56 //! @SYMCreationDate 10/04/2009 |
|
57 //! @SYMTestCaseDesc Start writing the glyph data. |
|
58 //! @SYMTestActions 1. Create a COpenFontRasterizerContext object and a TOpenFontGlyphData object. |
|
59 //! 2. Start writing the glyph data. |
|
60 //! 3. Completes writing glyph data. |
|
61 //! 4. Destroy all objects. |
|
62 //! @SYMTestStatus Implemented |
|
63 //! @SYMTestPriority High |
|
64 //! @SYMTestExpectedResults COpenFontRasterizerContext::StartGlyph() is called successfully. |
|
65 //! @SYMTestType CIT |
|
66 START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini |
|
67 CREATE_OBJECT COpenFontRasterizerContext razContext |
|
68 CREATE_OBJECT TOpenFontGlyphData glyphData |
|
69 COMMAND razContext new |
|
70 COMMAND glyphData New GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0002-New_command02 |
|
71 COMMAND razContext StartGlyph GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0002-StartGlyph_command03 |
|
72 COMMAND razContext EndGlyph |
|
73 COMMAND glyphData ~ |
|
74 COMMAND razContext ~ |
|
75 END_TEST_BLOCK |
|
76 END_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0002 |
|
77 |
|
78 START_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003 |
|
79 //! @SYMTestCaseID GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003 |
|
80 //! @SYMAPI COpenFontRasterizerContext::WriteGlyphBit(TInt) |
|
81 //! @SYMAuthor Felix Rao |
|
82 //! @SYMCreationDate 10/04/2009 |
|
83 //! @SYMTestCaseDesc Writes a bit to the glyph buffer. |
|
84 //! @SYMTestActions 1. Create a COpenFontRasterizerContext object and a TOpenFontGlyphData object. |
|
85 //! 2. Start writing the glyph data. |
|
86 //! 3. Writes a bit to the glyph buffer. |
|
87 //! 4. Completes writing glyph data. |
|
88 //! 5. Destroy all objects. |
|
89 //! @SYMTestStatus Implemented |
|
90 //! @SYMTestPriority High |
|
91 //! @SYMTestExpectedResults COpenFontRasterizerContext::WriteGlyphBit() is called successfully. |
|
92 //! @SYMTestType CIT |
|
93 START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini |
|
94 CREATE_OBJECT COpenFontRasterizerContext razContext |
|
95 CREATE_OBJECT TOpenFontGlyphData glyphData |
|
96 COMMAND razContext new |
|
97 COMMAND glyphData New GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003-New_command02 |
|
98 COMMAND razContext StartGlyph GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003-StartGlyph_command03 |
|
99 COMMAND razContext WriteGlyphBit GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003-WriteGlyphBit_command04 |
|
100 COMMAND razContext EndGlyph |
|
101 COMMAND glyphData ~ |
|
102 COMMAND razContext ~ |
|
103 END_TEST_BLOCK |
|
104 END_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003 |
|
105 |
|
106 START_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004 |
|
107 //! @SYMTestCaseID GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004 |
|
108 //! @SYMAPI COpenFontRasterizerContext::WriteGlyphByte(TInt) |
|
109 //! @SYMAuthor Felix Rao |
|
110 //! @SYMCreationDate 10/04/2009 |
|
111 //! @SYMTestCaseDesc Writes a byte to the glyph buffer. |
|
112 //! @SYMTestActions 1. Create a COpenFontRasterizerContext object and a TOpenFontGlyphData object. |
|
113 //! 2. Start writing the glyph data. |
|
114 //! 3. Writes a byte to the glyph buffer. |
|
115 //! 4. Completes writing glyph data. |
|
116 //! 5. Destroy all objects. |
|
117 //! @SYMTestStatus Implemented |
|
118 //! @SYMTestPriority High |
|
119 //! @SYMTestExpectedResults COpenFontRasterizerContext::WriteGlyphByte() is called successfully. |
|
120 //! @SYMTestType CIT |
|
121 START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini |
|
122 CREATE_OBJECT COpenFontRasterizerContext razContext |
|
123 CREATE_OBJECT TOpenFontGlyphData glyphData |
|
124 COMMAND razContext new |
|
125 COMMAND glyphData New GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004-New_command02 |
|
126 COMMAND razContext StartGlyph GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004-StartGlyph_command03 |
|
127 COMMAND razContext WriteGlyphByte GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004-WriteGlyphByte_command04 |
|
128 COMMAND razContext EndGlyph |
|
129 COMMAND glyphData ~ |
|
130 COMMAND razContext ~ |
|
131 END_TEST_BLOCK |
|
132 END_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004 |
|
133 |
|
134 START_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0005 |
|
135 //! @SYMTestCaseID GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0005 |
|
136 //! @SYMAPI COpenFontRasterizerContext::EndGlyph(TInt) |
|
137 //! @SYMAuthor Felix Rao |
|
138 //! @SYMCreationDate 10/04/2009 |
|
139 //! @SYMTestCaseDesc Completes writing glyph data. |
|
140 //! @SYMTestActions 1. Create a COpenFontRasterizerContext object and a TOpenFontGlyphData object. |
|
141 //! 2. Start writing the glyph data. |
|
142 //! 3. Completes writing glyph data. |
|
143 //! 4. Destroy all objects. |
|
144 //! @SYMTestStatus Implemented |
|
145 //! @SYMTestPriority High |
|
146 //! @SYMTestExpectedResults COpenFontRasterizerContext::EndGlyph() is called successfully. |
|
147 //! @SYMTestType CIT |
|
148 START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini |
|
149 CREATE_OBJECT COpenFontRasterizerContext razContext |
|
150 CREATE_OBJECT TOpenFontGlyphData glyphData |
|
151 COMMAND razContext new |
|
152 COMMAND glyphData New GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0005-New_command02 |
|
153 COMMAND razContext StartGlyph GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0005-StartGlyph_command03 |
|
154 COMMAND razContext EndGlyph |
|
155 COMMAND glyphData ~ |
|
156 COMMAND razContext ~ |
|
157 END_TEST_BLOCK |
|
158 END_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0005 |
|
159 |
|
160 START_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0006 |
|
161 //! @SYMTestCaseID GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0006 |
|
162 //! @SYMAPI COpenFontRasterizerContext::StartGlyph(TOpenFontGlyphData{ptr}) |
|
163 //! @SYMAuthor Felix Rao |
|
164 //! @SYMCreationDate 10/04/2009 |
|
165 //! @SYMTestCaseDesc Negative case. Start writing the glyph data and destroy the context object without calling EndGlyphData(). |
|
166 //! @SYMTestActions 1. Create a COpenFontRasterizerContext object and a TOpenFontGlyphData object. |
|
167 //! 2. Start writing the glyph data. |
|
168 //! 3. Destroy all objects. |
|
169 //! @SYMTestStatus Implemented |
|
170 //! @SYMTestPriority High |
|
171 //! @SYMTestExpectedResults COpenFontRasterizerContext::StartGlyph() is called successfully. |
|
172 //! @SYMTestType CIT |
|
173 START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini |
|
174 CREATE_OBJECT COpenFontRasterizerContext razContext |
|
175 CREATE_OBJECT TOpenFontGlyphData glyphData |
|
176 COMMAND razContext new |
|
177 COMMAND glyphData New GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0006-New_command02 |
|
178 COMMAND razContext StartGlyph GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0006-StartGlyph_command03 |
|
179 COMMAND glyphData ~ |
|
180 COMMAND razContext ~ |
|
181 END_TEST_BLOCK |
|
182 END_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0006 |
|
183 |