|
1 // |
|
2 // Copyright (c) 2008-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 // FNTSTORETEST_T_FNT.SCRIPT |
|
16 // |
|
17 // |
|
18 |
|
19 PRINT Run All Font Store tests |
|
20 // |
|
21 LOAD_SUITE TFntStoreServer |
|
22 RUN_TEST_STEP 300 TFntStoreServer TFnt |
|
23 RUN_TEST_STEP 300 TFntStoreServer TCache |
|
24 RUN_TEST_STEP 100 TFntStoreServer TFntMem |
|
25 RUN_TEST_STEP 100 TFntStoreServer TFontBitmap |
|
26 RUN_TEST_STEP 100 TFntStoreServer TFsOpen |
|
27 RUN_TEST_STEP 200 TFntStoreServer TGlyphTreeDel |
|
28 RUN_TEST_STEP 100 TFntStoreServer TMatchFonts |
|
29 RUN_TEST_STEP 100 TFntStoreServer TOpenFontTypes |
|
30 RUN_TEST_STEP 100 TFntStoreServer TFontMetrics |
|
31 RUN_TEST_STEP 100 TFntStoreServer TGetNearestFont |
|
32 |
|
33 RUN_TEST_STEP 100 TFntStoreServer TCorruptFonts |
|
34 RUN_TEST_STEP 300 TFntStoreServer TShaperCache |
|
35 RUN_TEST_STEP 300 TFntStoreServer TCacheDeletion |
|
36 RUN_TEST_STEP !PanicCode=-40 !PanicString="FBSERV" 100 TFntStoreServer TSetDefaultTypefaceName |
|
37 RUN_TEST_STEP 100 TFntStoreServer TLinkedFonts |
|
38 RUN_TEST_STEP 100 TFntStoreServer TGetNearestFontCapability |
|
39 |
|
40 // Set test server to have only WriteDeviceData(00000020) Capabilitities |
|
41 RUN_PROGRAM -1 setcap TFntStoreServer.exe 00000020 TFntStoreServer0020.exe |
|
42 PRINT Run TGetNearestFont0020 Font Store test |
|
43 // Run server tests and check we do not get a panic |
|
44 LOAD_SUITE TFntStoreServer0020 |
|
45 RUN_TEST_STEP 100 TFntStoreServer0020 TGetNearestFontCapability |
|
46 // Set test server to have no Capabilitities |
|
47 RUN_PROGRAM -1 setcap TFntStoreServer.exe 00000000 TFntStoreServer0000.exe |
|
48 PRINT Run TGetNearestFont0000 Font Store test |
|
49 // Run server tests and check we do get the correct panic |
|
50 LOAD_SUITE TFntStoreServer0000 |
|
51 RUN_TEST_STEP !PanicCode=47 !PanicString="E32USER-CBase" 100 TFntStoreServer0000 TGetNearestFontCapability |