|
1 /* |
|
2 * Copyright (c) 2007 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: test case |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <w32std.h> |
|
20 #include <coecntrl.h> |
|
21 #include <eikenv.h> |
|
22 |
|
23 #include <aknlayout2def.h> |
|
24 #include <aknlayout2scalabledef.h> |
|
25 |
|
26 |
|
27 #include "bctestdomlayoutdatacase.h" |
|
28 #include "bctestdomfntlaycontainer.h" |
|
29 #include "bctestdomfntlay.hrh" |
|
30 |
|
31 |
|
32 // ======== MEMBER FUNCTIONS ======== |
|
33 |
|
34 // --------------------------------------------------------------------------- |
|
35 // Symbian 2nd static Constructor |
|
36 // --------------------------------------------------------------------------- |
|
37 // |
|
38 CBCTestDomLayoutDataCase* CBCTestDomLayoutDataCase::NewL() |
|
39 { |
|
40 CBCTestDomLayoutDataCase* self = new( ELeave ) CBCTestDomLayoutDataCase(); |
|
41 CleanupStack::PushL( self ); |
|
42 self->ConstructL(); |
|
43 CleanupStack::Pop( self ); |
|
44 return self; |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------------------------- |
|
48 // C++ default constructor |
|
49 // --------------------------------------------------------------------------- |
|
50 // |
|
51 CBCTestDomLayoutDataCase::CBCTestDomLayoutDataCase() |
|
52 { |
|
53 } |
|
54 |
|
55 // --------------------------------------------------------------------------- |
|
56 // Destructor |
|
57 // --------------------------------------------------------------------------- |
|
58 // |
|
59 CBCTestDomLayoutDataCase::~CBCTestDomLayoutDataCase() |
|
60 { |
|
61 } |
|
62 |
|
63 // --------------------------------------------------------------------------- |
|
64 // Symbian 2nd Constructor |
|
65 // --------------------------------------------------------------------------- |
|
66 // |
|
67 void CBCTestDomLayoutDataCase::ConstructL() |
|
68 { |
|
69 BuildScriptL(); |
|
70 } |
|
71 |
|
72 // --------------------------------------------------------------------------- |
|
73 // CBCTestDomLayoutDataCase::BuildScriptL |
|
74 // --------------------------------------------------------------------------- |
|
75 // |
|
76 void CBCTestDomLayoutDataCase::BuildScriptL() |
|
77 { |
|
78 // Add script as your need. |
|
79 AddTestL( DELAY(1), |
|
80 LeftCBA, REP(Down,2), LeftCBA, LeftCBA, |
|
81 LeftCBA, REP(Down,2), LeftCBA, REP(Down,1), LeftCBA, |
|
82 LeftCBA, REP(Down,2), LeftCBA, REP(Down,2), LeftCBA, |
|
83 TEND ); |
|
84 } |
|
85 |
|
86 // --------------------------------------------------------------------------- |
|
87 // CBCTestDomLayoutDataCase::RunL |
|
88 // --------------------------------------------------------------------------- |
|
89 // |
|
90 void CBCTestDomLayoutDataCase::RunL( TInt aCmd ) |
|
91 { |
|
92 if ( aCmd < EBCTestDomCmdOutline13 || aCmd > EBCTestDomCmdOutline15 ) |
|
93 { |
|
94 return; |
|
95 } |
|
96 |
|
97 switch ( aCmd ) |
|
98 { |
|
99 case EBCTestDomCmdOutline13: //AknLayout2Def.h 5 |
|
100 { |
|
101 TestLayout2DefL(); |
|
102 break; |
|
103 } |
|
104 case EBCTestDomCmdOutline14: //AknLayout2ScalableDef 51 |
|
105 { |
|
106 TestLayout2ScalableDefL(); |
|
107 break; |
|
108 } |
|
109 case EBCTestDomCmdOutline15: //AknLayout2ScalableDef 28 |
|
110 { |
|
111 TestLayout2ScalableDef2L(); |
|
112 break; |
|
113 } |
|
114 default: |
|
115 break; |
|
116 } |
|
117 } |
|
118 |
|
119 // --------------------------------------------------------------------------- |
|
120 // CBCTestDomLayoutDataCase::TestLayout2DefL |
|
121 // --------------------------------------------------------------------------- |
|
122 // |
|
123 void CBCTestDomLayoutDataCase::TestLayout2DefL()//AknLayout2Def.h 5 |
|
124 { |
|
125 //TAknWindowComponentLayout 3 |
|
126 TAknWindowComponentLayout winComLayout ; |
|
127 TAknWindowLineLayout winLineLayout( winComLayout ); |
|
128 _LIT( KTxtTAknWindowLineLayout, |
|
129 "TAknWindowLineLayout::TAknWindowLineLayout" ); |
|
130 AssertTrueL( ETrue, KTxtTAknWindowLineLayout ); |
|
131 |
|
132 TAknWindowLineLayout winLineLayout2 = winComLayout ; |
|
133 _LIT( KTxtOperatorEqual, "TAknWindowLineLayout::operator=" ); |
|
134 AssertTrueL( ETrue, KTxtOperatorEqual ); |
|
135 |
|
136 TAknWindowLineLayout winLineLayout3 = |
|
137 TAknWindowLineLayout::CombineLines( |
|
138 winLineLayout, winLineLayout2 ); |
|
139 _LIT( KTxtCombineLines, "TAknWindowLineLayout::CombineLines" ); |
|
140 AssertTrueL( ETrue, KTxtCombineLines ); |
|
141 |
|
142 //TAknTextLineLayout 2 |
|
143 TAknTextComponentLayout txtComLayout; |
|
144 TAknTextLineLayout txtLineLayout( txtComLayout ); |
|
145 _LIT( KTxtTAknTextLineLayout, |
|
146 "TAknTextLineLayout::TAknTextLineLayout" ); |
|
147 AssertTrueL( ETrue, KTxtTAknTextLineLayout ); |
|
148 |
|
149 TAknTextLineLayout txtLineLayout2 = txtComLayout; |
|
150 _LIT( KTxtOpEqual, "TAknTextLineLayout::operator=" ); |
|
151 AssertTrueL( ETrue, KTxtOpEqual ); |
|
152 } |
|
153 |
|
154 // --------------------------------------------------------------------------- |
|
155 // CBCTestDomLayoutDataCase::TestLayout2ScalableDefL |
|
156 // --------------------------------------------------------------------------- |
|
157 // |
|
158 void CBCTestDomLayoutDataCase::TestLayout2ScalableDefL() |
|
159 { |
|
160 //AknLayout2ScalableDef 51 |
|
161 //TAknLayoutScalableTableLimits 7 |
|
162 |
|
163 TAknLayoutScalableTableLimits layScaTableLists; |
|
164 _LIT( KTxtTAknLayoutScalableTableLimits, |
|
165 "TAknLayoutScalableTableLimits::\ |
|
166 TAknLayoutScalableTableLimits" ); |
|
167 AssertTrueL( ETrue, KTxtTAknLayoutScalableTableLimits ); |
|
168 |
|
169 TAknLayoutScalableTableLimits layScaTableLists2( 1, 2 ); |
|
170 _LIT( KTxtTAknLayoutScalableTableLimits2, |
|
171 "TAknLayoutScalableTableLimits::\ |
|
172 TAknLayoutScalableTableLimits2" ); |
|
173 AssertTrueL( ETrue, KTxtTAknLayoutScalableTableLimits2 ); |
|
174 |
|
175 TAknLayoutTableLimits layTableLimits = |
|
176 layScaTableLists2.LayoutLimits(); |
|
177 _LIT( KTxtLayoutLimits, |
|
178 "TAknLayoutScalableTableLimits::LayoutLimits" ); |
|
179 AssertTrueL( ETrue, KTxtLayoutLimits ); |
|
180 |
|
181 layScaTableLists.SetFirstIndex( 1 ); |
|
182 _LIT( KTxtSetFirstIndex, |
|
183 "TAknLayoutScalableTableLimits::SetFirstIndex" ); |
|
184 AssertTrueL( ETrue, KTxtSetFirstIndex ); |
|
185 |
|
186 layScaTableLists.SetLastIndex( 2 ); |
|
187 _LIT( KTxtSetLastIndex, |
|
188 "TAknLayoutScalableTableLimits::SetLastIndex" ); |
|
189 AssertTrueL( ETrue, KTxtSetLastIndex ); |
|
190 |
|
191 TInt firstIndex = layScaTableLists.FirstIndex(); |
|
192 _LIT( KTxtFirstIndex, |
|
193 "TAknLayoutScalableTableLimits::FirstIndex" ); |
|
194 AssertTrueL( ETrue, KTxtFirstIndex ); |
|
195 |
|
196 TInt lastIndex = layScaTableLists.LastIndex(); |
|
197 _LIT( KTxtLastIndex, |
|
198 "TAknLayoutScalableTableLimits::LastIndex" ); |
|
199 AssertTrueL( ETrue, KTxtLastIndex ); |
|
200 |
|
201 //TAknLayoutScalableParameterLimits 13 |
|
202 |
|
203 TAknLayoutScalableParameterLimits laySCaParamLims; |
|
204 _LIT( KTxtTAknLayoutScalableParameterLimits, |
|
205 "TAknLayoutScalableParameterLimits::\ |
|
206 TAknLayoutScalableParameterLimits" ); |
|
207 AssertTrueL( ETrue, KTxtTAknLayoutScalableParameterLimits ); |
|
208 |
|
209 TAknLayoutScalableParameterLimits laySCaParamLims2( 1, |
|
210 2, 1, 2, 1, 2 ); |
|
211 _LIT( KTxtTAknLayoutScalableParameterLimits2, |
|
212 "TAknLayoutScalableParameterLimits::\ |
|
213 TAknLayoutScalableParameterLimits2" ); |
|
214 AssertTrueL( ETrue, KTxtTAknLayoutScalableParameterLimits2 ); |
|
215 |
|
216 laySCaParamLims.SetFirstVariety( 1 ); |
|
217 _LIT( KTxtSetFirstVariety, |
|
218 "TAknLayoutScalableParameterLimits::SetFirstVariety" ); |
|
219 AssertTrueL( ETrue, KTxtSetFirstVariety ); |
|
220 |
|
221 laySCaParamLims.SetLastVariety( 2 ); |
|
222 _LIT( KTxtSetLastVariety, |
|
223 "TAknLayoutScalableParameterLimits::SetLastVariety" ); |
|
224 AssertTrueL( ETrue, KTxtSetLastVariety ); |
|
225 |
|
226 laySCaParamLims.SetFirstColumn( 1 ); |
|
227 _LIT( KTxtSetFirstColumn, |
|
228 "TAknLayoutScalableParameterLimits::SetFirstColumn" ); |
|
229 AssertTrueL( ETrue, KTxtSetFirstColumn ); |
|
230 |
|
231 laySCaParamLims.SetLastColumn( 2 ); |
|
232 _LIT( KTxtSetLastColumn, |
|
233 "TAknLayoutScalableParameterLimits::SetLastColumn" ); |
|
234 AssertTrueL( ETrue, KTxtSetLastColumn ); |
|
235 |
|
236 laySCaParamLims.SetFirstRow( 1 ); |
|
237 _LIT( KTxtSetFirstRow, |
|
238 "TAknLayoutScalableParameterLimits::SetFirstRow" ); |
|
239 AssertTrueL( ETrue, KTxtSetFirstRow ); |
|
240 |
|
241 laySCaParamLims.SetLastRow( 2 ); |
|
242 _LIT( KTxtSetLastRow, |
|
243 "TAknLayoutScalableParameterLimits::SetLastRow" ); |
|
244 AssertTrueL( ETrue, KTxtSetLastRow ); |
|
245 |
|
246 TInt ret = laySCaParamLims.FirstVariety(); |
|
247 _LIT( KTxtFirstVariety, |
|
248 "TAknLayoutScalableParameterLimits::FirstVariety" ); |
|
249 AssertTrueL( ETrue, KTxtFirstVariety ); |
|
250 |
|
251 ret = laySCaParamLims.LastVariety(); |
|
252 _LIT( KTxtLastVariety, |
|
253 "TAknLayoutScalableParameterLimits::LastVariety" ); |
|
254 AssertTrueL( ETrue, KTxtLastVariety ); |
|
255 |
|
256 ret = laySCaParamLims.FirstColumn(); |
|
257 _LIT( KTxtFirstColumn, |
|
258 "TAknLayoutScalableParameterLimits::FirstColumn" ); |
|
259 AssertTrueL( ETrue, KTxtFirstColumn ); |
|
260 |
|
261 ret = laySCaParamLims.LastColumn(); |
|
262 _LIT( KTxtLastColumn, |
|
263 "TAknLayoutScalableParameterLimits::LastColumn" ); |
|
264 AssertTrueL( ETrue, KTxtLastColumn ); |
|
265 |
|
266 ret = laySCaParamLims.FirstRow(); |
|
267 _LIT( KTxtFirstRow, |
|
268 "TAknLayoutScalableParameterLimits::FirstRow" ); |
|
269 AssertTrueL( ETrue, KTxtFirstRow ); |
|
270 |
|
271 //TAknWindowComponentLayout 31 |
|
272 TAknWindowComponentLayout winComLayout; |
|
273 _LIT( KTxtTAknWindowComponentLayout, |
|
274 "TAknWindowComponentLayout::TAknWindowComponentLayout" ); |
|
275 AssertTrueL( ETrue, KTxtTAknWindowComponentLayout ); |
|
276 |
|
277 TAknWindowLineLayout winLineLayout = winComLayout.LayoutLine(); |
|
278 _LIT( KTxtLayoutLine, |
|
279 "TAknWindowComponentLayout::LayoutLine" ); |
|
280 AssertTrueL( ETrue, KTxtLayoutLine ); |
|
281 |
|
282 TAknWindowLineLayout winLineLayout2 = |
|
283 winComLayout.LayoutLineNoEmptys(); |
|
284 _LIT( KTxtLayoutLineNoEmptys, |
|
285 "TAknWindowComponentLayout::LayoutLineNoEmptys" ); |
|
286 AssertTrueL( ETrue, KTxtLayoutLineNoEmptys ); |
|
287 |
|
288 TAknLayoutScalableComponentType layScaComTaype = |
|
289 winComLayout.LayoutComponentType(); |
|
290 _LIT( KTxtLayoutComponentType, |
|
291 "TAknWindowComponentLayout::LayoutComponentType" ); |
|
292 AssertTrueL( ETrue, KTxtLayoutComponentType ); |
|
293 |
|
294 TAknWindowComponentLayout winComLayout2; |
|
295 TAknWindowComponentLayout winComLayout3 = |
|
296 TAknWindowComponentLayout::Compose( winComLayout, |
|
297 winComLayout2 ); |
|
298 _LIT( KTxtCompose, "TAknWindowComponentLayout::Compose" ); |
|
299 AssertTrueL( ETrue, KTxtCompose ); |
|
300 |
|
301 TAknTextComponentLayout txtComLayout12; |
|
302 TAknTextComponentLayout txtComLayout13 = |
|
303 TAknWindowComponentLayout::ComposeText( winComLayout, |
|
304 txtComLayout12 ); |
|
305 _LIT( KTxtComposeText, |
|
306 "TAknWindowComponentLayout::ComposeText" ); |
|
307 AssertTrueL( ETrue, KTxtComposeText ); |
|
308 |
|
309 TAknWindowComponentLayout winComLayout4 = |
|
310 TAknWindowComponentLayout::Intersect( winComLayout, |
|
311 winComLayout2 ); |
|
312 _LIT( KTxtIntersect, "TAknWindowComponentLayout::Intersect" ); |
|
313 AssertTrueL( ETrue, KTxtIntersect ); |
|
314 |
|
315 TAknWindowComponentLayout winComLayout5 = |
|
316 TAknWindowComponentLayout::Minus( winComLayout, |
|
317 winComLayout2 ); |
|
318 _LIT( KTxtMinust, "TAknWindowComponentLayout::Minus" ); |
|
319 AssertTrueL( ETrue, KTxtMinust ); |
|
320 |
|
321 TAknWindowComponentLayout winComLayout13 = |
|
322 TAknWindowComponentLayout::SiblingAsChild( winComLayout, |
|
323 winComLayout2 ); |
|
324 _LIT( KTxtSiblingAsChild, |
|
325 "TAknWindowComponentLayout::SiblingAsChild" ); |
|
326 AssertTrueL( ETrue, KTxtSiblingAsChild ); |
|
327 |
|
328 winComLayout.SetZeroSized(); |
|
329 _LIT( KTxtSetZeroSized, |
|
330 "TAknWindowComponentLayout::SetZeroSized" ); |
|
331 AssertTrueL( ETrue, KTxtSetZeroSized ); |
|
332 |
|
333 TAknWindowComponentLayout winComLayout6 = |
|
334 TAknWindowComponentLayout::Split( winComLayout, 2 ); |
|
335 _LIT( KTxtSplit, "TAknWindowComponentLayout::Split" ); |
|
336 AssertTrueL( ETrue, KTxtSplit ); |
|
337 |
|
338 TAknWindowComponentLayout winComLayout7 = |
|
339 TAknWindowComponentLayout::MultiLineGrid( winComLayout, |
|
340 1, 1, 1, 1 ); |
|
341 _LIT( KTxtMultiLineGrid, |
|
342 "TAknWindowComponentLayout::MultiLineGrid" ); |
|
343 AssertTrueL( ETrue, KTxtMultiLineGrid ); |
|
344 |
|
345 TAknWindowComponentLayout winComLayout8 = |
|
346 TAknWindowComponentLayout::MultiLineX( winComLayout, |
|
347 1, 1 ); |
|
348 _LIT( KTxtMultiLineX, "TAknWindowComponentLayout::MultiLineX" ); |
|
349 AssertTrueL( ETrue, KTxtMultiLineX ); |
|
350 |
|
351 TAknWindowComponentLayout winComLayout9 = |
|
352 TAknWindowComponentLayout::MultiLineY( winComLayout, |
|
353 1, 1 ); |
|
354 _LIT( KTxtMultiLineY, "TAknWindowComponentLayout::MultiLineY" ); |
|
355 AssertTrueL( ETrue, KTxtMultiLineY ); |
|
356 |
|
357 TAknWindowComponentLayout::TRangeTriplet rangeTriplet; |
|
358 TAknWindowComponentLayout winComLayout10 = |
|
359 TAknWindowComponentLayout::Anim( winComLayout, |
|
360 winComLayout2, rangeTriplet ); |
|
361 _LIT( KTxtAnim, "TAknWindowComponentLayout::Anim" ); |
|
362 AssertTrueL( ETrue, KTxtAnim ); |
|
363 |
|
364 TAknWindowComponentLayout winComLayout11( winComLayout2 ); |
|
365 _LIT( KTxtTAknWindowComponentLayout2, |
|
366 "TAknWindowComponentLayout::TAknWindowComponentLayout2" ); |
|
367 AssertTrueL( ETrue, KTxtTAknWindowComponentLayout2 ); |
|
368 |
|
369 TAknWindowComponentLayout winComLayout12; |
|
370 winComLayout12 = winLineLayout; |
|
371 _LIT( KTxtWinComOptEqual, |
|
372 "TAknWindowComponentLayout::operator=" ); |
|
373 AssertTrueL( ETrue, KTxtWinComOptEqual ); |
|
374 } |
|
375 |
|
376 // --------------------------------------------------------------------------- |
|
377 // CBCTestDomLayoutDataCase::TestLayout2ScalableDef2L |
|
378 // --------------------------------------------------------------------------- |
|
379 // |
|
380 void CBCTestDomLayoutDataCase::TestLayout2ScalableDef2L() |
|
381 { |
|
382 //AknLayout2ScalableDef 28 |
|
383 TAknTextComponentLayout txtComLayout; |
|
384 _LIT( KTxtTAknTextComponentLayout, |
|
385 "TAknTextComponentLayout::TAknTextComponentLayout" ); |
|
386 AssertTrueL( ETrue, KTxtTAknTextComponentLayout ); |
|
387 |
|
388 TAknTextLineLayout txtLineLayout = txtComLayout.LayoutLine(); |
|
389 _LIT( KTxtComLayoutLine, "TAknTextComponentLayout::LayoutLine" ); |
|
390 AssertTrueL( ETrue, KTxtComLayoutLine ); |
|
391 |
|
392 TAknTextComponentLayout txtComLayout8; |
|
393 TAknTextComponentLayout txtComLayout9; |
|
394 RArray<TAknTextComponentLayout> txtComLayouts; |
|
395 CleanupClosePushL( txtComLayouts ); |
|
396 txtComLayouts.Append( txtComLayout8 ); |
|
397 txtComLayouts.Append( txtComLayout9 ); |
|
398 TAknMultiLineTextLayout mulLineTxtlayout = |
|
399 TAknTextComponentLayout::Multiline( txtComLayouts ); |
|
400 _LIT( KTxtMultiline, "TAknTextComponentLayout::Multiline" ); |
|
401 AssertTrueL( ETrue, KTxtMultiline ); |
|
402 |
|
403 TAknTextLineLayout txtLineLayout2 = |
|
404 txtComLayout.LayoutLineNoEmptys(); |
|
405 _LIT( KTxtTextLayoutLineNoEmptys, |
|
406 "TAknTextComponentLayout::LayoutLineNoEmptys" ); |
|
407 AssertTrueL( ETrue, KTxtTextLayoutLineNoEmptys ); |
|
408 |
|
409 TAknLayoutScalableComponentType layScaComType = |
|
410 txtComLayout.LayoutComponentType(); |
|
411 _LIT( KTxtTextLayoutComponentType, |
|
412 "TAknTextComponentLayout::LayoutComponentType" ); |
|
413 AssertTrueL( ETrue, KTxtTextLayoutComponentType ); |
|
414 |
|
415 txtComLayout.SetC( 1 ); |
|
416 _LIT( KTxtSetC, "TAknTextComponentLayout::SetC" ); |
|
417 AssertTrueL( ETrue, KTxtSetC ); |
|
418 |
|
419 txtComLayout.Setl( 2 ); |
|
420 _LIT( KTxtSetl, "TAknTextComponentLayout::Setl" ); |
|
421 AssertTrueL( ETrue, KTxtSetl ); |
|
422 |
|
423 txtComLayout.Sett( 3 ); |
|
424 _LIT( KTxtSett, "TAknTextComponentLayout::Sett" ); |
|
425 AssertTrueL( ETrue, KTxtSett ); |
|
426 |
|
427 txtComLayout.Setr( 4 ); |
|
428 _LIT( KTxtSetr, "TAknTextComponentLayout::Setr" ); |
|
429 AssertTrueL( ETrue, KTxtSetr ); |
|
430 |
|
431 txtComLayout.Setb( 5 ); |
|
432 _LIT( KTxtSetb, "TAknTextComponentLayout::Setb" ); |
|
433 AssertTrueL( ETrue, KTxtSetb ); |
|
434 |
|
435 txtComLayout.SetW( 6 ); |
|
436 _LIT( KTxtSetW, "TAknTextComponentLayout::SetW" ); |
|
437 AssertTrueL( ETrue, KTxtSetW ); |
|
438 |
|
439 txtComLayout.SetH( 7 ); |
|
440 _LIT( KTxtSetH, "TAknTextComponentLayout::SetH" ); |
|
441 AssertTrueL( ETrue, KTxtSetH ); |
|
442 |
|
443 txtComLayout.SetJ( 8 ); |
|
444 _LIT( KTxtSetJ, "TAknTextComponentLayout::SetJ" ); |
|
445 AssertTrueL( ETrue, KTxtSetJ ); |
|
446 |
|
447 txtComLayout.SetFont( 8 ); |
|
448 _LIT( KTxtSetFont, "TAknTextComponentLayout::SetFont" ); |
|
449 AssertTrueL( ETrue, KTxtSetFont ); |
|
450 |
|
451 TInt16 chr = txtComLayout.C(); |
|
452 _LIT( KTxtC, "TAknTextComponentLayout::C" ); |
|
453 AssertTrueL( ETrue, KTxtC ); |
|
454 |
|
455 chr = txtComLayout.l(); |
|
456 _LIT( KTxtl, "TAknTextComponentLayout::l" ); |
|
457 AssertTrueL( ETrue, KTxtl ); |
|
458 |
|
459 chr = txtComLayout.t(); |
|
460 _LIT( KTxtt, "TAknTextComponentLayout::t" ); |
|
461 AssertTrueL( ETrue, KTxtt ); |
|
462 |
|
463 chr = txtComLayout.r(); |
|
464 _LIT( KTxtr, "TAknTextComponentLayout::r" ); |
|
465 AssertTrueL( ETrue, KTxtr ); |
|
466 |
|
467 chr = txtComLayout.b(); |
|
468 _LIT( KTxtb, "TAknTextComponentLayout::b" ); |
|
469 AssertTrueL( ETrue, KTxtb ); |
|
470 |
|
471 chr = txtComLayout.W(); |
|
472 _LIT( KTxtW, "TAknTextComponentLayout::W" ); |
|
473 AssertTrueL( ETrue, KTxtW ); |
|
474 |
|
475 chr = txtComLayout.H(); |
|
476 _LIT( KTxtH, "TAknTextComponentLayout::H" ); |
|
477 AssertTrueL( ETrue, KTxtH ); |
|
478 |
|
479 chr = txtComLayout.J(); |
|
480 _LIT( KTxtJ, "TAknTextComponentLayout::J" ); |
|
481 AssertTrueL( ETrue, KTxtJ ); |
|
482 |
|
483 TInt32 fon = txtComLayout.Font(); |
|
484 _LIT( KTxtFont, "TAknTextComponentLayout::Font" ); |
|
485 AssertTrueL( ETrue, KTxtFont ); |
|
486 |
|
487 TAknWindowComponentLayout::TRangeTriplet ranTriplet; |
|
488 TAknTextComponentLayout txtComLayout2; |
|
489 TAknTextComponentLayout txtComLayout3 = |
|
490 TAknTextComponentLayout::Anim( txtComLayout, |
|
491 txtComLayout2, ranTriplet ); |
|
492 _LIT( KTxtextAnim, "TAknTextComponentLayout::Anim" ); |
|
493 AssertTrueL( ETrue, KTxtextAnim ); |
|
494 |
|
495 TAknTextComponentLayout txtComLayout4 = |
|
496 TAknTextComponentLayout::MultiLineY( txtComLayout, 1, 1 ); |
|
497 _LIT( KTxtTextMultiLineY, "TAknTextComponentLayout::MultiLineY" ); |
|
498 AssertTrueL( ETrue, KTxtTextMultiLineY ); |
|
499 |
|
500 TAknTextComponentLayout txtComLayout5( txtComLayout ); |
|
501 _LIT( KTxtTAknTextComponentLayout2, |
|
502 "TAknTextComponentLayout::TAknTextComponentLayout2" ); |
|
503 AssertTrueL( ETrue, KTxtTAknTextComponentLayout2 ); |
|
504 |
|
505 TAknTextComponentLayout txtComLayout6; |
|
506 txtComLayout6 = txtLineLayout2; |
|
507 _LIT( KTxttTextOptEqual, "TAknTextComponentLayout::operator=" ); |
|
508 AssertTrueL( ETrue, KTxttTextOptEqual ); |
|
509 CleanupStack::Pop(); // Pop txtComLayouts; |
|
510 txtComLayouts.Close(); |
|
511 } |