First public contribution.
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
25 #include <graphics/fbsdefs.h>
27 //TClip test app runs only uncompressed bitmaps tests - part of original TClip test app.
28 //The change was made because the original TClip test app took too much time (over 0.5 hour)
29 //and usually was terminated with a TIMEOUT on LUBBOCK device.
35 RFbsSession::Connect();
36 CTrapCleanup* tc=CTrapCleanup::New();
38 CFbsScreenDevice* dev=NULL;
41 CFbsFont* largefont=NULL;
42 ::CreateTestEnvironment(dev, con, font, largefont);
44 RTest test(_L("TCLIP"));
46 test.Start(_L("Uncompressed"));
49 CFbsBitmap* bmp=new CFbsBitmap;
51 User::Panic(_L("Bitmap not created"),KErrGeneral);
52 TInt ret=bmp->Load(_L("z:\\system\\data\\tbmp.mbm"),EMbmTbmpTbmp,EFalse);
54 User::Panic(_L("Bitmap not loaded"),ret);
56 TestClip* clip=new TestClip(0, &test, dev, con, bmp, font, largefont);
65 ::DestroyTestEnvironment(dev, con, font, largefont);
68 RFbsSession::Disconnect();