32
|
1 |
//
|
|
2 |
// Copyright (c) 2008-2010 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 300 TFntStoreServer TFontSessionCache
|
|
37 |
RUN_TEST_STEP !PanicCode=-40 !PanicString="FBSERV" 100 TFntStoreServer TSetDefaultTypefaceName
|
|
38 |
RUN_TEST_STEP 100 TFntStoreServer TLinkedFonts
|
|
39 |
RUN_TEST_STEP 100 TFntStoreServer TGetNearestFontCapability
|
|
40 |
|
|
41 |
// Set test server to have only WriteDeviceData(00000020) Capabilitities
|
|
42 |
RUN_PROGRAM -1 setcap TFntStoreServer.exe 00000020 TFntStoreServer0020.exe
|
|
43 |
PRINT Run TGetNearestFont0020 Font Store test
|
|
44 |
// Run server tests and check we do not get a panic
|
|
45 |
LOAD_SUITE TFntStoreServer0020
|
|
46 |
RUN_TEST_STEP 100 TFntStoreServer0020 TGetNearestFontCapability
|
|
47 |
// Set test server to have no Capabilitities
|
|
48 |
RUN_PROGRAM -1 setcap TFntStoreServer.exe 00000000 TFntStoreServer0000.exe
|
|
49 |
PRINT Run TGetNearestFont0000 Font Store test
|
|
50 |
// Run server tests and check we do get the correct panic
|
|
51 |
LOAD_SUITE TFntStoreServer0000
|
|
52 |
RUN_TEST_STEP !PanicCode=47 !PanicString="E32USER-CBase" 100 TFntStoreServer0000 TGetNearestFontCapability
|